1 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3 * irix5-nat.c: Move IRIX shared library support from here...
4 * solib-irix.c: ...to here. Revised substantially to work with
5 generic solib framework.
7 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
8 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
9 * mips-irix-tdep.c: New file.
11 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
12 (mips-irix-tdep.o, solib-irix.o): New rules.
13 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
15 * config/mips/irix6.mt (TDEPFILES): Likewise.
16 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
18 2002-07-26 Kevin Buettner <kevinb@redhat.com>
20 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
21 disabled (via ``#if 0'') includes.
23 2002-07-26 Kevin Buettner <kevinb@redhat.com>
25 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
26 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
27 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
28 Add support for the fpscr register.
29 * rs6000-nat.c (regmap, fetch_inferior_registers)
30 (store_inferior_registers, fetch_core_registers): Likewise.
32 2002-07-26 Kevin Buettner <kevinb@redhat.com>
34 * rs6000-nat.c (language.h): Include.
35 (special_regs): Delete this array.
36 (regmap): New function.
37 (fetch_register, store_register): Use regmap() to map gdb
38 register numbers to ptrace register numbers. Also, use
39 outputs from regmap() to make decisions regarding type of
40 ptrace() call to make. In particular, don't compare against
41 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
42 (fetch_inferior_registers, store_inferior_registers): Where
43 possible, obtain register numbers from tdep struct. Don't
44 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
45 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
46 (LAST_UISA_SP_REGNUM): Delete.
48 2002-07-25 Kevin Buettner <kevinb@redhat.com>
50 * rs6000-nat.c (ppc-tdep.h): Include.
51 (fetch_registers, store_register, fetch_core_registers): Don't
52 access registers[] directly. Instead, use supply_register() or
53 regcache_collect() as appropriate.
54 (find_toc_address): Format hex address with local_hex_string().
56 2002-07-25 Andrew Cagney <ac131313@redhat.com>
58 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
61 2002-07-24 Tom Tromey <tromey@redhat.com>
63 * jv-exp.y: Marked all strings with _().
64 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
66 (MethodInvocation, CastExpression, parse_number, yyerror,
67 java_type_from_name, push_expression_name, yylex): Typo fixes.
69 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
71 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
72 (tee_file_flush, tee_file_write, tee_file_fputs)
73 (tee_file_isatty): New.
74 * ui-file.h (tee_file_new): Add prototype.
76 2002-07-24 Aidan Skinner <aidan@velvet.net>
78 * ada-lang.c: Change k&r style function definitions to prototyped
80 * ada-typeprint.c: Change k&r style function definitions to prototyped
82 * ada-valprint.c: Change k&r style function definitions to prototyped
85 2002-07-24 Andrew Cagney <cagney@redhat.com>
87 * README: Remove reference to remote-bug.
88 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
90 (m88k-nat.o): Delete rule.
91 (m88k-tdep.o): Delete rule.
92 (remote-bug.o): Delete rule.
93 * MAINTAINERS: Mark as obsolete.
94 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
95 * m88k-tdep.c: Make file obsolete.
96 * config/m88k/m88k.mh: Ditto.
97 * config/m88k/delta88v4.mh: Ditto.
98 * config/m88k/delta88v4.mt: Ditto.
99 * config/m88k/delta88.mt: Ditto.
100 * config/m88k/delta88.mh: Ditto.
101 * remote-bug.c: Ditto.
102 * config/m88k/tm-delta88.h: Ditto.
103 * config/m88k/nm-delta88v4.h: Ditto.
104 * config/m88k/xm-delta88.h: Ditto.
105 * config/m88k/xm-dgux.h: Ditto.
106 * config/m88k/tm-m88k.h: Ditto.
107 * config/m88k/nm-m88k.h: Ditto.
108 * config/m88k/tm-delta88v4.h: Ditto.
111 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
112 and m88*-*-* obsolete.
113 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
116 2002-07-24 Andrew Cagney <cagney@redhat.com>
118 * findvar.c (extract_unsigned_integer): Make `addr' parameter
119 constant. Same for local pointer variables.
120 (extract_signed_integer): Ditto.
121 * defs.h (extract_unsigned_integer): Update.
122 (extract_signed_integer): Update.
124 2002-07-24 Kevin Buettner <kevinb@redhat.com>
126 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
127 * gdbserver/configure: Regenerate.
128 * gdbserver/config.in: Regenerate.
130 2002-07-24 Andrew Cagney <cagney@redhat.com>
132 * regcache.c (regcache_raw_write): Change buf parameter to a
133 constant void pointer.
134 (regcache_raw_read): Change buf parameter to a void pointer.
135 (legacy_write_register_gen): Change myaddr parameter a constant
137 (supply_register): Change val parameter to a const void pointer.
138 * regcache.h (regcache_raw_write): Update declaration.
139 (regcache_raw_read): Update declaration.
140 (supply_register): Update declaration.
142 2002-07-24 Tom Tromey <tromey@redhat.com>
144 * defs.h (gdb_readline_wrapper): Declare.
145 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
146 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
147 * top.c (gdb_readline_wrapper): New function.
148 (command_line_input): Use it.
150 2002-07-24 Andrew Cagney <cagney@redhat.com>
152 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
153 regcache_read and regcache_write.
154 (regcache_raw_read_as_address): Replace regcache_read_as_address.
155 * regcache.c: Update.
156 * sh-tdep.c (sh64_push_arguments): Update comment.
157 (sh_pseudo_register_read): Update.
158 (sh_pseudo_register_write): Update.
159 (sh4_register_read): Update.
160 (sh4_register_write): Update.
161 (sh64_pseudo_register_read): Update.
162 (sh64_pseudo_register_write): Update.
163 (sh64_register_read): Update.
164 (sh64_register_write): Update.
165 * i386-tdep.c (i386_extract_return_value): Update.
166 (i386_extract_struct_value_address): Update.
167 (i386_extract_return_value): Update.
168 * blockframe.c (generic_read_register_dummy): Update.
169 (generic_call_dummy_register_unwind): Update
170 * infrun.c (write_inferior_status_register): Update.
172 2002-07-23 Jim Blandy <jimb@redhat.com>
174 * parser-defs.h (expression_context_pc): Make this extern.
175 (Thanks to Michael Snyder.)
177 2002-07-23 Andrew Cagney <ac131313@redhat.com>
179 GDB 5.2.1 released from 5.2 branch.
180 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
181 * README: Update to mention 5.2.1.
183 2002-07-23 Mark Salter <msalter@redhat.com>
185 * remote.c (remote_read_bytes): Fix check for error.
187 2002-07-22 Kevin Buettner <kevinb@redhat.com>
189 * aix-thread.c (language.h): Include.
190 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
191 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
192 Print newlines at end of debug messages.
193 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
194 (pdc_write_data): Use local_hex_string() instead of %llx formats.
196 2002-07-22 Kevin Buettner <kevinb@redhat.com>
198 * aix-thread.c (ppc-tdep.h): Include.
199 (special_register_p): New function.
200 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
201 (store_regs_user_thread): Use register number information from
202 gdbarch_tdep struct instead of hardcoded offsets relative to
203 FIRST_UISA_SP_REGNUM.
204 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
205 special_register_p() instead of using FPLAST_REGNUM and
206 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
207 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
208 will be MQ's register number.
210 2002-07-22 Michael Snyder <msnyder@redhat.com>
212 * aix-thread.c (ops): Rename to aix_thread_ops.
213 (base_ops): Rename to base_target.
214 (ops_attach): Rename to aix_thread_attach.
215 (ops_detach): Rename to aix_thread_detach.
216 (ops_resume): Rename to aix_thread_detach.
217 (ops_wait): Rename to aix_thread_wait.
218 (ops_kill): Rename to aix_thread_kill.
219 (init_ops): Rename to init_aix_thread_ops.
220 (ops_fetch_register): Rename to aix_thread_fetch_register.
221 (ops_store_register): Rename to aix_thread_store_register.
222 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
223 (ops_thread_alive): Rename to aix_thread_thread_alive.
224 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
225 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
226 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
227 (fetch_regs_lib): Rename to fetch_regs_user_thread.
228 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
229 (store_regs_lib): Rename to store_regs_user_thread.
230 (store_regs_kern): Rename to store_regs_kernel_thread.
232 2002-07-22 Michael Snyder <msnyder@redhat.com>
234 * aix-thread.c (ops_prepare_to_store): Eliminate.
235 (init_ops): Don't initialize ops.prepare_to_store.
236 (store_regs_kern): Pre-fetch register buffers from child,
237 because some registers may not be in the cache. Copy
238 regs from register cache only if they are cached.
239 (store_regs_lib): Copy regs from register cache only
241 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
244 2002-07-22 Kevin Buettner <kevinb@redhat.com>
246 * aix-thread.c (gdb_assert.h): Include.
247 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
248 register sizes (from register cache) match size of buffer holding
250 (fill_sprs32): Change parameter types to match those in the ptrace()
252 (store_regs_lib): Likewise, but for 32-bit temporary variables.
253 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
255 2002-07-22 Michael Snyder <msnyder@redhat.com>
257 * aix-thread.c (supply_sprs64): Cosmetic change.
258 (supply_sprs32): Cosmetic change.
259 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
260 (fill_sprs64): Use regcache_collect instead of read_register.
261 (store_regs_lib): Use regcache_collect instead of
262 read_register. Use fill_sprs32 instead of fill_sprs64,
263 if debugging a 32-bit architecture.
264 (store_regs_kern): Use fill_gprs64 etc. to pull the values
265 out of the register cache, instead of passing a pointer into
266 the register cache directly to ptrace. Use regcache_collect
267 insteaad of read_register.
268 (ops_prepare_to_store): Use target_read_registers instead
269 of read_register_bytes.
271 2002-07-20 Aidan Skinner <aidan@velvet.net>
273 * MAINTAINERS: Add self under write after approval.
275 2002-07-20 Aidan Skinner <aidan@velvet.net>
277 * ada-tasks.c: Change k&r style function definitions to prototyped
280 2002-07-19 Andrew Cagney <ac131313@redhat.com>
282 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
283 * x86-64-tdep.c: Include "objfiles.h".
284 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
285 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
287 2002-07-17 Michal Ludvig <michal@suse.cz>
289 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
290 (update_context): Initialise cfa variable.
292 2002-07-17 Michael Snyder <msnyder@redhat.com>
294 * aix-thread.c: Shorten some long lines.
295 Bring comments into line with code spec.
297 2002-07-18 Joel Brobecker <brobecker@gnat.com>
299 * infrun.c: Re-indent using gdb_indent.sh.
301 2002-07-18 Joel Brobecker <brobecker@gnat.com>
303 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
304 Leave the indentation temporarily untouched, to minimize the diffs.
306 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
308 * stabsread.c: Make os9k sections of the code obsolete,
310 * stabsread.h: Make os9k sections of the code obsolete.
312 2002-07-18 Michal Ludvig <mludvig@suse.cz>
314 * linux-low.c (regsets_store_inferior_registers): Add free()
315 at the end of a loop to prevent memory leak.
316 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
317 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
318 * config/sparc/tm-sp64linux.h: Make the rest of #endif
320 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
322 2002-07-17 Jim Blandy <jimb@redhat.com>
324 * macrocmd.c (info_macro_command): Remove newline from error
327 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
329 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
330 (sh_gdbarch_init): Use it for sh-dsp.
332 2002-07-16 Kevin Buettner <kevinb@redhat.com>
334 * dwarf2read.c (read_initial_length): Handle older, non-standard,
335 64-bit DWARF2 format.
337 2002-07-16 Joel Brobecker <brobecker@gnat.com>
339 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
340 <sys/proc.h> when not available.
342 2002-07-16 Andrew Cagney <ac131313@redhat.com>
344 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
345 * stabsread.c: Make os9k sections of the code obsolete.
346 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
347 * config/i386/i386os9k.mt: Make file obsolete.
348 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
349 (COMMON_OBS): Remove os9kread.o
350 (SFILES): Remove os9kread.c.
351 (os9kread.o, remote-os9k.o): Make target obsolete.
352 * remote-os9k.c: Make file obsolete.
353 * os9kread.c: Make file obsolete.
356 2002-07-16 Andrew Cagney <ac131313@redhat.com>
358 * NEWS: Mention that the FR30 has been made obsolete.
359 * fr30-tdep.c: Make file obsolete.
360 * config/fr30/tm-fr30.h: Ditto.
361 * config/fr30/fr30.mt: Ditto.
362 * configure.tgt: Make fr30-*-elf obsolete.
363 * MAINTAINERS: Make fr30-elf obsolete.
365 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
367 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
368 found is not inside a section.
370 2002-07-15 Kevin Buettner <kevinb@redhat.com>
372 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
374 (pdc_realloc): Use xrealloc() instead of realloc().
376 2002-07-15 Kevin Buettner <kevinb@redhat.com>
378 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
379 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
380 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
383 2002-07-15 Kevin Buettner <kevinb@redhat.com>
385 * aix-thread.c (ptrace_check): Eliminate goto.
386 (sync_threadlists): Eliminate gotos. Also, fix array overrun
389 2002-07-15 Kevin Buettner <kevinb@redhat.com>
391 * aix-thread.c (gdbcmd.h): Include.
392 (DEBUG, DBG, DBG2, dbg): Eliminate.
393 (debug_aix_thread): New static global.
394 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
395 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
396 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
397 invocations to DBG and DBG2 macros to test against
398 ``debug_aix_thread'' and call fprintf_unfiltered().
399 (_initialize_aix_thread): Add new command "set debug aix-thread".
401 2002-07-15 Andrew Cagney <ac131313@redhat.com>
403 From Gerhard Tonn <TON@de.ibm.com>:
404 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
405 instead of supply_register.
407 2002-07-15 Andrew Cagney <ac131313@redhat.com>
409 * dwarf2cfi.c: Include "gdb_assert.h".
410 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
412 (update_context): Do not use __func__. Add missing ``break''.
413 (update_context): Do not use __func__.
415 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
417 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
418 and its setting. Set gdbarch instruction printing functions
419 directly. For non-rs6000 case use new function
420 gdb_print_insn_powerpc.
421 (gdb_print_insn_powerpc): New function.
423 2002-07-13 Andrew Cagney <ac131313@redhat.com>
425 * NEWS: Mention that the d30v has been marked obsolete.
426 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
427 * configure.tgt: Mark d30v-*-* as obsolete.
428 * d30v-tdep.c: Mark file as obsolete.
429 * config/d30v/d30v.mt: Ditto.
430 * config/d30v/tm-d30v.h: Ditto.
432 2002-07-13 Aidan Skinner <aidan@velvet.net>
434 * ada-tasks.c (add_task_entry): replace calls to
435 malloc() with xmalloc
436 * ada-tasks.c (init_task_list): replace calls to free with xfree()
438 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
439 ada_finish_decode_line_1, all_sals_for_line
440 ada_breakpoint_rewrite): replace calls to free() with xfree()
442 2002-07-12 Kevin Buettner <kevinb@redhat.com>
444 From Nicholas Duffek (with minor changes by Martin Hunt,
445 Louis Hamilton, and Kevin Buettner):
446 * aix-thread.c: New file.
448 2002-07-12 Petr Sorfa <petrs@caldera.com>
450 * dwarf2read.c (dwarf2_invalid_attrib_class): New
451 complaint for invalid attribute class or form.
452 (read_func_scope): DW_AT_frame_base
453 better handling of DW_AT_block*.
454 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
455 better handling of DW_AT_block*.
456 (read_common_block): DW_AT_location
457 better handling of DW_AT_block*.
458 (read_partial_die): DW_AT_location better handling
460 (new_symbol): DW_AT_external better handling of
461 DW_AT_block*. Proper initialization of variable
463 (attr_form_is_block): New function that returns true
464 if the attribute's form is of DW_FORM_block*.
466 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
468 * valops.c (find_method_list): Remove comment about
469 removed STATIC_MEMFUNCP argument.
470 (value_find_oload_method_list): Likewise.
472 2002-07-12 Kevin Buettner <kevinb@redhat.com>
474 From Nicholas Duffek:
475 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
476 target_new_objfile_hook.
478 2002-07-12 Kevin Buettner <kevinb@redhat.com>
480 From Nicholas Duffek:
481 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
484 2002-07-12 Andrew Cagney <cagney@redhat.com>
486 * MAINTAINERS: Mention --enable-sim-build-warnings.
487 (m68hc11-elf): Disable sim build warnings.
488 (m32r-elf): Mark as broken obsolete candidate.
489 (x86_64-linux-gnu): Mark as buildable with -Werror.
490 (arm-elf): Change -w to ``,'' which enables warnings but not
493 2002-07-12 Andrew Cagney <ac131313@redhat.com>
495 * bcache.h: Update copyright.
496 (struct bstring, struct bcache): Move definition to "bcache.c".
497 Replaced by opaque declaration.
498 (bcache_xfree): Replace free_bcache.
499 (bcache_xmalloc, bcache_memory_used): Declare.
501 * bcache.c: Update copyright.
502 (struct bstring, struct bcache): Moved to here from "bcache.h".
504 (bcache_xmalloc, bcache_memory_used): New functions.
505 (bcache_xfree): Replace function free_bcache.
507 * Makefile.in (objfiles.o): Add $(bcache_h).
508 (objfiles_h): Remove $(bcache_h).
509 (symfile.o): Add $(bcache_h).
511 * symmisc.c: Update copyright.
512 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
513 (print_objfile_statistics): Use bcache_memory_used.
515 * symfile.c: Include "bcache.h".
516 (reread_symbols): Use bcache_xfree.
517 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
518 (add_psymbol_to_list): Pass psymbol_cache by value.
519 (add_psymbol_with_dem_name_to_list): Ditto.
521 * objfiles.h: Update copyright.
522 (struct bcache): Declare opaque. Do not include "bcache.h".
523 (struct objfile): Change psymbol_cache and macro_cache to ``struct
525 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
527 * objfiles.c: Include "bcache.h". Update copyright.
528 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
530 (free_objfile): Use bcache_xfree.
532 2002-07-11 Grace Sainsbury <graces@redhat.com>
534 * monitor.c (monitor_fetch_register): Make name a constant.
535 (monitor_store_register): Same.
537 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
539 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
540 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
541 (finish_block) For non-function blocks, hash the symbol table. For
542 function blocks, mark the symbol table as unhashed.
543 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
544 (msymbol_hash_iw): Likewise.
545 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
547 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
548 (lookup_minimal_symbol): Likewise for both.
549 * symtab.h (struct block): Add `hashtable' flag. Comment the
551 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
552 (ALL_BLOCK_SYMBOLS): Update.
553 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
554 (struct symbol): Add `hash_next' pointer.
555 * symtab.c (lookup_block_symbol): Search using the hash table when
557 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
558 (search_symbols, find_addr_symbol): Likewise.
560 * dstread.c (process_dst_block): Clear hashtable bit for new block.
561 (read_dst_symtab): Likewise.
562 * jv-lang.c (get_java_class_symtab): Likewise.
563 * mdebugread.c: Include "gdb_assert.h".
564 (shrink_block): Assert that the block being modified is not hashed.
565 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
566 * symmisc.c (free_symtab_block): Walk the hash table when freeing
568 (dump_symtab): Recognize hashed blocks.
569 * printcmd.c (print_frame_args): Assert that function blocks do not
570 have hashed symbol tables.
571 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
572 (fill_in_ada_prototype, debug_print_block): Likewise.
573 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
575 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
577 * stack.c (print_frame): Use result of frame_address_in_block()
578 instead of fi->pc when evaluating symbols.
579 (backtrace_command_1): Ditto.
581 2002-07-11 Andrew Cagney <cagney@redhat.com>
583 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
586 * arm-tdep.c (arm_register_name): Make return type constant.
588 2002-07-10 Andrew Cagney <ac131313@redhat.com>
590 * win32-nat.c (has_detach_ability): Convert to strict ISO C
592 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
593 * s390-tdep.c (s390_fp_regnum): Ditto.
594 (s390_read_fp): Ditto.
595 (s390_pop_frame): Ditto.
596 (_initialize_s390_tdep): Ditto.
597 * remote.c (get_remote_state): Ditto.
598 * procfs.c (mappingflags): Ditto.
599 * memattr.c (_initialize_mem): Ditto.
600 * mcore-tdep.c (mcore_pop_frame): Ditto.
601 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
602 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
603 * language.c (set_case_str): Ditto.
604 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
605 * frv-tdep.c (new_variant): Ditto.
606 (frv_stopped_data_address): Ditto.
607 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
608 (context_alloc): Ditto.
609 (frame_state_alloc): Ditto.
610 (unwind_tmp_obstack_init): Ditto.
611 (unwind_tmp_obstack_free): Ditto.
612 (cfi_read_fp): Ditto.
613 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
614 (cris_pop_frame): Ditto.
615 * c-lang.c (scanning_macro_expansion): Ditto.
616 (finished_macro_expansion): Ditto.
617 (c_preprocess_and_parse): Ditto.
619 * gdbarch.h, gdbarch.c: Regenerate.
620 * config/mn10200/tm-mn10200.h: Adjust indentation.
621 * target.c: Adjust indentation.
622 * symtab.h: Adjust indentation.
623 * stabsread.h: Adjust indentation.
624 * remote-es.c: Adjust indentation.
625 * os9kread.c: Adjust indentation.
627 2002-07-10 Andrew Cagney <ac131313@redhat.com>
629 * wince.c (_initialize_wince): Rename _initialize_inftarg.
630 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
632 2002-07-10 Grace Sainsbury <graces@redhat.com>
634 * NEWS: Mention m68k, mcore multi-arching.
635 * MAINTAINERS: Change status of m68k, mcore to reflect
638 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
640 * valops.c (find_overload_match): Free oload_syms.
642 2002-07-09 Joel Brobecker <brobecker@gnat.com>
644 Define HAVE_SYS_PROC_H if sys/proc.h exists
645 * configure.in: Add check for sys/proc.h
646 * config.in: Regenerate.
647 * configure: Regenerate.
649 2002-07-09 Grace Sainsbury <graces@redhat.com>
651 * config/m68k/tm-m68k.h: Remove macros wrapped in
654 2002-07-09 David O'Brien <obrien@FreeBSD.org>
656 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
657 (perror_with_name, remote_close, remote_open, expect, play): Static.
659 2002-07-08 Andrew Cagney <ac131313@redhat.com>
661 * config.in, configure: Regenerate.
663 2002-07-08 Mark Kettenis <kettenis@gnu.org>
665 * dwarf2cfi.c: Include "gcore.h".
666 (execute_stack_op): Fix implementation of the
667 DW_OP_deref and DW_OP_deref_size operators by letting do their
668 lookup in the target.
670 2002-07-07 Mark Kettenis <kettenis@gnu.org>
672 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
673 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
676 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
678 Fix PR gdb/595, gdb/602
679 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
680 Don't call value_cast, just read the vtable pointer; update comments
683 2002-07-05 Grace Sainsbury <graces@redhat.com>
685 * config/mcore/tm-mcore.h: Remove file.
686 * config/mcore/mcore.mt: Remove definition of TM_FILE
687 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
689 2002-07-05 Mark Kettenis <kettenis@gnu.org>
691 * i386bsd-tdep.c: Include "gdb_string.h".
693 2002-07-04 Grace Sainsbury <graces@redhat.com>
695 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
696 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
698 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
699 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
700 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
701 (RETVAL_REGNUM): Move macros from tm-mcore.h
702 (mcore_reg_struct_has_addr): New function.
703 (mcore_gdbarch_init): Added initializations for the macros removed
706 2002-07-04 Mark Kettenis <kettenis@gnu.org>
708 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
709 traditonal string branding within the ELF header.
711 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
713 * symtab.c (remove_params): New function.
714 (make_symbol_overload_list): Use it instead of cplus_demangle.
715 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
717 2002-07-04 Mark Kettenis <kettenis@gnu.org>
719 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
721 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
723 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
724 and tdep->sigtramp_end.
725 * i386obsd-nat.c: New file.
726 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
728 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
729 Don't call get_current_frame().
731 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
733 * i386-nat.c (child_post_startup_inferior): New function
734 calling i386_cleanup_dregs if
735 I386_USE_GENERIC_WATCHPOINTS is defined.
736 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
737 conditional to acknowledge that i386-nat.c has its
738 own child_post_startup_inferior function.
740 2002-07-04 Mark Kettenis <kettenis@gnu.org>
742 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
743 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
744 instead of MAX_REGISTER_RAW_SIZE.
745 (i386_extract_return_value, i386_extract_struct_value_address):
746 Convert to use regcache.
747 (i386_gdbarch_init): Set max_register_raw_size and
748 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
749 Set extract_return_value and extract_struct_value_address instead
750 of their deprecated variants.
752 Convert i386 target to generic dummy frames.
753 * i386-tdep.c: Include "symfile.h".
754 (i386_frameless_signal_p): Consider a function to be frameless if
755 the pc points at the first instruction of the function.
756 (i386_frame_chain): Handle (generic) call dummies.
757 (i386_frame_saved_pc): Likewise.
758 (i386_frame_init_saved_regs): Remove code dealing with call
759 dummies on the stack.
760 (i386_push_dummy_frame): Removed.
761 (i386_call_dummy_words): Removed.
762 (i386_fix_call_dummy): Removed.
763 (i386_push_return_address): New function.
764 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
765 parameter, and don't call get_current_frame.
766 (i386_pop_frame): New function.
767 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
768 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
769 entry_point_address, set call_dummy_breakpoint_offset to 0, set
770 call_dummy_length to 0, set call_dummy_words to NULL, set
771 sizeof_call_dummy_words to 0, set fix_call_dummy to
772 generic_fix_call_dummy, set pc_in_call_dummy to
773 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
774 generic_push_dummy_frame, set push_return_address to
775 i386_push_return_address and set frame_chain_valid to
776 generic_file_frame_chain_valid.
778 2002-07-04 Michal Ludvig <mludvig@suse.cz>
780 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
781 byte offsets instead of an array of indexes.
782 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
784 2002-07-03 Andrew Cagney <ac131313@redhat.com>
786 * gdbarch.sh (struct regcache): Add opaque declaration.
787 (EXTRACT_RETURN_VALUE): New architecture method.
788 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
789 * gdbarch.h, gdbarch.c: Regenerate.
790 * arch-utils.c (legacy_extract_return_value): New function.
791 * arch-utils.h (legacy_extract_return_value): Declare.
792 * values.c (value_being_returned): Re-enable code handling
793 EXTRACT_STRUCT_VALUE_ADDRESS. Move
794 deprecated_grub_regcache_for_registers call to block handling
795 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
796 (EXTRACT_RETURN_VALUE): Do not define.
798 2002-07-03 Grace Sainsbury <graces@redhat.com>
800 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
801 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
802 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
803 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
804 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
805 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
806 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
807 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
808 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
809 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
810 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
811 argument so the function fits the prototype in the architecture
813 (mcore_pop_frame): Remove argument so the function fits the
814 prototype. Use get_current_frame instead of the argument.
815 (mcore_push_arguments): Change type of struct_return so the
816 function can be used in the architecture vector.
817 (mcore_store_struct_return): Add.
818 (mcore_frame_init_saved_regs): Add.
819 (mcore_gdbarch_init): Add function calls to replace the macros
820 removed from tm-mcore.h
822 2002-07-03 Andrew Cagney <ac131313@redhat.com>
824 * infcmd.c (print_return_value): Remove compatibility code calling
825 deprecated_grub_regcache_for_registers.
827 * values.c: Include "regcache.h".
828 (value_being_returned): Update. Use
829 deprecated_grub_regcache_for_registers to extract the register
831 * value.h (value_being_returned): Change ``retbuf'' parameter to a
833 * Makefile.in (values.o): Add dependency on $(regcache_h).
835 * inferior.h (run_stack_dummy): Change type of second parameter to
836 a ``struct regcache''.
837 * valops.c (hand_function_call): Change type of retbuf to ``struct
838 regcache''. Allocate using regcache_xmalloc, clean using
839 make_cleanup_regcache_xfree.
840 * infcmd.c (run_stack_dummy): Update. Use
841 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
843 * regcache.c (do_regcache_xfree): New function.
844 (make_cleanup_regcache_xfree): New function.
845 * regcache.h (make_cleanup_regcache_xfree): Declare.
847 2002-07-03 Martin M. Hunt <hunt@redhat.com>
849 * event-top.c (command_line_handler): Don't read past
852 2002-07-03 Martin M. Hunt <hunt@redhat.com>
854 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
856 (varobj_create): Store frame_id for root.
857 (varobj_gen_name): Use xasprintf.
858 (varobj_update): Save and restore frame using get_frame_id() and
860 (create_child): Use xasprintf.
861 (new_root_variable): Initialize frame_id.
862 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
863 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
864 to prevent memory leak.
866 2002-07-03 Andrew Cagney <ac131313@redhat.com>
868 * valops.c (hand_function_call): Move declaration of retbuf to
869 start of function, allocate using malloc, add a cleanup but before
870 the inf_status cleanup, cleanup the buffer. Rename local variable
871 old_chain to inf_status_cleanup.
873 2002-07-03 Martin M. Hunt <hunt@redhat.com>
875 * top.c (execute_command): Use cmd_func() and cmd_func_p().
877 * cli/cli-decode.c (cmd_func_p): New function.
878 (cmd_func): New function.
880 * command.h: Add cmd_func() and cmd_func_p().
882 2002-07-03 Grace Sainsbury <graces@redhat.com>
884 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
885 (REGISTER_SIZE): Remove.
886 (MAX_REGISTER_RAW_SIZE): Remove.
887 (REGISTER_VIRTUAL_TYPE): Remove.
888 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
889 (REGISTER_NAME): Remove.
890 (USE_GENERIC_DUMMY_FRAMES): Remove.
891 (CALL_DUMMY): Remove.
892 (CALL_DUMMY_START_OFFSET): Remove.
893 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
894 (CALL_DUMMY_LOCATION): Remove.
895 (FIX_CALL_DUMMY): Remove.
896 (CALL_DUMMY_ADDRESS): Remove.
897 (SIZEOF_CALL_DUMMY_WORDS): Remove.
898 (SAVE_DUMMY_FRAME_TOS): Remove.
899 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
900 (mcore_register_virtual_type): New function.
901 (mcore_register_byte): New function.
902 (mcore_register_size): New function.
903 (mcore_register_name): New function.
904 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
905 macros removed from tm-mcore.h.
906 (mcore_dump_tdep): Add.
907 (_initialize_mcore_tdep): Add gdbarch_register call.
909 2002-07-03 Mark Kettenis <kettenis@gnu.org>
911 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
912 frameless_look_for_prologue, such that we actually call this
915 2002-07-02 Joel Brobecker <brobecker@gnat.com>
917 * frame.h (frame_address_in_block): New function.
919 * blockframe.c (frame_address_in_block): New function extracted
920 from get_frame_block().
921 (get_frame_block): Use frame_address_in_block().
922 (block_innermost_frame): Use frame_address_in_block() to match
923 the frame pc address against the block boundaries rather than
924 the frame pc directly. This prevents a failure when a frame pc
925 is actually a return-address pointing immediately after the end
928 2002-07-02 Grace Sainsbury <graces@redhat.com>
930 * MAINTAINERS: Add self under write after approval.
932 2002-07-02 Grace Sainsbury <graces@redhat.com>
934 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
935 used in architecture vector. The default is
936 m68k_local_breakpoint_from_pc.
937 (m68k_local_breakpoint_from_pc): Add.
938 (enum): Add register numbers from tm-m68k.h.
939 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
941 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
942 GDB_MULTI_ARCH_PARTIAL.
943 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
944 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
946 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
947 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
948 to enum in m68k-tdep.c
950 2002-07-02 Joel Brobecker <brobecker@gnat.com>
952 * solib-osf.c (open_map): Compute the list of shared libraries
953 loaded by the inferior, rather than the list of libraries loaded
954 by GDB itself. Otherwise, GDB ends up reading the symbols from
955 the wrong shared libraries...
957 2002-07-02 Mark Kettenis <kettenis@gnu.org>
959 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
960 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
962 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
964 (FRAMELESS_SIGNAL): Remove function.
965 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
966 i386_linux_saved_pc_after_call): Removed.
967 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
968 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
969 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
971 * i386-tdep.c (i386_frameless_signal_p): New function.
972 (i386_frame_chain): Deal with frameless signals.
973 (i386_sigtramp_saved_sp): New function.
974 (i386_frame_saved_pc): Deal with frameless signals.
975 (i386_saved_pc_after_call): Make sure the correct value is
976 returned just after entry into a sigtramp.
977 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
978 i386fbsd4_sc_sp_offset): New variables.
979 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
980 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
981 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
982 similiar to what we already did for sc_pc_offset.
983 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
986 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
988 2002-07-02 Michal Ludvig <mludvig@suse.cz>
990 * config/i386/tm-x86-64linux.h: New.
991 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
993 * config/i386/nm-x86-64.h: Rename to ...
994 * config/i386/nm-x86-64linux.h: ... this one.
995 * config/i386/x86-64linux.mh: Reflect the above change.
997 2002-07-01 Mark Kettenis <kettenis@gnu.org>
999 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1000 with sigcontext_addr. Add sc_sp_offset.
1001 (i386bsd_sigtramp_saved_pc): Remove prototype.
1002 (i386bsd_sicontext_addr): Add prototype.
1003 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1004 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1005 (i386_svr4_sigtramp_saved_pc): Removed.
1006 (i386_svr4_sigcontext_addr): New function.
1007 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1008 Initialize tdep->sigcontext_addr instead. Initialize
1009 tdep->sc_pc_offset and tdep->sc_sp_offset.
1010 (i386_gdbarch_init): Likewise.
1011 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1013 (i386bsd_sigtramp_saved_pc): Remove function.
1014 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1015 Initialize tdep->sigcontext_addr instead. Initialize
1017 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1018 of tdep->sigtramp_saved_pc.
1019 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1020 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1023 * i386-tdep.c (i386_frameless_function_invocation,
1024 i386_frame_num_args, i386_frame_init_saved_regs,
1025 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1026 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1027 i386_extract_return_value, i386_store_return_value,
1028 i386_extract_struct_value_address, i386_register_virtual_type,
1029 i386_register_convertible, i386_register_convert_to_virtual,
1030 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1031 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1034 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1036 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1038 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1039 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1040 this macro. Include "value.h".
1042 2002-06-30 Aidan Skinner <aidan@velvet.net>
1044 * ada-exp.tab.c: remove as it's a generated file
1045 * ada-lex.c: remove as it's a generated file
1047 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1049 * config/i386/tm-i386.h (struct frame_info, struct
1050 frame_saved_regs, struct value, struct type): Remove forward
1053 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1054 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1055 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1056 (FILL_FPXREGSET): Define.
1058 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1060 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1061 i[3456]86-*-netbsd* case.
1062 * config/i386/tm-obsd.h: Removed.
1063 * config/i386/obsd.mt: Removed.
1064 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1066 (MH_CFLAGS): Add -DYYDEBUG=0.
1068 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1069 i386nbsd_sc_pc_offset on OpenBSD too.
1071 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1072 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1073 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1075 * i386bsd-tdep.c: Include "arch-utils.h".
1076 (i386bsd_aout_in_solib_call_trampoline): New function.
1077 (i386bsd_init_abi): Set in_solib_call_trampoline to
1078 i386bsd_aout_in_solib_call_trampoline.
1079 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1080 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1082 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1084 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1085 (struct obstack, struct bcache): Add opaque declarations.
1086 * Makefile.in (macrotab_h): Update
1088 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1090 * blockframe.c (generic_find_dummy_frame): Change return type to
1091 ``struct regcache''.
1092 (struct dummy_frame): Replace field ``registers'' with regcache, a
1093 struct regcache object.
1094 (generic_find_dummy_frame): Update.
1095 (generic_push_dummy_frame): Update. Use regcache_xfree,
1096 regcache_xmalloc and regcache_cpy.
1097 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1099 (deprecated_generic_find_dummy_frame): Update.
1100 (generic_read_register_dummy): Update. Use
1101 regcache_read_as_address.
1102 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1103 (generic_get_saved_register): Update. Use regcache_read.
1105 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1107 * Makefile.in (objfiles_h): Add $(bcache_h).
1108 * objfiles.h: Include "bcache.h".
1110 * Makefile.in (symtab_h): Remove $(bcache_h).
1111 * symtab.h: Do not include "bcache.h".
1113 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1115 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1116 generic_func_frame_chain_valid.
1118 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1120 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1121 * config/i386/tm-fbsd.h: Likewise.
1123 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1125 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1126 generic_unwind_get_saved_register.
1128 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1130 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1131 * regcache.c (supply_register): Add missing argument to
1132 register_buffer call.
1134 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1136 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1137 Solaris /bin/grep does not not like it. From Peter Schauer.
1139 2002-06-26 Tom Tromey <tromey@redhat.com>
1141 * command.h (add_setshow_cmd): Declare.
1142 (add_setshow_cmd_full): Declare.
1143 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1144 returns void. Use add_setshow_cmd_full.
1145 (add_setshow_cmd_full): New function.
1146 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1147 (add_setshow_boolean_cmd): Likewise.
1149 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1151 * config/vax/tm-vax.h: Protect from multiple inclusion.
1152 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1153 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1154 * config/vax/tm-vaxbsd.h: ...here. New file.
1155 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1157 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1159 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1160 (BELIEVE_PCC_PROMOTION): Remove.
1161 (AP_REGNUM): Move to...
1162 * config/vax/nm-vax.h: ...here.
1163 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1164 (vax_breakpoint_from_pc): New function.
1165 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1166 and gdbarch_believe_pcc_promotion.
1168 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1170 * Makefile.in (vax_tdep_h): Define.
1171 (vax-tdep.o): Use $(vax_tdep_h).
1172 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1173 (vax_dump_tdep): New function.
1174 (_initialize_vax_tdep): Register vax_dump_tdep.
1175 * vax-tdep.h: Include osabi.h.
1176 (struct gdbarch_tdep): New.
1178 2002-06-26 Andrew Cagney <cagney@redhat.com>
1180 * frame.h (deprecated_generic_find_dummy_frame): Rename
1181 generic_find_dummy_frame.
1182 * blockframe.c (generic_find_dummy_frame): Make static.
1183 (deprecated_generic_find_dummy_frame): New function.
1184 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1185 generic_find_dummy_frame with deprecated_find_dummy_frame.
1186 (sh64_nofp_frame_init_saved_regs): Ditto.
1187 (sh_fp_frame_init_saved_regs): Ditto.
1188 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1189 (s390_frame_chain): Ditto.
1190 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1192 2002-06-26 Grace Sainsbury <graces@redhat.com>
1194 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1195 gdbarch vector are at the top.
1197 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1198 (FRAME_ARGS_ADDRESS): Remove.
1199 (FRAME_LOCALS_ADDRESS): Remove.
1200 (FRAME_NUM_ARGS): Remove.
1201 (FRAME_ARGS_SKIP): Remove.
1202 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1203 (m68k_gdbarch_init): Add gdbarch initializations for macros
1204 undefined in tm-m68k.h
1206 2002-06-26 Grace Sainsbury <graces@redhat.com>
1208 * monitor.h: Add the function regname to monitor_ops
1209 structure. This way NUM_REGS does not have to be a constant.
1210 * monitor.c (monitor_fetch_register): Added support for regname
1211 function. The function is called if the array regnames is NULL.
1212 (monitor_store_register): Same.
1213 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1215 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1216 cpu32bug_cmds.regname to point to new function.
1217 * abug-rom.c (abug_regname): Same as above.
1218 (init_abug_cmds): Same.
1219 * dbug-rom.c (dbug_regname): Same as above.
1220 (init_dbug_cmds): Same.
1221 * remote-est.c (est_regname): Same.
1222 (init_est_cmds): Same.
1223 * rom68k-rom.c (rom68k_regname): Same.
1224 (init_rom68k_cmds): Same.
1226 2002-06-25 Tom Tromey <tromey@redhat.com>
1228 * breakpoint.c (delete_command): Don't repeat `delete' commands.
1230 2002-06-25 Andrew Cagney <cagney@redhat.com>
1232 * infrun.c (stop_registers): Change variable's type to ``struct
1234 (xmalloc_inferior_status): Delete function.
1235 (free_inferior_status): Delete function.
1236 (normal_stop): Use regcache_cpy.
1237 (struct inferior_status): Change type of fields ``stop_registers''
1238 and ``registers'' to ``struct regcache''.
1239 (write_inferior_status_register): Use regcache_write.
1240 (save_inferior_status): Instead of calling
1241 xmalloc_inferior_status, allocate the inf_status buffer directly.
1242 Use regcache_dup_no_passthrough and regcache_dup to save the
1244 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
1245 Replace the stop_registers regcache instead of overriding it. Use
1246 regcache_xfree. Instead of calling free_inferior_status, xfree
1247 the buffer directly.
1248 (discard_inferior_status): Use regcache_xfree. Instead of calling
1249 free_inferior_status, xfree the buffer directly.
1250 (build_infrun): Use regcache_xmalloc.
1251 (_initialize_infrun): Delete redundant call to build_infrun.
1253 * Makefile.in (infcmd.o): Add $(regcache_h).
1255 * infcmd.c: Include "regcache.h".
1256 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
1257 obtain the address of `stop_registers' register buffer.
1258 (print_return_value): Ditto.
1260 * inferior.h (struct regcache): Add opaque declaration.
1261 (stop_registers): Change variable's declared type to ``struct
1264 2002-06-24 Tom Tromey <tromey@redhat.com>
1266 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
1267 * target.c (initialize_targets): Fixed typo in
1268 trust-readonly-sections `show' documentation.
1270 * main.c: Marked all strings with _().
1272 2002-06-24 Don Howard <dhoward@redhat.com>
1274 * memattr.c (create_mem_region): Treat hi == 0 as a special case
1275 that means max CORE_ADDR+1.
1276 (lookup_mem_region): Ditto.
1277 (mem_info_command): Ditto.
1279 2002-06-24 Grace Sainsbury <graces@redhat.com>
1281 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
1282 (REGISTER_BYTES_OK): Remove.
1283 (REGISTER_BYTES): Remove.
1284 (STORE_STRUCT_RETURN): Remove.
1285 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
1286 (STORE_RETURN_VALUE): Remove.
1287 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1288 (FRAME_CHAIN): Remove.
1289 (FRAMELESS_FUNCTION_INVOCATION): Remove.
1290 (FRAME_SAVED_PC): Remove.
1291 * m68k-tdep.c (m68k_register_bytes_ok):Add.
1292 (m68k_store_struct_return): Add.
1293 (m68k_deprecated_extract_return_value): Add.
1294 (m68k_deprecated_extract_struct_value_address): Add.
1295 (m68k_store_return_value): Add.
1296 (m68k_frame_chain): Add.
1297 (m68k_frameless_function_invocation): Add.
1298 (m68k_frame_saved_pc): Add.
1299 (m68k_gdbarch_init): added set_gdbarch calls for new
1300 functions and deleted macros.
1302 2002-06-23 Tom Tromey <tromey@redhat.com>
1304 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
1305 (ALLDEPFILES): Likewise.
1306 (udiheaders): Removed.
1307 (udip2soc.o): Likewise.
1308 (udi2go32.o): Likewise.
1310 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
1312 2002-06-22 Andrew Cagney <ac131313@redhat.com>
1314 * infrun.c (_initialize_infrun): Delete unnecessary call to
1317 * regcache.h: Update comments describing the regcache_cpy family
1319 (regcache_save, regcache_restore): Delete declaration.
1320 (regcache_save_no_passthrough): Delete declaration.
1321 (regcache_restore_no_passthrough): Delete declaration.
1322 * regcache.c (regcache_save): Delete function.
1323 (regcache_save_no_passthrough): Delete function.
1324 (regcache_restore): Delete function.
1325 (regcache_restore_no_passthrough): Delete function.
1327 2002-06-21 Andrew Cagney <ac131313@redhat.com>
1329 * config/m68k/tm-m68k.h: Fix typo.
1330 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1331 (m68k_frame_init_saved_regs): Declare.
1333 2002-06-21 Jim Blandy <jimb@redhat.com>
1335 Remove some vestiges of Harris 88k support.
1336 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1337 register numbering quirk.
1338 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1339 odd symbols occurring in Harris 88k ELF targets.
1341 2002-06-21 Tom Tromey <tromey@redhat.com>
1343 * gdb_locale.h: New file.
1344 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1345 (defs_h): Added gdb_locale.h.
1346 * configure, config.in: Rebuilt.
1347 * configure.in (PACKAGE): Define.
1348 * defs.h: Include gdb_locale.h.
1349 * main.c (captured_main): Call setlocale, bindtextdomain,
1352 2002-06-21 Dave Brolley <brolley@redhat.com>
1354 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1355 * config/frv/frv.mt: New file.
1356 * config/frv/tm-frv.h: New file.
1357 * configure.tgt: Support frv-*-*.
1358 * Makefile.in (frv-tdep.o): New target.
1359 * frv-tdep.c: New file.
1360 * NEWS: Mention frv.
1362 2002-06-21 Dave Brolley <brolley@redhat.com>
1364 * MAINTAINERS: Add self to "Write After Approval" list.
1366 2002-06-21 Grace Sainsbury <graces@redhat.com>
1368 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1369 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1370 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1371 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1372 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1374 * m68k-tdep.c: Include arch-utils.h
1375 (m68k_register_raw_size): Add.
1376 (m68k_register_virtual_size): Add.
1377 (m68k_register_virtual_type): Add.
1378 (m68k_register_name): Add.
1379 (m68k_stack_align): Add.
1380 (m68k_register_byte): Add.
1381 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1384 2002-06-21 Grace Sainsbury <graces@redhat.com>
1386 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1387 m68k_find_saved_regs.
1388 (m68k_pop_frame): Removed saved_regs structure, and replaced
1389 references to it with frame->saved_regs.
1390 (m68k_gdbarch_init): Added function calls to initialize the
1392 (m68k_fix_call_dummy): Add.
1393 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1394 (CALL_DUMMY): Remove.
1395 (CALL_DUMMY_LENGTH): Remove.
1396 (CALL_DUMMY_START_OFFSET): Remove.
1397 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1398 (FIX_CALL_DUMMY): Remove.
1399 (PUSH_DUMMY_FRAME): Remove.
1400 (POP_FRAME): Remove.
1402 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1404 * parse.c (parse_fprintf): New function used to avoid calls to
1405 fprintf in bison parser generated debug code.
1406 * parser-defs.h: Declaration of new parse_fprintf function.
1407 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1408 Set YYDEBUG to 1 by default.
1409 Set YYFPRINTF as parse_fprintf.
1411 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1413 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1415 (pointer_encoding, enum ptr_encoding): New.
1416 (execute_cfa_program): Take care about pointer encoding.
1417 (dwarf2_build_frame_info): Only call parse_frame_info for
1418 .debug_frame and .eh_frame.
1419 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1420 fixed augmentation handling, added relative addressing,
1421 ignore duplicate FDEs. Added comments.
1422 * dwarf2cfi.c: Reindented.
1424 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1426 * event-top.c (command_handler): Don't use space_at_cmd_start
1427 unless there is sbrk() on the host. Assign time and space data
1428 to union fields of the appropriate length.
1430 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1432 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1433 x86_64_register_name. Return type changed to 'const char *'.
1434 (x86_64_register_name2nr): Rename to x86_64_register_number.
1435 (x86_64_gdbarch_init): Update to reflect the change.
1436 * x86-64-tdep.h: Ditto.
1437 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1438 (supply_fpregset): Ditto.
1440 2002-06-19 Andrew Cagney <cagney@redhat.com>
1442 * regcache.h: Update copyright.
1443 (struct regcache, struct gdbarch): Add opaque declarations.
1444 (current_regcache): Declare global variable.
1445 (regcache_read, regcache_write): Add gdbarch parameter.
1446 (regcache_save, regcache_save_no_passthrough)
1447 (regcache_restore, regcache_restore_no_passthrough)
1448 (regcache_dup, regcache_dup_no_passthrough)
1449 (regcache_cpy, regcache_cpy_no_passthrough)
1450 (deprecated_grub_regcache_for_registers)
1451 (deprecated_grub_regcache_for_register_valid)
1452 (regcache_valid_p): Add function declarations.
1454 * regcache.c: Update copyright.
1455 (regcache_descr_handle): New global variable.
1456 (struct regcache_descr): Define.
1457 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1458 (regcache_descr, xfree_regcache_descr): New functions.
1459 (struct regcache): Define.
1460 (regcache_xmalloc, regcache_xfree): New functions.
1461 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1462 (regcache_dup, regcache_dup_no_passthrough): New functions.
1463 (regcache_valid_p, regcache_read_as_address): New functions.
1464 (deprecated_grub_regcache_for_registers): New function.
1465 (deprecated_grub_regcache_for_register_valid): New function.
1466 (current_regcache): New global variable.
1467 (register_buffer): Add regcache parameter. Update calls.
1468 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1469 (read_register_gen, write_register_gen): Update register_buffer
1470 call. Test for legacy_p instead of gdbarch_register_read_p or
1471 gdbarch_register_write_p.
1472 (regcache_collect): Update register_buffer call.
1473 (build_regcache): Rewrite. Use deprecated grub functions.
1474 (regcache_save, regcache_save_no_passthrough): New functions.
1475 (regcache_restore, regcache_restore_no_passthrough): New
1477 (_initialize_regcache): Create the regcache_data_handle. Swap
1478 current_regcache global variable.
1480 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1481 parameter to regcache_read and regcache_write calls.
1482 (sh4_register_read): Ditto.
1483 (sh64_pseudo_register_read): Ditto.
1484 (sh64_register_read): Ditto.
1485 (sh_pseudo_register_write): Ditto.
1486 (sh4_register_write): Ditto.
1487 (sh64_pseudo_register_write): Ditto.
1488 (sh64_register_write): Ditto.
1490 * defs.h (XCALLOC): Define.
1492 2002-06-19 Grace Sainsbury <graces@redhat.com>
1494 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1495 * m68k-tdep.c (m68k_gdbarch_init): Added.
1496 (m68k_dump_tdep): Added.
1498 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1500 * ada-lang.c (fill_in_ada_prototype): Update comment.
1502 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1504 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1506 (mips_abi_string, mips_abi_strings): New.
1507 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1508 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1509 tdep->mips_abi_string. Honor mips_abi_string. Default to
1510 O32 if no ABI is found.
1511 (mips_dump_tdep): Use mips_abi_strings.
1512 (mips_abi_update): New function.
1513 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1514 ``set mips abi'' and ``show mips abi''. Check the size of
1517 2002-06-19 Andrew Cagney <cagney@redhat.com>
1519 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1522 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1524 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1525 current frame using only the first stack size adjustment. All
1526 subsequent size adjustments are not considered to be part of
1527 the "static" part of the current frame.
1528 Compute the address of the saved registers relative to the
1529 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1530 in use in this frame.
1532 2002-06-18 Don Howard <dhoward@redhat.com>
1534 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1535 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1536 suggesting this solution.
1538 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1540 * config/romp/xm-rtbsd.h: Delete file.
1541 * config/romp/rtbsd.mh: Delete file.
1543 2002-06-18 Keith Seitz <keiths@redhat.com>
1545 * breakpoint.c (condition_command): Post breakpoint_modify
1546 when a condition is added to an existing breakpoint.
1547 (commands_command): Likewise for commands.
1548 (set_ignore_count): Likewise for ignore counts.
1549 If no tty, do not simply return, still need to send event
1551 (ignore_command): Only print a newline if the command came
1553 Don't call breakpoints_changed, since this is now properly
1554 handled by set_ignore_count.
1556 2002-06-18 Andrew Cagney <cagney@redhat.com>
1558 * MAINTAINERS: Note that cris-elf target can be compiled with
1560 * cris-tdep.c (cris_register_name): Make return type constant.
1561 (cris_breakpoint_from_pc): Ditto.
1563 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1565 * frame.h (struct frame_info): Change type of context to
1568 2002-06-17 Andrew Cagney <cagney@redhat.com>
1570 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1572 * gdbarch.h, gdbarch.c: Regenerate.
1573 * config/mips/tm-mips.h (mips_register_name): Update.
1574 * i386-tdep.h (i386_register_name): Update.
1575 * mips-tdep.c (mips_register_name): Update
1576 * alpha-tdep.c (alpha_register_name): Update.
1577 * arch-utils.c (legacy_register_name): Update.
1578 * arch-utils.h (legacy_register_name): Update.
1579 * avr-tdep.c (avr_register_name): Update.
1580 * ia64-tdep.c (ia64_register_name): Update.
1581 * i386-tdep.c (i386_register_name): Update.
1582 * sparc-tdep.c (sparc32_register_name): Update.
1583 (sparc64_register_name): Update.
1584 (sparclite_register_name): Update.
1585 (sparclet_register_name): Update.
1586 * sh-tdep.c (sh_generic_register_name): Update.
1587 (sh_sh_register_name): Update.
1588 (sh_sh3_register_name): Update.
1589 (sh_sh3e_register_name): Update.
1590 (sh_sh_dsp_register_name): Update.
1591 (sh_sh3_dsp_register_name): Update.
1592 (sh_sh4_register_name): Update.
1593 (sh_sh64_register_name): Update.
1594 * s390-tdep.c (s390_register_name): Update.
1595 * rs6000-tdep.c (rs6000_register_name): Update.
1596 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1597 (ns32k_register_name_32382): Update.
1598 * d10v-tdep.c (d10v_ts2_register_name): Update.
1599 (d10v_ts3_register_name): Update.
1600 * xstormy16-tdep.c (xstormy16_register_name): Update.
1601 * vax-tdep.c (vax_register_name): Update.
1602 * v850-tdep.c (v850_register_name): Update.
1603 * m68hc11-tdep.c (m68hc11_register_name): Update.
1604 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1605 (am33_register_name): Update.
1607 2002-06-17 Grace Sainsbury <graces@redhat.com>
1609 * m68k-tdep.c: Reindented.
1611 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1613 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1614 list of predefined types.
1616 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1618 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1619 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1620 REGISTER_CONVERT_TO_RAW): Remove defines.
1621 (i386_register_virtual_type, i386_register_convertible,
1622 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1624 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1625 macros mentioned above.
1627 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1628 (i386lynx_saved_pc_after_call): Remove prototype.
1629 * i386ly-tdep.c: Include "i386-tdep.h".
1630 (i386lynx_saved_pc_after_call): Make static. Use
1631 read_memory_nobpt instead of read_memory. Use
1632 read_memory_unsigned_integer instead of read_memory_integer.
1633 (i386lynx_init_abi): New function.
1634 (i386lynx_coff_osabi_sniffer): New function.
1635 (_initialize_i386bsd_tdep): New function.
1637 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1638 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1639 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1640 (i386_fix_call_dummy): Remove prototype.
1641 * i386-tdep.c (i386_call_dummy_words): New variable.
1642 (i386_gdbarch_init): Adjust for removal of the
1643 macros mentioned above.
1645 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1647 * command.h (add_setshow_auto_boolean_cmd): Replace
1648 add_set_auto_boolean_cmd.
1649 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1650 add_set_auto_boolean_cmd.
1651 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1652 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1653 mask-address'' command.
1654 (show_mask_address): Add cmd parameter.
1655 * remote.c (add_packet_config_cmd): Update. Change type of
1656 set_func and show_func to cmd_sfunc_ftype.
1657 (_initialize_remote): Update `set remote Z-packet'
1658 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1659 (show_remote_protocol_e_packet_cmd): Ditto.
1660 (show_remote_protocol_E_packet_cmd): Ditto.
1661 (show_remote_protocol_P_packet_cmd): Ditto.
1662 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1663 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1664 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1665 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1666 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1667 (show_remote_protocol_Z_packet_cmd): Ditto.
1668 (show_remote_protocol_binary_download_cmd): Ditto.
1669 (show_remote_cmd): Pass NULL to all of above.
1671 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1673 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1674 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1675 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1676 POP_FRAME): Remove defines.
1677 (i386_push_arguments, i386_store_struct_return,
1678 i386_extract_return_value, i386_store_return_value,
1679 i386_extract_struct_value_address, i386_push_dummy_frame,
1680 i386_pop_frame): Renove prototypes.
1681 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1682 macros mentioned above.
1684 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1686 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1687 add_set_boolean_cmd.
1688 (add_setshow_cmd): New function.
1689 * command.h (add_setshow_boolean_cmd): Replace
1690 add_set_boolean_cmd.
1691 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1692 and ``set rdiromatzero''.
1693 * maint.c (_initialize_maint_cmds): Update commented out code.
1694 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1695 * target.c (initialize_targets): Update `set
1696 trust-readonly-sections'.
1697 * remote.c (_initialize_remote): Update `set remotebreak'.
1699 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1701 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1702 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1703 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1704 fit into multi-arch framework.
1705 (i386_breakpoint_from_pc): New function.
1706 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1709 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1710 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1711 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1712 (i386_frameless_function_invocation, i386_frame_num_args,
1713 i386_frame_init_saved_regs): Remove prototypes.
1714 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1715 macros mentioned above.
1717 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1719 * cli/cli-decode.c (set_cmd_cfunc): Update.
1720 (set_cmd_sfunc): Update.
1721 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1722 (set_cmd_sfunc, set_cmd_cfunc): Update.
1723 * cli/cli-decode.h: Update.
1725 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1727 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1728 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1730 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1732 * defs.h (auto_boolean): Declare enum.
1733 * command.h (cmd_auto_boolean): Delete enum.
1734 * mips-tdep.c (mask_address_var): Update.
1735 (mips_mask_address_p): Update.
1736 (show_mask_address): Update.
1737 * remote.c (struct packet_config): Update.
1738 (update_packet_config): Update.
1739 (show_packet_config_cmd): Update.
1740 (packet_ok): Update.
1741 (add_packet_config_cmd): Update.
1742 (_initialize_remote):
1743 * command.h: Update.
1744 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1745 (do_setshow_command): Update.
1746 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1747 * cli/cli-decode.h: Update.
1749 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1751 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1752 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1753 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1754 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1755 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1756 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1758 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1759 list of DJGPP COFF targets.
1761 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1762 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1763 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1764 (FP0_REGNUM): Remove define.
1765 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1766 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1767 (i386_register_virtual_size): Remove protoype.
1768 * i386-tdep.c (i386_register_virtual_size): Removed.
1769 (i386_extract_return_value, i386_store_return_value): Use
1770 FP0_REGNUM instead of NUM_FREGS to determine whether the
1771 floating-point registers are available.
1772 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1773 Adjust for removal of macros mentioned above.
1775 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1777 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1779 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1781 (supply_gregset, fill_gregset): Remove use of register keyword and
1782 remove declaration for regmap. Use I386_NUM_GREGS instead of
1783 NUM_REGS and NUM_FREGS.
1784 (FPREGSET_FSAVE_OFFSET): Remove.
1785 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1786 NUM_FREGS to determine whether the floating-point registers are
1789 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1790 gnu_store_registers): Replace usage of NUM_GREGS with
1793 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1794 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1795 usage of NUM_GREGS with I386_NUM_GREGS.
1797 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1799 * i386bsd-nat.c: Include "i386-tdep.h".
1800 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1803 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1804 and associated comment. They no longer make any sense, since we
1805 don't use this file anymore on Linux.
1807 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1808 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1809 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1810 elements in these arrays.
1811 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1814 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1816 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1817 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1819 2002-06-14 Andrew Cagney <cagney@redhat.com>
1821 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1822 EXTRACT_RETURN_VALUE.
1823 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1824 EXTRACT_STRUCT_VALUE_ADDRESS.
1825 * gdbarch.h, gdbarch.c: Regenerate.
1827 * values.c (value_being_returned): Handle
1828 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1829 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1831 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1832 * arm-tdep.c (arm_gdbarch_init): Update.
1833 * avr-tdep.c (avr_gdbarch_init): Update.
1834 * cris-tdep.c (cris_gdbarch_init): Update.
1835 * d10v-tdep.c (d10v_gdbarch_init): Update.
1836 * ia64-tdep.c (ia64_gdbarch_init): Update.
1837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1838 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1839 * s390-tdep.c (s390_gdbarch_init): Update.
1840 * sh-tdep.c (sh_gdbarch_init): Update.
1841 * s390-tdep.c (s390_gdbarch_init): Update.
1842 * sparc-tdep.c (sparc_gdbarch_init): Update.
1843 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1844 * v850-tdep.c (v850_gdbarch_init): Update.
1845 * vax-tdep.c (vax_gdbarch_init): Update.
1846 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1849 * config/arc/tm-arc.h: Update.
1850 * config/d30v/tm-d30v.h: Update.
1851 * config/fr30/tm-fr30.h: Update.
1852 * config/h8300/tm-h8300.h: Update.
1853 * config/h8500/tm-h8500.h: Update.
1854 * config/i386/tm-i386.h: Update.
1855 * config/i386/tm-ptx.h: Update.
1856 * config/i386/tm-symmetry.h: Update.
1857 * config/i960/tm-i960.h: Update.
1858 * config/m32r/tm-m32r.h: Update.
1859 * config/m68k/tm-delta68.h: Update.
1860 * config/m68k/tm-linux.h: Update.
1861 * config/m68k/tm-m68k.h: Update.
1862 * config/m88k/tm-m88k.h: Update.
1863 * config/mcore/tm-mcore.h: Update.
1864 * config/mips/tm-mips.h: Update.
1865 * config/mn10200/tm-mn10200.h: Update.
1866 * config/pa/tm-hppa.h: Update.
1867 * config/pa/tm-hppa64.h: Update.
1868 * config/sparc/tm-sp64.h: Update.
1869 * config/sparc/tm-sparc.h: Update.
1870 * config/sparc/tm-sparclet.h: Update.
1871 * config/z8k/tm-z8k.h: Update.
1873 2002-06-14 Andrew Cagney <cagney@redhat.com>
1875 * Makefile.in (i386_linux_tdep_h): Define.
1876 (i386_tdep_h, i387_tdep_h): Define.
1877 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1878 $(i386_tdep_h) and $(i387_tdep_h).
1879 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1881 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1883 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1884 Already covered by the default.
1886 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1887 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1888 (i386_gdbarch_init): Initialize long_double_format and long_double
1891 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1892 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1894 * config/i386/i386sol2.mh: ... here.
1895 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1896 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1897 (SIGCONTEXT_PC_OFFSET): Remove define.
1898 (IN_SIGTRAMP): Remove define.
1899 * i386-sol2-tdep.c: New file.
1901 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1902 * config/i386/tm-i386nw.h: Removed.
1904 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1905 USE_STRUCT_CONVENTION): Remove defines.
1906 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1907 (get_longjmp_target): Remove prototype.
1908 (IN_SIGTRAMP): Remove define.
1909 (i386bsd_in_sigtramp): Remove prototype.
1910 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1911 function. Update comment accordingly
1912 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1913 (FRAME_SAVED_PC): Remove define.
1914 (i386bsd_frame_saved_pc): Remove prototype.
1915 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1916 GET_LONGJMP_TARGET): Remove defines.
1917 (get_longjmp_target): Remove prototype.
1918 (IN_SIGTRAMP): Remove define.
1919 (i386bsd_in_sigtramp): Remove prototype.
1920 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1921 function. Update comment accordingly
1922 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1923 (FRAME_SAVED_PC): Remove define.
1924 (i386bsd_frame_saved_pc): Remove prototype.
1925 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1927 (USE_STRUCT_CONVENTION): Remove prototype.
1928 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1930 (_initialize_i386bsd_nat): Revise logic to determine some
1931 constants at compile time when compiling a native GDB. Warn if
1932 things don't match up with what we expect.
1933 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1935 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1936 to use date stored in `struct gdbarch_tdep'.
1937 (i386bsd_sigcontext_offset): Remove varaible.
1938 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1939 stored in `struct gdbarch_tdep'.
1940 (i386bsd_frame_saved_pc): Make static.
1941 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1942 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1943 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1944 i386fbsd4_sc_pc_offset): New variables.
1945 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1946 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1948 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1950 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1951 Modify the value of i386fbsd_sigtramp_start and
1952 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1953 i386fbsd_sigtramp_end.
1954 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1957 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1958 define to i386-linux-tdep.h.
1959 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1960 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1962 (i386_linux_register_name, i386_linux_register_byte,
1963 i386_linux_register_raw_size): Remove prototypes.
1964 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1965 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1966 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1967 TARGET_WRITE_PC): Remove defines.
1968 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1969 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1970 i386_linux_write_pc): Remove prototypes.
1971 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1972 (get_longjmp_target): Remove prototype.
1973 * i386-linux-tdep.h: New file.
1974 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1975 * i386-linux-tdep.c: Include "i386-tdep.h" and
1976 "i386-linux-tdep.h".
1977 (i386_linux_register_name, i386_linux_register_byte,
1978 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1979 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1981 (i386_linux_init_abi): New function.
1982 (_initialize_i386_linux_tdep): New function.
1984 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1985 (i386_saved_pc_after_call): Remove prototype.
1986 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1987 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1988 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1989 (i386_register_name, i386_stab_reg_to_regnum,
1990 i386_dwarf_reg_to_regnum): Remove prototypes.
1991 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1992 SIZEOF_SSE_REGS): Remove defines.
1993 (REGISTER_BYTES): Remove define.
1994 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1995 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1996 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1997 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1998 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1999 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2000 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2001 (get_longjmp_target): Remove prototype.
2002 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2003 (sigtramp_saved_pc): Remove define.
2004 (i386v4_sigtramp_saved_pc): Remove prototype.
2005 * config/i386/tm-go32.h (FRAME_CHAIN,
2006 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2007 (i386go32_frame_saved_pc): Remove prototype.
2008 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2009 (get_longjmp_target): Remove prototype.
2010 * i386-tdep.h: Include "osabi.h".
2011 (enum i386_abi): Removed.
2012 (enum struct_return): New enum.
2013 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2014 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2015 sc_pc_offset members.
2016 (i386_gdbarch_register_os_abi): Remove prototype.
2017 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2018 I386_SSE_NUM_REGS): New defines.
2019 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2020 I386_SSE_SIZEOF_REGS): New defines.
2021 (i386_register_name, i386_register_byte, i386_register_raw_size):
2023 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2024 (i386bsd_sigtramp_saved_pc): New prototype.
2025 * i386-tdep.c: Don't include "elf-bfd.h".
2026 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2027 i386_frame_chain, i386_saved_pc_after_call): Make static.
2028 (i386_frame_saved_pc): Rewrite to call architecture dependent
2029 function to deal with signal handlers. Make static.
2030 (i386go32_frame_saved_pc): Removed.
2031 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2033 (i386_get_longjmp_target): New function.
2034 (default_struct_convention, pcc_struct_convention,
2035 reg_struct_convention, valid_conventions, struct_convention): New
2037 (i386_use_struct_convention): New function.
2038 (i386v4_sigtramp_saved_pc): Renamed to
2039 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2040 (i386_pc_in_sigtramp): New function.
2041 (i386_abi_names): Removed.
2042 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2043 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2045 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2046 i386_gdbarch_register_os_abi): Removed.
2047 (struct i386_abi_handler): Removed.
2048 (i386_abi_handler_list): Removed.
2049 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2051 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2052 i386_nw_init_abi): New functions.
2053 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2054 Use set_gdbarch_xxx() calls instead of relying on macros for a
2056 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2057 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2058 Register the various architecture variants defined in this file.
2060 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2062 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2063 (struct main_type): Remove arg_types member. Update comments for
2065 (TYPE_ARG_TYPES): Remove.
2066 (TYPE_FN_FIELD_ARGS): Update.
2067 (smash_to_method_type): Update prototype.
2069 * c-typeprint.c (cp_type_print_method_args): Take method type
2070 instead of argument list. Use new argument layout. Simplify.
2071 (c_type_print_args): Use new argument layout. Simplify.
2072 (c_type_print_base): Update call to cp_type_print_method_args.
2073 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2074 argument; use die->type instead. Update call to
2075 smash_to_method_type.
2076 (read_structure_scope): Update call to dwarf2_add_member_fn.
2077 * gdbtypes.c (allocate_stub_method): Update comment.
2078 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2079 Use new argument layout.
2080 (check_stub_method): Use new argument layout. Don't count
2081 void as an argument.
2082 (print_arg_types): Update comments. Use new argument layout.
2083 (recursive_dump_type): Don't print arg_types member.
2084 * hpread.c (hpread_read_struct_type): Use new argument layout.
2085 (fixup_class_method_type): Likewise.
2086 (hpread_type_lookup): Likewise.
2087 * stabsread.c (read_type): Update calls to read_args and
2088 smash_to_method_type.
2089 (read_args): Use new argument layout. Simplify.
2090 * valops.c (typecmp): Use new argument layout. Update parameters
2091 and comments. Simplify.
2092 (hand_function_call): Use new argument layout.
2093 (search_struct_method): Update call to typecmp.
2094 (find_overload_match): Use new argument layout.
2096 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2098 * NEWS: Mention multithreaded debug support for gdbserver.
2100 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2102 * MAINTAINERS: Mention NEWS.
2104 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2106 * gdbserver/regcache.c: Add comment.
2108 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2110 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2111 (struct mips_objfile_private, compare_pdr_entries): New.
2112 (non_heuristic_proc_desc): Read the ".pdr" section if it
2115 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2117 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2118 (arm_debug): New static variable.
2119 (_initialize_arm_tdep): Add ``set debug arm'' command.
2121 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2123 * Makefile.in (sim_arm_h): Define.
2124 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2125 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2126 (arm_register_sim_regno): New function, map an internal REGNUM
2127 onto a simulator register number.
2128 (arm_gdbarch_init): Set register_sim_regno.
2130 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2132 * MAINTAINERS: Add self.
2134 2002-06-11 Jim Blandy <jimb@redhat.com>
2136 * source.c (source_info): Mention whether the symtab has
2137 information about preprocessor macros.
2139 Call the command `info macro', not `show macro'.
2140 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2142 (_initialize_macrocmd): Register `info_macro_command' in
2143 `infolist', not `showlist'.
2145 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2147 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2148 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2149 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2150 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2151 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2153 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2154 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2155 (_initialize_mips_tdep): Remove dead code.
2156 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2157 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2158 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2159 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2160 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2161 MIPS_LAST_FP_ARG_REGNUM): Remove.
2163 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2165 * gdbserver/thread-db.c: New file.
2166 * gdbserver/proc-service.c: New file.
2167 * gdbserver/acinclude.m4: New file.
2168 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2169 proc-service.o, and thread-db.o.
2170 (linux-low.o): Add USE_THREAD_DB.
2171 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2172 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2173 * gdbserver/aclocal.m4: Regenerated.
2174 * gdbserver/config.in: Regenerated.
2175 * gdbserver/configure: Regenerated.
2176 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2177 thread_db.h, and linux/elf.h headrs.
2178 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2179 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2180 Check for -lthread_db and thread support.
2181 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2182 PowerPC, and SuperH.
2183 * gdbserver/i387-fp.c: Constify arguments.
2184 * gdbserver/i387-fp.h: Likewise.
2185 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2186 `struct inferior_info'. Remove PID member. Use generic inferior
2187 list header. All uses updated.
2188 (inferiors, signal_pid): Removed.
2189 (all_threads): New variable.
2190 (get_thread): Define.
2191 (add_inferior_to_list): New function.
2192 (for_each_inferior): New function.
2193 (change_inferior_id): New function.
2194 (add_inferior): Removed.
2195 (remove_inferior): New function.
2196 (add_thread): New function.
2197 (free_one_thread): New function.
2198 (remove_thread): New function.
2199 (clear_inferiors): Use for_each_inferior and free_one_thread.
2200 (find_inferior): New function.
2201 (find_inferior_id): New function.
2202 (inferior_target_data): Update argument type.
2203 (set_inferior_target_data): Likewise.
2204 (inferior_regcache_data): Likewise.
2205 (set_inferior_regcache_data): Likewise.
2206 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2207 (all_processes, stopping_threads, using_thrads)
2208 (struct pending_signals, debug_threads, pid_of): New.
2209 (inferior_pid): Replace with macro.
2210 (struct inferior_linux_data): Remove.
2211 (get_stop_pc, add_process): New functions.
2212 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2213 Use add_process and add_thread.
2214 (linux_attach_lwp): New function, based on old linux_attach. Use
2215 add_process and add_thread. Set stop_expected for new threads.
2216 (linux_attach): New function.
2217 (linux_kill_one_process): New function.
2218 (linux_kill): Kill all LWPs.
2219 (linux_thread_alive): Use find_inferior_id.
2220 (check_removed_breakpoints, status_pending_p): New functions.
2221 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2222 Update. Use WNOHANG. Wait for cloned processes also. Update process
2223 struct for the found process.
2224 (linux_wait_for_event): New function.
2225 (linux_wait): Use it. Support LWPs.
2226 (send_sigstop, wait_for_sigstop, stop_all_processes)
2227 (linux_resume_one_process, linux_continue_one_process): New functions.
2228 (linux_resume): Support LWPs.
2229 (REGISTER_RAW_SIZE): Remove.
2230 (fetch_register): Use register_size instead. Call supply_register.
2231 (usr_store_inferior_registers): Likewise. Call collect_register.
2233 (regsets_fetch_inferior_registers): Improve error message.
2234 (regsets_store_inferior_registers): Add debugging.
2235 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2236 (unstopped_p, linux_signal_pid): New functions.
2237 (linux_target_ops): Add linux_signal_pid.
2238 (linux_init_signals): New function.
2239 (initialize_low): Call it. Initialize using_threads.
2240 * gdbserver/regcache.c (inferior_regcache_data): Add valid
2242 (get_regcache): Fetch registers lazily. Add fetch argument
2243 and update all callers.
2244 (regcache_invalidate_one, regcache_invalidate): New
2246 (new_register_cache): Renamed from create_register_cache.
2247 Return the new regcache.
2248 (free_register_cache): Change argument to a void *.
2249 (registers_to_string, registers_from_string): Call get_regcache
2250 with fetch flag set.
2251 (register_data): Make static. Pass fetch flag to get_regcache.
2252 (supply_register): Call get_regcache with fetch flag clear.
2253 (collect_register): Call get_regcache with fetch flag set.
2254 (collect_register_as_string): New function.
2255 * gdbserver/regcache.h: Update.
2256 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
2258 Handle input interrupts while waiting for an ACK.
2259 (input_interrupt): Use signal_pid method.
2260 (getpkt): Flush after debug output and use stderr.
2261 (outreg): Use collect_register_as_string.
2262 (new_thread_notify, dead_thread_notify): New functions.
2263 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2265 (look_up_one_symbol): Flush after debug output.
2266 * gdbserver/server.c (step_thread, server_waiting): New variables.
2267 (start_inferior): Don't use signal_pid. Update call to mywait.
2268 (attach_inferior): Update call to mywait.
2269 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2270 (main): Don't fetch/store registers explicitly. Use
2271 set_desired_inferior. Support proposed ``Hs'' packet. Update
2273 * gdbserver/server.h: Update.
2274 (struct inferior_list, struct_inferior_list_entry): New.
2275 * gdbserver/target.c (set_desired_inferior): New.
2276 (write_inferior_memory): Constify.
2277 (mywait): New function.
2278 * gdbserver/target.h: Update.
2279 (struct target_ops): New signal_pid method.
2280 (mywait): Removed macro, added prototype.
2282 * gdbserver/linux-low.h (regset_func): Removed.
2283 (regset_fill_func, regset_store_func): New.
2284 (enum regset_type): New.
2285 (struct regset_info): Add type field. Use new operation types.
2286 (struct linux_target_ops): stop_pc renamed to get_pc.
2287 Add decr_pc_after_break and breakpoint_at.
2288 (get_process, get_thread_proess, get_process_thread)
2289 (strut process_info, all_processes, linux_attach_lwp)
2290 (thread_db_init): New.
2292 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
2293 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2294 (the_low_target): Add new members.
2295 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2296 (i386_store_fpxregset): Constify.
2297 (target_regsets): Add new kind identifier.
2298 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2299 (i386_set_pc): Add debugging.
2300 (i386_breakpoint_at): New function.
2301 (the_low_target): Add new members.
2302 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
2303 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2304 (mips_breakpoint_at): New.
2305 (the_low_target): Add new members.
2306 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2307 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2308 (the_low_target): Add new members.
2309 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
2310 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2311 (the_low_target): Add new members.
2312 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
2315 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2317 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2318 (unwind_tmp_obstack_free, parse_frame_info)
2319 (update_context, cfi_read_fp, cfi_write_fp)
2320 (cfi_frame_chain, cfi_init_extra_frame_info)
2321 (cfi_virtual_frame_pointer): Use the above function.
2322 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
2324 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
2326 * v850-tdep.c (v850_type_is_scalar): New function.
2327 (v850_use_struct_convention): Match current gcc implementation
2328 as close as possible.
2329 (v850_push_arguments): Fix stack_offset handling. Don't write
2330 struct_addr into register. This is done by v850_store_struct_return.
2331 (v850_extract_return_value): Care for structs.
2332 (v850_store_return_value): Ditto.
2333 (v850_store_struct_return): Actually write address.
2335 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2337 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2338 without debug information too.
2340 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2342 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2343 Make multi-arch pure.
2344 * gdbarch.h, gdbarch.c: Re-generate.
2345 * arm-tdep.c (arm_print_float_info): Update.
2346 * arch-utils.h (default_print_float_info): Update.
2347 * arch-utils.c (default_print_float_info): Update.
2348 * infcmd.c (float_info): Update call.
2350 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2352 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2353 the front of the initialize list.
2355 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2357 * infrun.c (struct inferior_status): Replace fields
2358 selected_frame_address and selected_level with field
2360 (save_inferior_status): Update. Use get_frame_id.
2361 (struct restore_selected_frame_args): Delete.
2362 (restore_selected_frame): Update. Use frame_find_by_id.
2363 (restore_inferior_status): Update.
2365 * breakpoint.h (struct breakpoint): Change type of
2366 watchpoint_frame to frame_id.
2367 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2368 call to get_current_frame.
2369 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2371 (watchpoint_check): Use frame_find_by_id.
2373 * frame.h (record_selected_frame): Delete declaration.
2374 * stack.c (record_selected_frame): Delete function.
2376 * frame.h (struct frame_id): Define.
2377 (get_frame_id): Declare.
2378 (frame_find_by_id): Declare.
2379 * frame.c (frame_find_by_id): New function.
2380 (get_frame_id): New function.
2382 2002-06-10 Andrey Volkov <avolkov@transas.com>
2384 * ser-e7kpc.c: Fix duplicated define and call of
2385 _initialize_ser_e7000pc
2387 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2389 * signals/signals.c (target_signal_from_host): Fix #ifdef
2391 (do_target_signal_to_host): Likewise.
2393 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2395 * mips-tdep.c (mips_find_abi_section): New function.
2396 (mips_gdbarch_init): Call it.
2398 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2400 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2401 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2402 after Andrew's 2002-06-08 gdbarch change.
2404 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2406 * i386-linux-nat.c (suppy_gregset): Don't supply
2407 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2409 (fill_gregset): Don't fetch it under the same circumstances.
2411 2002-06-09 Andrew Cagney <cagney@redhat.com>
2413 * Makefile.in (callback_h): Define.
2414 (remote_sim_h): Update path to remote-sim.h.
2415 (remote-rdp.o): Add $(callback_h).
2416 (remote-sim.o): Use $(callback_h).
2417 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2418 * remote-rdp.c: Include "gdb/callback.h".
2420 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2422 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2423 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2425 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2427 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2428 * rdi-share/serpardr.c: Ditto.
2429 * rdi-share/unixcomm.c: Ditto.
2430 * rdi-share/serdrv.c: Ditto.
2431 * rdi-share/hostchan.h: Ditto.
2432 * rdi-share/hostchan.c: Ditto.
2433 * rdi-share/host.h: Ditto.
2434 * rdi-share/devsw.c: Ditto.
2436 * objfiles.h: Change type of obj_private to void pointer.
2437 * pa64solib.c: Update copyright. Don't include "assert.h", use
2438 strcmp instead of STREQ, use LONGEST, do not use PTR
2439 * somsolib.c: Ditto.
2441 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2442 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2443 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2445 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2447 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2448 (default_get_saved_register): Delete function.
2449 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2450 generic_unwind_get_saved_register.
2451 * gdbarch.h, gdbarch.c: Re-generate.
2453 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2455 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2456 generic_func_frame_chain_valid.
2457 * gdbarch.h, gdbarch.c: Re-generate.
2458 * blockframe.c (generic_func_frame_chain_valid): Only check
2459 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2460 passing FP to PC_IN_CALL_DUMMY.
2463 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2465 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2466 (register_gdbarch_data): Initialize init_p.
2467 (gdbarch_data): Initialize data pointer using the init function.
2468 (init_gdbarch_data): Delete function.
2469 (gdbarch_update_p): Update.
2470 (initialize_non_multiarch): Update.
2471 (struct gdbarch): Add field initialized_p.
2472 * gdbarch.h, gdbarch.c: Re-generate.
2474 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2476 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2477 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2478 better do the things actually here.
2479 * x86-64-tdep.c (x86_64_register_name2nr): New.
2480 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2481 (x86_64_gdbarch_init): Respect the above change.
2482 * x86-64-tdep.h (x86_64_register_name2nr)
2483 (x86_64_register_nr2name): Add prototypes.
2484 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2486 2002-06-06 Michael Snyder <msnyder@redhat.com>
2488 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2489 Delete extra braces and re-indent.
2490 (d10v_store_return_value): Char return values
2491 must be shifted over by one byte in R0.
2492 (d10v_extract_return_value): Delete extra braces, re-indent.
2494 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2496 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2497 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2498 (d10v_integer_to_address): Rewrite.
2499 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2500 the d10v specific functions which take care of converting to the
2503 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2505 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2506 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2508 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2510 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2512 * config/tm-linux.h: Ditto.
2513 * config/alpha/tm-alphalinux.h: Ditto.
2514 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2515 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2516 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2517 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2518 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2519 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2520 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2521 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2522 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2523 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2524 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2525 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2526 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2527 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2528 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2529 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2530 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2531 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2532 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2533 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2534 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2535 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2536 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2537 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2538 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2539 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2540 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2541 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2542 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2543 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2544 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2545 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2546 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2547 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2548 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2549 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2550 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2552 2002-05-04 Aidan Skinner <aidan@velvet.net>
2554 * ada-exp.tab.c: New file
2555 * ada-exp.y: New file
2556 * ada-lang.c: New file
2557 * ada-lang.h: New file
2558 * ada-lex.c: New file
2559 * ada-lex.l: New file
2560 * ada-tasks.c: New file
2561 * ada-typeprint.c: New file
2562 * ada-valprint.c: New file
2564 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2566 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2567 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2569 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2571 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2572 insetead of ppc-linux-tdep.o.
2573 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2574 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2576 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2578 2002-05-07 Christian Groessler <chris@groessler.org>
2579 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2580 bit register contents for little endian hosts.
2582 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2584 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2587 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2589 * gdbarch.h: Regenerate.
2591 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2593 * MAINTAINERS: Add everyone to write-after-approval list.
2595 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2597 * stack.c (frame_info): Use frame_register_unwind instead of
2598 saved_regs. Mention when the SP is on the stack or in a register.
2600 * frame.h (frame_register_unwind_ftype): Define. Document.
2601 (struct frame_info): Add field register_unwind and
2602 register_unwind_cache.
2603 (frame_register_unwind): Declare.
2604 (generic_unwind_get_saved_register): Declare.
2606 * frame.c (frame_register_unwind): New function.
2607 (generic_unwind_get_saved_register): New function.
2609 * blockframe.c (generic_call_dummy_register_unwind): New function.
2610 (frame_saved_regs_register_unwind): New function.
2611 (set_unwind_by_pc): New function.
2612 (create_new_frame): New function.
2613 (get_prev_frame): New function.
2615 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2617 * a29k-share/: Delete directory.
2618 * remote-vx29k.c: Delete file.
2620 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2622 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2623 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2625 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2627 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2628 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2631 (sparcnbsd-tdep.o): New dependency lists.
2632 * NEWS: Note new UltraSPARC NetBSD native configuration.
2633 * configure.host (sparc64-*-netbsd*): New host.
2634 * configure.tgt (sparc-*-netbsdelf*)
2635 (sparc-*-netbsd*): Set gdb_target to nbsd.
2636 (sparc64-*-netbsd*): New target.
2637 * sparc64nbsd-nat.c: New file.
2638 * sparcnbsd-nat.c: New file.
2639 * sparcnbsd-tdep.c: New file.
2640 * sparcnbsd-tdep.h: New file.
2641 * config/sparc/nbsd.mt: New file.
2642 * config/sparc/nbsd64.mh: New file.
2643 * config/sparc/nbsd64.mt: New file.
2644 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2645 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2647 * config/sparc/nbsdaout.mt: Remove.
2648 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2649 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2651 * config/sparc/nbsdelf.mt: Remove.
2652 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2653 sparc-nat.c compatiblity defines.
2654 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2655 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2656 * config/sparc/tm-nbsd64.h: New file.
2657 * config/sparc/tm-nbsdaout.h: Remove.
2658 * config/sparc/xm-nbsd.h: Remove.
2660 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2662 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2663 * sparc-tdep.c: Include osabi.h.
2664 (gdbarch_tdep): Add osabi member.
2665 (_initialize_sparc_tdep): Use gdbarch_register.
2666 (sparc_gdbarch_init): Use generic OS ABI framework.
2667 (sparc_dump_tdep): New function.
2669 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2671 * corefile.c (do_captured_read_memory_integer): Return non-zero
2673 (safe_read_memory_integer): Copy result of memory read when
2674 status is non-zero. Also, add comments.
2676 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2678 * Makefile.in (ppc_tdep_h): Define.
2681 (rs6000-tdep.o): Use $(ppc_tdep_h).
2684 (ppcnbsd-tdep.o): New dependency lists.
2685 * ppc-tdep.h: Use generic OS ABI framework.
2686 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2687 (ppc_linux_init_abi): New functions.
2688 (ppc_sysv_abi_broken_use_struct_convention)
2689 (ppc_sysv_abi_use_struct_convention)
2690 (ppc_sysv_abi_push_arguments): Move to...
2691 * ppc-sysv-tdep.c: ...here.
2692 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2693 * rs6000-tdep.c (process_note_abi_tag_sections)
2694 (get_elfosabi): Remove.
2695 (rs6000_gdbarch_init): Use generic OS ABI framework.
2696 (rs6000_dump_tdep): New function.
2697 (_initialize_rs6000_tdep): Use gdbarch_register.
2698 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2699 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2700 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2701 of ppc-linux-tdep.o.
2702 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2703 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2704 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2705 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2706 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2707 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2709 2002-05-29 Jim Blandy <jimb@redhat.com>
2711 * macroscope.c (default_macro_scope): Put `void' in empty argument
2714 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2716 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2717 * arch-utils.c: Include "sim-regno.h".
2718 * gdbarch.sh: Don't include "sim-regno.h".
2719 * gdbarch.h, gdbarch.c: Regenerate.
2720 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2722 * arch-utils.h (legacy_register_sim_regno): To here.
2723 * remote-sim.c (legacy_register_sim_regno): Move function from
2725 * arch-utils.c (legacy_register_sim_regno): To here.
2727 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2729 * sim-regno.h: New file.
2730 * Makefile.in (sim_regno_h): Define.
2731 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2732 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2733 (legacy_register_sim_regno): New function.
2734 (one2one_register_sim_regno): New function.
2735 (gdbsim_fetch_register): Rewrite.
2736 (gdbsim_store_register): Only store a register when
2737 REGISTER_SIM_REGNO is valid.
2738 * d10v-tdep.c: Include "sim-regno.h".
2739 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2740 (d10v_ts3_register_sim_regno): Ditto.
2741 * gdbarch.sh: Include "sim-regno.h".
2742 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2743 * gdbarch.h, gdbarch.c: Regenerate.
2744 * arch-utils.h (default_register_sim_regno): Delete declaration.
2745 * arch-utils.c (default_register_sim_regno): Delete function.
2747 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2749 * ppcnbsd-nat.c: Rewrite.
2750 * ppcnbsd-tdep.c: New file.
2751 * ppcnbsd-tdep.h: New file.
2752 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2753 solib.o, and solib-svr4.o.
2754 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2755 nbsd-tdep.o, and corelow.o.
2757 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2759 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2760 `tr' and `sed'. Mention that `broken' targets are not expected to
2763 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2765 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2766 Let PC point right after the prologue before looking up symbols.
2768 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2770 * i386-tdep.c (i386_register_virtual_type): Return
2771 builtin_type_vec128i for SSE registers.
2773 * gdbtypes.h (builtin_type_vec128i): Declare.
2775 * gdbtypes.c (build_builtin_type_vec128i): New function.
2776 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2777 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2778 (build_gdbtypes): Initialize new builtin vector types.
2779 (_initialize_gdbtypes): Register new vector types with gdbarch.
2781 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2783 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2784 since it has been multi-arch'd.
2785 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2786 Move Alpha and VAX multi-arch news entries to same section
2787 as other multi-arch news.
2789 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2791 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2792 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2793 static. Rename some register numbers to put them in ns32k-tdep
2795 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2796 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2798 (_initialize_ns32k_tdep): Use gdbarch_register.
2799 * ns32k-tdep.h: New file.
2800 * ns32knbsd-tdep.c: New file.
2801 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2802 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2803 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2804 REGISTER_BYTES, REGISTER_BYTE): Remove.
2805 * config/ns32k/tm-ns32k.h: New file.
2806 * config/ns32k/tm-umax.h: Remove.
2808 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2810 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2811 ns32k_store_struct_return, ns32k_extract_return_value,
2812 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2814 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2815 ns32k_saved_pc_after_call.
2816 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2817 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2818 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2819 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2820 ns32k_extract_struct_value_address.
2822 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2824 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2825 ns32k_fix_call_dummy): New.
2826 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2827 ns32k_call_dummy_words.
2828 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2829 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2830 CALL_DUMMY_NARGS): Remove.
2831 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2833 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2835 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2836 ns32k_frame_saved_pc, ns32k_frame_args_address,
2837 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2838 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2839 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2840 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2841 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2842 (BREAKPOINT): Remove..
2843 (FRAME_CHAIN): Define as ns32k_frame_chain.
2844 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2845 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2846 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2847 (FRAME_FIND_SAVED_REGS): Remove.
2848 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2849 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2850 (POP_FRAME): Define as ns32k_pop_frame.
2852 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2854 * ns32k-tdep.c (ns32k_register_byte_32082,
2855 ns32k_register_byte_32382, ns32k_register_raw_size,
2856 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2858 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2859 ns32k_register_byte_32382.
2860 * config/ns32k/tm-umax.h: Update copyright years.
2861 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2862 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2863 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2864 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2865 (ns32k_get_enter_addr): Fix prototype.
2867 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2869 * ns32k-tdep.c: Update copyright years.
2870 (ns32k_register_name_32082): New function.
2871 (ns32k_register_name_32382): Ditto.
2872 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2873 (REGISTER_NAME): Define as ns32k_register_name_32382.
2874 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2875 (REGISTER_NAME): Define as ns32k_register_name_32082.
2877 2002-05-24 Jim Blandy <jimb@redhat.com>
2879 * dwarf2read.c (free_line_header): Use xfree, not free.
2881 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2883 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2884 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2886 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2888 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2890 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2892 From Ross Alexander at NEC Europe:
2893 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2895 2002-05-23 Michael Snyder <msnyder@redhat.com>
2897 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2898 for input, rather than parse_and_eval_address.
2900 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2902 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2903 * Makefile.in (sim_d10v_h): Update definition.
2905 2002-05-24 Andrew Cagney <cagney@redhat.com>
2907 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2908 change `2002-05-22 Michael Snyder' below.
2909 (d10v_push_arguments): Ditto.
2910 (d10v_extract_return_value): Ditto.
2912 2002-05-23 Jim Blandy <jimb@redhat.com>
2914 * macrotab.c (check_for_redefinition): Don't complain if the new
2915 definition is the same as the previous one. Take more arguments
2916 to allow the comparison.
2917 (macro_define_object, macro_define_function): Pass more arguments
2918 to check_for_redefinition.
2920 2002-05-22 Michael Snyder <msnyder@redhat.com>
2922 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2923 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2924 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2925 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2926 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2927 Add a temp variable to save a call (and a memory read).
2928 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2929 if possible (so that PC_IN_CALL_DUMMY will work).
2931 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2933 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2935 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2937 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2939 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2940 (dwarf2_build_frame_info): Add offset to fde->initial_location
2941 so that frames of shared libraries are mapped correctly.
2942 (execute_stack_op): Change type of 'result' from ULONGEST to
2945 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2947 * config/alpha/tm-nbsd.h: Include solib.h.
2949 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2951 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2952 assumptions about the host's byte order.
2954 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2956 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2958 * alphanbsd-tdep.c: Include solib-svr4.h.
2959 * shnbsd-tdep.c: Ditto.
2961 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2963 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2964 nbsd-tdep.h to dependency list.
2965 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2966 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2967 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2968 nbsdaout.mh and nbsdelf.mh consistently.
2969 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2970 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2971 nbsdaout.mt and nbsdelf.mh consistently.
2972 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2973 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2974 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2975 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2976 a.out shared library stuff from here...
2977 * config/nm-nbsdaout.h: ...to here.
2978 * config/tm-nbsd.h: Remove.
2979 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2980 * config/arm/nbsd.mh: Remove.
2981 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2983 * config/arm/nbsdaout.mh: New file.
2984 * config/arm/nbsdelf.mh: New file.
2985 * config/arm/nm-nbsdaout.h: New file.
2986 * config/i386/nbsd.mh: Remove.
2987 * config/i386/nbsd.mt: Remove.
2988 * config/i386/nbsdaout.mh: New file.
2989 * config/i386/nbsdaout.mt: New file.
2990 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2991 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2992 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2993 i386_register_u_addr): Remove.
2994 * config/i386/nm-nbsdaout.h: New file.
2995 * config/i386/nm-nbsdelf.h: Remove.
2996 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2997 (USE_STRUCT_CONVENTION): Remove.
2998 * config/i386/tm-nbsdaout.h: New file.
2999 * config/i386/tm-nbsdelf.h: Remove.
3000 * config/m68k/nbsd.mh: Remove.
3001 * config/m68k/nbsd.mt: Remove.
3002 * config/m68k/nbsdaout.mh: New file.
3003 * config/m68k/nbsdaout.mt: New file.
3004 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3005 * config/m68k/nm-nbsdaout.h: New file.
3006 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3007 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3008 * config/ns32k/nbsd.mh: Remove.
3009 * config/ns32k/nbsd.mt: Remove.
3010 * config/ns32k/nbsdaout.mh: New file.
3011 * config/ns32k/nbsdaout.mt: New file.
3012 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3013 * config/ns32k/nm-nbsdaout.h: New file.
3014 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3015 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3016 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3017 (SVR4_SHARED_LIBS): Remove.
3018 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3019 * config/sparc/nbsd.mh: Remove.
3020 * config/sparc/nbsd.mt: Remove.
3021 * config/sparc/nbsdaout.mh: New file.
3022 * config/sparc/nbsdaout.mt: New file.
3023 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3024 * config/sparc/nbsdelf.mt: New file.
3025 * config/sparc/nm-nbsdaout.h: New file.
3026 * config/sparc/nm-nbsdelf.h: Remove.
3027 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3028 * config/sparc/tm-nbsdaout.h: New file.
3030 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3032 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3034 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3036 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3038 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3040 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3042 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3044 * NEWS: Note new MIPS NetBSD native configuration.
3045 * configure.host (mips*-*-netbsd*): New host.
3046 * configure.tgt (mips*-*-netbsd*): New target.
3047 * mipsnbsd-nat.c: New file.
3048 * mipsnbsd-tdep.c: New file.
3049 * mipsnbsd-tdep.h: New file.
3050 * config/mips/nbsd.mh: New file.
3051 * config/mips/nbsd.mt: New file.
3052 * config/mips/nm-nbsd.h: New file.
3053 * config/mips/tm-nbsd.h: New file.
3055 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3057 * Makefile.in (SFILES): Add osabi.c.
3058 (COMMON_OBS): Add osabi.o.
3059 (osabi.o): New dependency list.
3060 * osabi.c: New file.
3061 * osabi.h: New file.
3062 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3064 * Makefile.in (alpha_tdep_h): Define and use instead of
3066 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3067 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3069 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3070 * alpha-tdep.h: Include osabi.h.
3071 (alpha_abi): Remove.
3072 (gdbarch_tdep): Use generic OS ABI framework.
3073 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3074 gdbarch_register_osabi.
3075 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3076 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3077 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3079 * Makefile.in (sh_tdep_h): Add osabi.h.
3080 * sh-tdep.h (sh_osabi): Remove.
3081 (gdbarch_tdep): Use generic OS ABI framework.
3082 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3083 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3084 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3085 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3087 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3088 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3089 gdbarch_register_osabi.
3090 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3091 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3092 (get_elfosabi): Rename to...
3093 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3094 ABI framework support routines.
3095 (arm_gdbarch_init): Use generic OS ABI framework.
3096 (arm_dump_tdep): Likewise.
3097 (_initialize_arm_tdep): Likewise.
3098 * arm-tdep.h: Include osabi.h.
3100 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3102 (arm_gdbarch_register_os_abi): Remove prototype.
3103 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3104 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3106 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3107 * mips-tdep.c: Include osabi.h.
3108 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3111 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3113 * h8300-tdep.c: Fix formatting.
3115 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3117 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3118 printing vector registers.
3120 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3122 From Fernando Nasser:
3123 * remote.c (remote_async_open_1): Re-throw the exception when the
3125 (remote_cisco_open): Ditto.
3126 (remote_open_1): Ditto.
3128 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3130 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3131 (remote_start_remote): Add uiout parameter. Pass through to
3132 remote_start_remote_dummy.
3133 (remote_open_1): Use catch_exception instead of catch_errors.
3134 (remote_async_open_1): Ditto.
3135 (remote_cisco_open): Ditto.
3137 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3139 * remote.c (remote_start_remote): Replace PTR with void pointer.
3140 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3143 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3145 * gdb_indent.sh: Allow the script to be run in the sim directory.
3147 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3149 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3150 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3152 * corelow.c (core_open): Only call set_gdbarch_from_file if
3155 2002-05-17 Andrey Volkov <avolkov@transas.com>
3157 * h8300-tdep.c: Add support of EXR register
3158 * config/h8300/tm-h8300.h: Ditto.
3160 2002-05-17 Andrey Volkov <avolkov@transas.com>
3162 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3164 2002-05-17 Andrey Volkov <avolkov@transas.com>
3166 * h8300-tdep.c: Change literal regnums to REGNO.
3168 2002-05-17 Jim Blandy <jimb@redhat.com>
3170 * NEWS: Note addition of macro support.
3172 Expand preprocessor macros in C expressions.
3173 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3174 (scan_macro_expansion, scanning_macro_expansion,
3175 finished_macro_expansion): New function declarations.
3176 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3177 variable declarations.
3178 * parser-defs.h (expression_context_pc): New declaration.
3179 * parse.c (expression_context_pc): New variable.
3180 (parse_exp_1): Set expression_context_pc, as well as
3181 expression_context_block.
3182 * c-exp.y (yylex): If we're not already reading the result of a
3183 macro expansion, try to macro-expand the next token. When we're
3184 done scanning a macro expansion, switch back to the mainline text.
3185 Commas and `if's in a macro's expansion don't terminate the input.
3186 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3187 (macro_original_text, macro_expanded_text,
3188 expression_macro_lookup_func, expression_macro_lookup_baton): New
3190 (scan_macro_expansion, scanning_macro_expansion,
3191 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3192 c_preprocess_and_parse): New functions.
3193 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3194 c_preprocess_and_parse, instead of c_parse.
3195 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3196 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3198 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3200 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3201 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3202 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3204 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
3206 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3208 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3210 * Makefile.in (sh_tdep_h): Define and use.
3211 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3212 register enum): Move to...
3213 * * sh-tdep.h: ...here.
3214 * sh-tdep.c: Include sh-tdep.h.
3215 * sh3-rom.c: Likewise.
3216 * shnbsd-tdep.c: Likewise.
3218 2002-05-16 Michael Snyder <msnyder@redhat.com>
3220 * arm-tdep.c: Spelling fix in comment.
3222 2002-05-16 Jim Blandy <jimb@redhat.com>
3224 Add commands for manually expanding macros and showing their
3226 * macrocmd.c, macroscope.c, macroscope.h: New files.
3227 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
3228 (macroscope_h): New variable.
3229 (HFILES_NO_SRCDIR): Add macroscope.h.
3230 (COMMON_OBS): Add macrocmd.o, macroscope.o.
3231 (macroscope.o, macrocmd.o): New rules.
3233 Teach the Dwarf 2 reader to read macro information.
3234 * dwarf2read.c: #include "macrotab.h".
3235 (dwarf_macinfo_buffer): New variable.
3236 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
3238 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
3239 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
3240 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
3241 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
3242 dwarf2_macro_spaces_in_definition): New complaints.
3243 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
3244 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
3245 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
3246 the partial symbol table.
3247 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
3248 from what's recorded in the partial symbol table.
3249 (read_file_scope): If the compilation unit has a
3250 `DW_AT_macro_info' attribute, read its macro information.
3251 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
3253 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3256 * ser-tcp.c: Don't include <netinet/udp.h>.
3258 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
3260 * MAINTAINERS: Update my email address.
3262 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
3264 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
3265 include file of the same name.
3267 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3269 * configure.tgt: Mark v850 as multi-arched.
3270 * config/v850/tm-v850.h: Remove file.
3271 * config/v850/v850.mt: Eliminate TM_FILE.
3273 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3275 * v850-tdep.c: Full multi-arch.
3276 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
3277 Define GDB_MULTI_ARCH to 2.
3279 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
3281 * p-exp.y (current_type): New static variable.
3282 Carries the type of the expression at the position that is parsed.
3283 (push_current_type, pop_current_type): Two new functions. Used
3284 to store/restore current_type in expression on specific tokens.
3285 (search_field): New static variable. Set to one after parsing a point
3286 as at that point only a FIELDNAME token should be searched.
3287 (FIELDNAME): New token. After a point only a token belonging to
3288 current_type type definition is allowed.
3289 (all over token rules): reset and change current_type according
3291 (exp '[' rule): insert implicit array index field if
3292 exp is a pascal string type.
3294 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3296 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
3297 frame info. Use frame_info's saved_regs instead of matching member
3298 in extra_frame_info throughout.
3299 (v850_frame_init_saved_regs): New function.
3300 (v850_init_extra_frame_info): Move most functionality into
3301 v850_frame_init_saved_regs().
3302 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
3303 (v850_frame_find_saved_regs): Remove declaration.
3304 (FRAME_FIND_SAVED_REGS): Remove definition.
3305 (v850_frame_init_saved_regs): Add declaration.
3306 (FRAME_INIT_SAVED_REGS): Add definition.
3308 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3310 * v850-tdep.c: Begin multi-arch'ing v850.
3311 (v850_target_architecture_hook): Remove function.
3312 (v850_gdbarch_init): New function. Add code previously in
3313 v850_target_architecture_hook().
3314 (_initialize_v850_tdep): Don't set target_architecture_hook.
3315 Call register_gdbarch_init() instead.
3317 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3319 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3320 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3321 (fixup_class_method_type): Likewise.
3323 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3325 From Martin Pool <mbp@samba.org>:
3326 * gdbserver/server.c (gdbserver_usage): New function.
3329 2002-05-15 Jim Blandy <jimb@redhat.com>
3331 Add macro structures to GDB's symbol tables. Nobody puts anything
3333 * symtab.h (struct symtab): New member: `macro_table'.
3334 * buildsym.h (pending_macros): New global variable.
3335 * buildsym.c: #include "macrotab.h".
3336 (buildsym_init): Initialize `pending_macros'.
3337 (end_symtab): If we found macro information while reading a CU's
3338 debugging info, do build a symtab structure for it. Make the
3339 symtab point to the macro information, and clear the
3340 `pending_macros' pointer which held it while we were reading the
3342 (really_free_pendings): Free any pending macro table.
3343 * objfiles.h (struct objfile): New member: `macro_cache'.
3344 * objfiles.c (allocate_objfile): Set allocate and free functions
3345 for the macro cache's objstack.
3346 (free_objfile): Empty the macro cache's obstack.
3347 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3348 set new allocate and free functions for it.
3349 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3350 free functions for the macro cache's objstack. (Why is this
3351 function building its own objfile?)
3352 * symmisc.c (print_objfile_statistics): Print statistics on the
3354 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3356 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3358 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3359 (REGISTER_U_ADDR): Delete definition.
3360 (arm_register_u_addr): Delete declaration.
3362 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3364 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3365 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3367 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3369 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3372 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3374 * regcache.c (register_valid): Revise comments refering to "Not
3375 available" and "unavailable".
3376 * frame.c (frame_register_read): Ditto.
3377 * findvar.c (value_of_register): Ditto.
3379 2002-05-15 Andrew Cagney <cagney@redhat.com>
3381 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3382 (remote-sim.o): Update dependencies.
3383 (d10v-tdep.o): Specify dependencies.
3384 (sim_d10v_h): Define.
3386 2002-05-14 Jim Blandy <jimb@redhat.com>
3388 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3389 * macrotab.c (macro_lookup_inclusion, find_definition,
3390 new_macro_table): Same.
3392 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3393 not `! strcmp ()'. This is a dubious improvement.
3394 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3396 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3397 although it's not necessary, to avoid a warning.
3399 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3401 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3402 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3403 TYPE_INSTANCE_FLAGS.
3404 (struct main_type): New.
3405 (struct type): Move most members to struct main_type. Change
3406 cv_type and as_type to new type_chain member. Add instance_flags.
3407 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3408 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3409 (finish_cv_type): Remove prototype.
3410 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3412 (alloc_type_instance): New function.
3413 (smash_type): New function.
3414 (make_pointer_type, make_reference_type, make_function_type)
3415 (smash_to_member_type, smash_to_method_type): Call smash_type.
3416 (make_qualified_type): New function.
3417 (make_type_with_address_space): Call make_qualified_type.
3418 (make_cv_type): Likewise.
3419 (finish_cv_type): Remove unnecessary function.
3420 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3421 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3422 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3423 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3424 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3425 * hpread.c (hpread_read_struct_type): Likewise.
3426 * stabsread.c (read_struct_type): Likewise.
3428 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3430 * configure.tgt: Add a catch all sh* target, for cases like
3431 sh[2,3,4]-elf and sh-hms.
3433 2002-05-14 Keith Seitz <keiths@redhat.com>
3435 * event-loop.c (create_file_handler): Don't do anything but
3436 update data when we are given a fd which we are already
3439 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3441 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3442 (update_context): Use __func__ in warnings.
3444 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3446 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3447 and tcp_close to net_open and net_close.
3448 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3449 using UDP if requested. Don't try to disable Nagle on UDP
3451 * remote.c (remote_serial_open): New function. Warn about UDP.
3452 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3454 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3456 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3458 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3460 * configure.tgt: Remove sh-hms target.
3461 * MAINTAINERS: Don't list sh-hms as a separate target.
3463 2002-05-13 Jim Blandy <jimb@redhat.com>
3465 Add first preprocessor macro-expansion files.
3466 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3467 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3468 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3469 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3470 (COMMON_OBS): Add macrotab.o, macroexp.o.
3471 (macroexp.o, macrotab.o): New rules.
3473 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3475 * config/m88k/tm-m88k.h: Update copyright.
3476 (m88k_target_write_pc): Declare
3477 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3478 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3479 (SHIFT_INST_REGS): Update definition.
3480 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3481 using old definition of TARGET_WRITE_PC.
3482 * regcache.c (generic_target_write_pc): Delete code handling
3484 * gdbarch.sh (NNPC_REGNUM): Delete.
3485 * gdbarch.h, gdbarch.c: Regenerate.
3487 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3489 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3492 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3494 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3495 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3496 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3498 * c-typeprint.c (cp_type_print_method_args): Likewise.
3499 (c_type_print_args): Likewise.
3500 * d10v-tdep.c (d10v_push_arguments): Likewise.
3501 (d10v_extract_return_value): Likewise.
3502 * expprint.c (print_subexp): Likewise.
3503 * gdbtypes.c (lookup_primitive_typename): Likewise.
3504 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3505 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3506 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3507 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3508 (TYPE_VECTOR): Likewise.
3509 * hpread.c (hpread_read_struct_type)
3510 (fix_static_member_physnames, fixup_class_method_type)
3511 (hpread_type_lookup): Likewise.
3512 * mdebugread.c (parse_symbol, parse_type): Likewise.
3513 * p-lang.c (is_pascal_string_type): Likewise.
3514 * valops.c (hand_function_call): Likewise.
3515 * x86-64-tdep.c (classify_argument): Likewise.
3517 * hpread.c (hpread_read_function_type)
3518 (hpread_read_doc_function_type): Call replace_type.
3519 * dstread.c (create_new_type): Delete.
3520 (decode_dst_structure, process_dst_function): Call alloc_type.
3521 Use type access macros.
3523 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3525 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3526 the're not supported by the current architecture.
3527 (i387_fill_fxsave): Likewise.
3529 2002-05-12 Fred Fish <fnf@redhat.com>
3531 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3532 sect_index_xxx members to index the first slot in section_offsets
3533 if all of the section_offsets are zero.
3535 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3537 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3538 checked in with last change.
3540 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3542 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3543 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3546 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3548 * Makefile.in: Update dependencies.
3550 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3552 * language.c (local_hex_string_custom): Simplify. Do not depend
3553 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3555 * memattr.c (mem_info_command): Replace calls to
3556 longest_local_hex_string and longest_local_hex_string_custom.
3557 * buildsym.c (make_blockvector): Ditto.
3558 * solib.c (info_sharedlibrary_command): Ditto.
3559 * tracepoint.c (tracepoints_info): Ditto.
3560 * symtab.c (print_msymbol_info): Ditto.
3562 * language.c (local_hex_string): Delete.
3563 (local_hex_string_custom): Delete.
3564 (longest_local_hex_string): Rename to local_hex_string.
3565 (longest_local_hex_string_custom): Rename to
3566 local_hex_string_custom.
3567 * language.h (local_hex_string): Change parameter type to LONGEST.
3568 (local_hex_string_custom): Ditto.
3569 (longest_local_hex_string): Delete declaration.
3570 (longest_local_hex_string_custom): Ditto.
3572 * solib.c: Update copyright.
3573 * memattr.c: Update copyright.
3575 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3577 * arch-utils.h (legacy_register_to_value): Declare.
3578 (legacy_value_to_register): Declare.
3579 (legacy_convert_register_p): Declare.
3580 * arch-utils.c (legacy_register_to_value): New function.
3581 (legacy_value_to_register): New function.
3582 (legacy_convert_register_p): New function.
3584 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3585 (VALUE_TO_REGISTER): Define.
3586 (CONVERT_REGISTER_P): Define.
3587 * gdbarch.h, gdbarch.c: Regenerate.
3589 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3591 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3594 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3595 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3597 * Makefile.in: Update dependencies for valops.c.
3598 * valops.c: Include "gdb_assert.h".
3599 (typecmp): Skip THIS parameter to methods.
3600 (find_method_list): Remove static_memfuncp argument,
3601 update callers. Check for stub methods.
3602 (find_value_oload_method_list): Don't set *static_memfuncp.
3603 (find_overload_match): Don't check for stub methods. Assert
3604 that methods are not stubbed. Handle static methods.
3605 (value_find_oload_method_list): Remove static_memfuncp argument.
3606 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3607 to the argument list for static stub methods.
3608 * value.h (value_find_oload_method_list): Update prototype.
3610 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3612 * arch-utils.h (generic_register_size): Declare.
3613 (generic_register_raw_size, generic_register_virtual_size): Delete
3615 * arch-utils.c (generic_register_raw_size): Delete.
3616 (generic_register_size): New function.
3617 (generic_register_virtual_size): Delete.
3619 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3620 default generic_register_size.
3621 * gdbarch.h, gdbarch.c: Re-generate.
3623 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3624 register_virtual_size.
3625 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3628 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3630 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3631 * gdbarch.h, gdbarch.c: Regenerate.
3632 * gnu-v3-abi.c: Update copyright.
3633 (vtable_address_point_offset): Update.
3634 (gnuv3_rtti_type): Update.
3635 (gnuv3_baseclass_offset): Update.
3636 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3637 (init_fetch_link_map_offsets): Update.
3638 * remote.c (get_remote_state): Update.
3640 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3642 * TODO: Remove value_headof/value_from_vtable_info comment.
3643 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3644 * values.c (value_headof, value_from_vtable_info): Delete.
3645 * value.h (value_from_vtable_info): Delete prototype.
3647 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3649 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3650 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3652 (gdb_assert_h): Define.
3653 (gdb_wait_h): Define.
3654 (gdb_regex_h): Define.
3656 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3658 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3659 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3661 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3663 * nbsd-tdep.c: Fix comment.
3665 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3667 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3668 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3669 (nbsd-tdep.o): New dependency list.
3670 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3672 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3673 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3674 * nbsd-tdep.c: New file.
3675 * nbsd-tdep.h: New file.
3676 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3678 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3679 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3680 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3681 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3683 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3685 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3686 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3687 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3688 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3689 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3690 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3692 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3694 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3695 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3696 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3697 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3698 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3699 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3700 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3702 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3704 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3705 fetch_elfcore_registers to...
3706 * i386nbsd-tdep.c: ...here.
3707 (i386nbsd_use_struct_convention): Rename to...
3708 (i386nbsd_aout_use_struct_convention): ...this.
3709 (i386nbsd_supply_reg): New function.
3710 (i386nbsd_fill_reg): New function.
3711 (fetch_core_registers): Use i386nbsd_supply_reg.
3712 (fetch_elfcore_registers): Likewise.
3713 (_initialize_i386nbsd_tdep): New function.
3714 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3715 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3716 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3717 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3718 (i386nbsd_aout_use_struct_convention): ...this.
3720 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3722 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3723 (store_inferior_registers): Use shnbsd_fill_reg.
3724 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3725 sh_nbsd_supply_register): Collapse into...
3726 (shnbsd_supply_reg): ...this.
3727 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3728 (shnbsd_fill_reg): ...this.
3729 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3730 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3731 (fetch_core_registers): Use shnbsd_supply_reg.
3732 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3733 (sh_nbsd_core_fns): Rename to...
3734 (shnbsd_core_fns): ...this.
3735 (sh_nbsd_elfcore_fns): Rename to...
3736 (shnbsd_elfcore_fns): ...this.
3737 (sh_nbsd_init_abi): Rename to...
3738 (shnbsd_init_abi): ...this.
3739 (_initialize_sh_nbsd_tdep): Rename to...
3740 (_initialize_shnbsd_tdep): ...this.
3741 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3742 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3743 sh_nbsd_fill_register): Remove prototypes.
3744 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3746 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3748 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3749 (i387-nat.o): Delete dependency list.
3750 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3751 (x86-64-linux-nat.o): Likewise.
3752 * i387-nat.c: Delete file, moving contents to...
3753 * i387-tdep.c: ...here.
3754 * i387-nat.h: Rename...
3755 * i387-tdep.h: ...to this.
3756 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3757 * i386-linux-nat.c: Likewise.
3758 * i386bsd-nat.c: Likewise.
3759 * i386gnu-nat.c: Likewise.
3760 * i386nbsd-nat.c: Likewise.
3761 * i386v4-nat.c: Likewise.
3762 * x86-64-linux-nat.c: Likewise.
3763 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3764 * config/i386/go32.mh (NATDEPFILES): Likewise.
3765 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3766 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3767 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3768 * config/i386/linux.mh (NATDEPFILES): Likewise.
3769 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3770 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3771 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3772 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3774 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3776 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3777 (alphanbsd-nat.o): Remove dependency list.
3778 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3779 * alphanbsd-nat.c: Delete. Contents moved to...
3780 * alphanbsd-tdep.c: ...here.
3781 (_initialize_alphanbsd_tdep): Register core functions.
3782 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3784 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3786 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3787 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3788 (alphanbsd-nat.o): Likewise.
3789 (alphabsd-tdep.o): New dependency list.
3790 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3791 (fill_gregset): Use alphabsd_fill_reg.
3792 (supply_fpregset): Use alphabsd_supply_fpreg.
3793 (fill_fpregset): Use alphabsd_fill_fpreg.
3794 (fetch_inferior_registers): Use struct reg and struct fpreg
3795 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3796 and alphabsd_supply_fpreg.
3797 (store_inferior_registers): Use struct reg and struct fpreg
3798 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3799 and alphabsd_fill_fpreg.
3800 * alphabsd-tdep.c: New file.
3801 * alphabsd-tdep.h: New file.
3802 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3803 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3804 alphabsd_supply_fpreg.
3805 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3806 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3808 2002-05-11 Eric Christopher <echristo@redhat.com>
3810 * mips-tdep.c (mips_double_register_type): Fix thinko.
3811 (mips_single_register_type): Ditto.
3812 * MAINTAINERS: Add self.
3814 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3816 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3817 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3818 right thing on architectures with different endianness and/or
3821 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3823 From Christian Limpach <chris@Pin.LU>
3824 * configure.in: Change sed expression which comments out
3825 NATDEPFILES to also comment out continuation lines.
3826 * configure: Regenerate.
3828 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3830 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3833 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3835 * sh-tdep.c: Include correct file.
3837 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3839 New support for sh64-elf (sh5) target.
3841 * configure.tgt: For sh64-elf target, default to sh-elf.
3843 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3844 (struct gdbarch_tdep): Add new fields for new registers and ABI
3847 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3848 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3849 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3850 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3851 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3852 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3853 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3854 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3855 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3856 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3857 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3858 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3859 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3860 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3861 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3862 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3863 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3864 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3865 sign_extend, sh64_nofp_frame_init_saved_regs,
3866 sh64_init_extra_frame_info, sh64_get_saved_register,
3867 sh64_extract_struct_value_address, sh64_pop_frame,
3868 sh64_push_arguments, sh64_extract_return_value,
3869 sh64_store_return_value, sh64_show_media_regs,
3870 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3871 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3872 sh_sh64_register_virtual_type,
3873 sh_sh64_register_convert_to_virtual,
3874 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3875 sh64_register_read, sh64_pseudo_register_write,
3876 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3877 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3878 sh64_do_pseudo_register, sh_compact_do_registers_info,
3879 sh64_do_registers_info, sh_gdbarch_init): New functions.
3881 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3883 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3885 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3887 * linespec.c (decode_line_1): Check for a double quote after
3888 a filename correctly.
3890 2002-05-10 Jim Blandy <jimb@redhat.com>
3892 Properly track the size of the current objfile's .debug_line section.
3893 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3894 (DWARF_LINE_SIZE): New macro.
3895 (dwarf2_build_psymtabs_hard): Record the line section's size in
3896 the partial symbol table.
3897 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3900 2002-05-10 Petr Sorfa <petrs@caldera.com>
3902 * ia64-tdep.c: Handle breakpoints on L instruction type
3903 in MLX instruction bundle by moving the breakpoint to
3904 the third slot (X instruction type) as L holds only data.
3906 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3908 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3909 (process_one_symbol): Complain about discarding local symbols
3910 due to a misplaced N_LBRAC entry.
3912 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3914 From Daniel Berlin <dan@cgsoftware.com>
3915 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3916 decrease the depth we are at, in the case of templates.
3918 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3920 * mips-tdep.c (mips_float_register_type): New function.
3921 (mips_double_register_type): New function.
3922 (mips_print_register): Use them.
3923 (do_fp_register_row): Likewise.
3925 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3927 * signals/signals.c (signals): Remove conditional compilation around
3928 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3929 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3931 2002-05-09 Michael Snyder <msnyder@redhat.com>
3933 * remote-rdp.c (remote_rdp_can_run): Remove.
3935 2002-05-09 Tom Tromey <tromey@redhat.com>
3937 * jv-valprint.c (java_val_print): Handle `char' as a special case
3940 2002-05-09 Michael Snyder <msnyder@redhat.com>
3942 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3943 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3944 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3945 str r(0123),[sp,#nn].
3946 (arm_skip_prologue): Ditto. Also make disassembly
3947 order-independent by placing it in a loop.
3949 2002-05-06 Michael Snyder <msnyder@redhat.com>
3951 * stabsread.c (read_type): Add recognition for new attribute:
3952 "@V;" means that an array type is actually a vector.
3953 This is analogous to the vector flag that's been added to dwarf2.
3955 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3957 * i386-tdep.h (i386_abi): New enum.
3958 (struct gdbarch_tdep): Replace os_ident member with abi.
3959 (i386_gdbarch_register_os_abi): New prototype.
3960 * i386-tdep.c (i386_abi_names): New array.
3961 (process_note_abi_tag_sections): Removed.
3962 (process_note_sections): New function.
3963 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3964 (struct i386_abi_handler): New struct.
3965 (i386_abi_handler_list): New variable.
3966 (i386_gdbarch_register_os_abi): New function.
3967 (i386_gdbarch_init): Adapt for the changes given above.
3969 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3971 * gregset.h: Say "GNU/Linux".
3973 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3975 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3976 (build_gdbtypes): Build builtin_type_v2_float.
3977 (_initialize_gdbtypes): Register new builtin type.
3979 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3981 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3982 (clear_gdbarch_swap): New function.
3983 (initialize_non_multiarch): Call.
3984 (gdbarch_update_p): Before calling init(), swap out and clear the
3985 existing architecture.
3986 * gdbarch.c: Regenerate.
3988 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3990 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3993 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3995 * sh-nbsd-nat.c: Rename to...
3996 * shnbsd-nat.c: ...this.
3997 * sh-nbsd-tdep.c: Rename to...
3998 * shnbsd-tdep.c: ...this.
3999 * sh-nbsd-tdep.h: Rename to...
4000 * shnbsd-tdep.h: ...this.
4001 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4002 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4004 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
4006 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4007 concatenation for command help messages.
4009 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4011 * NEWS: Note new sh*-*-netbsdelf* configuration.
4012 * configure.host: Set gdb_host_cpu to sh for all sh*.
4013 (sh*-*-netbsdelf*): New host.
4014 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4015 (sh*-*-netbsdelf*): New target.
4016 * sh-nbsd-nat.c: New file.
4017 * sh-nbsd-tdep.c: New file.
4018 * sh-nbsd-tdep.h: New file.
4019 * config/sh/nbsd.mh: New file.
4020 * config/sh/nbsd.mt: New file.
4021 * config/sh/nm-nbsd.h: New file.
4022 * config/sh/tm-nbsd.h: New file.
4024 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4026 * sh-tdep.c (sh_osabi_names): Declare.
4027 (process_note_abi_tag_sections): New function.
4028 (get_elfosabi): Ditto.
4029 (sh_gdbarch_register_os_abi): Ditto.
4030 (sh_dump_tdep): Ditto.
4031 _initialize_sh_tdep): Use gdbarch_register to register
4032 sh_gdbarch_init and sh_dump_tdep.
4033 * config/sh/tm-sh.h (sh_osabi): Declare.
4034 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4036 2002-05-07 Andrew Cagney <ac131313@redhat.com>
4038 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4039 (thumb_scan_prologue): Ditto.
4040 (arm_find_callers_reg): Ditto.
4041 (arm_frame_chain): Ditto.
4042 (arm_init_extra_frame_info): Ditto.
4043 (arm_frame_saved_pc): Ditto.
4044 (arm_pop_frame): Ditto.
4045 (arm_push_return_address): New function.
4046 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4047 call_dummy_location, call_dummy_breakpoint_offset_p,
4048 call_dummy_breakpoint_offset, call_dummy_p,
4049 call_dummy_stack_adjust_p, call_dummy_words,
4050 sizeof_call_dummy_words, call_dummy_start_offset,
4051 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4052 call_dummy_address, push_return_address and push_dummy_frame for
4053 generic dummy frames.
4055 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4057 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4058 size computation for alloca.
4059 (sh_fp_frame_init_saved_regs): Likewise.
4061 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4063 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4064 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4065 * arm-tdep.c (arm_store_return_value): Use them.
4066 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4067 * remote-rdp.c (remote_rdp_fetch_register): Use
4068 ARM_MAX_REGISTER_RAW_SIZE.
4069 (remote_rdp_store_register): Likewise.
4071 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4073 * dwarf2cfi.c: Code cleanup, removed unused variables,
4074 added default labels to switch {} statements.
4075 * x86-64-tdep.c: Ditto.
4076 * x86-64-linux-nat.c: Ditto.
4078 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4080 * solib.h: Protect against multiple inclusion.
4082 2002-05-06 Jim Blandy <jimb@redhat.com>
4084 Add first preprocessor macro-expansion files.
4085 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4086 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4087 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4088 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4089 (COMMON_OBS): Add macrotab.o, macroexp.o.
4090 (macroexp.o, macrotab.o): New rules.
4092 Separate the job of reading the line number info statement program
4093 header (...expialidocious) out into its own function.
4094 * dwarf2read.c (struct line_head, struct filenames, struct
4095 directories): Replace with...
4096 (struct line_header): New structure, containing the full
4097 contents of the statement program header, including the
4098 include directory and file name tables.
4099 (read_file_scope): If we have line number info, instead of just
4100 calling dwarf_decode_lines to do all the work, call
4101 dwarf_decode_line_header first to get a `struct line_header'
4102 containing the data in the statement program header, and then
4103 pass that to dwarf_decode_lines, which will pick up where that
4104 left off. Be sure to clean up the `struct line_header' object.
4105 (dwarf_decode_line_header, free_line_header, add_include_dir,
4106 add_file_name): New functions.
4107 (dwarf_decode_lines): Move all the code to read the statement
4108 program header into dwarf_decode_line_header. Take the line
4109 header it built as the first argument, instead of the offset to
4110 the compilation unit's line number info. Use the new `struct
4111 line_header' type instead of the old structures. No need to do
4112 cleanups here now, since we don't allocate anything.
4113 (dwarf2_statement_list_fits_in_line_number_section,
4114 dwarf2_line_header_too_long): New complaints.
4116 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4118 * gdbtypes.c (init_vector_type): New function.
4119 (build_builtin_type_vec128): Simplify the representation of SIMD
4121 (build_gdbtypes): Initialize new builtin vector types.
4122 (_initialize_gdbtypes): Register new vector types with gdbarch.
4123 (builtin_type_v4_float, builtin_type_v4_int32,
4124 builtin_type_v8_int16, builtin_type_v16_int8,
4125 builtin_type_v2_int32, builtin_type_v4_int16,
4126 builtin_type_v8_int8): New (renamed) SIMD types.
4128 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4130 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4131 (i387_fill_fxsave): Likewise.
4133 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4135 * alpha-tdep.c (alpha_extract_return_value): Don't use
4136 non-constant array size in prototype.
4138 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4140 From Brian Taylor <briant at model dot com>:
4141 * ui-out.c (ui_out_field_core_addr): Use the function
4142 longest_local_hex_string_custom'to format addresses > 32 bits
4145 * ui-out.c (ui_out_field_core_addr): Update comment.
4147 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4149 * stack.c (select_and_print_frame): Make static. Delete the
4151 (func_command): Update call.
4152 (select_frame_command): Delete code computing the frame level.
4153 * frame.h (select_and_print_frame): Delete declaration.
4155 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4157 * sparc-tdep.c (sparc_get_saved_register): Comment why
4158 get_prev_frame call is safe.
4160 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4162 * frame.h (select_frame): Delete level parameter.
4163 * stack.c (select_frame): Update. Use frame_relative_level to
4164 obtain the frame's level.
4165 (select_and_print_frame): Update call.
4166 (select_frame_command): Ditto.
4167 (up_silently_base): Ditto.
4168 (down_silently_base): Ditto.
4169 * ocd.c (ocd_start_remote): Ditto.
4170 * remote-rdp.c (remote_rdp_open): Ditto.
4171 * remote-mips.c (mips_initialize): Ditto.
4172 (common_open): Ditto.
4173 * remote-e7000.c (e7000_start_remote): Ditto.
4174 * m3-nat.c (select_thread): Ditto.
4175 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4176 (child_get_current_exception_event): Ditto.
4177 * varobj.c (varobj_create): Ditto.
4178 (varobj_update): Ditto.
4179 (c_value_of_root): Ditto.
4180 * tracepoint.c (finish_tfind_command): Ditto.
4181 * corelow.c (core_open): Ditto.
4182 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4183 * thread.c (info_threads_command): Ditto.
4184 (switch_to_thread): Ditto.
4185 * infrun.c (normal_stop): Ditto.
4186 (restore_selected_frame): Ditto.
4187 (restore_inferior_status): Ditto.
4188 * breakpoint.c (insert_breakpoints): Ditto.
4189 (watchpoint_check): Ditto.
4190 (bpstat_stop_status): Ditto.
4191 (do_enable_breakpoint): Ditto.
4192 * blockframe.c (flush_cached_frames): Ditto.
4193 (reinit_frame_cache): Ditto.
4195 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4197 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4200 2002-05-04 Jim Blandy <jimb@redhat.com>
4202 * gdbtypes.c (replace_type): Doc fix.
4204 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4206 * valprint.c (strcat_longest): Delete commented out function.
4209 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4211 * MAINTAINERS: Mark a29k as deleted.
4212 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4213 Move new configurations to the top.
4214 * configure.tgt: Remove a29k.
4215 * config/a29k/tm-vx29k.h: Delete.
4216 * config/a29k/vx29k.mt: Delete.
4217 * config/a29k/tm-a29k.h: Delete.
4218 * config/a29k/a29k-udi.mt: Delete.
4219 * config/a29k/a29k.mt: Delete.
4220 * a29k-tdep.c: Delete.
4221 * remote-udi.c: Delete.
4222 * remote-mm.c: Delete.
4223 * remote-eb.c: Delete.
4224 * remote-adapt.c: Delete.
4225 * Makefile.in: Remove obsolete code.
4226 * gdbserver/Makefile.in: Ditto.
4227 * config/s390/s390x.mt: Ditto.
4228 * config/s390/s390.mt: Ditto.
4229 * config/sparc/sparclynx.mh: Ditto.
4230 * config/sparc/linux.mh: Ditto.
4231 * config/pa/hppaosf.mh: Ditto.
4232 * config/pa/hppabsd.mh: Ditto.
4233 * config/ns32k/nbsd.mt: Ditto.
4234 * config/mips/vr5000.mt: Ditto.
4235 * config/m68k/sun3os4.mh: Ditto.
4236 * config/m68k/nbsd.mt: Ditto.
4237 * config/m68k/m68klynx.mh: Ditto.
4238 * config/m32r/m32r.mt: Ditto.
4239 * config/i386/x86-64linux.mt: Ditto.
4240 * config/i386/nbsdelf.mt: Ditto.
4241 * config/i386/nbsd.mt: Ditto.
4242 * config/i386/i386lynx.mh: Ditto.
4244 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4246 * target.c (debug_print_register): New function. Handle oversize
4248 (debug_to_fetch_registers): Call.
4249 (debug_to_store_registers): Call.
4251 2002-05-03 Jim Blandy <jimb@redhat.com>
4253 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
4254 (read_type): Doc fix.
4255 * gdbtypes.c (replace_type): Doc fix.
4257 * stabsread.c (multiply_defined_struct): New complaint.
4258 (read_struct_type): If the type we were passed isn't empty, or
4259 incomplete, don't read the new struct type into it; complain,
4260 and return the original type unchanged. Take a new `type_code'
4261 argument, which is the type code for the new type.
4262 (read_type): Rather than storing the type's type code here, pass
4263 it as an argument to read_struct_type, and let that take care of
4264 storing it. That way, we don't overwrite the original type code,
4265 so read_struct_type can use it to decide whether we're overwriting
4266 something we shouldn't.
4267 (complain_about_struct_wipeout): New function.
4269 2002-05-03 Andrew Cagney <ac131313@redhat.com>
4271 * gdbarch.sh: Assert that gdbarch is non-NULL.
4272 * gdbarch.c: Regenerate.
4274 2002-05-03 Jason Merrill <jason@redhat.com>
4276 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
4279 2002-05-03 Michal Ludvig <mludvig@suse.cz>
4281 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4282 (x86_64_dwarf2gdb_regno_map_length),
4283 (x86_64_dwarf2_reg_to_regnum): Added.
4284 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
4285 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
4286 (_initialize_x86_64_tdep): Synced with the change above.
4287 (x86_64_skip_prologue): Reformulated message.
4289 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4291 * f-exp.y: Also use new prev_lexptr variable
4292 to improve error reporting. Based on Michael Snyder
4293 2002-04-24 dated patch to c-exp.y.
4294 * jv-exp.y: Likewise.
4295 * m2-exp.y: Likewise.
4297 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
4299 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
4300 we are dealing with vectors.
4302 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4304 * config/m68k/tm-nbsd.h: Obvious fix,
4305 correct machine name.
4307 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4309 * p-typeprint.c (pascal_type_print_base): Add support
4310 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
4312 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4314 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
4315 for fondamental pascal 'char' type.
4317 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4319 * p-lang.h (is_pascal_string_type): Declaration changed,
4320 new sixth argument of type char ** added.
4321 * p-lang.c (is_pascal_string_type): Implementation
4322 changed. Args length_pos, length_size, string_pos, char_size
4323 can now be NULL. New argument arrayname set to the field
4324 name of the char array. Return value set to char array
4325 field index plus one.
4326 * p-valprint.c (pascal_val_print): Adapt to new declaration of
4327 is_pascal_string_type function.
4329 2002-05-02 Andrew Cagney <cagney@redhat.com>
4331 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4332 <cagney@redhat.com> change.
4333 * gdbarch.c: Regenerate.
4335 2002-05-02 Andrew Cagney <cagney@redhat.com>
4337 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4338 before probing for a new one. Detect errorenous gdbarch_init
4340 * gdbarch.c: Regenerate.
4342 2002-05-01 Andrew Cagney <cagney@redhat.com>
4344 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4345 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4346 * config/v850/tm-v850.h: Ditto. Update copyright.
4348 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4350 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4353 2002-04-30 Michael Snyder <msnyder@redhat.com>
4355 * arm-tdep.c: Whitespace clean-ups.
4356 (arm_skip_prologue): Fix thinko; two lines
4357 should have been removed as part of 4/24 change.
4359 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4361 * rs6000-tdep.c: Added comment describing how fpscr register
4362 numbers were chosen.
4364 2002-04-30 Michael Snyder <msnyder@redhat.com>
4366 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4368 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4370 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4371 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4372 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4374 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4376 From Louis Hamilton <hamilton@redhat.com>:
4377 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4378 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4379 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4380 not bfd-private xcoff data, to determine wordsize.
4381 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4383 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4385 GDB 5.2 released from 5.2 branch.
4387 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4389 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4390 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4391 (x86_64_register_info_table): Added comments with register numbers.
4393 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4395 * rs6000-tdep.c (rs6000_extract_return_value,
4396 rs6000_store_return_value): Handle returning vectors.
4397 (rs6000_gdbarch_init): Use
4398 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4399 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4401 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4403 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4404 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4406 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4408 * hpread.c (hpread_psymtab_to_symtab_1,
4409 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4410 with fprintf_unfiltered (gdb_stderr,...).
4412 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4414 * remote-array.c (printf_monitor, write_monitor,
4415 array_insert_breakpoint, array_remove_breakpoint ):
4416 Replace fprintf (stderr,...
4417 with fprintf_unfiltered (gdb_stderr,....
4418 * remote-es.c: Likewise.
4419 * remote-os9k.c: Likewise.
4420 * remote-st.c: Likewise.
4422 2002-04-28 Andreas Schwab <schwab@suse.de>
4424 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4425 linux-proc.o and gcore.o.
4427 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4429 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4430 code without frame pointers.
4432 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4434 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4437 2002-04-26 Ben Elliston <bje@redhat.com>
4439 * target.c (do_xfer_memory): Correct reference to the new option
4440 "trust-readonly-sections".
4442 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4444 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4445 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4446 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4448 (read_array_type): Record the fact that this array type is really a
4449 vector (i.e. are passed in by value).
4451 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4453 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4454 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4455 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4456 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4457 * alpha-linux-tdep.c: Include frame.h.
4458 (alpha_linux_sigcontext_addr): New function.
4459 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4460 alpha_linux_sigcontext_addr.
4461 * alpha-osf1-tdep.c: Include gdbcore.h.
4462 (alpha_osf1_sigcontext_addr): New function.
4463 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4464 alpha_osf1_sigcontext_addr.
4465 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4466 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4468 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4470 * stack.c (selected_frame_level):
4471 (select_frame): Do not set selected_frame_level.
4472 * frame.h (selected_frame_level): Delete declaration.
4474 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4476 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4477 convert_from_func_ptr-addr when AIX / PowerOpen.
4479 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4481 * valops.c (hand_function_call): Call
4482 generic_save_call_dummy_addr.
4483 * frame.h (generic_save_call_dummy_addr): Declare.
4484 * blockframe.c (struct dummy_frame): Add fields call_lo and
4486 (generic_find_dummy_frame): Check for PC in range call_lo to
4487 call_hi instead of entry_point_address.
4488 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4489 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4490 (generic_save_call_dummy_addr): New function.
4492 2002-04-24 David S. Miller <davem@redhat.com>
4494 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4495 sparc_skip_prologue.
4496 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4497 information to find prologue when possible.
4498 (sparc_prologue_frameless_p): Call examine_prologue directly.
4499 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4500 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4502 (SKIP_PROLOGUE): Likewise.
4504 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4506 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4507 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4508 indicate that the condition it was testing is always true.
4509 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4510 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4511 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4513 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4515 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4516 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4517 tdep->jb_pc and tdep->jb_elt_size.
4518 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4519 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4520 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4521 * alpha-nat.c (get_longjmp_target): Remove.
4522 (JB_ELEMENT_SIZE): Ditto.
4524 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4525 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4526 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4527 to alpha_get_longjmp_target.
4528 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4529 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4530 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4532 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4534 * README: Update to GDB 5.2.
4536 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4538 * gdbarch.sh (LC_ALL): Set to `c'.
4540 2002-04-25 Theodore A. Roth <troth@verinet.com>
4542 * avr-tdep.c: Ran through gdb_indent.sh.
4544 2002-04-25 Theodore A. Roth <troth@verinet.com>
4546 * MAINTAINERS: Add myself as AVR maintainer.
4547 * NEWS: Note new target avr.
4549 2002-04-25 Theodore A. Roth <troth@verinet.com>
4551 * Makefile.in: Add support for AVR target.
4552 * configure.tgt: Add support for AVR target.
4553 * avr-tdep.c: New file
4554 * config/avr/avr.mt: New file.
4556 2002-04-25 Theodore A. Roth <troth@verinet.com>
4558 * MAINTAINERS: Add myself to write-after-approval.
4560 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4562 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4563 with fprintf_unfiltered (gdb_stderr,....
4565 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4568 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4570 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4572 * p-exp.y: Also use new prev_lexptr variable
4573 to improve error reporting. Based on Michael Snyder
4574 2002-04-24 dated patch to c-exp.y.
4576 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4578 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4579 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4580 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4582 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4584 (FUNCTION_START_OFFSET): Remove.
4585 (BREAKPOINT): Ditto.
4587 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4589 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4592 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4594 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4595 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4596 alpha_linux_pc_in_sigtramp.
4597 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4598 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4599 alpha_osf1_pc_in_sigtramp.
4600 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4601 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4602 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4603 alphafbsd_pc_in_sigtramp.
4604 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4605 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4606 alphanbsd_pc_in_sigtramp.
4607 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4608 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4610 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4612 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4614 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4616 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4618 (alphanbsd-nat.o): New dependency list.
4619 (alphanbsd-tdep.o): Ditto.
4620 * NEWS: Note new native NetBSD/alpha configuration.
4621 * alphanbsd-nat.c: New file.
4622 * alphanbsd-tdep.c: Ditto.
4623 * configure.host (alpha*-*-netbsd*): New host.
4624 * configure.tgt (alpha*-*-netbsd*): New target.
4625 * config/alpha/nbsd.mh: New file.
4626 * config/alpha/nbsd.mt: Ditto.
4627 * config/alpha/nm-nbsd.h: Ditto.
4628 * config/alpha/tm-nbsd.h: Ditto.
4630 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4632 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4633 (alpha-osf1-tdep.o): New dependency list.
4634 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4635 and skip_sigtramp_frame members.
4636 * alpha-linux-tdep.c: Include gdbcore.h.
4637 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4638 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4639 * alpha-osf1-tdep.c: New file.
4640 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4642 (alpha_frame_past_sigtramp_frame): New function.
4643 (alpha_dynamic_sigtramp_offset): Ditto.
4644 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4645 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4646 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4647 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4648 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4649 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4650 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4651 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4652 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4653 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4654 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4655 to find_solib_trampoline_target.
4656 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4657 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4658 (SKIP_TRAMPOLINE_CODE): Remove.
4659 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4660 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4661 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4662 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4663 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4664 (PROC_SIGTRAMP_MAGIC): Ditto.
4665 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4666 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4667 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4668 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4669 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4671 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4673 * NEWS: Note that Alpha targets are now multi-arch.
4675 2002-04-24 Michael Snyder <msnyder@redhat.com>
4677 * parser-defs.h (prev_lexptr): New external variable.
4678 * parse.c (parse_exp_1): Set prev_lexptr to null before
4679 calling the language-specific parser.
4680 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4681 (yyerror): Use prev_lexptr in error reporting.
4683 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4685 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4686 * gregset.h: If FILL_FPXREGSET is defined, provide
4687 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4688 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4689 is defined, call fill_fpxregset.
4691 2002-04-24 Roland McGrath <roland@frob.com>
4693 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4694 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4695 (supply_gregset, supply_fpregset): New functions.
4697 * gnu-nat.c (gnu_find_memory_regions): New function.
4698 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4699 (gnu_xfer_memory): Add a cast.
4701 2002-04-24 Michael Snyder <msnyder@redhat.com>
4703 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4704 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4705 of argument regs ("str r(0123), [r11, #-nn"]).
4706 (arm_skip_prologue): Better handling for frameless functions.
4707 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4708 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4710 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4712 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4713 NUM_PSEUDO_REGS can be used.
4715 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4717 * arch-utils.h: Update copyright.
4719 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4720 * gdbarch.h, gdbarch.c: Re-generate.
4722 * inferior.h (IN_SIGTRAMP): Delete definition.
4723 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4724 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4726 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4727 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4728 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4729 (find_proc_framesize): Ditto.
4730 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4731 (alpha_init_extra_frame_info): Ditto.
4732 * infrun.c (handle_inferior_event): Ditto.
4733 (handle_inferior_event): Ditto.
4734 (check_sigtramp2): Ditto.
4735 * blockframe.c (create_new_frame): Ditto.
4736 (get_prev_frame): Ditto.
4737 * ppc-linux-tdep.c: Update comments.
4738 * i386-linux-tdep.c: Update comments.
4739 * breakpoint.c (bpstat_what): Update comment.
4741 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4743 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4744 (regsets_store_inferior_registers): Removed cast to int from
4746 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4748 2002-04-24 David S. Miller <davem@redhat.com>
4750 * i960-tdep.c (register_in_window_p): New function.
4751 (i960_find_saved_register): Use it instead of
4752 REGISTER_IN_WINDOW_P.
4753 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4755 * symtab.h (find_stab_function_addr): Kill extern.
4756 * minsyms.c (find_stab_function_addr): Remove from here...
4757 * dbxread.c: ... to here, and mark it static.
4759 2002-04-20 David S. Miller <davem@redhat.com>
4761 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4762 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4764 2002-04-21 David S. Miller <davem@redhat.com>
4766 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4767 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4768 (vx_write_register): Likewise.
4770 2002-04-23 J. Brobecker <brobecker@gnat.com>
4772 * source.c (is_regular_file): New function.
4773 (openp): Check wether file to open is a regular file
4774 to avoid opening directories.
4776 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4778 * findvar.c (extract_signed_integer): Cast printf argument
4779 to suppress format warning.
4780 (extract_unsigned_integer): Likewise.
4781 * infcmd.c (registers_info): Likewise.
4782 * top.c (get_prompt_1): Likewise.
4783 * valops.c (value_assign): Likewise.
4784 * valprint.c (print_decimal): Likewise.
4786 2002-04-22 H.J. Lu (hjl@gnu.org)
4788 * c-exp.y (typebase): Support
4790 [long|long long|short] [signed|unsigned] [int|]
4794 signed [long|long long|short] int
4796 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4798 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4800 * vax-tdep.h: New file.
4801 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4802 Make several routines static.
4803 (vax_get_saved_register): New function.
4804 (vax_gdbarch_init): New function.
4805 (_initialize_vax_tdep): Register vax_gdbarch_init.
4806 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4807 Remove macros now under the control of gdbarch.
4809 2002-04-22 Michael Snyder <msnyder@redhat.com>
4811 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4812 Some whitespace and coding standards tweaks.
4814 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4816 * vax-tdep.c: Include regcache.h.
4817 (vax_call_dummy_words): New.
4818 (sizeof_vax_call_dummy_words): New.
4819 (vax_fix_call_dummy): New function.
4820 (vax_saved_pc_after_call): Ditto.
4821 * config/vax/tm-vax.h: Don't include regcache.h.
4822 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4823 (CALL_DUMMY): Remove.
4824 (CALL_DUMMY_WORDS): Define.
4825 (SIZEOF_CALL_DUMMY_WORDS): Define.
4826 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4828 2002-04-18 Michael Snyder <msnyder@redhat.com>
4830 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4832 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4834 * vax-tdep.c (vax_frame_chain): New function.
4835 (vax_push_dummy_frame): Ditto.
4836 (vax_pop_frame): Ditto.
4837 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4838 (FRAMELESS_FUNCTION_INVOCATION): Use
4839 generic_frameless_function_invocation_not.
4840 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4841 (POP_FRAME): Use vax_pop_frame.
4843 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4845 * vax-tdep.c (vax_store_struct_return): New function.
4846 (vax_extract_return_value): Ditto.
4847 (vax_store_return_value): Ditto.
4848 (vax_extract_struct_value_address): Ditto.
4849 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4850 vax_store_struct_return.
4851 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4852 (STORE_RETURN_VALUE): Use vax_store_return_value.
4853 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4855 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4857 * vax-tdep.c (vax_frame_saved_pc): New function.
4858 (vax_frame_args_address_correct): Ditto.
4859 (vax_frame_args_address): Ditto.
4860 (vax_frame_locals_address): Ditto.
4861 (vax_frame_num_args): Move code to be in proximity to
4862 other frame-related functions.
4863 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4864 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4865 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4866 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4867 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4869 2002-04-22 H.J. Lu (hjl@gnu.org)
4871 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4874 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4876 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4877 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4878 (FRAME_INIT_SAVED_REGS): New macro.
4880 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4882 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4884 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4886 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4888 (fetch_osf_core_registers): Likewise.
4889 (supply_gregset): Likewise.
4891 2002-04-22 J. Brobecker <brobecker@gnat.com>
4893 * symfile.h (get_section_index): Define.
4894 * symfile.c (get_section_index): New function.
4895 * mdebugread.c (SC_IS_SBSS): New macro.
4896 (SC_IS_BSS): Return true for the scBss storage class only, as
4897 the scSBss storage class refers to the .sbss section.
4898 (parse_partial_symbols): Discard the symbols which associated
4899 section does not exist.
4900 Make sure to use the .sbss section index for symbols which
4901 storage class is scBss, rather than using the .bss section index.
4903 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4905 * vax-tdep.c: Update copyright years.
4906 (vax_register_name): New function.
4907 (vax_register_byte): Ditto.
4908 (vax_register_raw_size): Ditto.
4909 (vax_register_virtual_size): Ditto.
4910 (vax_register_virtual_type): Ditto.
4911 * config/vax/tm-vax.h: Update copyright years.
4912 (REGISTER_NAMES): Remove.
4913 (REGISTER_NAME): Define.
4914 (REGISTER_BYTE): Use vax_register_byte.
4915 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4916 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4917 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4919 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4921 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4923 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4925 2002-04-21 David S. Miller <davem@redhat.com>
4927 * arch-utils.c (generic_prologue_frameless_p): Kill
4928 SKIP_PROLOGUE_FRAMELESS_P code.
4929 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4931 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4932 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4933 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4935 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4936 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4937 (sparc_gdbarch_init): Pass it to
4938 set_gdbarch_prologue_frameless_p.
4940 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4942 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4943 (alphabsd-nat.o): New dependency list.
4945 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4947 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4949 (alpha-linux-tdep.o): New dependency list.
4950 (alphafbsd-tdep.o): Likewise.
4952 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4954 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4956 * alpha-tdep.c: ...from here.
4957 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4959 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4961 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4962 prototype from here...
4963 * alpha-tdep.h: ...to here.
4965 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4967 * frame.h (selected_frame_level): Document as deprecated.
4968 (frame_relative_level): Declare.
4969 * stack.c (frame_relative_level): New function.
4970 (selected_frame_level): Document as deprecated.
4971 (select_frame): Do not set the selected_frame_level.
4973 * stack.c (frame_info, record_selected_frame): Update.
4974 (frame_command, current_frame_command): Update.
4975 (up_silently_base, up_command, down_silently_base): Update.
4976 (down_command): Update.
4977 * inflow.c (kill_command): Update.
4978 * tracepoint.c (finish_tfind_command): Update.
4979 * corelow.c (core_open): Update.
4980 * thread.c (info_threads_command): Update.
4981 (do_captured_thread_select): Update.
4982 * infcmd.c (finish_command): Update.
4983 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4985 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4987 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4989 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4991 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4994 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4996 * alphafbsd-tdep.c: Update copyright years. Include
4998 (alphafbsd_use_struct_convention): Make static.
4999 (alphafbsd_init_abi): New function.
5000 (_initialize_alphafbsd_tdep): New function.
5001 * config/alpha/tm-fbsd.h: Update copyright years.
5002 (USE_STRUCT_CONVENTION): Remove.
5004 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5006 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5007 an Alpha ABI variant.
5008 (alpha_abi_handler_list): Declare.
5009 (alpha_gdbarch_register_os_abi): New function.
5010 (alpha_gdbarch_init): Give registered ABI variant handlers a
5011 chance to tweak the gdbarch once we have set up defaults.
5012 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5014 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5016 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5017 to standard_coerce_float_to_double.
5018 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5020 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5022 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5023 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5024 from gdbarch_tdep rather than a constant.
5025 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5026 the default text address for all Alpha Unix ABIs.
5027 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5028 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5030 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5032 * alpha-tdep.h: New file. Includes several Alpha target constants
5034 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5035 let gdbarch deal with.
5036 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5037 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5039 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5040 Alpha target register names.
5041 * alphabsd-nat.c: Likewise.
5042 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5043 Alpha target register names. Make serveral routines static.
5044 (alpha_get_saved_register): New function.
5045 (alpha_abi_names): New.
5046 (process_note_abi_tag_sections): New function.
5047 (get_elfosabi): New function.
5048 (alpha_gdbarch_init): New function.
5049 (alpha_dump_tdep): New function.
5050 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5052 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5054 * frame.c (find_saved_register): Delete #ifdef
5055 HAVE_REGISTER_WINDOWS code.
5056 * config/sparc/tm-sparc.h: Update comments.
5057 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5059 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5061 * i960-tdep.c (i960_find_saved_register): New function.
5062 (i960_get_saved_register): New function.
5063 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5064 (i960_get_saved_register): Declare.
5065 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5067 2002-04-20 David S. Miller <davem@redhat.com>
5069 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5071 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5073 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5074 instead of NUM_PSEUDO_REGS.
5076 2002-04-20 David S. Miller <davem@redhat.com>
5078 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5079 GDB_MULTI_ARCH_PARTIAL
5080 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5081 define, let tm-sp64.h do it.
5083 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5085 * frame.c (find_saved_register): Avoid a NULL pointer
5086 dereference and actually walk the frame list.
5088 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5090 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5091 sorted in most most-recent-used order. Document.
5092 * gdbarch.h, gdbarch.c: Regenerate.
5094 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5096 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5097 (add_inferior): Call create_register_cache.
5098 (clear_inferiors): Call free_register_cache.
5099 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5100 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5101 (registers): Remove.
5102 (get_regcache): New function.
5103 (create_register_cache, free_register_cache): New functions.
5104 (set_register_cache): Don't initialize the register cache here.
5105 (registers_to_string, registers_from_string, register_data): Call
5107 * gdbserver/regcache.h: Add prototypes.
5108 * gdbserver/server.h: Likewise.
5110 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5112 * gdbserver/mem-break.c: New file.
5113 * gdbserver/mem-break.h: New file.
5114 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5116 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5118 (clear_inferiors): Free target_data member if set.
5119 (inferior_target_data, set_inferior_target_data): New functions.
5120 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5121 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5122 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5123 (struct inferior_linux_data): New.
5124 (linux_create_inferior): Use set_inferior_target_data.
5125 (linux_attach): Likewise. Call add_inferior.
5126 (linux_wait_for_one_inferior): New function.
5127 (linux_wait): Call it.
5128 (linux_write_memory): Add const.
5129 (initialize_low): Call set_breakpoint_data.
5130 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5132 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5134 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5136 * gdbserver/target.c (read_inferior_memory)
5137 (write_inferior_memory): New functions.
5138 * gdbserver/target.h (read_inferior_memory)
5139 (write_inferior_memory): Change macros to prototypes.
5140 (struct target_ops): Update comments. Add const to write_memory
5143 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5145 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5147 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5148 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5149 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5152 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5155 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5156 (build_builtin_type_vec128): Ditto.
5157 (append_composite_type_field): Fix calculation of type length in
5160 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5162 * config/djgpp/README: Update.
5164 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5167 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5169 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5170 (alpha_setup_arbitrary_frame): ...to this.
5171 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5172 for alpha_setup_arbitrary_frame.
5174 2002-04-18 Andrew Cagney <cagney@redhat.com>
5176 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5177 * gdbarch.h, gdbarch.c: Regenerate.
5179 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5180 * target.h (memory_breakpoint_from_pc): Update declaration.
5181 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5183 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5184 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5185 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5186 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5187 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5188 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5189 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5190 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5191 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5192 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5193 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5194 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5196 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5198 * monitor.c (monitor_insert_breakpoint): Ditto.
5199 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5201 * config/mcore/tm-mcore.h: Update copyright.
5202 * mem-break.c: Ditto.
5203 * xstormy16-tdep.c: Ditto.
5205 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5207 * p-exp.y: Add precedence rule for '^' token.
5208 This removes the shift/reduce conflicts.
5209 Remove the comment concerning these shift/reduce conflicts.
5211 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
5213 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5214 (registers_powerpc_nofp): New register set for processors
5215 without floating point unit.
5217 2002-04-18 David S. Miller <davem@redhat.com>
5219 * MAINTAINERS: Add myself to write-after-approval.
5221 2002-04-17 Michael Snyder <msnyder@redhat.com>
5223 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
5225 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5227 * rs6000-tdep.c (frame_initial_stack_address): Use
5228 frame_register_read to read the alloca_reg.
5230 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5232 * frame.c (find_saved_register): Find saved registers in the next
5236 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5238 * gdbarch.sh (LANG): Set to ``c''.
5240 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5242 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
5244 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5246 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
5249 * hpread.c (hpread_get_lntt): Add declaration.
5250 Also fix PR gdb/391.
5252 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5254 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
5255 * aclocal.m4, configure: Re-generate.
5258 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5260 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
5261 instead of tm_print_insn.
5263 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5265 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
5267 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5269 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
5270 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
5271 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
5273 2002-04-12 Don Howard <dhoward@redhat.com>
5275 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
5276 max_user_call_depth.
5277 (init_cmd_lists): Initialize the new value;
5278 * cli/cli-script.c (execute_user_command): Limit the call depth of
5279 user defined commands. This avoids a core-dump when user commands
5280 are infinitly recursive.
5282 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5284 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
5285 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
5286 from tdep struct instead of DEFAULT_LR_SAVE.
5287 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
5288 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
5289 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
5291 2002-04-12 Michael Snyder <msnyder@redhat.com>
5293 * Remote.c: Spelling fix.
5294 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
5295 If no symbol found for "sbrk", try "_sbrk".
5296 (make_output_phdrs): Use bfd_section_name.
5297 (gcore_copy_callback): Use bfd_section_name.
5298 * eval.c: Indentation fix-ups.
5299 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
5300 in case it gets applied to an address that is already
5301 in the instruction space.
5302 * cli/cli-decode.c (help_list): Allow long lines to wrap.
5303 * symfile.c: Fix indentation, long lines.
5304 * source.c: White space fix-up.
5306 2002-04-12 Andrew Cagney <cagney@redhat.com>
5308 * defs.h (read_relative_register_raw_bytes): Delete declaration.
5309 * frame.c (frame_register_read): New function. Return non-zero on
5311 (read_relative_register_raw_bytes_for_frame): Delete.
5312 (read_relative_register_raw_bytes): Delete.
5313 * frame.h (frame_register_read): Declare.
5314 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5316 * infcmd.c (do_registers_info): Ditto.
5317 * hppa-tdep.c: Ditto.
5318 * rs6000-tdep.c: Ditto.
5319 * h8500-tdep.c: Ditto.
5320 * mips-tdep.c: Ditto.
5321 * h8300-tdep.c: Ditto.
5322 * z8k-tdep.c: Ditto.
5324 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5326 From Jimi X <jimix@watson.ibm.com>:
5327 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5330 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5332 From Jimi X <jimix@watson.ibm.com>:
5333 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5336 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5338 From Jimi X <jimix@watson.ibm.com>:
5339 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5340 register sets for these processor variants.
5342 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5344 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5345 registers which are allowed to fail to store.
5346 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5347 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5348 (ppc_cannot_store_register): FPSCR may not be storable.
5349 * regformats/reg-ppc.dat: Support FPSCR.
5351 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5353 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5354 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5355 Add fpscr as an invalid/unfetchable register.
5356 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5357 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5358 (fill_fpregset): Add support for register fpscr.
5359 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5360 (fill_gregset): Account for the fact that register ``mq'' might
5362 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5363 (registers_power): Add fpscr to register set at slot 71.
5364 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5365 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5367 2002-04-11 Michael Snyder <msnyder@redhat.com>
5369 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5370 * configure: Regenerate.
5371 * config.in: Regenerate.
5372 * acconfig.h: Add define for _SYSCALL32.
5373 * core-sol2.c: Remove #define _SYSCALL32.
5374 * solib-legacy.c: Remove #define _SYSCALL32.
5376 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5378 * stack.c (select_frame): Cleanup internal error message, do not
5381 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5383 * stack.c (select_frame): Check that selected_frame and the
5384 specified level are as expected.
5385 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5387 * frame.h (struct frame_info): Add field `level'. Update
5389 Work-in-progress PR gdb/464.
5391 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5393 * maint.c (maint_print_section_info): Rename print_section_info.
5394 (print_bfd_section_info, print_objfile_section_info): Update.
5395 * inferior.h (struct gdbarch): Add opaque declaration.
5396 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5397 * gdbarch.h: Regenerate.
5399 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5401 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5402 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5403 (kernel_u_size): Added.
5404 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5405 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5407 2002-04-04 Jim Ingham <jingham@apple.com>
5409 * valarith.c (find_size_for_pointer_math): New function, either returns
5410 the size for a pointer's target, returns 1 for void *, or errors for
5412 (value_add, value_sub): use find_size_for_pointer_math.
5414 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5416 * linux-low.c (linux_look_up_symbols): New hook.
5417 (linux_target_ops): Add linux_look_up_symbols.
5418 * remote-utils.c (decode_address): New function.
5419 (look_up_one_symbol): New function.
5420 * server.c (handle_query): Call target look_up_symbols hook.
5421 * server.h (look_up_one_symbol): Add prototype.
5422 * target.h (struct target_ops): Add look_up_symbols hook.
5424 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5426 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5427 * ChangeLog: Correct paths in last ChangeLog entry.
5429 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5431 * gdbserver/linux-low.h: Remove obsolete prototypes.
5432 (struct linux_target_ops): New.
5433 (extern the_low_target): New.
5434 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5435 (register_addr): Use the_low_target explicitly.
5436 (fetch_register): Likewise.
5437 (usr_fetch_inferior_registers): Likewise.
5438 (usr_store_inferior_registers): Likewise.
5439 * gdbserver/linux-arm-low.c (num_regs): Remove.
5440 (arm_num_regs): Define.
5441 (arm_regmap): Renamed from regmap, made static.
5442 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5444 (arm_cannot_store_register): Renamed from cannot_store_register,
5446 (the_low_target): New.
5447 * gdbserver/linux-i386-low.c (num_regs): Remove.
5448 (i386_num_regs): Define.
5449 (i386_regmap): Renamed from regmap, made static.
5450 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5452 (i386_cannot_store_register): Renamed from cannot_store_register,
5454 (the_low_target): New.
5455 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5456 (ia64_num_regs): Define.
5457 (ia64_regmap): Renamed from regmap, made static.
5458 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5460 (ia64_cannot_store_register): Renamed from cannot_store_register,
5462 (the_low_target): New.
5463 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5464 (m68k_num_regs): Define.
5465 (m68k_regmap): Renamed from regmap, made static.
5466 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5468 (m68k_cannot_store_register): Renamed from cannot_store_register,
5470 (the_low_target): New.
5471 * gdbserver/linux-mips-low.c (num_regs): Remove.
5472 (mips_num_regs): Define.
5473 (mips_regmap): Renamed from regmap, made static.
5474 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5476 (mips_cannot_store_register): Renamed from cannot_store_register,
5478 (the_low_target): New.
5479 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5480 (ppc_num_regs): Define.
5481 (ppc_regmap): Renamed from regmap, made static.
5482 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5484 (ppc_cannot_store_register): Renamed from cannot_store_register,
5486 (the_low_target): New.
5487 * gdbserver/linux-s390-low.c (num_regs): Remove.
5488 (s390_num_regs): Define.
5489 (s390_regmap): Renamed from regmap, made static.
5490 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5492 (s390_cannot_store_register): Renamed from cannot_store_register,
5494 (the_low_target): New.
5495 * gdbserver/linux-sh-low.c (num_regs): Remove.
5496 (sh_num_regs): Define.
5497 (sh_regmap): Renamed from regmap, made static.
5498 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5500 (sh_cannot_store_register): Renamed from cannot_store_register,
5502 (the_low_target): New.
5503 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5504 (the_low_target): New.
5506 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5508 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5509 override FP_REGNUM with frame->fp. Update copyright.
5510 * parse.c (num_std_regs, std_regs): Delete.
5511 (target_map_name_to_register): Do not search std_regs. Update
5512 function description.
5513 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5514 declarations. Update copyright.
5517 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5519 * gdbserver/Makefile.in: Add stamp-h target.
5520 * gdbserver/configure.in: Create stamp-h.
5521 * gdbserver/configure: Regenerated.
5523 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5525 * gdbserver/inferiors.c: New file.
5526 * gdbserver/target.c: New file.
5527 * gdbserver/target.h: New file.
5528 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5530 * gdbserver/linux-low.c (inferior_pid): New static variable,
5531 moved from server.c.
5532 (linux_create_inferior): Renamed from create_inferior.
5533 Call add_inferior. Return 0 on success instead of a PID.
5534 (linux_attach): Renamed from myattach.
5535 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5536 (linux_thread_alive): Renamed from mythread_alive.
5537 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5539 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5540 (regsets_store_inferior_registers): Correct error message.
5541 Add missing ``return 0''.
5542 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5543 (linux_store_registers): Renamed from store_inferior_registers.
5544 (linux_read_memory): Renamed from read_inferior_memory.
5545 (linux_write_memory): Renamed from write_inferior_memory.
5546 (linux_target_ops): New structure.
5547 (initialize_low): Call set_target_ops ().
5548 * gdbserver/remote-utils.c (unhexify): New function.
5549 (hexify): New function.
5550 (input_interrupt): Send signals to ``signal_pid''.
5551 * gdbserver/server.c (inferior_pid): Remove.
5552 (start_inferior): Update create_inferior call.
5553 (attach_inferior): Call add_inferior.
5554 (handle_query): New function.
5555 (main): Call handle_query for `q' packets.
5556 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5557 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5559 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5561 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5563 * gdbserver/configure.in: Check for <string.h>
5564 * gdbserver/configure: Regenerate.
5565 * gdbserver/config.in: Regenerate.
5566 * gdbserver/gdbreplay.c: Include needed system headers.
5567 (remote_open): Remove strchr prototype.
5568 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5569 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5570 (supply_register_by_name): Likewise.
5571 (collect_register): Change buf argument to void *.
5572 (collect_register_by_name): Likewise.
5573 * gdbserver/regcache.h: Add missing prototypes.
5574 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5575 * gdbserver/server.c (handle_query): New function.
5576 (attached): New static variable, moved out of main.
5577 (main): Quiet longjmp clobber warnings.
5578 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5579 * gdbserver/utils.c (error): Remove NORETURN.
5582 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5584 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5585 after the last symbol in a block.
5587 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5589 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5590 is non zero as a found symbol.
5592 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5594 * findvar.c: Include "builtin-regs.h".
5595 (value_of_register): Call value_of_builtin_reg when applicable.
5596 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5597 (target_map_name_to_register): Call
5598 builtin_reg_map_name_to_regnum.
5599 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5600 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5601 (builtin_regs_h): Define.
5602 (builtin-regs.o): New target.
5603 (findvar.o): Add $(builtin_regs_h).
5604 * builtin-regs.c, builtin-regs.h: New files.
5605 * std-regs.c: New file.
5606 Partial fix for PR gdb/251.
5608 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5610 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5611 it's no longer required.
5613 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5615 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5617 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5619 From Jimi X <jimix@watson.ibm.com>:
5620 * rs6000-tdep.c (rs6000_software_single_step): Use
5621 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5622 and size. Use target_insert_breakpoint() and
5623 target_remove_breakpoint() to insert and remove breakpoints
5624 instead of explicit memory reads and writes.
5626 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5628 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5629 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5630 ELF_OBJECT_FORMAT ifdef.
5632 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5634 From Jimi X <jimix@watson.ibm.com>:
5635 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5637 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5639 From Jimi X <jimix@watson.ibm.com>:
5640 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5641 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5643 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5645 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5646 s/asprintf/xasprintf/.
5647 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5649 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5651 I believe Jeff Law denies responsability for this one:
5652 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5653 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5654 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5655 Work-around for PR gdb/366.
5657 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5659 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5660 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5661 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5663 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5665 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5666 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5669 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5671 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5674 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5676 * README (Reporting Bugs in GDB): Document the bug web page as the
5677 prefered way of submitting bugs.
5680 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5682 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5684 * gdbarch.h, gdbarch.c: Re-generate.
5686 2002-04-07 Andreas Schwab <schwab@suse.de>
5688 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5689 buffer to regcache_collect.
5691 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5693 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5694 * gdbarch.c, gdbarch.h: Re-generate.
5696 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5698 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5699 declaration. Fix -Werror.
5701 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5703 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5704 * gdbarch.c: Regenerate.
5706 2002-04-05 Michael Snyder <msnyder@redhat.com>
5708 * breakpoint.c (clear_command): Rewrite middle section to
5709 combine two loops with identical control conditions.
5710 Add a cleanup to eliminate a memory leak.
5711 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5713 2002-04-05 H.J. Lu (hjl@gnu.org)
5715 * solib-svr4.c (bkpt_names): Add "__start".
5717 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5719 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5720 as test for 64 bit target.
5722 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5724 * h8500-tdep.c (h8500_write_fp): Delete function.
5725 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5726 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5727 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5729 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5730 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5732 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5733 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5734 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5735 (d10v_write_fp): Delete function.
5736 * inferior.h (write_fp, generic_target_write_fp): Delete
5738 * regcache.c (generic_target_write_fp): Delete function.
5739 (write_fp): Delete function.
5740 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5741 * gdbarch.h, gdbarch.c: Regenerate.
5742 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5743 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5744 (sparc64_write_fp): Delete declaration.
5745 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5746 (h8500_write_fp): Delete declaration.
5748 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5750 * sparc-tdep.c (sparc64_write_fp): Delete.
5751 (sparc_push_dummy_frame): Replace write_fp call with code to store
5753 (sparc_gdbarch_init): Do not initialize write_fp.
5755 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5757 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5760 2002-03-29 Jim Blandy <jimb@redhat.com>
5762 * stack.c (get_selected_block): Add new argument `addr_in_block',
5763 used to return the exact code address we used to select the block,
5765 * blockframe.c (get_frame_block, get_current_block): Same.
5766 * frame.h (get_frame_block, get_current_block,
5767 get_selected_block): Update declarations.
5768 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5769 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5771 2002-04-05 Michael Snyder <msnyder@redhat.com>
5773 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5776 2002-04-05 J. Brobecker <brobecker@gnat.com>
5778 * utils.c (xfullpath): New function.
5779 * defs.h (xfullpath): Add declaration.
5780 * source.c (openp): Use xfullpath in place of gdb_realpath to
5781 avoid resolving the basename part of filenames when the
5782 associated file is a symbolic link. This fixes a potential
5783 inconsistency between the filenames known to GDB and the
5784 filenames it prints in the annotations.
5785 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5786 to be able to match a filename with either the real filename, or
5787 the name of any symbolic link to this file.
5788 (lookup_partial_symtab): Ditto.
5790 2002-04-04 Michael Snyder <msnyder@redhat.com>
5792 * breakpoint.c: Add support for hardware breakpoints in overlays.
5793 (overlay_events_enabled): New state variable.
5794 (insert_breakpoints): Use overlay_events_enabled to decide
5795 whether to attempt to set a breakpoint at the overlay load addr.
5796 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5797 (remove_breakpoint): Use overlay_events_enabled to decide
5798 whether breakpoints need to be removed from overlay load addr.
5799 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5800 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5801 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5802 disable_overlay_breakpoints): Update overlay_events_enabled.
5804 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5806 * dwarf2read.c (struct function_range): New.
5807 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5808 (check_cu_functions): New.
5809 (read_file_scope): Initialize global function lists.
5810 Call dwarf_decode_line after processing children.
5811 (read_func_scope): Add to global function list.
5812 (dwarf_decode_lines): Call check_cu_functions everywhere
5813 record_line is called. Call record_line with a linenumber
5814 of 0 to mark sequence ends.
5816 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5818 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5819 change sync with glibc.
5821 2002-04-03 Jim Blandy <jimb@redhat.com>
5823 * configure.in: Call AC_C_INLINE.
5824 * configure: Regenerated.
5826 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5828 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5829 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5831 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5833 * NEWS: Mention gcore support on FreeBSD/i386.
5835 * fbsd-proc.c: New file.
5836 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5837 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5839 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5842 2002-03-29 Jim Blandy <jimb@redhat.com>
5844 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5845 unescaped newlines in string literals, but newer ones don't. So
5848 2002-03-26 Michael Snyder <msnyder@redhat.com>
5849 Andrew Cagney <cagney@redhat.com>
5851 * cli/cli-dump.c: New file. Dump memory to file,
5852 restore file to memory.
5853 * cli/cli-dump.h: New file.
5854 * Makefile.in: Add rules, dependencies for cli-dump.o.
5855 * NEWS: Mention new commands.
5857 2002-03-28 Michael Snyder <msnyder@redhat.com>
5859 * symfile.c (symbol_file_add): Move test for null symbols to later.
5861 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5863 From veksler at il.ibm.com:
5864 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5865 the xstrduped original path.
5868 2002-03-27 Michael Snyder <msnyder@redhat.com>
5870 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5871 * infcmd.c (_initialize_infcmd): Ditto.
5872 * language.c (_initialize_language): Ditto.
5873 * symfile.c (_initialize_symfile): Ditto.
5874 * top.c (_init_main): Ditto.
5875 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5877 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5879 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5880 vector registers handling.
5881 (skip_prologue): Handle new AltiVec instructions. Fill in new
5882 fields of frame data.
5883 (frame_get_saved_regs): Fill in information for AltiVec registers.
5885 2002-03-27 Jim Blandy <jimb@redhat.com>
5887 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5888 a function; leave this macro here to invoke that function.
5889 (symbol_init_mangled_name): Declaration for that function.
5890 * symtab.c (symbol_init_mangled_name): New function.
5892 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5894 * valarith.c: Replace strerror with safe_strerror.
5895 * tracepoint.c: Ditto.
5897 * go32-nat.c: Ditto.
5901 2002-03-27 Andreas Schwab <schwab@suse.de>
5903 * event-top.c (command_line_handler): Remove useless if.
5905 2002-03-27 Andreas Jaeger <aj@suse.de>
5907 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5910 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5912 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5913 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5914 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5915 (x86_64_linux_dr_get_status, supply_gregset),
5916 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5917 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5918 (x86_64_register_info_table): Add.
5919 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5920 (x86_64_register_raw_size, x86_64_register_virtual_type),
5921 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5922 general x86_64_register_info_table.
5923 (i386_gdbarch_init): gdbarch_register_bytes is now set
5924 dynamicaly during initialization.
5925 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5926 * gdbserver/linux-x86-64-low.c: Ditto.
5928 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5930 * gdbserver/server.c (main): Call target_signal_to_host_p
5931 and target_signal_to_host on signals received from the remote.
5932 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5933 target_signal_from_host on signals sent to the remote.
5934 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5935 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5937 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5939 * signals/signals.c: Include "server.h" in gdbserver build.
5940 (target_signal_from_name): Don't use STREQ.
5941 (_initialize_signals): Likewise. Don't include function in
5944 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5946 * signals.c: Moved to...
5947 * signals/signals.c: Here.
5948 * Makefile (signals.o): Update.
5950 2002-03-26 Jeff Law (law@redhat.com)
5952 * somread.c (som_symtab_read): Remove some commented out code and
5953 updated related comments. Do not set the minimal symbol table to
5954 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5955 in a dynamic executable.
5956 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5957 where we are unable to find the minimal symbol for the given
5960 2002-03-25 Jeff Law (law@redhat.com)
5962 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5964 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5966 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5968 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5970 * command.h: Update copyright.
5971 (struct cmd_list_element): Replace definition with opaque
5973 (enum cmd_types): Document that it will eventually be moved to
5975 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5976 (MALLOCED_REPLACEMENT): Delete macro.
5977 * Makefile.in (cli_decode_h): Add $(command_h).
5978 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5979 * top.c: Include "cli/cli-decode.h".
5980 * completer.c: Include "cli/cli-decode.h".
5981 * maint.c: Include "cli/cli-decode.h".
5982 * cli/cli-decode.h: Include "command.h".
5983 (enum command_class): Delete.
5984 (enum cmd_types): Comment out.
5985 (enum cmd_auto_boolean): Delete.
5986 (enum var_types): Delete.
5988 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5990 * cli/cli-decode.c: Include "gdb_assert.h".
5991 (add_set_or_show_cmd): New static function.
5992 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5993 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5994 all fields, such as func, from the set command.
5996 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5998 * MAINTAINERS (sh-elf): Change warning flag to -w.
6000 2002-03-23 Andrew Cagney <cagney@redhat.com>
6002 * defs.h (error): Add printf format attribute.
6003 * thread-db.c (thread_from_lwp): Fix error format string.
6004 * stack.c (parse_frame_specification): Ditto.
6005 * cli/cli-decode.c (undef_cmd_error): Ditto.
6006 * scm-lang.c (scm_lookup_name): Ditto.
6007 * tracepoint.c (trace_error): Ditto.
6008 * remote-utils.c (usage): Ditto.
6009 * remote.c (compare_sections_command): Ditto.
6012 2002-03-22 Andrew Cagney <ac131313@redhat.com>
6014 * gdbtypes.c (append_composite_type_field): New function.
6015 (init_composite_type): New function.
6016 * gdbtypes.h (append_composite_type_field): Declare.
6017 (init_composite_type): Ditto.
6019 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
6021 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
6023 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6024 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6025 structure returning convention for SYSV ABI case, but not
6026 for GNU/Linux, FreeBSD, or NetBSD.
6028 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
6030 * symtab.h (lookup_block_symbol): Add mangled_name argument
6033 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6034 with new mangled_name argument.
6035 * linespec.c (decode_line_1): Likewise.
6036 * valops (value_of_this): Likewise.
6037 * symtab.c (lookup_transparent_type): Likewise.
6038 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6039 (lookup_symbol): If we are given a mangled name, pass it down
6040 to lookup_symbol_aux.
6041 (lookup_block_symbol): If we are given a mangled name to check
6042 against, only return symbols which match it.
6044 2002-03-22 Christopher Faylor <cgf@redhat.com>
6046 * win32-nat.c (child_create_inferior): Check for proper shell to use
6047 here, in case the user changes it on the fly.
6048 (_initialize_inftarg): Remove shell path considerations.
6050 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6052 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6053 for gdbarch_max_register_raw_size and max_register_virtual_size.
6054 Adjust copyright year.
6056 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6058 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6059 in a function to cover the entire beginning of the function
6060 as well if it does not already.
6062 2002-03-21 Tom Rix <trix@redhat.com>
6064 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6065 (rs6000_ptrace64): Renamed from ptrace64.
6067 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6069 * gdbserver/remote-utils.c (remote_open): Don't call
6070 getprotobyname, we're all using TCP here so just use
6072 * gdbserver/gdbreplay.c (remote_open): Ditto.
6074 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6076 * regcache.c (_initialize_regcache): No need to call
6077 build_regcache() at this time; it gets called whenever
6078 the gdbarch changes.
6080 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6082 * sparc-nat.c: Include sys/param.h where possible.
6084 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6087 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6088 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6089 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6091 * stabsread.c (rs6000_builtin_type): Likewise.
6092 (read_sun_floating_type): Likewise.
6094 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6096 * stabsread.c (read_member_functions): Remove skip code for duplicate
6097 constructor/destructor methods. Use standard parsing for these
6098 methods and just do not chain them to the list of methods after
6101 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6103 * coffread.c: Remove redundant static declarations. Replace
6104 occurrences of `PTR' with `void *'.
6105 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6106 * top.h (quit_cover): Likewise.
6107 * defs.h (catch_errors): Likewise.
6109 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6111 * defs.h (XMALLOC): Define.
6112 * gdb-events.sh (XMALLOC): Delete macro.
6113 * gdb-events.c, gdb-events.h: Regenerate.
6114 * gdbarch.sh (XMALLOC): Delete macro.
6115 * gdbarch.c: Regenerate.
6116 * serial.c (XMALLOC): Delete macro.
6117 * ui-file.c (XMALLOC): Ditto.
6118 * ser-unix.h (XMALLOC): Ditto.
6119 * sh-tdep.c (XMALLOC): Ditto.
6120 * ui-out.c (XMALLOC): Ditto.
6121 * utils.c (XMALLOC): Ditto.
6122 * i386-tdep.c (XMALLOC): Ditto.
6123 * gdb-events.c (XMALLOC): Ditto.
6124 * d10v-tdep.c (XMALLOC): Ditto.
6125 * cli-out.c (XMALLOC): Ditto.
6127 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6128 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6129 * ui-file.c, ui-out.c: Ditto.
6131 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6133 * command.h (struct cmd_list_element): Add field context.
6134 (set_cmd_context, get_cmd_context): Declare.
6135 * cli/cli-decode.h: Ditto.
6136 * cli/cli-decode.c (get_cmd_context): New function.
6137 (set_cmd_context): New function.
6138 (add_cmd): Initialize context.
6139 Part of fixing PR gdb/145 and PR gdb/146.
6141 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6143 * cli/cli-decode.c (cmd_type): New function.
6144 * command.h (cmd_type): Declare.
6145 * infrun.c (set_schedlock_func): Call function cmd_type.
6146 * kod.c (kod_set_os): Call cmd_type.
6147 * cris-tdep.c (cris_version_update): Use function cmd_type.
6148 (cris_mode_update, cris_abi_update): Ditto.
6150 * command.h: (execute_cmd_post_hook): Declare.
6151 (execute_cmd_pre_hook): Declare.
6152 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6153 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6154 functions. Execute pre/post hook while ensuring that afterwords
6156 * top.c (execute_command): Use execute_cmd_post_hook, and
6157 execute_cmd_pre_hook to execute pre/post commands.
6158 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6160 (hook_stop_stub): Call execute_cmd_pre_hook.
6162 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6164 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6165 set'' and this leads to a core dump. Move xstrdup of
6166 operating_system to after check that it is not NULL.
6168 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6170 * kod.c (kod_set_os): Remove unnecessary check that
6171 ``command->type'' is set_cmd.
6173 * valprint.c (set_input_radix): Use input_radix.
6174 (set_output_radix): Use output_radix.
6175 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6178 2002-03-16 Andrew Cagney <ac131313@redhat.com>
6180 * value.h (struct value): Delete field ``substring_addr''. Change
6181 aligner fields to force_doublest_align, force_longest_align,
6182 force_core_addr_align and force_pointer_aligh.
6184 * value.h (struct value): Fix typo in above change.
6186 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6188 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6189 to fix internal_error from ``maintenance print architecture''.
6191 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6193 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6194 for gcc versions after gcc-2.8.1.
6196 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6198 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6199 for method resolution. Restore adjustment of ``this'' pointer after
6200 calling value_struct_elt, which was accidentally removed during the
6203 2002-03-15 Andrew Cagney <ac131313@redhat.com>
6205 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6207 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6209 * value.h (value_of_register): Update.
6211 2002-03-14 Richard Henderson <rth@redhat.com>
6213 * configure.in: Detect declaration for canonicalize_file_name.
6214 * utils.c (canonicalize_file_name): Declare, if needed.
6215 (gdb_realpath): Prefer realpath if available and usable.
6216 * config.in, configure: Rebuild.
6218 2002-03-14 Richard Henderson <rth@redhat.com>
6220 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6221 a constant array bound.
6223 * MAINTAINERS: Add myself to write-after-approval.
6225 2002-03-14 Michael Snyder <msnyder@redhat.com>
6227 * symfile.c (syms_from_objfile): Return immediately if no syms.
6228 (symbol_file_add): Return immediately if no syms.
6229 (find_sym_fns): Return immediately if no syms.
6231 2002-03-13 Michal Ludvig <mludvig@suse.cz>
6233 * gdbserver/remote-util.c (remote_open): Print remote-side's
6234 IP address when remote debugging over the network.
6236 2002-03-12 David O'Brien <obrien@FreeBSD.org>
6238 * config/sparc/fbsd.mh: Fix copyright.
6239 * config/sparc/fbsd.mt: Likewise.
6241 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
6243 * MAINTAINERS: Fix typo in name of gdb warnings option.
6244 (x86-64): Fix formating so that this can be parsed by awk.
6246 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6248 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
6249 * defs.h: Include "gdb/signals.h".
6250 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6252 2002-03-10 Michal Ludvig <mludvig@suse.cz>
6254 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
6255 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
6258 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6259 Don Howard <dhoward@redhat.com>
6261 * mips-tdep.c (ST0_FR): Define.
6262 (mips2_fp_compat): New function, temporarily disabled.
6263 (mips_read_fp_register_single): New function.
6264 (mips_read_fp_register_double): New function.
6265 (mips_print_register): Use them.
6266 (do_fp_register_row): Likewise.
6268 2002-03-09 Andrew Cagney <ac131313@redhat.com>
6270 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
6273 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6275 * stabsread.c (read_member_functions): Fix is_stub test for
6276 static member functions, improve comment.
6278 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6280 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
6281 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
6282 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
6283 commands that set boolean values.
6284 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
6285 (arm_rdi_resume): Always initialize PC.
6286 (arm_rdi_open): Don't use rslt as a boolean.
6287 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
6288 (arm_rdi_fetch_registers, arm_rdi_store_registers)
6289 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
6290 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
6292 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
6294 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
6295 * configure: Rebuilt.
6297 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6299 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
6300 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
6302 2002-03-06 Andrew Cagney <ac131313@redhat.com>
6304 * cli/cli-decode.c (set_cmd_completer): New function.
6305 * command.h (set_cmd_completer): Declare.
6306 * cli/cli-decode.h (set_cmd_completer): Ditto.
6308 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
6309 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6310 * win32-nat.c (_initialize_inftarg): Ditto.
6311 * remote-rdi.c (_initialize_remote_rdi): Ditto.
6312 * proc-api.c (_initialize_proc_api): Ditto.
6313 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
6314 * source.c (_initialize_source): Ditto.
6315 * exec.c (_initialize_exec): Ditto.
6316 * solib.c (_initialize_solib): Ditto.
6317 * top.c (init_main): Ditto.
6318 * tracepoint.c (_initialize_tracepoint): Ditto.
6319 * symfile.c (_initialize_symfile): Ditto.
6320 * printcmd.c (_initialize_printcmd): Ditto.
6321 * infcmd.c (_initialize_infcmd): Ditto.
6322 * corefile.c (_initialize_core): Ditto.
6324 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6326 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6328 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6330 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6332 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6334 * NEWS: Update headings, 5.2 has branched.
6336 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6338 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6339 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6340 (register_addr, REGISTER_RAW_SIZE): Likewise.
6341 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6342 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6344 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6346 * MAINTAINERS (x86-64): Add myself.
6347 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6348 changed value_ptr -> struct value *
6350 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6352 * configure.host (sparc64-*-freebsd): Add.
6353 * configure.tgt: Likewise.
6354 * config/sparc/fbsd.mh: New file.
6355 * config/sparc/fbsd.mt: Likewise.
6356 * config/sparc/nm-fbsd.h: Likewise.
6357 * config/sparc/tm-fbsd.h: Likewise.
6359 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6361 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6362 regformats/reg-s390x.dat.
6364 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6366 * utils.c: Add FIXME explaining true/false problem.
6368 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6370 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6372 2002-02-28 Michael Chastain <mec@shout.net>
6374 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6376 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6378 * gdbserver/linux-s390-low.c: New file.
6379 * regformats/reg-s390.dat: New file.
6380 * regformats/reg-s390x.dat: New file.
6381 * gdbserver/configure.srv: Add S/390.
6382 * gdbserver/Makefile.in: Add S/390.
6383 * configure.tgt: Enable gdbserver for S/390.
6385 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6387 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6388 first line of the doc string for "info dos", except at the end of
6389 the sentence, since the short help stops at the first period.
6391 2002-02-28 Jason Merrill <jason@redhat.com>
6393 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6395 2002-02-27 Fred Fish <fnf@redhat.com>
6397 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6398 comment (dumy -> dummy).
6400 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6402 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6404 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6406 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6408 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6410 * gdbserver/acconfig.h: New file.
6411 * gdbserver/i387-fp.c: New file.
6412 * gdbserver/i387-fp.h: New file.
6413 * gdbserver/linux-x86-64.c: New file.
6414 * regformats/reg-x86-64.dat: New file.
6415 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6416 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6417 * gdbserver/configure.in: Add support for regsets.
6418 * gdbserver/config.in: Regenerate.
6419 * gdbserver/configure: Regenerate.
6420 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6421 * gdbserver/linux-low.h: New file.
6422 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6424 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6425 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6426 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6427 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6428 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6429 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6430 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6431 "i387-fp.h". Add PTRACE_GETREGS and friends.
6432 * gdbserver/regcache.c (supply_register): New function.
6433 (supply_register_by_name): New function.
6434 (collect_register): New function.
6435 (collect_register_by_name): New function.
6437 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6439 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6440 (config.status): Add configure.srv dependency.
6441 (server_h): Add config.h dependency.
6443 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6445 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6446 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6447 * gdbserver/configure.srv: Change i386-*-linux* to use
6450 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6452 * x86-64-tdep.c: Re-indent. Update copyright date.
6454 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6456 From Michal Ludvig <mludvig@suse.cz>:
6457 * x86-64-tdep.c (value.h): Delete.
6458 (gdb_assert.h): Include.
6459 (x86_64_register_convert_to_virtual,
6460 x86_64_register_convert_to_raw ): Add check which lets only
6461 floating-point values to be converted.
6462 (value_push): Delete.
6463 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6464 (i386_gdbarch_init): Number of register_bytes fixed.
6466 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6468 * MAINTAINERS: Add x86-64 target.
6470 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6472 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6473 * osfsolib.c (solib_map_sections): Ditto.
6474 * irix5-nat.c (solib_map_sections): Ditto.
6475 * corelow.c (gdb_check_format): Ditto.
6476 * symfile.c (symfile_bfd_open): Ditto.
6477 * solib.c (solib_map_sections): Ditto.
6480 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6482 * remote.c (_initialize_remote): By default, disable ``e'' and
6483 ``E'' step out-of-range packets.
6485 2002-02-26 Andreas Schwab <schwab@suse.de>
6487 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6488 m68k_linux_frame_saved_pc.
6489 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6491 (SIGCONTEXT_PC_OFFSET): Remove.
6492 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6493 m68k_linux_sigtramp_saved_pc): New functions.
6494 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6495 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6496 (UCONTEXT_PC_OFFSET): Define.
6497 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6498 non-RT and RT signal trampolines.
6500 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6502 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6503 (TARGET_NBPG, STACK_END_ADDR): Delete
6504 (VARIABLES_INSIDE_BLOCK): Delete.
6506 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6508 * utils.c (perror_with_name): Make string parameter constant.
6509 (print_sys_errmsg): Ditto.
6511 * defs.h (perror_with_name): Update.
6512 (print_sys_errmsg): Update.
6515 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6517 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6518 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6520 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6522 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6523 if it already matches the current architecture from the exec file.
6524 Include arch-utils.h for gdbarch_info_init prototype.
6525 * Makefile.in (rs6000-nat.o): Update dependencies.
6527 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6529 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6530 list of exported variables.
6532 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6534 * gdbserver/configure.srv: New file.
6535 * gdbserver/configure.in: Use configure.srv instead
6536 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6538 * gdbserver/configure: Regenerated.
6539 * gdbserver/terminal.h: New file.
6540 * gdbserver/Makefile.in: Update for configure changes. Remove
6541 more unneeded include paths.
6543 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6545 From wiz at danbala:
6546 * config/sparc/tm-sp64.h: Fix grammar and typos.
6549 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6551 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6552 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6553 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6554 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6555 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6556 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6557 * s390-tdep.c: Ditto.
6558 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6559 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6560 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6561 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6562 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6563 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6564 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6565 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6566 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6567 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6570 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6572 * lin-thread.c: Delete file.
6573 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6574 to gdb_proc_service.h.
6575 * configure: Re-generate.
6577 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6578 * serial.c (serial_open): Delete check for "ocd".
6581 * Makefile.in (linux-thread.o): Delete target.
6582 * linux-thread.c: Delete file.
6584 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6585 renamed SH files to be consistent.
6587 * symtab.c (sort_search_symbols): Use xfree.
6589 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6591 * arm-linux-tdep.c (arm_linux_init_abi): Register
6592 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6593 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6594 definition with undef, since we don't want the sysvr4 definition.
6595 (SKIP_TRAMPOLINE_CODE): Likewise.
6597 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6599 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6601 * configure.in: (AC_CHECK_FUNCS) Added test for
6602 canonicalize_file_name Regenerated.
6603 * config.in, configure: Regenerated.
6604 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6605 defined use canonicalize_file_name.
6607 2002-02-23 Michael Chastain <mec@shout.net>
6609 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6611 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6613 * README: Remove references to cygnus.com.
6614 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6615 dot com'' form. Remove references to cygnus.com and sourceware.
6617 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6619 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6620 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6621 1003.1-2001 no longer allows "head -1".
6622 * gdb/Makefile.in (version.c): Likewise.
6623 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6624 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6625 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6627 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6629 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6630 * command.h (cmd_cfunc_eq): Declare.
6631 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6633 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6634 ``struct cmd_list_element *''.
6635 * cli/cli-cmds.c (is_complete_command): Update. Use
6637 * top.c (execute_command): Pass the command to
6638 is_complete_command.
6639 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6641 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6643 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6644 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6645 architecture defines.
6646 * s390-tdep.c (s390_gdbarch_init): Likewise.
6648 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6650 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6651 (arm_linux_push_arguments): Likewise.
6652 (arm_linux_init_abi): Register them. Also register linux-specific
6654 (find_minsym_and_objfile): Use strcmp, not STREQ.
6655 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6656 (arm_linux_call_dummy_words): Delete declaration.
6657 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6658 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6660 (LOWEST_PC): Delete.
6662 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6664 * maint.c (print_section_info): Do not prepend `0x' to filepos
6665 output, it will be handled by local_hex_string_custom.
6667 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6669 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6670 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6671 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6673 2002-02-22 Jim Blandy <jimb@redhat.com>
6675 Indicate that the bcache functions don't change the strings
6677 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6678 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6680 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6682 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6684 2002-02-21 Christopher Faylor <cgf@redhat.com>
6686 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6687 find the complete path to a loaded DLL.
6689 2002-02-21 Fred Fish <fnf@redhat.com>
6691 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6692 that marks the end of the range of a function, enter a line number
6693 entry that has a line number of zero and a PC offset that matches
6694 the end of the function. This starts a range of PC's for which no
6695 line number information is known.
6696 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6697 PC's for which no line number info is found (line number is zero)
6698 then we didn't find any valid line information.
6699 * symtab.h: Document use of zero line number entry.
6701 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6703 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6704 (have_ptrace_getvrregs): Define for run time checks.
6705 (gdb_vrregset_t): New type for Altivec register handling.
6706 (fetch_register, store_register): Fetch/store altivec register
6708 (fetch_altivec_register, store_altivec_register): New functions.
6709 (supply_vrregset, fill_vrregset): New functions.
6710 (fetch_altivec_registers, store_altivec_registers): New functions.
6711 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6714 2002-02-21 Jiri Smid <smid@suse.cz>
6716 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6718 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6720 * Makefile.in (armnbsd-nat.o): Update dependencies.
6721 * armnbsd-nat.c (supply_gregset): New function. Common code to
6722 supply the integer register set.
6723 (supply_fparegset): New function. Similar for FPA registers.
6724 (fetch_regs, fetch_fp_regs): Use them.
6725 (fetch_core_registers): Likewise.
6726 (fetch_elfcore_registers): New function.
6727 (arm_netbsd_elfcore_fns): New core-file type specification.
6728 (_initialize_arm_netbsd_nat): Register it.
6730 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6732 * armnbsd-nat.c: Include gdbcore.h.
6733 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6734 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6735 'void' to declaration, to shut up ARI.
6736 (fetch_core_registers): Make static. Rewrite using supply_register.
6737 (arm_netbsd_core_fns): New core-file type specification.
6738 (_initialize_arm_netbsd_nat): New function.
6740 2002-02-21 Christopher Faylor <cgf@redhat.com>
6742 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6745 2002-02-20 Christopher Faylor <cgf@redhat.com>
6747 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6750 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6752 * jv-exp.y (parse_number): Change type of implicit longs
6753 to builtin_type_uint64.
6755 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6757 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6758 to be an integer instead of a `union wait'.
6760 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6762 * mips-linux-nat.c: Call the operating system GNU/Linux.
6763 * mips-linux-tdep.c: Likewise.
6764 * mips-tdep.c: Likewise.
6766 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6769 * jv-exp.y (parse_number): Handle 64-bit integers.
6771 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6773 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6774 AC_STDC_HEADERS to AC_HEADER_STDC.
6775 * gdbserver/configure: Regenerated.
6777 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6779 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6781 * sparc-tdep.c (get_longjmp_target): Likewise.
6783 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6785 * News: Add news about ARM and Multi-arch. Mention the new target
6788 2002-02-19 Jim Blandy <jimb@redhat.com>
6790 * stabsread.c (error_type_complaint): Improve error message.
6792 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6794 * gdbserver/README: Update documentation.
6795 * gdbserver/configure.in: Update configury to match documentation.
6796 * gdbserver/Makefile.in: Likewise.
6797 * gdbserver/configure: Regenerated.
6798 * gdbserver/aclocal.m4: New file, generated by aclocal.
6799 * gdbserver/config.in: New file, generated by autoheader.
6801 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6803 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6806 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6808 * arm-tdep.h (enum arm_float_model): New enum.
6809 (struct gdbarch_tdep): Add fp_model.
6810 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6811 up floating-point conversions until we know the floating-point model
6812 in use by the inferior. Don't complain about being unable to
6813 determine the ABI of the inferior when we don't have one.
6814 (arm_extract_return_value): Support different floating-point models.
6815 (arm_store_return_value): Likewise.
6816 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6818 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6820 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6822 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6823 of ``current_gdbarch''.
6825 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6827 * armnbsd-nat.c : ANSIfy all function declarations.
6828 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6829 (fetch_inferior_registers): Re-implement in terms of above.
6830 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6831 (store_inferior_registers): Re-implement in terms of above.
6833 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6835 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6837 * arm-linux-tdep.c: Likewise.
6838 * config/arm/tm-linux.h: Likewise.
6840 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6842 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6843 * config/arm/nbsd.mt (TM_FILE): Delete.
6844 * config/arm/tm-nbsd.h: Delete.
6846 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6848 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6849 Initialize CALL_DUMMY_LENGTH.
6851 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6853 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6855 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6856 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6857 defines one thing and that is incorrect for this port.
6858 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6860 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6862 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6864 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6866 * win32-nat.c (display_selector): New function. Displays information
6867 about the information returned by GetThreadSelectorEntry API function.
6868 (display_selectors): New function. Displays the infomation of
6869 the selector given as argument, or of CS, DS ans FS selectors
6870 if no argument is given.
6871 ( _initialize_inftarg): Add "w32" as info prefix command.
6872 Add "info w32 selector" as command calling display_selectors.
6874 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6876 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6877 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6880 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6882 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6884 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6886 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6887 (arm_fix_call_dummy): Call it.
6888 (arm_call_dummy_breakpoint_offset): Delete.
6889 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6890 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6892 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6894 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6895 Default to func_frame_chain_valid.
6896 * gdbarch.h, gdbarch.c: Re-generate.
6897 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6899 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6901 * ppc-linux-nat.c: Update copyright.
6902 (fetch_register, store_register): Add tid parameter, don't compute
6904 (fetch_ppc_registers, store_ppc_registers): Add tid
6905 parameter. Pass it along to callees.
6906 (fetch_inferior_registers, store_inferior_registers): Compute tid
6907 here, and pass it to calleed functions.
6908 (fill_gregset, supply_fpregset): Clean up formatting.
6910 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6912 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6913 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6915 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6917 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6918 * gdbarch.c gdbarch.h: Regenerate.
6919 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6921 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6922 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6923 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6925 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6926 * arm-tdep.c (arm_get_longjmp_target): New function.
6927 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6928 this to a positive value register arm_get_longjmp_target as the
6930 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6931 (arm_linux_init_abi): Set up longjmp description in tdep.
6932 * armnbsd-nat.c (get_longjmp_target): Delete.
6933 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6934 description in tdep.
6935 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6936 (get_longjmp_target): Delete declaration.
6937 (GET_LONGJMP_TARGET): Delete.
6938 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6939 (GET_LONGJMP_TARGET): Delete.
6941 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6943 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6944 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6945 of ``current_gdbarch''.
6947 2002-02-17 Tom Tromey <tromey@redhat.com>
6949 * cli/cli-cmds.c (compare_strings): New function.
6950 (complete_command): Only print each unique item once.
6951 * completer.h (complete_line): Declare.
6952 * completer.c (complete_line): New function.
6953 (line_completion_function): Use it.
6955 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6957 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6958 * gdbarch.h, gdbarch.c: Re-generate.
6960 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6962 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6964 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6966 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6967 * valops.c (value_arg_coerce): Don't take the address of a reference
6968 to convert an argument to a reference.
6970 2002-02-15 Christopher Faylor <cgf@redhat.com>
6972 * win32-nat.c (get_image_name): New function.
6973 (handle_load_dll): Use get_image_name function.
6974 (get_child_debug_event): Avoid registering debug events until possibly
6975 execed process is started.
6976 (child_create_inferior): Allow invocation via shell so that command
6977 line redirection, etc. works ok.
6978 (_initialize_inftarg): Add new command: "set shell" to control whether
6979 a shell is used to start a process.
6981 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6983 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6984 instead of find_register_by_number.
6985 (cannot_store_register): Likewise.
6987 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6989 * dwarf2read.c: Replace fprintf (stderr, ...) by
6990 fprintf_unfiltered (gdb_stderr, ...).
6992 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6994 * gdbserver/gdbserver.1: Document --attach.
6996 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6998 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7000 * arm-tdep.c (arm_default_arm_le_breakpoint)
7001 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7002 (arm_default_thumb_be_breakpoint): New. Initialize them from
7003 traditional breakpoint defines.
7004 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7005 (arm_gdbarch_init): Initialize new breakpoint variables.
7006 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7007 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7008 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7009 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7011 (arm_netbsd_init_abi_common): ... here; new function.
7012 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7013 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7014 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7015 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7017 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7019 * arm-tdep.h (enum arm_abi): New enum.
7020 (struct gdbarch_tdep): New structure.
7021 (LOWEST_PC): Provide a default.
7022 (arm_gdbarch_register_os_abi): Declare new function.
7023 * arm-tdep.c (arm_abi_names): New array.
7024 (process_note_abi_tag_sections): New function.
7025 (get_elfosabi): New function.
7026 (arm_gdbarch_register_os_abi): New function.
7027 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7028 support for that ABI has been built in, then call the appropriate
7029 configuration routine. Use gdbarch_num_regs() to get the number
7031 (arm_dump_tdep): New function.
7032 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7033 place-holder functions.
7034 (_initialize_arm_tdep): Register them.
7035 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7037 * armnbsd-tdep.c: New file.
7038 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7039 * config/arm/nbsd.mt (TDEPFILES): Add it.
7040 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7042 * armnbsd-nat.c: Include regcache.h.
7043 * Makefile.in (armnbsd-nat.o): Update dependency list.
7045 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7047 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7049 * gdbserver/Makefile.in: Fix typos in target rules.
7051 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7053 Fix part of PR gdb/267.
7054 * linespec.c (find_methods): Handle constructors specially for now.
7056 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7058 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7060 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7061 standard_coerce_float_to_double().
7063 2002-02-14 Christopher Faylor <cgf@redhat.com>
7065 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7068 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7070 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7071 find_variant_by_name, because it confuses the multiarch
7072 framework. Return NULL if there isn't an architecture with the
7073 user supplied name, instead of forcing a different one without
7074 recording the change with the multiarch machinery.
7075 (find_variant_by_name): Delete.
7077 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7079 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7080 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7082 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7084 * stack.c (print_frame_info_base): When calling
7085 print_frame_info_listing_hook, set current_source_symtab.
7087 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7089 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7090 and remove unused $(INCLUDE_DIR).
7091 Add regcache.c to OBS.
7092 Add generated register protocol files to clean target.
7093 Update dependencies for new objects, obsolete old target code.
7095 * gdbserver/linux-low.c: Remove all platform-specific code to
7096 new files. Remove various dead code. Update to use regcache
7098 * gdbserver/remote-utils.c (fromhex): Add return statement
7100 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7102 (input_interrupt): Add integer parameter to match prototype
7103 of a signal handler.
7104 (outreg): Use register_data ().
7105 (prepare_resume_reply): Use gdbserver_expedite_regs.
7106 * gdbserver/server.c (main): Dynamically allocate own_buf because
7107 PBUFSIZ is no longer constant. Use registers_to_string () and
7108 registers_from_string ().
7109 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7110 for error (), fatal (), and warning (). Update definition of
7111 PBUFSIZ to use regcache functionality. Add include guard.
7112 * gdbserver/utils.c (fatal): Add missing ``const''.
7113 (warning): New function.
7115 * regformats/regdat.sh: Include "regcache.h" in generated files.
7116 Provide init_registers () function.
7117 * regformats/regdef.h: Add prototype for set_register_cache ().
7120 * gdbserver/linux-arm-low.c: New file.
7121 * gdbserver/linux-i386-low.c: New file.
7122 * gdbserver/linux-ia64-low.c: New file.
7123 * gdbserver/linux-m68k-low.c: New file.
7124 * gdbserver/linux-mips-low.c: New file.
7125 * gdbserver/linux-ppc-low.c: New file.
7126 * gdbserver/linux-sh-low.c: New file.
7128 * gdbserver/regcache.c: New file.
7129 * gdbserver/regcache.h: New file.
7131 * gdbserver/low-linux.c: Removed obsolete file.
7133 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7135 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7136 * config/i386/linux.mt: Likewise.
7137 * config/ia64/linux.mt: Likewise.
7138 * config/m68k/linux.mh: Likewise.
7139 * config/powerpc/linux.mh: Likewise.
7140 * config/mips/linux.mt: Likewise.
7142 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7144 * config/i386/i386lynx.mh: Mark gdbserver variables
7145 as (currently) obsolete for this target.
7146 * config/i386/nbsd.mt: Likewise.
7147 * config/i386/nbsdelf.mt: Likewise.
7148 * config/m32r/m32r.mt: Likewise.
7149 * config/m68k/m68klynx.mh: Likewise.
7150 * config/m68k/nbsd.mt: Likewise.
7151 * config/m68k/sun3os4.mh: Likewise.
7152 * config/mips/vr5000.mt: Likewise.
7153 * config/ns32k/nbsd.mt: Likewise.
7154 * config/pa/hppabsd.mh: Likewise.
7155 * config/pa/hppaosf.mh: Likewise.
7156 * config/powerpc/nbsd.mt: Likewise.
7157 * config/rs6000/rs6000lynx.mh: Likewise.
7158 * config/s390/s390.mt: Likewise.
7159 * config/s390/s390x.mt: Likewise.
7160 * config/sparc/sparclynx.mh: Likewise.
7161 * config/sparc/sun4os4.mh: Likewise.
7162 * config/i386/x86-64linux.mt: Likewise.
7163 * config/sparc/linux.mh: Likewise.
7165 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7167 * configure.tgt: Configure gdbserver only for known working
7168 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7169 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7170 SUBDIRS if it is configured. Update comment for ${nativefile}.
7171 * configure: Regenerated.
7173 2002-02-13 Michael Snyder <msnyder@redhat.com>
7175 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7177 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7178 (default_gcore_mach): Just return 0, work around a problem in bfd.
7179 (default_gcore_target): OK to return NULL if exec_bfd is null.
7180 (make_mem_sec): Use a cast, avoid a warning.
7182 * procfs.c (find_memory_regions_callback): Use a cast instead of
7183 calling host_pointer_to_address (which complains if
7184 sizeof (host pointer) != sizeof (target pointer)).
7185 (procfs_make_note_section): Avoid overflow in psargs string.
7187 * procfs.c (procfs_make_note_section): Make the default
7188 implementation return an error.
7190 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
7192 * procfs.c (procfs_make_note_section): Provide a default definition
7193 (for alpha-dec-osf4.0f). Fix typos.
7195 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
7197 * linux-proc.c: Add include of regcache.h.
7198 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7200 2002-02-13 Andrew Cagney <ac131313@redhat.com>
7202 From 2002-01-18 Greg McGary <greg@mcgary.org>:
7203 * memattr.c (create_mem_region): Disallow useless empty region.
7204 Regions are half-open intervals, so allow [A..B) [B..C) as
7207 2002-02-13 Michael Chastain <mec@shout.net>
7209 * defs.h: Kill CONST_PTR.
7210 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7211 * c-lang.c (c_builtin_types): Likewise.
7212 * ch-lang.c (ch_builtin_types): Likewise.
7213 * f-lang.c (f_builtin_types): Likewise.
7214 * language.c (unknown_builtin_types): Likewise.
7215 * m2-lang.c (m2_builtin_types): Likewise.
7216 * p-lang.c (pascal_builtin_types): Likewise.
7217 * scm-lang.c (c_builtin_types): Likewise.
7219 2002-02-13 Keith Seitz <keiths@redhat.com>
7221 * arm-tdep.h (arm_get_next_pc): Add declaration.
7223 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
7225 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
7226 with other related struct-returning functions.
7227 (arm_extract_struct_value_address): New function.
7228 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
7229 initialize float_format, double_format and long_double_format as
7230 appropriate to the endianness of the target.
7231 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
7232 (arm_use_struct_convention): Delete declaration.
7233 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7235 2002-02-13 Keith Seitz <keiths@redhat.com>
7237 * defs.h (core_addr_to_string_nz): New function.
7239 2002-02-13 Mark Kettenis <kettenis@gnu.org>
7241 Apply missing bits of 2002-01-15 patch.
7242 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
7243 (fill_fpregset): Use i387_fill_fsave.
7245 2002-02-12 Keith Seitz <keiths@redhat.com>
7247 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
7248 (core_addr_to_string_nz): New function.
7250 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7252 * arm-linux-nat.c: Really include arm-tdep.h.
7253 * config/arm/tm-linux.h (struct type, struct value): Declare.
7255 2002-02-11 Michael Snyder <msnyder@redhat.com>
7257 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
7258 (gcore section): Ifdef for Solaris and Unixware only.
7259 (procfs_do_thread_registers): Unixware needs one lwpstatus
7260 per thread (not one prstatus or pstatus).
7261 (procfs_make_note_section): Iterate only over kernel threads (lwps),
7262 not over all gdb threads. For unixware, call elfcore_write_pstatus
7263 once before iterating over threads.
7265 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7267 * arm-tdep.h: New file.
7268 * arm-tdep.c: Include arm-tdep.h.
7269 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7270 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7271 (arm_print_float_info, arm_register_type, convert_to_extended)
7272 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7273 (arm_extract_return_value, arm_register_name): Make static.
7274 (arm_software_single_step): Similarly. Fix types in declaration.
7275 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
7276 (arm_store_return_value, arm_store_struct_return): New functions.
7277 (arm_gdbarch_init): Register the above functions. Also register
7278 call_dummy_start_offset, sizeof_call_dummy_words,
7279 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
7280 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
7281 max_register_virtual_size, register_size. Set up
7282 prologue_cache.saved_regs here, rather than ...
7283 (_initialize_arm_tdep): ... here.
7284 * config/arm/tm-arm.h (struct type, struct value): Delete forward
7286 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7287 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7288 (arm_print_float_info, arm_register_type, convert_to_extended)
7289 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7290 (arm_extract_return_value, arm_register_name): Delete declarations.
7291 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
7292 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
7293 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
7294 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
7295 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7296 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
7297 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
7298 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
7299 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
7300 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
7301 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
7302 (arm_get_next_pc): No-longer static -- these are needed by the RDI
7304 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
7305 * remote-rdi.c remote-rdp.c: Likewise.
7306 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
7307 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
7308 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
7311 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
7312 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
7313 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
7314 from non-ARM_ prefixed definitions.
7315 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7317 * remote-rdi.c remote-rdp.c: Likewise.
7318 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7320 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7322 * arm-tdep.c (arm_frameless_function_invocation)
7323 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7324 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7325 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7326 (arm_pop_frame, arm_get_next_pc): Make static.
7327 (arm_gdbarch_init): Register above in gdbarch structure.
7328 (arm_read_fp): Renamed from arm_target_read_fp.
7329 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7330 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7331 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7332 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7333 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7334 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7335 (arm_pc_is_thumb_dummy): Delete declarations.
7336 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7337 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7338 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7339 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7341 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7343 * symtab.c (compare_search_syms): New function.
7344 (sort_search_symbols): New function.
7345 (search_symbols): Sort symbols after searching rather than
7348 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7350 * NEWS: Linux -> GNU/Linux.
7352 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7354 * gdbarch.sh: For for level one methods, disallow a definition
7355 when partially multi-arched. Add comments explaining rationale.
7356 * gdbarch.h: Re-generate.
7358 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7360 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7363 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7365 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7367 * gdbarch.c: Re-generate.
7369 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7371 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7372 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7375 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7377 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7379 (PUSH_ARGUMENTS): Switch to using predefault.
7380 * gdbarch.c: Regenerate.
7382 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7384 * valops.c (PUSH_ARGUMENTS): Delete definition.
7385 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7386 partial. Default to default_push_arguments.
7387 * gdbarch.h, gdbarch.c: Regenerate.
7389 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7391 * defs.h (throw_exception): Rename return_to_top_level. Update
7393 * utils.c (error_stream, internal_verror, quit): Ditto.
7394 * top.c (throw_exception, catcher): Ditto.
7395 * sparclet-rom.c (sparclet_load): Ditto.
7396 * remote.c (interrupt_query, minitelnet): Ditto.
7397 * remote-sds.c (interrupt_query): Ditto.
7398 * remote-mips.c (mips_error, mips_kill): Ditto.
7399 * ocd.c (interrupt_query): Ditto.
7400 * monitor.c (monitor_interrupt_query): Ditto.
7401 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7402 * target.h: Update comment.
7404 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7406 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7408 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7409 default_double_format.
7410 * gdbarch.h, gdbarch.c: Re-generate.
7411 * findvar.c (floatformat_unknown): Delete variable definition.
7412 * doublest.h (floatformat_unknown): Delete variable declaration.
7414 2002-02-09 Jim Blandy <jimb@redhat.com>
7416 * stabsread.c (read_type): Add code to parse Sun's syntax for
7417 prototyped function types.
7419 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7421 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7422 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7424 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7426 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7427 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7428 now _initialize_xcoffsolib gets called again and overrides the
7429 commands from solib.c in a native configuration.
7431 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7433 * doublest.c (store_typed_floating): Don't try to return a value.
7436 2002-02-08 Jim Blandy <jimb@redhat.com>
7438 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7439 is prototyped and has no arguments, print its argument list as
7442 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7444 * MAINTAINERS (write-after-approval): Add myself.
7445 (paper-trail): I've escaped!
7447 2002-02-08 Christopher Faylor <cgf@redhat.com>
7449 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7451 (_initialize_check_for_gdb_ini): Ditto.
7453 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7455 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7456 xaprintf -> xasprintf.
7458 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7460 * win32-nat.c: Remove use of printf and sprintf functions.
7462 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7464 * arm-tdep.c (arm_frame_chain_valid): Make static.
7465 (arm_push_arguments): Likewise.
7466 (arm_gdbarch_init): New function.
7467 (_initialize_arm_tdep): Call it.
7468 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7469 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7470 (FRAME_CHAIN_VALID): Delete.
7471 (arm_frame_chain_valid): Delete declaration.
7472 (PUSH_ARGUMENTS): Delete.
7473 (arm_push_arguments): Delete declaration.
7474 (CALL_DUMMY_P): Delete.
7476 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7477 Corinna Vinschen <vinschen@redhat.com>
7479 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7480 on builtin float types.
7482 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7484 * utils.c: Include <curses.h> before "bfd.h".
7485 * tui/tui-hooks.c: Likewise.
7486 * tui/tui.c: Likewise.
7487 * tui/tuiCommand.c: Likewise.
7488 * tui/tuiData.c: Likewise.
7489 * tui/tuiDataWin.c: Likewise.
7490 * tui/tuiDisassem.c: Likewise.
7491 * tui/tuiGeneralWin.c: Likewise.
7492 * tui/tuiIO.c: Likewise.
7493 * tui/tuiLayout.c: Likewise.
7494 * tui/tuiRegs.c: Likewise.
7495 * tui/tuiSource.c: Likewise.
7496 * tui/tuiSourceWin.c: Likewise.
7497 * tui/tuiStack.c: Likewise.
7498 * tui/tuiWin.c: Likewise.
7500 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7502 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7503 to include space for pseudoregs as well. Update loops accordingly.
7504 (sh_fp_frame_init_saved_regs): Ditto.
7505 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7507 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7509 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7510 Add Richard Earnshaw to Arm maintainers.
7512 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7514 * defs.h (warning_begin): Delete declaration.
7516 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7519 2002-02-07 Michael Snyder <msnyder@redhat.com>
7521 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7522 Logic bug, remove misplaced else.
7524 2002-02-07 Klee Dienes <klee@apple.com>
7526 * fork-inferior.c (fork_inferior): Add '!' to the list of
7527 characters that need to be quoted when building a string for the
7528 shell. Quote '!' specifically with a backslash, since CSH chokes
7529 when trying to evaluate "str!str".
7531 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7533 * rdi-share/host.h: Only provide a typedef for bool if it is not
7536 2002-02-04 Michael Snyder <msnyder@redhat.com>
7538 * breakpoint.h (enum bptype): Add new overlay event bp type.
7539 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7541 * breakpoint.c (create_internal_breakpoint): New function.
7542 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7543 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7544 (create_thread_event_breakpoint): Ditto.
7545 (create_solib_event_breakpoint): Ditto.
7546 (create_overlay_event_breakpoint): New function.
7547 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7548 (update_breakpoints_after_exec): Delete and re-initialize
7549 overlay event breakpoints after an exec. Add FIXME comment
7550 about longjmp breakpoint.
7551 (print_it_typical): Ignore overlay event breakpoints.
7552 (print_one_breakpoint): Ditto.
7554 (bpstat_what): Do not stop for overlay event breakpoints.
7555 (delete_breakpoint): Don't delete overlay event breakpoints.
7556 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7557 (breakpoint_re_set): Re-create overlay event breakpoint.
7559 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7560 (overlay_manual_command): Disable overlay breakpoints.
7561 (overlay_off_command): Disable overlay breakpoints.
7563 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7565 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7566 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7567 to here from config/tm-arm.h.
7568 (coff_sym_is_thumb): Make static.
7569 (arm_elf_make_msymbol_special): New function.
7570 (arm_coff_make_msymbol_special): New function.
7571 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7572 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7573 (coff_sym_is_thumb): Delete declaration.
7574 (arm_elf_make_msymbol_special): Declare.
7575 (arm_coff_make_msymbol_special): Declare.
7576 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7577 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7579 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7581 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7583 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7585 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7586 * gdbarch.c gdbarch.h: Regenerate.
7587 * arch-utils.c (default_print_float_info): New function.
7588 * arch-utils.h (default_print_float_info): Prototype it.
7589 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7590 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7591 (PRINT_FLOAT_INFO): Document it.
7593 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7594 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7595 (PRINT_FLOAT_INFO): Define.
7597 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7599 * win32-nat.c (_initialize_check_for_gdb_ini):
7600 Add typecast to sprintf argument to suppress a warning.
7602 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7604 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7605 to allow easier handling of pass state.
7606 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7607 that gives exception name and address.
7608 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7609 and set last_sig value to ourstatus->value.sig. Some missing
7611 (child_continue): Correctly report continue_status.
7612 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7613 TARGET_SIGNAL_0 (new default value).
7614 (child_resume): consider sig argument passed to decide if
7615 the exception should be passed to debuggee or not.
7617 2002-02-05 Michael Snyder <msnyder@redhat.com>
7619 * regcache.c (fetch_register): Call target_fetch_register
7620 only if we don't call FETCH_PSEUDO_REGISTER.
7621 (store_register): Call target_store_register only if we
7622 don't call STORE_PSEUDO_REGISTER.
7624 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7626 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7627 ELF_MAKE_MSYMBOL_SPECIAL.
7628 * gdbarch.c, gdbarch.h: Regenerate.
7629 * arch-utils.c (default_make_msymbol_special): New function.
7630 * arch-utils.h (default_make_msymbol_special): Export.
7631 * elfread.c (elf_symtab_read): Compile use of
7632 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7634 * coffread.c (coff_symtab_read): Ditto, for
7635 COFF_MAKE_MSYMBOL_SPECIAL.
7637 2002-02-05 Jim Blandy <jimb@redhat.com>
7639 * solib-svr4.c (svr4_truncate_ptr): New function.
7640 (svr4_relocate_section_addresses): Do the address arithmetic with
7641 the appropriate truncation for target addresses, even when
7642 CORE_ADDR is larger than a target address.
7644 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7646 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7649 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7651 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7654 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7656 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7658 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7660 * gdbserver/linux-low.c: Remove unused include files.
7662 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7664 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7665 (read_inferior_memory): Use it.
7666 (write_inferior_memory): Likewise.
7668 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7670 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7671 grubbing through sys_errlist.
7673 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7675 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7677 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7678 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7680 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7682 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7683 (do_sfunc, set_cmd_sfunc): New functions.
7685 * command.h (struct cmd_list_element): Add field func.
7686 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7687 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7688 * cli/cli-decode.h: Ditto.
7690 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7691 (help_all, help_cmd_list): Ditto.
7692 (find_cmd, complete_on_cmdlist): Ditto.
7693 * top.c (execute_command): Ditto.
7695 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7698 * infcmd.c (notice_args_read): Fix function signature.
7700 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7701 * cli/cli-decode.c (add_set_cmd): Ditto.
7702 * utils.c (initialize_utils): Ditto.
7703 * maint.c (_initialize_maint_cmds): Ditto.
7704 * infrun.c (_initialize_infrun): Ditto.
7705 * demangle.c (_initialize_demangler): Ditto.
7706 * remote.c (add_packet_config_cmd): Ditto.
7707 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7708 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7709 * proc-api.c (_initialize_proc_api): Ditto.
7710 * kod.c (_initialize_kod): Ditto.
7711 * valprint.c (_initialize_valprint): Ditto.
7712 * top.c (init_main): Ditto.
7713 * infcmd.c (_initialize_infcmd): Ditto.
7714 * corefile.c (_initialize_core): Ditto.
7715 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7716 * arch-utils.c (initialize_current_architecture): Ditto.
7717 (_initialize_gdbarch_utils): Ditto.
7718 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7720 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7721 * wince.c (_initialize_inftarg): Ditto.
7722 * symfile.c (_initialize_symfile): Ditto.
7723 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7724 * language.c (_initialize_language): Ditto.
7725 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7727 2002-02-04 Michael Snyder <msnyder@redhat.com>
7729 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7731 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7733 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7734 Add rules for building the register data files.
7736 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7738 * regformats/regdat.sh: Add braces to the definition of
7739 expedite_regs_${arch}.
7741 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7743 * regformats/regdef.h (struct reg): Add comment describing the
7744 requirements for offset and size fields.
7746 2002-02-04 Andreas Schwab <schwab@suse.de>
7748 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7749 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7751 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7753 * gdbarch.sh (copyright): Update years in generated header.
7754 (SMASH_TEXT_ADDRESS): Add rule.
7755 * gdbarch.h, gdbarch.c: Re-generate.
7756 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7757 * dbxread.c: Likewise.
7758 * dwarfread.c: Likewise.
7759 * elfread.c: Likewise.
7760 * somread.c: Likewise.
7762 * arm-tdep.c (arm_smash_text_address): New function.
7763 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7765 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7767 Add support for hardware watchpoints on win32 native.
7768 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7769 CONTEXT_DEBUG_REGISTERS.
7770 (dr variable): New variable. Static array containing a local copy
7772 (debug_registers_changed): New variable. Reflects when debug registers
7773 are changed and need to be written to inferior.
7774 (debug_registers_used): New variable. Reflects when any debug register
7775 was set, used when new threads are created.
7776 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7778 (thread_rec): Set dr array if id is the thread of current_event .
7779 (child_continue, child_resume): Change the debug registers for all
7780 threads if debug_registers_changed.
7781 (child_add_thread): Change the debug registers if debug_registers_used.
7782 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7783 Link nm.h to new nm-cygwin.h file.
7784 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7785 of hardware registers.
7787 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7789 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7790 Restore behavour broken by 2002-01-20 Andrew Cagney
7791 <ac131313@redhat.com> IEEE_FLOAT removal.
7793 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7795 * c-valprint.c (c_val_print): Pass a proper valaddr to
7796 cp_print_class_method.
7797 * valops.c (search_struct_method): If there is only one method
7798 and args is NULL, return that method.
7800 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7802 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7803 accessing tag_name directly.
7805 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7807 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7808 of accessing tag_name directly.
7810 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7813 * gdbtypes.c (replace_type): New function.
7814 * gdbtypes.h (replace_type): Add prototype.
7815 * stabsread.c (read_type): Use replace_type.
7817 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7819 * Makefile.in (memattr.o): Add missing dependencies rule.
7821 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7823 * breakpoint.c (break_at_finish_command): Really export.
7824 (break_at_finish_at_depth_command): Ditto.
7825 (tbreak_at_finish_command): Ditto.
7826 * hppa-tdep.c: Include completer.h.
7827 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7828 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7830 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7832 * utils.c (do_write): New function.
7833 (error_stream): Rewrite combining the code from error_begin and
7835 (verror): Rewrite using error_stream.
7836 (error_begin): Delete function.
7838 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7840 * utils.c (error_begin): Make static.
7841 * defs.h (error_begin): Delete declaration.
7843 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7844 (decode_line_1): Use cplusplus_error instead of error_begin,
7845 cplusplus_hint and return_to_top_level.
7846 * coffread.c (coff_symfile_read): Use error instead of error_begin
7847 and return_to_top_level.
7848 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7850 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7852 * language.h (type_error, range_error): Make string parameter
7854 * language.c (warning_pre_print): Delete extern declaration.
7855 * dwarfread.c (warning_pre_print): Ditto.
7856 * language.c (type_error, range_error): Rewrite to use verror and
7857 vwarning instead of warning_begin.
7859 2002-02-01 Michael Snyder <msnyder@redhat.com>
7861 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7862 (set_ignore_count): Move misplaced comment back where it belongs.
7864 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7866 * command.h (NO_FUNCTION): Delete macro.
7867 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7868 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7869 * tracepoint.c (_initialize_tracepoint): Ditto.
7870 * cli/cli-decode.c (add_set_cmd): Ditto.
7871 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7873 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7875 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7876 Update ``this'' pointer when calling virtual functions.
7878 2002-02-01 Michael Snyder <msnyder@redhat.com>
7880 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7881 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7883 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7885 * regformats/reg-arm.dat: New file.
7886 * regformats/reg-i386.dat: New file.
7887 * regformats/reg-ia64.dat: New file.
7888 * regformats/reg-m68k.dat: New file.
7889 * regformats/reg-mips.dat: New file.
7890 * regformats/reg-ppc.dat: New file.
7891 * regformats/reg-sh.dat: New file.
7892 * regformats/regdef.h: New file.
7893 * regformats/regdat.sh: New file.
7895 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7897 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7898 (arm_frame_args_address, arm_frame_locals_address): New functions.
7899 (arm_frame_num_args): New function.
7900 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7901 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7902 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7904 2002-01-31 Michael Snyder <msnyder@redhat.com>
7906 * breakpoint.c (break_at_finish_command): Export.
7907 (break_at_finish_at_depth_command): Export.
7908 (tbreak_at_finish_command): Export.
7909 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7910 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7911 "tbreak" commands, which are HPPA specific.
7913 * printcmd.c (disassemble_command): Remove an ancient
7914 artifact of an old merge.
7916 * symfile.h (enum overlay_debugging_state):
7917 Define enum constant values for overlay mode.
7918 * symfile.c (overlay_debugging): Use enums instead of literals.
7919 (overlay_is_mapped, overlay_auto_command,
7920 overlay_manual_command): Ditto.
7922 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7923 breakpoint_here_p, breakpoint_inserted_here_p,
7924 breakpoint_thread_match, bpstat_stop_status,
7925 describe_other_breakpoints, check_duplicates, clear_command):
7926 Coding standard fixes.
7928 * target.c (target_xfer_memory): Add spaces, coding standard.
7929 (do_xfer_memory): Add missing line to trust-readonly
7930 code: check bfd SEC_READONLY flag for section.
7932 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7934 * PROBLEMS: Fix typo, 5.1->5.1.1.
7936 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7938 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7939 data symbols, since we search based on textlow and texthigh.
7940 (find_pc_sect_symtab): Likewise.
7942 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7944 * defs.h (vwarning): Declare.
7945 * utils.c (vwarning): New function.
7946 (warning): Call vwarning.
7947 (warning_begin): Delete function.
7949 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7950 the warning message.
7951 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7954 2002-01-30 Michael Snyder <msnyder@redhat.com>
7956 * NEWS: Mention "set trust-readonly-sections" command.
7957 Mention generate-core-file command.
7959 2002-01-15 Michael Snyder <msnyder@redhat.com>
7961 * target.c: New command, "set trust-readonly-sections on".
7962 (do_xfer_memory): Honor the suggestion to trust readonly sections
7963 by reading them from the object file instead of from the target.
7964 (initialize_targets): Register command "set trust-readonly-sections".
7966 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7968 * parse.c (target_map_name_to_register): Simplify, search regs and
7969 pseudo-regs using a single loop.
7971 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7973 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7975 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7977 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7978 * config/i386/i386v42mp.mh: Add i387-nat.o .
7979 * i386v4-nat.c: Include i387-nat.h.
7980 (supply_fpregset): Use i387_supply_fsave.
7981 (fill_fpregset): Use i387_fill_fsave.
7983 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7985 * arm-tdep.c (arm_call_dummy_words): Define.
7986 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7987 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7988 (CALL_DUMMY_WORDS): Define.
7989 (arm_call_dummy_words): Declare.
7990 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7991 (arm_linux_call_dummy_words): Declare.
7993 2002-01-30 Andreas Schwab <schwab@suse.de>
7995 * m68klinux-nat.c: Fix last change to use regcache_collect
7996 instead of referencing registers[] directly.
7998 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8000 * parse.c (target_map_name_to_register): Delete code wrapped in
8001 #ifdef REGISTER_NAME_ALIAS_HOOK.
8003 2002-01-28 Michael Snyder <msnyder@redhat.com>
8005 * regcache.c (legacy_read_register_gen): Need to be able to
8006 read pseudo-register as well as real register.
8007 (legacy_write_register_gen): Ditto.
8009 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8011 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8012 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8013 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8014 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8015 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8016 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8017 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8018 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8019 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8020 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8021 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8022 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8023 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8024 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8025 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8026 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8027 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8028 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8029 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8030 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8032 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8034 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8035 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8036 (initialize_current_architecture): Update target_byte_order using
8037 information from BFD.
8038 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
8039 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8041 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8043 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8044 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8046 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8047 #ifdef INVALID_FLOAT.
8048 * infcmd.c (do_registers_info): Ditto.
8049 * values.c (unpack_double): Ditto. Add comment.
8051 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8052 already commented out.
8054 2002-01-26 Andreas Schwab <schwab@suse.de>
8056 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8057 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8058 registers and add support for PTRACE_GETREGS.
8060 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8062 GDB 5.1.1 released from 5.1 branch.
8063 * NEWS: Add 5.1.1 news.
8064 * README: Sync with 5.1 branch.
8066 2002-01-23 Fred Fish <fnf@redhat.com>
8068 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8069 stabstring on initial malloc. Reallocing will copy it for us,
8072 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8074 * Makefile.in (hpread_h): Delete.
8075 (HFILES_NO_SRCDIR): Remove hpread.h.
8076 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8077 (hpread.o): Update dependencies.
8078 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8080 * hp-psymtab-read.c: Remove file.
8081 * hp-symtab-read.c: Remove file.
8082 * hpread.h: Remove file.
8084 * hpread.c: Merge all contents of hp-psymtab-read.c,
8085 hp-symtab-read.c and hpread.h into this file, as it was prior to
8088 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8089 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8090 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8091 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8093 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8095 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8096 fill_gregset): Call gdbarch_tdep() just once, assign result to
8097 variable and use that, instead of calling the function several
8100 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8102 * configure.host: Accept sparcv9 as alias for sparc64.
8103 * configure.tgt: Likewise.
8105 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8107 * solib-aix5.c (build_so_list_from_mapfile)
8108 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8109 arguments is not reversed.
8110 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8111 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8113 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8115 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8116 modified version of obsolete sh_fetch_pseudo_register.
8117 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8118 (sh4_register_read): New function.
8119 (sh_pseudo_register_write): New function. Renamed and modified
8120 version of obsolete sh_store_pseudo_register.
8121 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8122 (sh4_register_write): New function.
8123 (sh_gdbarch_init): Remove setting of gdbarch function
8124 fetch_pseudo_register and store_pseudo_register. Remove setting of
8125 register_convert_to_raw, register_convert_to_virtual,
8126 register_convertible.
8127 (sh_sh4_register_convertible): Delete. No longer needed. All is
8128 taken care by architecture specific functions
8129 register_read/register_write.
8130 (sh_sh4_register_convert_to_virtual): Make static.
8131 (sh_sh4_register_convert_to_raw): Ditto.
8133 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8135 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8136 (floatformat_is_nan, floatformat_mantissa): Ditto.
8138 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8139 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8140 builtin_type_ieee_double_little,
8141 builtin_type_ieee_double_littlebyte_bigword,
8142 builtin_type_m68881_ext, builtin_type_i960_ext,
8143 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8144 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8145 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8146 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8148 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8150 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8151 parameter. Set frameless flag if it exists and depended of
8152 whether the scanned function is frameless or not.
8153 (xstormy16_skip_prologue): If function is frameless, return
8154 result of xstormy16_scan_prologue().
8155 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8158 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8160 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8161 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8162 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8163 sh_sh4_register_byte, sh_sh4_register_raw_size,
8164 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8165 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8166 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8167 sh_store_pseudo_register, sh_do_pseudo_register): Call
8168 gdbarch_tdep() just once, assign result to variable and use that,
8169 instead of calling the function several times.
8171 2002-01-20 Mark Kettenis <kettenis@gnu.org>
8173 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8174 macros instead of LAST_FPU_CTRL_REGNUM.
8175 (store_register): Likewise.
8177 2002-01-21 Jim Blandy <jimb@redhat.com>
8179 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8180 is up-to-date before running the program, not just when a program
8183 2002-01-21 Fred Fish <fnf@redhat.com>
8185 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8186 when we have found all instructions we are looking for.
8188 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8190 * arm-tdep.c (arm_register_name): New function.
8191 (arm_registers_names): Make static.
8192 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8193 (arm_register_name): Declare.
8194 (REGISTER_NAME): Use it.
8196 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8197 Kevin Buettner <kevinb@redhat.com>
8199 Convert arm targets to new FRAME interface.
8200 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8201 (arm_frame_find_save_regs): Delete.
8202 (arm_frame_init_saved_regs): New.
8203 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8204 Allocate extra_info as required. Convert all uses of fsr.regs
8205 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8207 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8208 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8209 (check_prologue_cache, save_prologue_cache): Likewise.
8210 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8211 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8212 (FRAME_FIND_SAVED_REGS): Delete.
8213 (arm_frame_find_saved_regs): Delete prototype.
8214 (arm_frame_init_saved_regs): New prototype.
8215 (FRAME_INIT_SAVED_REGS): Define.
8217 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8219 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8221 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8223 From Jeff Law <law@redhat.com>:
8224 * infttrace.c: Include <sys/pstat.h>.
8225 (child_pid_to_exec_file): Revamp. Use pstat call to get the
8226 exec file if the ttrace equivalent fails.
8228 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8230 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
8231 (closeLogFile): Ditto.
8233 2002-01-20 Michael Chastain <mec@shout.net>
8235 * top.c (print_gdb_version): Bump copyright year to 2002.
8237 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8239 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
8240 Zannoni and Eli Zaretskii.
8242 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8244 * buildsym.c: Update copyright years.
8245 * c-typeprint.c: Likewise.
8246 * dwarf2read.c: Likewise.
8247 * f-typeprint.c: Likewise.
8248 * gdbtypes.c: Likewise.
8249 * gdbtypes.h: Likewise.
8250 * hp-symtab-read.c: Likewise.
8251 * hpread.c: Likewise.
8252 * mdebugread.c: Likewise.
8253 * p-typeprint.c: Likewise.
8255 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8257 * remote-sim.c (gdbsim_open): Simplify code testing the macro
8258 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
8259 byte-order selectable.
8260 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
8261 * arch-utils.c: Ditto.
8262 (set_endian): Ditto.
8263 (set_endian_from_file): Ditto.
8264 * gdbserver/low-sim.c (create_inferior): Ditto.
8265 * gdbarch.sh: Ditto.
8266 * gdbarch.h: Re-generate.
8267 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8268 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
8269 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
8270 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8271 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8272 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8273 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
8274 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
8276 * config/mips/tm-wince.h: Remove #undef of macro
8277 TARGET_BYTE_ORDER_SELECTABLE.
8278 * config/sh/tm-wince.h: Ditto.
8280 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8282 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
8283 member function fields. Add accessor macro
8284 TYPE_FN_FIELD_ARTIFICIAL.
8285 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
8286 * c-typeprint.c (c_type_print_base): Skip artificial member
8289 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8291 * f-typeprint.c: Delete unused function f_type_print_args.
8292 * p-typeprint.c: Delete unused function pascal_type_print_args.
8294 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8296 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
8297 comment. Add ``artificial'' to ``union field_location''.
8299 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
8301 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
8302 * mdebugread.c (parse_symbol): Likewise.
8303 * stabsread.c (define_symbol): Likewise.
8304 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
8305 initializing TYPE_FIELD_BITPOS to n (obsolete).
8306 (hpread_doc_function_type): Likewise.
8307 * hpread.c (hpread_function_type): Likewise.
8309 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8311 * configure.in (host_makefile_frag): Only require a host makefile
8312 fragment when a native build.
8313 * configure: Re-generate.
8315 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8317 * doublest.h (floatformat_from_type): Declare.
8318 * doublest.c (floatformat_from_type): New function.
8319 (convert_typed_floating): Use.
8321 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8322 call to function floatformat_from_type.
8324 * gdbarch.sh (IEEE_FLOAT): Delete.
8325 * gdbarch.h, gdbarch.c: Re-generate.
8326 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8327 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8328 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8329 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8330 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8331 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8332 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8333 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8334 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8335 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8336 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8337 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8339 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8340 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8341 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8342 * sh-tdep.c (sh_gdbarch_init): Ditto.
8343 * mips-tdep.c (mips_gdbarch_init): Ditto.
8344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8345 * cris-tdep.c (cris_gdbarch_init): Ditto.
8347 2002-01-20 Jiri Smid <smid@suse.cz>
8349 * configure.host, configure.tgt: Support x86-64.
8350 * NEWS: Note new target x86-64.
8352 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8353 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8354 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8355 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8356 x86-64-linux-nat.o): Fix dependencies.
8358 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8360 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8361 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8362 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8363 * config/sparc/xm-sun4os4.h: Delete file.
8364 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8366 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8368 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8369 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8370 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8371 * config/i386/i386lynx.mh (XM_FILE): Delete.
8372 * config/rs6000/xm-rs6000ly.h: Delete file.
8373 * config/sparc/xm-sparclynx.h: Delete file.
8374 * config/m68k/xm-m68klynx.h: Delete file.
8375 * config/i386/xm-i386lynx.h: Delete file.
8376 * config/xm-lynx.h: Delete file.
8377 * config/djgpp/fnchange.lst: Update.
8379 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8381 * alpha-tdep.c (alpha_register_byte): New function.
8382 (alpha_register_raw_size): Ditto.
8383 (alpha_register_virtual_size): Ditto.
8384 (alpha_skip_prologue_internal): Renamed from
8385 alpha_skip_prologue.
8386 (alpha_skip_prologue): New version that calls
8387 alpha_skip_prologue_internal.
8388 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8389 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8390 second argument from alpha_skip_prologue.
8391 (REGISTER_BYTE): Use alpha_register_byte.
8392 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8393 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8394 (FRAMELESS_FUNCTION_INVOCATION): Use
8395 generic_frameless_function_invocation_not.
8396 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8397 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8399 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8401 * config/mips/xm-news-mips.h: Delete file.
8402 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8404 * config/m88k/xm-m88k.h: Delete file.
8405 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8406 * config/m88k/xm-delta88v4.h: Ditto.
8407 * config/m88k/xm-delta88.h: Ditto.
8409 * config/alpha/xm-fbsd.h: Delete file.
8410 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8412 * config/sparc/xm-sparc.h: Delete file.
8413 * Makefile.in (xm-sun4os4.h): Delete dependency.
8414 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8415 * config/sparc/xm-sun4os4.h: Ditto.
8416 * config/sparc/xm-linux.h: Ditto.
8418 * config/i386/xm-windows.h: Delete file.
8420 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8422 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8423 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8425 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8427 * alpha-tdep.c (alpha_call_dummy_words): New.
8428 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8429 (CALL_DUMMY_P): Define.
8430 (CALL_DUMMY_WORDS): Define.
8431 (SIZEOF_CALL_DUMMY_WORDS): Define.
8433 2002-01-19 Per Bothner <per@bothner.com>
8435 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8436 isn't NULL, which can happen with some gcj-3.x-produced code.
8438 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8440 * alpha-tdep.c (alpha_register_virtual_type): New function.
8441 (alpha_init_frame_pc_first): Ditto.
8442 (alpha_fix_call_dummy): Ditto.
8443 (alpha_store_struct_return): Ditto.
8444 (alpha_extract_struct_value_address): Ditto.
8445 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8446 alpha_register_virtual_type.
8447 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8448 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8449 alpha_extract_struct_value_address.
8450 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8451 (INIT_FRAME_PC): Use init_frame_pc_noop.
8452 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8454 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8456 * i386gnu-nat.c: Include "i386-tdep.h".
8457 (fetch_fpregs): Simplify code dealing with uninitialized floating
8458 point states such that it doesn't require FP7_REGNUM.
8460 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8462 * alpha-tdep.c (frame_extra_info): New.
8463 (alpha_find_saved_regs): Make static. Use
8465 (alpha_frame_init_saved_regs): New function.
8466 (alpha_frame_saved_pc): Use frame->extra_info.
8467 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8468 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8469 (init_extra_frame_info): Rename to...
8470 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8471 (alpha_print_extra_frame_info): New function.
8472 (alpha_frame_locals_address): Ditto.
8473 (alpha_frame_args_address): Ditto.
8474 (alpha_pop_frame): Use frame->extra_info.
8475 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8476 alpha_frame_args_address.
8477 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8478 (alpha_find_saved_regs): Remove prototype.
8479 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8480 (EXTRA_FRAME_INFO): Remove.
8481 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8482 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8484 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8486 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8487 (alpha_cannot_fetch_register): Ditto.
8488 (alpha_cannot_store_register): Ditto.
8489 (alpha_register_convertible): Ditto.
8490 (alpha_use_struct_convention): Ditto.
8491 * config/alpha/tm-alpha.h: Update copyright years.
8492 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8493 (INNER_THAN): Use core_addr_lessthan.
8494 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8495 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8496 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8497 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8498 (FRAME_CHAIN): Remove unnecessary cast.
8500 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8502 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8505 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8507 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8508 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8509 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8510 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8511 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8512 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8513 * x86-64-linux-nat.c: Ditto.
8515 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8517 * alpha-tdep.c (alpha_register_name): New function.
8518 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8519 (REGISTER_NAME): Define.
8521 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8523 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8525 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8527 * alpha-tdep.c: Update copyright years.
8528 (alpha_next_pc): New function.
8529 (alpha_software_single_step): Ditto.
8530 * config/alpha/tm-alpha.h: Add prototype for
8531 alpha_software_single_step.
8533 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8535 * alphabsd-nat.c: Update copyright years.
8536 (fill_gregset): Use regcache_collect.
8537 (fill_fpregset): Likewise.
8538 (fetch_inferior_registers): Only fetch integer registers
8539 if requested to do so.
8540 (store_inferior_registers): Only store integer registers
8541 if requested to do so.
8543 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8545 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8546 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8547 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8548 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8549 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8550 * config/arm/linux.mh (XDEPFILES): Delete.
8551 * config/arm/nbsd.mh (XDEPFILES): Delete.
8552 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8553 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8554 * config/i386/i386m3.mh (XDEPFILES): Delete.
8555 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8556 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8557 * config/i386/fbsd.mh (XDEPFILES): Delete.
8558 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8559 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8560 * config/i386/i386v4.mh (XDEPFILES): Delete.
8561 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8562 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8563 * config/i386/i386aix.mh (XDEPFILES): Delete.
8564 * config/i386/go32.mh (XDEPFILES): Delete.
8565 * config/i386/cygwin.mh (XDEPFILES): Delete.
8566 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8567 * config/i386/i386mach.mh (XDEPFILES): Delete.
8568 * config/i386/i386v32.mh (XDEPFILES): Delete.
8569 * config/i386/linux.mh (XDEPFILES): Delete.
8570 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8571 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8572 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8573 * config/i386/i386sco.mh (XDEPFILES): Delete.
8574 * config/i386/i386v.mh (XDEPFILES): Delete.
8575 * config/i386/nbsd.mh (XDEPFILES): Delete.
8576 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8577 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8578 * config/i386/symmetry.mh (XDEPFILES): Delete.
8579 * config/i386/obsd.mh (XDEPFILES): Delete.
8580 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8581 * config/ia64/linux.mh (XDEPFILES): Delete.
8582 * config/ia64/aix.mh (XDEPFILES): Delete.
8583 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8584 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8585 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8586 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8587 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8588 * config/m68k/linux.mh (XDEPFILES): Delete.
8589 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8590 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8591 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8592 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8593 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8594 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8595 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8596 * config/m88k/delta88.mh (XDEPFILES): Delete.
8597 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8598 * config/m88k/m88k.mh (XDEPFILES): Delete.
8599 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8600 * config/mips/linux.mh (XDEPFILES): Delete.
8601 * config/mips/irix6.mh (XDEPFILES): Delete.
8602 * config/mips/irix5.mh (XDEPFILES): Delete.
8603 * config/mips/irix4.mh (XDEPFILES): Delete.
8604 * config/mips/irix3.mh (XDEPFILES): Delete.
8605 * config/mips/decstation.mh (XDEPFILES): Delete.
8606 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8607 (NATDEPFILES): Move core-aout.o to here.
8608 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8609 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8610 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8611 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8612 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8613 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8614 * config/pa/hpux11.mh (XDEPFILES): Delete.
8615 * config/powerpc/aix.mh (XDEPFILES): Delete.
8616 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8617 * config/powerpc/linux.mh (XDEPFILES): Delete.
8618 * config/romp/rtbsd.mh: Rename XDEPFILES.
8619 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8620 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8621 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8622 * config/s390/s390.mh (XDEPFILES): Delete.
8623 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8624 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8625 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8626 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8627 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8628 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8629 * config/sparc/linux.mh (XDEPFILES): Delete.
8630 * config/vax/vaxult.mh (XDEPFILES): Delete.
8631 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8632 * Makefile.in (DEPFILES): Remove XDEPFILES.
8634 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8636 * utils.c (internal_verror): Fix comments, default is yes not no.
8637 Update queries to match. Default to quit and dump core.
8639 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8641 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8643 * defs.h, event-top.c, gdbcmd.h: Ditto.
8644 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8645 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8646 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8647 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8648 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8649 * mi/mi-main.c:Ditto.
8651 * stack.c, symfile.c: Update copyright.
8653 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8655 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8656 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8657 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8658 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8660 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8662 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8663 * gdbserver/low-lynx.c (myattach): Likewise.
8664 * gdbserver/low-nbsd.c (myattach): Likewise.
8665 * gdbserver/low-sim.c (myattach): Likewise.
8666 * gdbserver/low-sparc.c (myattach): Likewise.
8667 * gdbserver/low-sun3.c (myattach): Likewise.
8669 * gdbserver/low-linux.c (myattach): New function.
8671 * gdbserver/server.c (attach_inferior): New function.
8672 (main): Handle "--attach".
8674 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8676 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8679 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8681 * c-typeprint.c (is_type_conversion_operator): Add additional
8682 check for non-conversion operators.
8684 2002-01-15 Michael Snyder <msnyder@redhat.com>
8686 * linux-proc.c: Add "info proc" command, a la procfs.c.
8687 (read_mapping): New function, abstract and re-use code.
8688 (linux_find_memory_regions): Use new func read_mapping.
8689 (linux_info_proc_cmd): New function, implement "info proc".
8690 (_initialize_linux_proc): Add new command "info proc".
8692 2002-01-15 Michael Snyder <msnyder@redhat.com>
8694 * symfile.c (generic_load): Use bfd_map_over_sections method
8695 instead of manipulating bfd structure members directly.
8696 (add_section_size_callback): New function, bfd sections callback
8697 used by generic_load.
8698 (load_sections_callback): New function, bfd sections callback
8699 used by generic_load.
8701 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8703 [Based on work by Jim Blandy]
8704 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8705 (builtin_type_vec128): Export.
8706 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8708 (builtin_type_vec128): New builtin type for 128 bit vector
8710 (build_gdbtypes): Initialize builtin_type_v16qi and
8711 builtin_type_v8hi. Create the vec128 register builtin type
8713 (build_builtin_type_vec128): New function.
8714 (_initialize_gdbtypes): Register builtin_type_v16qi and
8715 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8716 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8717 AltiVec register to new builtin type.
8719 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8721 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8724 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8726 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8727 CLEAN_UP_REGISTER_VALUE.
8728 * regcache.c (supply_register): Update only call.
8730 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8732 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8733 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8734 a29k-*-vxworks* targets as obsolete.
8736 2002-01-14 Michael Snyder <msnyder@redhat.com>
8738 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8739 until we can resolve portability issues.
8740 * gregset.h: Remove references to fpxregs.
8741 * gcore.c (gcore_command): Initialize note_sec to NULL.
8743 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8745 * signals.c (target_signal_to_name): Rewrite. Only use
8746 signals[].name when in bounds and non-NULL.
8748 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8750 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8751 * signals.c (target_signal_to_name): Verify that SIG is within the
8752 bounds of the signals array.
8754 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8756 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8758 2002-01-13 Keith Seitz <keiths@redhat.com>
8760 * stack.c (print_frame_info_base): Print the frame's pc
8761 only if when print_frame_info_listing_hook is not defined.
8763 2002-01-13 Keith Seitz <keiths@redhat.com>
8765 * varobj.c (varobj_set_value): Make sure that there were no
8766 errors evaluating the object before attempting to set its
8768 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8769 so this offset adjustment is no longer necessary.
8770 (create_child): Don't set the error flag if the child is
8772 (value_of_child): If value_fetch_lazy fails, return NULL
8773 so that callers will be notified that an error occurred.
8774 (c_value_of_variable): Delay check of variable's validity
8775 until later. We actually want all structs and unions to have
8777 Do not return "???" for variables which could not be evaluated.
8778 This error condition must be returned to the caller so that it
8779 can get the error condition from gdb.
8780 (cplus_name_of_child): Adjust index for vptr before figuring
8781 out the name of the child.
8782 (cplus_value_of_child): If a child's (real) parent is not valid,
8783 don't even bother trying to give a value for it. Just return
8784 an error. Change all instances in this function.
8785 (cplus_type_of_child): If our parent is one of the "fake"
8786 parents, we need to get at the type of the real parent, and
8787 derive the child's true type using this information.
8789 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8791 From 2002-01-09 John Marshall <johnm@falch.net>:
8792 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8793 sources.redhat.com, and tweak some related URLs which had
8794 suffered from linkrot.
8796 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8799 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8800 structures passed in registers.
8802 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8804 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8805 white space which prevented compilation. Reported by DSK
8806 <dsk@student.unsw.edu.au>.
8808 2002-01-11 Michael Snyder <msnyder@redhat.com>
8810 * symfile.c (build_section_addr_info_from_section_tab):
8811 Use bfd access method instead of manipulating bfd directly.
8812 (syms_from_objfile): Ditto.
8813 (simple_overlay_update_1): Ditto.
8814 (simple_overlay_update): Ditto.
8815 (generic_load): Ditto.
8816 (overlay_unmapped_address): FIXME comment, bfd access methods.
8817 (sections_overlap): FIXME comment, bfd access methods.
8818 (pc_in_mapped_range): FIXME comment, bfd access methods.
8819 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8820 (section_is_mapped): FIXME comment, bfd access methods.
8821 (section_is_overlay): FIXME comment, bfd access methods.
8823 * symfile.c (generic_load): Whitespace and long line cleanups.
8824 Remove duplicate variable, change several local variables to
8825 more appropriate data types.
8826 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8828 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8831 * language.c (longest_local_hex_string_custom): Use phex_nz to
8832 convert NUM to a hex string.
8834 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8836 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8838 Update Copyright year.
8840 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8842 * language.c (longest_raw_hex_string): Delete unused function.
8844 2002-01-11 Petr Sorfa <petrs@caldera.com>
8846 * MAINTAINERS (write-after-approval): Add myself.
8847 * dwarf2read.c (read_tag_string_type): Handling of
8849 (read_tag_string_type): FORTRAN fix to prevent propagation of
8851 (set_cu_language): Handling of DW_LANG_Fortran95
8853 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8855 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8856 GETPID(inferior_ptid).
8857 (store_inferior_registers): Likewise.
8859 2002-01-10 Jason Merrill <jason@redhat.com>
8861 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8864 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8866 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8867 and bfd/elf32-sh-nbsd.c.
8869 2002-01-10 Michael Snyder <msnyder@redhat.com>
8871 * NEWS: Mention --pid and corefile/proc-id behavior change.
8873 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8874 * gcore.c: Include cli/cli-decode.h instead of command.h.
8876 * main.c (captured_main): Add new command line option "--pid".
8877 If the second command line argument (following the symbol-file)
8878 begins with a digit, try to attach to it before trying to open
8880 (print_gdb_help): Document the "--pid" argument.
8882 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8884 * completer.c (command_completer): New function.
8886 * completer.h <command_completer>: Add prototype.
8888 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8889 completer for the "help" command.
8891 2002-01-09 Jason Merrill <jason@redhat.com>
8893 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8895 2002-01-09 Michael Snyder <msnyder@redhat.com>
8897 * i386-linux-nat.c (fill_fpxregset): Make global.
8898 (store_fpxregset): Ditto.
8900 * gregset.h (gdb_fpxregset_t): Define.
8901 (supply_fpxregset): Prototype.
8902 (fill_fpxregset): Prototype.
8904 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8906 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8908 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8909 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8910 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8912 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8914 * MAINTAINERS: Update target maintainer rules so that any
8915 Maintainer can approve a tested patch for a maintenance-only
8918 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8920 * MAINTAINERS (write-after-approval): Add myself.
8922 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8925 2002-01-08 Michael Snyder <msnyder@redhat.com>
8927 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8928 real name of the executable, rather than the /proc name.
8930 2002-01-03 Michael Snyder <msnyder@redhat.com>
8932 Implement a "generate-core-file" command in gdb, save target state.
8933 * gcore.c: New file. Implement new command 'generate-core-file'.
8934 Save a corefile image of the current state of the inferior.
8935 * linux-proc.c: Add linux-specific code for saving corefiles.
8936 * target.h (struct target_ops): Add new target vectors for saving
8937 corefiles; to_find_memory_regions and to_make_corefile_notes.
8938 (target_find_memory_regions): New macro.
8939 (target_make_corefile_notes): New macro.
8940 * target.c (update_current_target): Inherit new target methods.
8941 (dummy_find_memory_regions): New place-holder method.
8942 (dummy_make_corefile_notes): New place-holder method.
8943 (init_dummy_target): Initialize new dummy target vectors.
8944 * exec.c (exec_set_find_memory_regions): New function.
8945 Allow the exec_ops vector for memory regions to be taken over.
8946 (exec_make_note_section): New function, target vector method.
8947 * defs.h (exec_set_find_memory_regions): Export prototype.
8948 * procfs.c (proc_find_memory_regions): New function, corefile method.
8949 (procfs_make_note_section): New function, corefile method.
8950 (init_procfs_ops): Set new target vector pointers.
8951 (find_memory_regions_callback): New function.
8952 (procfs_do_thread_registers): New function.
8953 (procfs_corefile_thread_callback): New function.
8954 * sol-thread.c (sol_find_memory_regions): New function.
8955 (sol_make_note_section): New function.
8956 (init_sol_thread_ops): Initialize new target vectors.
8957 * inftarg.c (inftarg_set_find_memory_regions): New function.
8958 Allow to_find_memory_regions vector to be taken over.
8959 (inftarg_set_make_corefile_notes): New function.
8960 Allow to_make_corefile_notes vector to be taken over.
8961 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8962 interface layer if not target_has_execution (may be a corefile).
8963 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8964 * config/sparc/sun4sol2.mh: Ditto.
8965 * config/alpha/alpha-linux.mh: Ditto.
8966 * config/arm/linux.mh: Ditto.
8967 * config/i386/x86-64linux.mh: Ditto.
8968 * config/ia64/linux.mh: Ditto.
8969 * config/m68k/linux.mh: Ditto.
8970 * config/mips/linux.mh: Ditto.
8971 * config/powerpc/linux.mh: Ditto.
8972 * config/sparc/linux.mh: Ditto.
8974 2002-01-07 Michael Snyder <msnyder@redhat.com>
8976 * arm-linux-nat.c: Remove references to regcache.c internal data
8977 (registers[] and register_valid[]).
8979 2002-01-07 Michael Snyder <msnyder@redhat.com>
8981 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8982 so that attaching to a pid will automatically read the process's
8983 symbol file and shlibs.
8984 * Makefile.in: Add rule for linux-proc.o.
8985 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8986 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8987 * config/arm/linux.mh: Ditto.
8988 * config/i386/linux.mh: Ditto.
8989 * config/i386/x86-64linux.mh: Ditto.
8990 * config/ia64/linux.mh: Ditto.
8991 * config/m68k/linux.mh: Ditto.
8992 * config/mips/linux.mh: Ditto.
8993 * config/powerpc/linux.mh: Ditto.
8994 * config/sparc/linux.mh: Ditto.
8996 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8998 * win32-nat.c: Add i386-tdep.h dependency.
9000 2002-01-07 Michael Snyder <msnyder@redhat.com>
9002 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9003 instead of bfd_get_arch_size. Don't bail out just because
9004 there's no exec_bfd.
9006 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9007 * p-valprint.c (pascal_object_print_value): Ditto.
9008 * somread.c (som_symtab_read): Ditto.
9009 * symfile.c (simple_free_overlay_region_table): Ditto.
9010 * valops.c (value_assign): Ditto.
9012 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9013 use tilde_expand and strerror for opening save-tracepoints file.
9015 * thread-db.c (thread_db_new_objfile): Indendation fix.
9017 * infptrace.c (GDB_MAX_ALLOCA): New define.
9018 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
9019 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
9020 can be overridden with whatever value is appropriate to the host).
9021 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9022 alloca to allocate potentially large buffer.
9023 * rs6000-nat.c (child_xfer_memory): Ditto.
9024 * symm-nat.c (child_xfer_memory): Ditto.
9025 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9027 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9029 From Nick Clifton <nickc@redhat.com>
9030 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9032 2002-01-07 Michael Snyder <msnyder@redhat.com>
9034 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9035 Don't use exec_bfd if it's NULL.
9037 2002-01-06 Mark Kettenis <kettenis@gnu.org>
9039 * valops.c (value_arg_coerce): Fix formatting.
9041 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9043 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9046 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9048 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9049 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9050 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9051 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9052 z8k-coff have not been multi-arched. Update z8k-coff build
9055 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9057 * MAINTAINERS: Mark a29k target as obsolete.
9058 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9059 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9061 * NEWS: Note that a29k targets are obsolete.
9062 * a29k-tdep.c: Mark as obsolete.
9063 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9064 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9065 a29k-*-vxworks* targets as obsolete.
9066 * remote-adapt.c: Obsolete.
9067 * remote-eb.c: Obsolete.
9068 * remote-mm.c: Obsolete.
9069 * remote-udi.c: Obsolete.
9070 * config/a29k/a29k-udi.mt: Obsolete.
9071 * config/a29k/a29k.mt: Obsolete.
9072 * config/a29k/tm-a29k.h: Obsolete.
9073 * config/a29k/tm-vx29k.h: Obsolete.
9074 * config/a29k/vx29k.mt: Obsolete.
9076 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9078 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9079 with BFD_ENDIAN_BIG.
9081 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9083 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9084 * configure, config.in: Re-generate.
9085 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9086 * defs.h: Do not include <endian.h>.
9088 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9090 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9091 * config.in: Regenerate.
9092 * configure.in: Update copyright years.
9093 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9094 * configure: Regenerate.
9095 * i386bsd-nat.c: Update copyright years.
9096 (fill_gregset): Use regcache_collect.
9097 (fetch_inferior_registers): Only fetch integer registers
9098 if requested to do so. Add support for XMM registers
9099 using PT_GETXMMREGS.
9100 (store_inferior_registers): Only store integer registers
9101 if requested to do so. Add support for XMM registers
9102 using PT_SETXMMREGS.
9103 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9104 (store_inferior_registers): Remove.
9105 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9106 (fetch_elfcore_registers): New function.
9107 (i386nbsd_elfcore_fns): New.
9108 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9109 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9111 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9112 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9113 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9114 * config/i386/tm-nbsd.h: Update copyright years.
9115 (HAVE_SSE_REGS): Define.
9116 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9117 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9118 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9119 (SIGCONTEXT_PC_OFFSET): Remove.
9120 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9122 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9124 * configure.tgt: Remove powerpc-*-macos* target.
9125 * config/m68k/xm-mpw.h: Delete file.
9126 * config/xm-mpw.h: Delete file.
9127 * ser-mac.c: Delete file.
9128 * mpw-make.sed: Delete file.
9129 * mpw-config.in: Delete file.
9130 * mac-xdep.c: Delete file.
9131 * mac-gdb.r: Delete file.
9132 * mac-defs.h: Delete file.
9133 * mac-nat.c: Delete file.
9134 * config/powerpc/macos.mh: Delete file.
9135 * config/powerpc/macos.mt: Delete file.
9136 * config/powerpc/nm-macos.h: Delete file.
9137 * config/powerpc/tm-macos.h: Delete file.
9138 * source.c (openp, open_source_file): Remove obsolete code.
9139 * top.c (gdb_readline): Ditto.
9140 * utils.c (query): Ditto.
9141 * event-top.c (display_gdb_prompt): Ditto.
9142 * Makefile.in (ser-mac.o): Delete obsolete target.
9145 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9147 * defs.h (BIG_ENDIAN): Delete macro definition.
9148 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9149 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9150 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9151 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9152 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9153 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9154 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9155 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9156 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9157 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9158 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9159 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9160 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9161 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9162 * gdbarch.c: Re-generate.
9164 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9166 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9169 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9171 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9173 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9175 * value.h (value_ptr): Delete typedef.
9177 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9179 * i386nbsd-nat.c: Update copyright years.
9180 Include i386-tdep.h.
9182 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
9184 * stabsread.c: Update copyright years.
9186 From Debashis Mahata <debashis.mahata@wipro.com>:
9187 (read_struct_fields): Deal with Sun C compiler erroneous stab
9188 output for structs and unions.
9191 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9193 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9196 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9198 * cp-abi.c: Fix whitespace.
9199 (baseclass_offset): New wrapper function.
9200 * cp-abi.h (baseclass_offset): Add prototype.
9201 (struct cp_abi_ops): Add baseclass_offset pointer.
9203 * valops.c (vb_match): Move to...
9204 * gnu-v2-abi.c (vb_match): here.
9205 * valops.c (baseclass_offset): Move to...
9206 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9208 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9210 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9211 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9212 * hpacc-abi.c (init_hpacc_ops): Likewise.
9214 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9216 * valops.c (find_overload_match): Accept obj as a
9217 reference parameter. Update it before returning.
9218 * value.h (find_overload_match): Update prototype.
9219 * eval.c (evaluate_subexp_standard): Pass object to
9220 find_overload_match by reference.
9222 2002-01-03 Andrew Cagney <ac131313@redhat.com>
9224 * valarith.c: Replace value_ptr with struct value pointer. Remove
9225 register attribute from value declarations.
9228 * scm-lang.c (scm_lookup_name): Ditto.
9230 2002-01-03 Michael Snyder <msnyder@redhat.com>
9232 Abstract the functionality of iterating over mapped memory
9233 regions into a general purpose iterator function.
9234 * procfs.c (iterate_over_mappings): New function, general purpose
9235 iterator for memory sections.
9236 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
9237 (solib_mappings_callback): New function, callback for above.
9238 (info_proc_mappings): Reimpliment using iterate_over_mappings.
9239 (info_mappings_callback): New function, callback for above.
9241 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
9243 2002-01-01 Mark Kettenis <kettenis@gnu.org>
9245 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
9246 * i386-tdep.c: Include "elf-bfd.h".
9247 (process_note_abi_tag_sections): New function.
9248 (i386_gdbarch_init): Add code to recognize various OS/ABI
9251 * maint.c (_initialize_maint_cmds): Add missing \ in
9254 For older changes see ChangeLog-2001
9260 version-control: never