1 2002-07-30 Jim Blandy <jimb@redhat.com>
3 Patch from David Carlton <carlton@math.stanford.edu>:
4 * gdbinit.in: Move the `dir' commands that add GDB's own source
5 directory to the search path to the end, so that the `gdb' source
6 directory will be searched first.
8 2002-07-29 Andrew Cagney <ac131313@redhat.com>
10 * gdb_obstack.h: New file.
11 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
12 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
13 * objfiles.h: Include "gdb_obstack.h".
14 * Makefile.in (gdb_obstack_h): Define.
15 (symtab_h): Add $(gdb_obstack_h).
16 (objfiles_h): Add $(gdb_obstack_h).
18 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
19 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
20 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
21 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
22 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
23 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
24 * symfile.c, coffread.c, c-typeprint.c: Ditto.
25 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
27 * Makefile.in (bcache.o): Update dependencies.
28 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
29 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
30 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
31 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
32 (stabsread.o, symfile.o, symmisc.o): Ditto.
33 (symtab.o, typeprint.o, macroexp.o): Ditto.
34 (macrotab.o, mdebugread.o): Ditto.
35 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
36 (coff_ecoff_h, aout_aout64_h): Define.
37 (aout_stabs_gnu_h, libaout_h): Define.
39 2002-07-29 Andrew Cagney <cagney@redhat.com>
41 * regcache.c (struct regcache_descr): Rename nr_registers to
42 nr_cooked_registers. Revise comments describing the structure
44 (init_regcache_descr): Update.
45 (init_legacy_regcache_descr): Update.
46 (read_register_gen, write_register_gen): When a cooked register in
47 the raw register range, directly access the value from the raw
50 2002-07-29 Andrew Cagney <ac131313@redhat.com>
52 * z8k-tdep.c: Do not include "obstack.h".
53 * h8300-tdep.c, h8500-tdep.c: Ditto.
54 * m68hc11-tdep.c, sh-tdep.c: Ditto.
55 * valprint.c, v850-tdep.c: Ditto.
56 * d10v-tdep.c, mn10300-tdep.c: Ditto.
57 * mn10200-tdep.c: Ditto.
59 * Makefile.in (z8k-tdep.o): Update dependencies.
60 (m68hc11-tdep.o, valprint.o): Ditto.
61 (v850-tdep.o, d10v-tdep.o): Ditto.
62 (mn10300-tdep.o, sparc-tdep.o): Ditto.
63 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
64 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
65 (sh_opc_h, gdb_sim_sh_h): Define.
66 (elf_sh_h, elf_bfd_h): Define.
67 (opcode_m68hc11_h): Define.
68 (OPCODES_SRC, OPCODES_DIR): define.
69 (OPCODES): Use $(OPCODES_DIR).
70 (gdb_sim_d10v_h): Rename sim_d10v_h.
71 (gdb_sim_arm_h): Rename sim_arm_h.
73 2002-07-26 Kevin Buettner <kevinb@redhat.com>
75 * utils.c (host_pointer_to_address, address_to_host_pointer):
76 Change internal_error() message to indicate function responsible
79 2002-07-26 Kevin Buettner <kevinb@redhat.com>
81 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
82 calls to local_hex_string_custom().
84 2002-07-26 Kevin Buettner <kevinb@redhat.com>
86 * irix5-nat.c: Move IRIX shared library support from here...
87 * solib-irix.c: ...to here. Revised substantially to work with
88 generic solib framework.
90 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
91 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
92 * mips-irix-tdep.c: New file.
94 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
95 (mips-irix-tdep.o, solib-irix.o): New rules.
96 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
98 * config/mips/irix6.mt (TDEPFILES): Likewise.
99 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
101 2002-07-26 Kevin Buettner <kevinb@redhat.com>
103 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
104 disabled (via ``#if 0'') includes.
106 2002-07-26 Kevin Buettner <kevinb@redhat.com>
108 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
109 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
110 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
111 Add support for the fpscr register.
112 * rs6000-nat.c (regmap, fetch_inferior_registers)
113 (store_inferior_registers, fetch_core_registers): Likewise.
115 2002-07-26 Kevin Buettner <kevinb@redhat.com>
117 * rs6000-nat.c (language.h): Include.
118 (special_regs): Delete this array.
119 (regmap): New function.
120 (fetch_register, store_register): Use regmap() to map gdb
121 register numbers to ptrace register numbers. Also, use
122 outputs from regmap() to make decisions regarding type of
123 ptrace() call to make. In particular, don't compare against
124 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
125 (fetch_inferior_registers, store_inferior_registers): Where
126 possible, obtain register numbers from tdep struct. Don't
127 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
128 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
129 (LAST_UISA_SP_REGNUM): Delete.
131 2002-07-25 Kevin Buettner <kevinb@redhat.com>
133 * rs6000-nat.c (ppc-tdep.h): Include.
134 (fetch_registers, store_register, fetch_core_registers): Don't
135 access registers[] directly. Instead, use supply_register() or
136 regcache_collect() as appropriate.
137 (find_toc_address): Format hex address with local_hex_string().
139 2002-07-25 Andrew Cagney <ac131313@redhat.com>
141 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
144 2002-07-24 Tom Tromey <tromey@redhat.com>
146 * jv-exp.y: Marked all strings with _().
147 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
149 (MethodInvocation, CastExpression, parse_number, yyerror,
150 java_type_from_name, push_expression_name, yylex): Typo fixes.
152 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
154 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
155 (tee_file_flush, tee_file_write, tee_file_fputs)
156 (tee_file_isatty): New.
157 * ui-file.h (tee_file_new): Add prototype.
159 2002-07-24 Aidan Skinner <aidan@velvet.net>
161 * ada-lang.c: Change k&r style function definitions to prototyped
163 * ada-typeprint.c: Change k&r style function definitions to prototyped
165 * ada-valprint.c: Change k&r style function definitions to prototyped
168 2002-07-24 Andrew Cagney <cagney@redhat.com>
170 * README: Remove reference to remote-bug.
171 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
173 (m88k-nat.o): Delete rule.
174 (m88k-tdep.o): Delete rule.
175 (remote-bug.o): Delete rule.
176 * MAINTAINERS: Mark as obsolete.
177 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
178 * m88k-tdep.c: Make file obsolete.
179 * config/m88k/m88k.mh: Ditto.
180 * config/m88k/delta88v4.mh: Ditto.
181 * config/m88k/delta88v4.mt: Ditto.
182 * config/m88k/delta88.mt: Ditto.
183 * config/m88k/delta88.mh: Ditto.
184 * remote-bug.c: Ditto.
185 * config/m88k/tm-delta88.h: Ditto.
186 * config/m88k/nm-delta88v4.h: Ditto.
187 * config/m88k/xm-delta88.h: Ditto.
188 * config/m88k/xm-dgux.h: Ditto.
189 * config/m88k/tm-m88k.h: Ditto.
190 * config/m88k/nm-m88k.h: Ditto.
191 * config/m88k/tm-delta88v4.h: Ditto.
194 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
195 and m88*-*-* obsolete.
196 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
199 2002-07-24 Andrew Cagney <cagney@redhat.com>
201 * findvar.c (extract_unsigned_integer): Make `addr' parameter
202 constant. Same for local pointer variables.
203 (extract_signed_integer): Ditto.
204 * defs.h (extract_unsigned_integer): Update.
205 (extract_signed_integer): Update.
207 2002-07-24 Kevin Buettner <kevinb@redhat.com>
209 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
210 * gdbserver/configure: Regenerate.
211 * gdbserver/config.in: Regenerate.
213 2002-07-24 Andrew Cagney <cagney@redhat.com>
215 * regcache.c (regcache_raw_write): Change buf parameter to a
216 constant void pointer.
217 (regcache_raw_read): Change buf parameter to a void pointer.
218 (legacy_write_register_gen): Change myaddr parameter a constant
220 (supply_register): Change val parameter to a const void pointer.
221 * regcache.h (regcache_raw_write): Update declaration.
222 (regcache_raw_read): Update declaration.
223 (supply_register): Update declaration.
225 2002-07-24 Tom Tromey <tromey@redhat.com>
227 * defs.h (gdb_readline_wrapper): Declare.
228 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
229 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
230 * top.c (gdb_readline_wrapper): New function.
231 (command_line_input): Use it.
233 2002-07-24 Andrew Cagney <cagney@redhat.com>
235 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
236 regcache_read and regcache_write.
237 (regcache_raw_read_as_address): Replace regcache_read_as_address.
238 * regcache.c: Update.
239 * sh-tdep.c (sh64_push_arguments): Update comment.
240 (sh_pseudo_register_read): Update.
241 (sh_pseudo_register_write): Update.
242 (sh4_register_read): Update.
243 (sh4_register_write): Update.
244 (sh64_pseudo_register_read): Update.
245 (sh64_pseudo_register_write): Update.
246 (sh64_register_read): Update.
247 (sh64_register_write): Update.
248 * i386-tdep.c (i386_extract_return_value): Update.
249 (i386_extract_struct_value_address): Update.
250 (i386_extract_return_value): Update.
251 * blockframe.c (generic_read_register_dummy): Update.
252 (generic_call_dummy_register_unwind): Update
253 * infrun.c (write_inferior_status_register): Update.
255 2002-07-23 Jim Blandy <jimb@redhat.com>
257 * parser-defs.h (expression_context_pc): Make this extern.
258 (Thanks to Michael Snyder.)
260 2002-07-23 Andrew Cagney <ac131313@redhat.com>
262 GDB 5.2.1 released from 5.2 branch.
263 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
264 * README: Update to mention 5.2.1.
266 2002-07-23 Mark Salter <msalter@redhat.com>
268 * remote.c (remote_read_bytes): Fix check for error.
270 2002-07-22 Kevin Buettner <kevinb@redhat.com>
272 * aix-thread.c (language.h): Include.
273 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
274 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
275 Print newlines at end of debug messages.
276 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
277 (pdc_write_data): Use local_hex_string() instead of %llx formats.
279 2002-07-22 Kevin Buettner <kevinb@redhat.com>
281 * aix-thread.c (ppc-tdep.h): Include.
282 (special_register_p): New function.
283 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
284 (store_regs_user_thread): Use register number information from
285 gdbarch_tdep struct instead of hardcoded offsets relative to
286 FIRST_UISA_SP_REGNUM.
287 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
288 special_register_p() instead of using FPLAST_REGNUM and
289 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
290 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
291 will be MQ's register number.
293 2002-07-22 Michael Snyder <msnyder@redhat.com>
295 * aix-thread.c (ops): Rename to aix_thread_ops.
296 (base_ops): Rename to base_target.
297 (ops_attach): Rename to aix_thread_attach.
298 (ops_detach): Rename to aix_thread_detach.
299 (ops_resume): Rename to aix_thread_detach.
300 (ops_wait): Rename to aix_thread_wait.
301 (ops_kill): Rename to aix_thread_kill.
302 (init_ops): Rename to init_aix_thread_ops.
303 (ops_fetch_register): Rename to aix_thread_fetch_register.
304 (ops_store_register): Rename to aix_thread_store_register.
305 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
306 (ops_thread_alive): Rename to aix_thread_thread_alive.
307 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
308 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
309 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
310 (fetch_regs_lib): Rename to fetch_regs_user_thread.
311 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
312 (store_regs_lib): Rename to store_regs_user_thread.
313 (store_regs_kern): Rename to store_regs_kernel_thread.
315 2002-07-22 Michael Snyder <msnyder@redhat.com>
317 * aix-thread.c (ops_prepare_to_store): Eliminate.
318 (init_ops): Don't initialize ops.prepare_to_store.
319 (store_regs_kern): Pre-fetch register buffers from child,
320 because some registers may not be in the cache. Copy
321 regs from register cache only if they are cached.
322 (store_regs_lib): Copy regs from register cache only
324 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
327 2002-07-22 Kevin Buettner <kevinb@redhat.com>
329 * aix-thread.c (gdb_assert.h): Include.
330 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
331 register sizes (from register cache) match size of buffer holding
333 (fill_sprs32): Change parameter types to match those in the ptrace()
335 (store_regs_lib): Likewise, but for 32-bit temporary variables.
336 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
338 2002-07-22 Michael Snyder <msnyder@redhat.com>
340 * aix-thread.c (supply_sprs64): Cosmetic change.
341 (supply_sprs32): Cosmetic change.
342 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
343 (fill_sprs64): Use regcache_collect instead of read_register.
344 (store_regs_lib): Use regcache_collect instead of
345 read_register. Use fill_sprs32 instead of fill_sprs64,
346 if debugging a 32-bit architecture.
347 (store_regs_kern): Use fill_gprs64 etc. to pull the values
348 out of the register cache, instead of passing a pointer into
349 the register cache directly to ptrace. Use regcache_collect
350 insteaad of read_register.
351 (ops_prepare_to_store): Use target_read_registers instead
352 of read_register_bytes.
354 2002-07-20 Aidan Skinner <aidan@velvet.net>
356 * MAINTAINERS: Add self under write after approval.
358 2002-07-20 Aidan Skinner <aidan@velvet.net>
360 * ada-tasks.c: Change k&r style function definitions to prototyped
363 2002-07-19 Andrew Cagney <ac131313@redhat.com>
365 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
366 * x86-64-tdep.c: Include "objfiles.h".
367 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
368 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
370 2002-07-17 Michal Ludvig <michal@suse.cz>
372 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
373 (update_context): Initialise cfa variable.
375 2002-07-17 Michael Snyder <msnyder@redhat.com>
377 * aix-thread.c: Shorten some long lines.
378 Bring comments into line with code spec.
380 2002-07-18 Joel Brobecker <brobecker@gnat.com>
382 * infrun.c: Re-indent using gdb_indent.sh.
384 2002-07-18 Joel Brobecker <brobecker@gnat.com>
386 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
387 Leave the indentation temporarily untouched, to minimize the diffs.
389 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
391 * stabsread.c: Make os9k sections of the code obsolete,
393 * stabsread.h: Make os9k sections of the code obsolete.
395 2002-07-18 Michal Ludvig <mludvig@suse.cz>
397 * linux-low.c (regsets_store_inferior_registers): Add free()
398 at the end of a loop to prevent memory leak.
399 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
400 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
401 * config/sparc/tm-sp64linux.h: Make the rest of #endif
403 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
405 2002-07-17 Jim Blandy <jimb@redhat.com>
407 * macrocmd.c (info_macro_command): Remove newline from error
410 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
412 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
413 (sh_gdbarch_init): Use it for sh-dsp.
415 2002-07-16 Kevin Buettner <kevinb@redhat.com>
417 * dwarf2read.c (read_initial_length): Handle older, non-standard,
418 64-bit DWARF2 format.
420 2002-07-16 Joel Brobecker <brobecker@gnat.com>
422 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
423 <sys/proc.h> when not available.
425 2002-07-16 Andrew Cagney <ac131313@redhat.com>
427 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
428 * stabsread.c: Make os9k sections of the code obsolete.
429 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
430 * config/i386/i386os9k.mt: Make file obsolete.
431 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
432 (COMMON_OBS): Remove os9kread.o
433 (SFILES): Remove os9kread.c.
434 (os9kread.o, remote-os9k.o): Make target obsolete.
435 * remote-os9k.c: Make file obsolete.
436 * os9kread.c: Make file obsolete.
439 2002-07-16 Andrew Cagney <ac131313@redhat.com>
441 * NEWS: Mention that the FR30 has been made obsolete.
442 * fr30-tdep.c: Make file obsolete.
443 * config/fr30/tm-fr30.h: Ditto.
444 * config/fr30/fr30.mt: Ditto.
445 * configure.tgt: Make fr30-*-elf obsolete.
446 * MAINTAINERS: Make fr30-elf obsolete.
448 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
450 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
451 found is not inside a section.
453 2002-07-15 Kevin Buettner <kevinb@redhat.com>
455 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
457 (pdc_realloc): Use xrealloc() instead of realloc().
459 2002-07-15 Kevin Buettner <kevinb@redhat.com>
461 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
462 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
463 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
466 2002-07-15 Kevin Buettner <kevinb@redhat.com>
468 * aix-thread.c (ptrace_check): Eliminate goto.
469 (sync_threadlists): Eliminate gotos. Also, fix array overrun
472 2002-07-15 Kevin Buettner <kevinb@redhat.com>
474 * aix-thread.c (gdbcmd.h): Include.
475 (DEBUG, DBG, DBG2, dbg): Eliminate.
476 (debug_aix_thread): New static global.
477 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
478 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
479 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
480 invocations to DBG and DBG2 macros to test against
481 ``debug_aix_thread'' and call fprintf_unfiltered().
482 (_initialize_aix_thread): Add new command "set debug aix-thread".
484 2002-07-15 Andrew Cagney <ac131313@redhat.com>
486 From Gerhard Tonn <TON@de.ibm.com>:
487 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
488 instead of supply_register.
490 2002-07-15 Andrew Cagney <ac131313@redhat.com>
492 * dwarf2cfi.c: Include "gdb_assert.h".
493 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
495 (update_context): Do not use __func__. Add missing ``break''.
496 (update_context): Do not use __func__.
498 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
500 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
501 and its setting. Set gdbarch instruction printing functions
502 directly. For non-rs6000 case use new function
503 gdb_print_insn_powerpc.
504 (gdb_print_insn_powerpc): New function.
506 2002-07-13 Andrew Cagney <ac131313@redhat.com>
508 * NEWS: Mention that the d30v has been marked obsolete.
509 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
510 * configure.tgt: Mark d30v-*-* as obsolete.
511 * d30v-tdep.c: Mark file as obsolete.
512 * config/d30v/d30v.mt: Ditto.
513 * config/d30v/tm-d30v.h: Ditto.
515 2002-07-13 Aidan Skinner <aidan@velvet.net>
517 * ada-tasks.c (add_task_entry): replace calls to
518 malloc() with xmalloc
519 * ada-tasks.c (init_task_list): replace calls to free with xfree()
521 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
522 ada_finish_decode_line_1, all_sals_for_line
523 ada_breakpoint_rewrite): replace calls to free() with xfree()
525 2002-07-12 Kevin Buettner <kevinb@redhat.com>
527 From Nicholas Duffek (with minor changes by Martin Hunt,
528 Louis Hamilton, and Kevin Buettner):
529 * aix-thread.c: New file.
531 2002-07-12 Petr Sorfa <petrs@caldera.com>
533 * dwarf2read.c (dwarf2_invalid_attrib_class): New
534 complaint for invalid attribute class or form.
535 (read_func_scope): DW_AT_frame_base
536 better handling of DW_AT_block*.
537 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
538 better handling of DW_AT_block*.
539 (read_common_block): DW_AT_location
540 better handling of DW_AT_block*.
541 (read_partial_die): DW_AT_location better handling
543 (new_symbol): DW_AT_external better handling of
544 DW_AT_block*. Proper initialization of variable
546 (attr_form_is_block): New function that returns true
547 if the attribute's form is of DW_FORM_block*.
549 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
551 * valops.c (find_method_list): Remove comment about
552 removed STATIC_MEMFUNCP argument.
553 (value_find_oload_method_list): Likewise.
555 2002-07-12 Kevin Buettner <kevinb@redhat.com>
557 From Nicholas Duffek:
558 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
559 target_new_objfile_hook.
561 2002-07-12 Kevin Buettner <kevinb@redhat.com>
563 From Nicholas Duffek:
564 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
567 2002-07-12 Andrew Cagney <cagney@redhat.com>
569 * MAINTAINERS: Mention --enable-sim-build-warnings.
570 (m68hc11-elf): Disable sim build warnings.
571 (m32r-elf): Mark as broken obsolete candidate.
572 (x86_64-linux-gnu): Mark as buildable with -Werror.
573 (arm-elf): Change -w to ``,'' which enables warnings but not
576 2002-07-12 Andrew Cagney <ac131313@redhat.com>
578 * bcache.h: Update copyright.
579 (struct bstring, struct bcache): Move definition to "bcache.c".
580 Replaced by opaque declaration.
581 (bcache_xfree): Replace free_bcache.
582 (bcache_xmalloc, bcache_memory_used): Declare.
584 * bcache.c: Update copyright.
585 (struct bstring, struct bcache): Moved to here from "bcache.h".
587 (bcache_xmalloc, bcache_memory_used): New functions.
588 (bcache_xfree): Replace function free_bcache.
590 * Makefile.in (objfiles.o): Add $(bcache_h).
591 (objfiles_h): Remove $(bcache_h).
592 (symfile.o): Add $(bcache_h).
594 * symmisc.c: Update copyright.
595 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
596 (print_objfile_statistics): Use bcache_memory_used.
598 * symfile.c: Include "bcache.h".
599 (reread_symbols): Use bcache_xfree.
600 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
601 (add_psymbol_to_list): Pass psymbol_cache by value.
602 (add_psymbol_with_dem_name_to_list): Ditto.
604 * objfiles.h: Update copyright.
605 (struct bcache): Declare opaque. Do not include "bcache.h".
606 (struct objfile): Change psymbol_cache and macro_cache to ``struct
608 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
610 * objfiles.c: Include "bcache.h". Update copyright.
611 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
613 (free_objfile): Use bcache_xfree.
615 2002-07-11 Grace Sainsbury <graces@redhat.com>
617 * monitor.c (monitor_fetch_register): Make name a constant.
618 (monitor_store_register): Same.
620 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
622 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
623 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
624 (finish_block) For non-function blocks, hash the symbol table. For
625 function blocks, mark the symbol table as unhashed.
626 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
627 (msymbol_hash_iw): Likewise.
628 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
630 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
631 (lookup_minimal_symbol): Likewise for both.
632 * symtab.h (struct block): Add `hashtable' flag. Comment the
634 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
635 (ALL_BLOCK_SYMBOLS): Update.
636 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
637 (struct symbol): Add `hash_next' pointer.
638 * symtab.c (lookup_block_symbol): Search using the hash table when
640 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
641 (search_symbols, find_addr_symbol): Likewise.
643 * dstread.c (process_dst_block): Clear hashtable bit for new block.
644 (read_dst_symtab): Likewise.
645 * jv-lang.c (get_java_class_symtab): Likewise.
646 * mdebugread.c: Include "gdb_assert.h".
647 (shrink_block): Assert that the block being modified is not hashed.
648 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
649 * symmisc.c (free_symtab_block): Walk the hash table when freeing
651 (dump_symtab): Recognize hashed blocks.
652 * printcmd.c (print_frame_args): Assert that function blocks do not
653 have hashed symbol tables.
654 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
655 (fill_in_ada_prototype, debug_print_block): Likewise.
656 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
658 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
660 * stack.c (print_frame): Use result of frame_address_in_block()
661 instead of fi->pc when evaluating symbols.
662 (backtrace_command_1): Ditto.
664 2002-07-11 Andrew Cagney <cagney@redhat.com>
666 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
669 * arm-tdep.c (arm_register_name): Make return type constant.
671 2002-07-10 Andrew Cagney <ac131313@redhat.com>
673 * win32-nat.c (has_detach_ability): Convert to strict ISO C
675 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
676 * s390-tdep.c (s390_fp_regnum): Ditto.
677 (s390_read_fp): Ditto.
678 (s390_pop_frame): Ditto.
679 (_initialize_s390_tdep): Ditto.
680 * remote.c (get_remote_state): Ditto.
681 * procfs.c (mappingflags): Ditto.
682 * memattr.c (_initialize_mem): Ditto.
683 * mcore-tdep.c (mcore_pop_frame): Ditto.
684 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
685 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
686 * language.c (set_case_str): Ditto.
687 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
688 * frv-tdep.c (new_variant): Ditto.
689 (frv_stopped_data_address): Ditto.
690 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
691 (context_alloc): Ditto.
692 (frame_state_alloc): Ditto.
693 (unwind_tmp_obstack_init): Ditto.
694 (unwind_tmp_obstack_free): Ditto.
695 (cfi_read_fp): Ditto.
696 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
697 (cris_pop_frame): Ditto.
698 * c-lang.c (scanning_macro_expansion): Ditto.
699 (finished_macro_expansion): Ditto.
700 (c_preprocess_and_parse): Ditto.
702 * gdbarch.h, gdbarch.c: Regenerate.
703 * config/mn10200/tm-mn10200.h: Adjust indentation.
704 * target.c: Adjust indentation.
705 * symtab.h: Adjust indentation.
706 * stabsread.h: Adjust indentation.
707 * remote-es.c: Adjust indentation.
708 * os9kread.c: Adjust indentation.
710 2002-07-10 Andrew Cagney <ac131313@redhat.com>
712 * wince.c (_initialize_wince): Rename _initialize_inftarg.
713 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
715 2002-07-10 Grace Sainsbury <graces@redhat.com>
717 * NEWS: Mention m68k, mcore multi-arching.
718 * MAINTAINERS: Change status of m68k, mcore to reflect
721 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
723 * valops.c (find_overload_match): Free oload_syms.
725 2002-07-09 Joel Brobecker <brobecker@gnat.com>
727 Define HAVE_SYS_PROC_H if sys/proc.h exists
728 * configure.in: Add check for sys/proc.h
729 * config.in: Regenerate.
730 * configure: Regenerate.
732 2002-07-09 Grace Sainsbury <graces@redhat.com>
734 * config/m68k/tm-m68k.h: Remove macros wrapped in
737 2002-07-09 David O'Brien <obrien@FreeBSD.org>
739 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
740 (perror_with_name, remote_close, remote_open, expect, play): Static.
742 2002-07-08 Andrew Cagney <ac131313@redhat.com>
744 * config.in, configure: Regenerate.
746 2002-07-08 Mark Kettenis <kettenis@gnu.org>
748 * dwarf2cfi.c: Include "gcore.h".
749 (execute_stack_op): Fix implementation of the
750 DW_OP_deref and DW_OP_deref_size operators by letting do their
751 lookup in the target.
753 2002-07-07 Mark Kettenis <kettenis@gnu.org>
755 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
756 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
759 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
761 Fix PR gdb/595, gdb/602
762 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
763 Don't call value_cast, just read the vtable pointer; update comments
766 2002-07-05 Grace Sainsbury <graces@redhat.com>
768 * config/mcore/tm-mcore.h: Remove file.
769 * config/mcore/mcore.mt: Remove definition of TM_FILE
770 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
772 2002-07-05 Mark Kettenis <kettenis@gnu.org>
774 * i386bsd-tdep.c: Include "gdb_string.h".
776 2002-07-04 Grace Sainsbury <graces@redhat.com>
778 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
779 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
781 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
782 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
783 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
784 (RETVAL_REGNUM): Move macros from tm-mcore.h
785 (mcore_reg_struct_has_addr): New function.
786 (mcore_gdbarch_init): Added initializations for the macros removed
789 2002-07-04 Mark Kettenis <kettenis@gnu.org>
791 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
792 traditonal string branding within the ELF header.
794 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
796 * symtab.c (remove_params): New function.
797 (make_symbol_overload_list): Use it instead of cplus_demangle.
798 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
800 2002-07-04 Mark Kettenis <kettenis@gnu.org>
802 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
804 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
806 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
807 and tdep->sigtramp_end.
808 * i386obsd-nat.c: New file.
809 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
811 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
812 Don't call get_current_frame().
814 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
816 * i386-nat.c (child_post_startup_inferior): New function
817 calling i386_cleanup_dregs if
818 I386_USE_GENERIC_WATCHPOINTS is defined.
819 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
820 conditional to acknowledge that i386-nat.c has its
821 own child_post_startup_inferior function.
823 2002-07-04 Mark Kettenis <kettenis@gnu.org>
825 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
826 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
827 instead of MAX_REGISTER_RAW_SIZE.
828 (i386_extract_return_value, i386_extract_struct_value_address):
829 Convert to use regcache.
830 (i386_gdbarch_init): Set max_register_raw_size and
831 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
832 Set extract_return_value and extract_struct_value_address instead
833 of their deprecated variants.
835 Convert i386 target to generic dummy frames.
836 * i386-tdep.c: Include "symfile.h".
837 (i386_frameless_signal_p): Consider a function to be frameless if
838 the pc points at the first instruction of the function.
839 (i386_frame_chain): Handle (generic) call dummies.
840 (i386_frame_saved_pc): Likewise.
841 (i386_frame_init_saved_regs): Remove code dealing with call
842 dummies on the stack.
843 (i386_push_dummy_frame): Removed.
844 (i386_call_dummy_words): Removed.
845 (i386_fix_call_dummy): Removed.
846 (i386_push_return_address): New function.
847 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
848 parameter, and don't call get_current_frame.
849 (i386_pop_frame): New function.
850 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
851 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
852 entry_point_address, set call_dummy_breakpoint_offset to 0, set
853 call_dummy_length to 0, set call_dummy_words to NULL, set
854 sizeof_call_dummy_words to 0, set fix_call_dummy to
855 generic_fix_call_dummy, set pc_in_call_dummy to
856 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
857 generic_push_dummy_frame, set push_return_address to
858 i386_push_return_address and set frame_chain_valid to
859 generic_file_frame_chain_valid.
861 2002-07-04 Michal Ludvig <mludvig@suse.cz>
863 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
864 byte offsets instead of an array of indexes.
865 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
867 2002-07-03 Andrew Cagney <ac131313@redhat.com>
869 * gdbarch.sh (struct regcache): Add opaque declaration.
870 (EXTRACT_RETURN_VALUE): New architecture method.
871 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
872 * gdbarch.h, gdbarch.c: Regenerate.
873 * arch-utils.c (legacy_extract_return_value): New function.
874 * arch-utils.h (legacy_extract_return_value): Declare.
875 * values.c (value_being_returned): Re-enable code handling
876 EXTRACT_STRUCT_VALUE_ADDRESS. Move
877 deprecated_grub_regcache_for_registers call to block handling
878 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
879 (EXTRACT_RETURN_VALUE): Do not define.
881 2002-07-03 Grace Sainsbury <graces@redhat.com>
883 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
884 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
885 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
886 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
887 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
888 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
889 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
890 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
891 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
892 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
893 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
894 argument so the function fits the prototype in the architecture
896 (mcore_pop_frame): Remove argument so the function fits the
897 prototype. Use get_current_frame instead of the argument.
898 (mcore_push_arguments): Change type of struct_return so the
899 function can be used in the architecture vector.
900 (mcore_store_struct_return): Add.
901 (mcore_frame_init_saved_regs): Add.
902 (mcore_gdbarch_init): Add function calls to replace the macros
903 removed from tm-mcore.h
905 2002-07-03 Andrew Cagney <ac131313@redhat.com>
907 * infcmd.c (print_return_value): Remove compatibility code calling
908 deprecated_grub_regcache_for_registers.
910 * values.c: Include "regcache.h".
911 (value_being_returned): Update. Use
912 deprecated_grub_regcache_for_registers to extract the register
914 * value.h (value_being_returned): Change ``retbuf'' parameter to a
916 * Makefile.in (values.o): Add dependency on $(regcache_h).
918 * inferior.h (run_stack_dummy): Change type of second parameter to
919 a ``struct regcache''.
920 * valops.c (hand_function_call): Change type of retbuf to ``struct
921 regcache''. Allocate using regcache_xmalloc, clean using
922 make_cleanup_regcache_xfree.
923 * infcmd.c (run_stack_dummy): Update. Use
924 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
926 * regcache.c (do_regcache_xfree): New function.
927 (make_cleanup_regcache_xfree): New function.
928 * regcache.h (make_cleanup_regcache_xfree): Declare.
930 2002-07-03 Martin M. Hunt <hunt@redhat.com>
932 * event-top.c (command_line_handler): Don't read past
935 2002-07-03 Martin M. Hunt <hunt@redhat.com>
937 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
939 (varobj_create): Store frame_id for root.
940 (varobj_gen_name): Use xasprintf.
941 (varobj_update): Save and restore frame using get_frame_id() and
943 (create_child): Use xasprintf.
944 (new_root_variable): Initialize frame_id.
945 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
946 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
947 to prevent memory leak.
949 2002-07-03 Andrew Cagney <ac131313@redhat.com>
951 * valops.c (hand_function_call): Move declaration of retbuf to
952 start of function, allocate using malloc, add a cleanup but before
953 the inf_status cleanup, cleanup the buffer. Rename local variable
954 old_chain to inf_status_cleanup.
956 2002-07-03 Martin M. Hunt <hunt@redhat.com>
958 * top.c (execute_command): Use cmd_func() and cmd_func_p().
960 * cli/cli-decode.c (cmd_func_p): New function.
961 (cmd_func): New function.
963 * command.h: Add cmd_func() and cmd_func_p().
965 2002-07-03 Grace Sainsbury <graces@redhat.com>
967 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
968 (REGISTER_SIZE): Remove.
969 (MAX_REGISTER_RAW_SIZE): Remove.
970 (REGISTER_VIRTUAL_TYPE): Remove.
971 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
972 (REGISTER_NAME): Remove.
973 (USE_GENERIC_DUMMY_FRAMES): Remove.
974 (CALL_DUMMY): Remove.
975 (CALL_DUMMY_START_OFFSET): Remove.
976 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
977 (CALL_DUMMY_LOCATION): Remove.
978 (FIX_CALL_DUMMY): Remove.
979 (CALL_DUMMY_ADDRESS): Remove.
980 (SIZEOF_CALL_DUMMY_WORDS): Remove.
981 (SAVE_DUMMY_FRAME_TOS): Remove.
982 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
983 (mcore_register_virtual_type): New function.
984 (mcore_register_byte): New function.
985 (mcore_register_size): New function.
986 (mcore_register_name): New function.
987 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
988 macros removed from tm-mcore.h.
989 (mcore_dump_tdep): Add.
990 (_initialize_mcore_tdep): Add gdbarch_register call.
992 2002-07-03 Mark Kettenis <kettenis@gnu.org>
994 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
995 frameless_look_for_prologue, such that we actually call this
998 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1000 * frame.h (frame_address_in_block): New function.
1002 * blockframe.c (frame_address_in_block): New function extracted
1003 from get_frame_block().
1004 (get_frame_block): Use frame_address_in_block().
1005 (block_innermost_frame): Use frame_address_in_block() to match
1006 the frame pc address against the block boundaries rather than
1007 the frame pc directly. This prevents a failure when a frame pc
1008 is actually a return-address pointing immediately after the end
1011 2002-07-02 Grace Sainsbury <graces@redhat.com>
1013 * MAINTAINERS: Add self under write after approval.
1015 2002-07-02 Grace Sainsbury <graces@redhat.com>
1017 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1018 used in architecture vector. The default is
1019 m68k_local_breakpoint_from_pc.
1020 (m68k_local_breakpoint_from_pc): Add.
1021 (enum): Add register numbers from tm-m68k.h.
1022 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1024 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1025 GDB_MULTI_ARCH_PARTIAL.
1026 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1027 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1029 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1030 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1031 to enum in m68k-tdep.c
1033 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1035 * solib-osf.c (open_map): Compute the list of shared libraries
1036 loaded by the inferior, rather than the list of libraries loaded
1037 by GDB itself. Otherwise, GDB ends up reading the symbols from
1038 the wrong shared libraries...
1040 2002-07-02 Mark Kettenis <kettenis@gnu.org>
1042 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1043 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1045 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1047 (FRAMELESS_SIGNAL): Remove function.
1048 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1049 i386_linux_saved_pc_after_call): Removed.
1050 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1051 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1052 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1054 * i386-tdep.c (i386_frameless_signal_p): New function.
1055 (i386_frame_chain): Deal with frameless signals.
1056 (i386_sigtramp_saved_sp): New function.
1057 (i386_frame_saved_pc): Deal with frameless signals.
1058 (i386_saved_pc_after_call): Make sure the correct value is
1059 returned just after entry into a sigtramp.
1060 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1061 i386fbsd4_sc_sp_offset): New variables.
1062 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1063 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1064 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1065 similiar to what we already did for sc_pc_offset.
1066 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1069 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1071 2002-07-02 Michal Ludvig <mludvig@suse.cz>
1073 * config/i386/tm-x86-64linux.h: New.
1074 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1076 * config/i386/nm-x86-64.h: Rename to ...
1077 * config/i386/nm-x86-64linux.h: ... this one.
1078 * config/i386/x86-64linux.mh: Reflect the above change.
1080 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1082 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1083 with sigcontext_addr. Add sc_sp_offset.
1084 (i386bsd_sigtramp_saved_pc): Remove prototype.
1085 (i386bsd_sicontext_addr): Add prototype.
1086 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1087 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1088 (i386_svr4_sigtramp_saved_pc): Removed.
1089 (i386_svr4_sigcontext_addr): New function.
1090 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1091 Initialize tdep->sigcontext_addr instead. Initialize
1092 tdep->sc_pc_offset and tdep->sc_sp_offset.
1093 (i386_gdbarch_init): Likewise.
1094 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1096 (i386bsd_sigtramp_saved_pc): Remove function.
1097 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1098 Initialize tdep->sigcontext_addr instead. Initialize
1100 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1101 of tdep->sigtramp_saved_pc.
1102 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1103 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1106 * i386-tdep.c (i386_frameless_function_invocation,
1107 i386_frame_num_args, i386_frame_init_saved_regs,
1108 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1109 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1110 i386_extract_return_value, i386_store_return_value,
1111 i386_extract_struct_value_address, i386_register_virtual_type,
1112 i386_register_convertible, i386_register_convert_to_virtual,
1113 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1114 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1117 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1119 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1121 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1122 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1123 this macro. Include "value.h".
1125 2002-06-30 Aidan Skinner <aidan@velvet.net>
1127 * ada-exp.tab.c: remove as it's a generated file
1128 * ada-lex.c: remove as it's a generated file
1130 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1132 * config/i386/tm-i386.h (struct frame_info, struct
1133 frame_saved_regs, struct value, struct type): Remove forward
1136 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1137 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1138 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1139 (FILL_FPXREGSET): Define.
1141 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1143 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1144 i[3456]86-*-netbsd* case.
1145 * config/i386/tm-obsd.h: Removed.
1146 * config/i386/obsd.mt: Removed.
1147 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1149 (MH_CFLAGS): Add -DYYDEBUG=0.
1151 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1152 i386nbsd_sc_pc_offset on OpenBSD too.
1154 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1155 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1156 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1158 * i386bsd-tdep.c: Include "arch-utils.h".
1159 (i386bsd_aout_in_solib_call_trampoline): New function.
1160 (i386bsd_init_abi): Set in_solib_call_trampoline to
1161 i386bsd_aout_in_solib_call_trampoline.
1162 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1163 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1165 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1167 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1168 (struct obstack, struct bcache): Add opaque declarations.
1169 * Makefile.in (macrotab_h): Update
1171 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1173 * blockframe.c (generic_find_dummy_frame): Change return type to
1174 ``struct regcache''.
1175 (struct dummy_frame): Replace field ``registers'' with regcache, a
1176 struct regcache object.
1177 (generic_find_dummy_frame): Update.
1178 (generic_push_dummy_frame): Update. Use regcache_xfree,
1179 regcache_xmalloc and regcache_cpy.
1180 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1182 (deprecated_generic_find_dummy_frame): Update.
1183 (generic_read_register_dummy): Update. Use
1184 regcache_read_as_address.
1185 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1186 (generic_get_saved_register): Update. Use regcache_read.
1188 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1190 * Makefile.in (objfiles_h): Add $(bcache_h).
1191 * objfiles.h: Include "bcache.h".
1193 * Makefile.in (symtab_h): Remove $(bcache_h).
1194 * symtab.h: Do not include "bcache.h".
1196 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1198 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1199 generic_func_frame_chain_valid.
1201 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1203 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1204 * config/i386/tm-fbsd.h: Likewise.
1206 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1208 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1209 generic_unwind_get_saved_register.
1211 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1213 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1214 * regcache.c (supply_register): Add missing argument to
1215 register_buffer call.
1217 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1219 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1220 Solaris /bin/grep does not not like it. From Peter Schauer.
1222 2002-06-26 Tom Tromey <tromey@redhat.com>
1224 * command.h (add_setshow_cmd): Declare.
1225 (add_setshow_cmd_full): Declare.
1226 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1227 returns void. Use add_setshow_cmd_full.
1228 (add_setshow_cmd_full): New function.
1229 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1230 (add_setshow_boolean_cmd): Likewise.
1232 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1234 * config/vax/tm-vax.h: Protect from multiple inclusion.
1235 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1236 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1237 * config/vax/tm-vaxbsd.h: ...here. New file.
1238 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1240 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1242 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1243 (BELIEVE_PCC_PROMOTION): Remove.
1244 (AP_REGNUM): Move to...
1245 * config/vax/nm-vax.h: ...here.
1246 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1247 (vax_breakpoint_from_pc): New function.
1248 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1249 and gdbarch_believe_pcc_promotion.
1251 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1253 * Makefile.in (vax_tdep_h): Define.
1254 (vax-tdep.o): Use $(vax_tdep_h).
1255 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1256 (vax_dump_tdep): New function.
1257 (_initialize_vax_tdep): Register vax_dump_tdep.
1258 * vax-tdep.h: Include osabi.h.
1259 (struct gdbarch_tdep): New.
1261 2002-06-26 Andrew Cagney <cagney@redhat.com>
1263 * frame.h (deprecated_generic_find_dummy_frame): Rename
1264 generic_find_dummy_frame.
1265 * blockframe.c (generic_find_dummy_frame): Make static.
1266 (deprecated_generic_find_dummy_frame): New function.
1267 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1268 generic_find_dummy_frame with deprecated_find_dummy_frame.
1269 (sh64_nofp_frame_init_saved_regs): Ditto.
1270 (sh_fp_frame_init_saved_regs): Ditto.
1271 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1272 (s390_frame_chain): Ditto.
1273 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1275 2002-06-26 Grace Sainsbury <graces@redhat.com>
1277 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1278 gdbarch vector are at the top.
1280 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1281 (FRAME_ARGS_ADDRESS): Remove.
1282 (FRAME_LOCALS_ADDRESS): Remove.
1283 (FRAME_NUM_ARGS): Remove.
1284 (FRAME_ARGS_SKIP): Remove.
1285 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1286 (m68k_gdbarch_init): Add gdbarch initializations for macros
1287 undefined in tm-m68k.h
1289 2002-06-26 Grace Sainsbury <graces@redhat.com>
1291 * monitor.h: Add the function regname to monitor_ops
1292 structure. This way NUM_REGS does not have to be a constant.
1293 * monitor.c (monitor_fetch_register): Added support for regname
1294 function. The function is called if the array regnames is NULL.
1295 (monitor_store_register): Same.
1296 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1298 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1299 cpu32bug_cmds.regname to point to new function.
1300 * abug-rom.c (abug_regname): Same as above.
1301 (init_abug_cmds): Same.
1302 * dbug-rom.c (dbug_regname): Same as above.
1303 (init_dbug_cmds): Same.
1304 * remote-est.c (est_regname): Same.
1305 (init_est_cmds): Same.
1306 * rom68k-rom.c (rom68k_regname): Same.
1307 (init_rom68k_cmds): Same.
1309 2002-06-25 Tom Tromey <tromey@redhat.com>
1311 * breakpoint.c (delete_command): Don't repeat `delete' commands.
1313 2002-06-25 Andrew Cagney <cagney@redhat.com>
1315 * infrun.c (stop_registers): Change variable's type to ``struct
1317 (xmalloc_inferior_status): Delete function.
1318 (free_inferior_status): Delete function.
1319 (normal_stop): Use regcache_cpy.
1320 (struct inferior_status): Change type of fields ``stop_registers''
1321 and ``registers'' to ``struct regcache''.
1322 (write_inferior_status_register): Use regcache_write.
1323 (save_inferior_status): Instead of calling
1324 xmalloc_inferior_status, allocate the inf_status buffer directly.
1325 Use regcache_dup_no_passthrough and regcache_dup to save the
1327 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
1328 Replace the stop_registers regcache instead of overriding it. Use
1329 regcache_xfree. Instead of calling free_inferior_status, xfree
1330 the buffer directly.
1331 (discard_inferior_status): Use regcache_xfree. Instead of calling
1332 free_inferior_status, xfree the buffer directly.
1333 (build_infrun): Use regcache_xmalloc.
1334 (_initialize_infrun): Delete redundant call to build_infrun.
1336 * Makefile.in (infcmd.o): Add $(regcache_h).
1338 * infcmd.c: Include "regcache.h".
1339 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
1340 obtain the address of `stop_registers' register buffer.
1341 (print_return_value): Ditto.
1343 * inferior.h (struct regcache): Add opaque declaration.
1344 (stop_registers): Change variable's declared type to ``struct
1347 2002-06-24 Tom Tromey <tromey@redhat.com>
1349 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
1350 * target.c (initialize_targets): Fixed typo in
1351 trust-readonly-sections `show' documentation.
1353 * main.c: Marked all strings with _().
1355 2002-06-24 Don Howard <dhoward@redhat.com>
1357 * memattr.c (create_mem_region): Treat hi == 0 as a special case
1358 that means max CORE_ADDR+1.
1359 (lookup_mem_region): Ditto.
1360 (mem_info_command): Ditto.
1362 2002-06-24 Grace Sainsbury <graces@redhat.com>
1364 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
1365 (REGISTER_BYTES_OK): Remove.
1366 (REGISTER_BYTES): Remove.
1367 (STORE_STRUCT_RETURN): Remove.
1368 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
1369 (STORE_RETURN_VALUE): Remove.
1370 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1371 (FRAME_CHAIN): Remove.
1372 (FRAMELESS_FUNCTION_INVOCATION): Remove.
1373 (FRAME_SAVED_PC): Remove.
1374 * m68k-tdep.c (m68k_register_bytes_ok):Add.
1375 (m68k_store_struct_return): Add.
1376 (m68k_deprecated_extract_return_value): Add.
1377 (m68k_deprecated_extract_struct_value_address): Add.
1378 (m68k_store_return_value): Add.
1379 (m68k_frame_chain): Add.
1380 (m68k_frameless_function_invocation): Add.
1381 (m68k_frame_saved_pc): Add.
1382 (m68k_gdbarch_init): added set_gdbarch calls for new
1383 functions and deleted macros.
1385 2002-06-23 Tom Tromey <tromey@redhat.com>
1387 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
1388 (ALLDEPFILES): Likewise.
1389 (udiheaders): Removed.
1390 (udip2soc.o): Likewise.
1391 (udi2go32.o): Likewise.
1393 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
1395 2002-06-22 Andrew Cagney <ac131313@redhat.com>
1397 * infrun.c (_initialize_infrun): Delete unnecessary call to
1400 * regcache.h: Update comments describing the regcache_cpy family
1402 (regcache_save, regcache_restore): Delete declaration.
1403 (regcache_save_no_passthrough): Delete declaration.
1404 (regcache_restore_no_passthrough): Delete declaration.
1405 * regcache.c (regcache_save): Delete function.
1406 (regcache_save_no_passthrough): Delete function.
1407 (regcache_restore): Delete function.
1408 (regcache_restore_no_passthrough): Delete function.
1410 2002-06-21 Andrew Cagney <ac131313@redhat.com>
1412 * config/m68k/tm-m68k.h: Fix typo.
1413 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1414 (m68k_frame_init_saved_regs): Declare.
1416 2002-06-21 Jim Blandy <jimb@redhat.com>
1418 Remove some vestiges of Harris 88k support.
1419 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1420 register numbering quirk.
1421 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1422 odd symbols occurring in Harris 88k ELF targets.
1424 2002-06-21 Tom Tromey <tromey@redhat.com>
1426 * gdb_locale.h: New file.
1427 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1428 (defs_h): Added gdb_locale.h.
1429 * configure, config.in: Rebuilt.
1430 * configure.in (PACKAGE): Define.
1431 * defs.h: Include gdb_locale.h.
1432 * main.c (captured_main): Call setlocale, bindtextdomain,
1435 2002-06-21 Dave Brolley <brolley@redhat.com>
1437 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1438 * config/frv/frv.mt: New file.
1439 * config/frv/tm-frv.h: New file.
1440 * configure.tgt: Support frv-*-*.
1441 * Makefile.in (frv-tdep.o): New target.
1442 * frv-tdep.c: New file.
1443 * NEWS: Mention frv.
1445 2002-06-21 Dave Brolley <brolley@redhat.com>
1447 * MAINTAINERS: Add self to "Write After Approval" list.
1449 2002-06-21 Grace Sainsbury <graces@redhat.com>
1451 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1452 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1453 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1454 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1455 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1457 * m68k-tdep.c: Include arch-utils.h
1458 (m68k_register_raw_size): Add.
1459 (m68k_register_virtual_size): Add.
1460 (m68k_register_virtual_type): Add.
1461 (m68k_register_name): Add.
1462 (m68k_stack_align): Add.
1463 (m68k_register_byte): Add.
1464 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1467 2002-06-21 Grace Sainsbury <graces@redhat.com>
1469 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1470 m68k_find_saved_regs.
1471 (m68k_pop_frame): Removed saved_regs structure, and replaced
1472 references to it with frame->saved_regs.
1473 (m68k_gdbarch_init): Added function calls to initialize the
1475 (m68k_fix_call_dummy): Add.
1476 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1477 (CALL_DUMMY): Remove.
1478 (CALL_DUMMY_LENGTH): Remove.
1479 (CALL_DUMMY_START_OFFSET): Remove.
1480 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1481 (FIX_CALL_DUMMY): Remove.
1482 (PUSH_DUMMY_FRAME): Remove.
1483 (POP_FRAME): Remove.
1485 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1487 * parse.c (parse_fprintf): New function used to avoid calls to
1488 fprintf in bison parser generated debug code.
1489 * parser-defs.h: Declaration of new parse_fprintf function.
1490 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1491 Set YYDEBUG to 1 by default.
1492 Set YYFPRINTF as parse_fprintf.
1494 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1496 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1498 (pointer_encoding, enum ptr_encoding): New.
1499 (execute_cfa_program): Take care about pointer encoding.
1500 (dwarf2_build_frame_info): Only call parse_frame_info for
1501 .debug_frame and .eh_frame.
1502 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1503 fixed augmentation handling, added relative addressing,
1504 ignore duplicate FDEs. Added comments.
1505 * dwarf2cfi.c: Reindented.
1507 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1509 * event-top.c (command_handler): Don't use space_at_cmd_start
1510 unless there is sbrk() on the host. Assign time and space data
1511 to union fields of the appropriate length.
1513 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1515 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1516 x86_64_register_name. Return type changed to 'const char *'.
1517 (x86_64_register_name2nr): Rename to x86_64_register_number.
1518 (x86_64_gdbarch_init): Update to reflect the change.
1519 * x86-64-tdep.h: Ditto.
1520 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1521 (supply_fpregset): Ditto.
1523 2002-06-19 Andrew Cagney <cagney@redhat.com>
1525 * regcache.h: Update copyright.
1526 (struct regcache, struct gdbarch): Add opaque declarations.
1527 (current_regcache): Declare global variable.
1528 (regcache_read, regcache_write): Add gdbarch parameter.
1529 (regcache_save, regcache_save_no_passthrough)
1530 (regcache_restore, regcache_restore_no_passthrough)
1531 (regcache_dup, regcache_dup_no_passthrough)
1532 (regcache_cpy, regcache_cpy_no_passthrough)
1533 (deprecated_grub_regcache_for_registers)
1534 (deprecated_grub_regcache_for_register_valid)
1535 (regcache_valid_p): Add function declarations.
1537 * regcache.c: Update copyright.
1538 (regcache_descr_handle): New global variable.
1539 (struct regcache_descr): Define.
1540 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1541 (regcache_descr, xfree_regcache_descr): New functions.
1542 (struct regcache): Define.
1543 (regcache_xmalloc, regcache_xfree): New functions.
1544 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1545 (regcache_dup, regcache_dup_no_passthrough): New functions.
1546 (regcache_valid_p, regcache_read_as_address): New functions.
1547 (deprecated_grub_regcache_for_registers): New function.
1548 (deprecated_grub_regcache_for_register_valid): New function.
1549 (current_regcache): New global variable.
1550 (register_buffer): Add regcache parameter. Update calls.
1551 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1552 (read_register_gen, write_register_gen): Update register_buffer
1553 call. Test for legacy_p instead of gdbarch_register_read_p or
1554 gdbarch_register_write_p.
1555 (regcache_collect): Update register_buffer call.
1556 (build_regcache): Rewrite. Use deprecated grub functions.
1557 (regcache_save, regcache_save_no_passthrough): New functions.
1558 (regcache_restore, regcache_restore_no_passthrough): New
1560 (_initialize_regcache): Create the regcache_data_handle. Swap
1561 current_regcache global variable.
1563 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1564 parameter to regcache_read and regcache_write calls.
1565 (sh4_register_read): Ditto.
1566 (sh64_pseudo_register_read): Ditto.
1567 (sh64_register_read): Ditto.
1568 (sh_pseudo_register_write): Ditto.
1569 (sh4_register_write): Ditto.
1570 (sh64_pseudo_register_write): Ditto.
1571 (sh64_register_write): Ditto.
1573 * defs.h (XCALLOC): Define.
1575 2002-06-19 Grace Sainsbury <graces@redhat.com>
1577 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1578 * m68k-tdep.c (m68k_gdbarch_init): Added.
1579 (m68k_dump_tdep): Added.
1581 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1583 * ada-lang.c (fill_in_ada_prototype): Update comment.
1585 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1587 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1589 (mips_abi_string, mips_abi_strings): New.
1590 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1591 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1592 tdep->mips_abi_string. Honor mips_abi_string. Default to
1593 O32 if no ABI is found.
1594 (mips_dump_tdep): Use mips_abi_strings.
1595 (mips_abi_update): New function.
1596 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1597 ``set mips abi'' and ``show mips abi''. Check the size of
1600 2002-06-19 Andrew Cagney <cagney@redhat.com>
1602 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1605 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1607 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1608 current frame using only the first stack size adjustment. All
1609 subsequent size adjustments are not considered to be part of
1610 the "static" part of the current frame.
1611 Compute the address of the saved registers relative to the
1612 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1613 in use in this frame.
1615 2002-06-18 Don Howard <dhoward@redhat.com>
1617 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1618 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1619 suggesting this solution.
1621 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1623 * config/romp/xm-rtbsd.h: Delete file.
1624 * config/romp/rtbsd.mh: Delete file.
1626 2002-06-18 Keith Seitz <keiths@redhat.com>
1628 * breakpoint.c (condition_command): Post breakpoint_modify
1629 when a condition is added to an existing breakpoint.
1630 (commands_command): Likewise for commands.
1631 (set_ignore_count): Likewise for ignore counts.
1632 If no tty, do not simply return, still need to send event
1634 (ignore_command): Only print a newline if the command came
1636 Don't call breakpoints_changed, since this is now properly
1637 handled by set_ignore_count.
1639 2002-06-18 Andrew Cagney <cagney@redhat.com>
1641 * MAINTAINERS: Note that cris-elf target can be compiled with
1643 * cris-tdep.c (cris_register_name): Make return type constant.
1644 (cris_breakpoint_from_pc): Ditto.
1646 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1648 * frame.h (struct frame_info): Change type of context to
1651 2002-06-17 Andrew Cagney <cagney@redhat.com>
1653 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1655 * gdbarch.h, gdbarch.c: Regenerate.
1656 * config/mips/tm-mips.h (mips_register_name): Update.
1657 * i386-tdep.h (i386_register_name): Update.
1658 * mips-tdep.c (mips_register_name): Update
1659 * alpha-tdep.c (alpha_register_name): Update.
1660 * arch-utils.c (legacy_register_name): Update.
1661 * arch-utils.h (legacy_register_name): Update.
1662 * avr-tdep.c (avr_register_name): Update.
1663 * ia64-tdep.c (ia64_register_name): Update.
1664 * i386-tdep.c (i386_register_name): Update.
1665 * sparc-tdep.c (sparc32_register_name): Update.
1666 (sparc64_register_name): Update.
1667 (sparclite_register_name): Update.
1668 (sparclet_register_name): Update.
1669 * sh-tdep.c (sh_generic_register_name): Update.
1670 (sh_sh_register_name): Update.
1671 (sh_sh3_register_name): Update.
1672 (sh_sh3e_register_name): Update.
1673 (sh_sh_dsp_register_name): Update.
1674 (sh_sh3_dsp_register_name): Update.
1675 (sh_sh4_register_name): Update.
1676 (sh_sh64_register_name): Update.
1677 * s390-tdep.c (s390_register_name): Update.
1678 * rs6000-tdep.c (rs6000_register_name): Update.
1679 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1680 (ns32k_register_name_32382): Update.
1681 * d10v-tdep.c (d10v_ts2_register_name): Update.
1682 (d10v_ts3_register_name): Update.
1683 * xstormy16-tdep.c (xstormy16_register_name): Update.
1684 * vax-tdep.c (vax_register_name): Update.
1685 * v850-tdep.c (v850_register_name): Update.
1686 * m68hc11-tdep.c (m68hc11_register_name): Update.
1687 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1688 (am33_register_name): Update.
1690 2002-06-17 Grace Sainsbury <graces@redhat.com>
1692 * m68k-tdep.c: Reindented.
1694 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1696 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1697 list of predefined types.
1699 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1701 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1702 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1703 REGISTER_CONVERT_TO_RAW): Remove defines.
1704 (i386_register_virtual_type, i386_register_convertible,
1705 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1707 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1708 macros mentioned above.
1710 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1711 (i386lynx_saved_pc_after_call): Remove prototype.
1712 * i386ly-tdep.c: Include "i386-tdep.h".
1713 (i386lynx_saved_pc_after_call): Make static. Use
1714 read_memory_nobpt instead of read_memory. Use
1715 read_memory_unsigned_integer instead of read_memory_integer.
1716 (i386lynx_init_abi): New function.
1717 (i386lynx_coff_osabi_sniffer): New function.
1718 (_initialize_i386bsd_tdep): New function.
1720 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1721 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1722 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1723 (i386_fix_call_dummy): Remove prototype.
1724 * i386-tdep.c (i386_call_dummy_words): New variable.
1725 (i386_gdbarch_init): Adjust for removal of the
1726 macros mentioned above.
1728 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1730 * command.h (add_setshow_auto_boolean_cmd): Replace
1731 add_set_auto_boolean_cmd.
1732 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1733 add_set_auto_boolean_cmd.
1734 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1735 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1736 mask-address'' command.
1737 (show_mask_address): Add cmd parameter.
1738 * remote.c (add_packet_config_cmd): Update. Change type of
1739 set_func and show_func to cmd_sfunc_ftype.
1740 (_initialize_remote): Update `set remote Z-packet'
1741 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1742 (show_remote_protocol_e_packet_cmd): Ditto.
1743 (show_remote_protocol_E_packet_cmd): Ditto.
1744 (show_remote_protocol_P_packet_cmd): Ditto.
1745 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1746 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1747 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1748 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1749 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1750 (show_remote_protocol_Z_packet_cmd): Ditto.
1751 (show_remote_protocol_binary_download_cmd): Ditto.
1752 (show_remote_cmd): Pass NULL to all of above.
1754 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1756 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1757 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1758 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1759 POP_FRAME): Remove defines.
1760 (i386_push_arguments, i386_store_struct_return,
1761 i386_extract_return_value, i386_store_return_value,
1762 i386_extract_struct_value_address, i386_push_dummy_frame,
1763 i386_pop_frame): Renove prototypes.
1764 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1765 macros mentioned above.
1767 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1769 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1770 add_set_boolean_cmd.
1771 (add_setshow_cmd): New function.
1772 * command.h (add_setshow_boolean_cmd): Replace
1773 add_set_boolean_cmd.
1774 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1775 and ``set rdiromatzero''.
1776 * maint.c (_initialize_maint_cmds): Update commented out code.
1777 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1778 * target.c (initialize_targets): Update `set
1779 trust-readonly-sections'.
1780 * remote.c (_initialize_remote): Update `set remotebreak'.
1782 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1784 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1785 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1786 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1787 fit into multi-arch framework.
1788 (i386_breakpoint_from_pc): New function.
1789 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1792 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1793 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1794 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1795 (i386_frameless_function_invocation, i386_frame_num_args,
1796 i386_frame_init_saved_regs): Remove prototypes.
1797 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1798 macros mentioned above.
1800 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1802 * cli/cli-decode.c (set_cmd_cfunc): Update.
1803 (set_cmd_sfunc): Update.
1804 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1805 (set_cmd_sfunc, set_cmd_cfunc): Update.
1806 * cli/cli-decode.h: Update.
1808 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1810 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1811 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1813 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1815 * defs.h (auto_boolean): Declare enum.
1816 * command.h (cmd_auto_boolean): Delete enum.
1817 * mips-tdep.c (mask_address_var): Update.
1818 (mips_mask_address_p): Update.
1819 (show_mask_address): Update.
1820 * remote.c (struct packet_config): Update.
1821 (update_packet_config): Update.
1822 (show_packet_config_cmd): Update.
1823 (packet_ok): Update.
1824 (add_packet_config_cmd): Update.
1825 (_initialize_remote):
1826 * command.h: Update.
1827 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1828 (do_setshow_command): Update.
1829 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1830 * cli/cli-decode.h: Update.
1832 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1834 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1835 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1836 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1837 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1838 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1839 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1841 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1842 list of DJGPP COFF targets.
1844 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1845 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1846 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1847 (FP0_REGNUM): Remove define.
1848 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1849 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1850 (i386_register_virtual_size): Remove protoype.
1851 * i386-tdep.c (i386_register_virtual_size): Removed.
1852 (i386_extract_return_value, i386_store_return_value): Use
1853 FP0_REGNUM instead of NUM_FREGS to determine whether the
1854 floating-point registers are available.
1855 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1856 Adjust for removal of macros mentioned above.
1858 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1860 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1862 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1864 (supply_gregset, fill_gregset): Remove use of register keyword and
1865 remove declaration for regmap. Use I386_NUM_GREGS instead of
1866 NUM_REGS and NUM_FREGS.
1867 (FPREGSET_FSAVE_OFFSET): Remove.
1868 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1869 NUM_FREGS to determine whether the floating-point registers are
1872 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1873 gnu_store_registers): Replace usage of NUM_GREGS with
1876 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1877 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1878 usage of NUM_GREGS with I386_NUM_GREGS.
1880 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1882 * i386bsd-nat.c: Include "i386-tdep.h".
1883 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1886 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1887 and associated comment. They no longer make any sense, since we
1888 don't use this file anymore on Linux.
1890 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1891 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1892 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1893 elements in these arrays.
1894 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1897 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1899 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1900 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1902 2002-06-14 Andrew Cagney <cagney@redhat.com>
1904 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1905 EXTRACT_RETURN_VALUE.
1906 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1907 EXTRACT_STRUCT_VALUE_ADDRESS.
1908 * gdbarch.h, gdbarch.c: Regenerate.
1910 * values.c (value_being_returned): Handle
1911 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1912 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1914 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1915 * arm-tdep.c (arm_gdbarch_init): Update.
1916 * avr-tdep.c (avr_gdbarch_init): Update.
1917 * cris-tdep.c (cris_gdbarch_init): Update.
1918 * d10v-tdep.c (d10v_gdbarch_init): Update.
1919 * ia64-tdep.c (ia64_gdbarch_init): Update.
1920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1921 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1922 * s390-tdep.c (s390_gdbarch_init): Update.
1923 * sh-tdep.c (sh_gdbarch_init): Update.
1924 * s390-tdep.c (s390_gdbarch_init): Update.
1925 * sparc-tdep.c (sparc_gdbarch_init): Update.
1926 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1927 * v850-tdep.c (v850_gdbarch_init): Update.
1928 * vax-tdep.c (vax_gdbarch_init): Update.
1929 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1930 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1932 * config/arc/tm-arc.h: Update.
1933 * config/d30v/tm-d30v.h: Update.
1934 * config/fr30/tm-fr30.h: Update.
1935 * config/h8300/tm-h8300.h: Update.
1936 * config/h8500/tm-h8500.h: Update.
1937 * config/i386/tm-i386.h: Update.
1938 * config/i386/tm-ptx.h: Update.
1939 * config/i386/tm-symmetry.h: Update.
1940 * config/i960/tm-i960.h: Update.
1941 * config/m32r/tm-m32r.h: Update.
1942 * config/m68k/tm-delta68.h: Update.
1943 * config/m68k/tm-linux.h: Update.
1944 * config/m68k/tm-m68k.h: Update.
1945 * config/m88k/tm-m88k.h: Update.
1946 * config/mcore/tm-mcore.h: Update.
1947 * config/mips/tm-mips.h: Update.
1948 * config/mn10200/tm-mn10200.h: Update.
1949 * config/pa/tm-hppa.h: Update.
1950 * config/pa/tm-hppa64.h: Update.
1951 * config/sparc/tm-sp64.h: Update.
1952 * config/sparc/tm-sparc.h: Update.
1953 * config/sparc/tm-sparclet.h: Update.
1954 * config/z8k/tm-z8k.h: Update.
1956 2002-06-14 Andrew Cagney <cagney@redhat.com>
1958 * Makefile.in (i386_linux_tdep_h): Define.
1959 (i386_tdep_h, i387_tdep_h): Define.
1960 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1961 $(i386_tdep_h) and $(i387_tdep_h).
1962 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1964 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1966 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1967 Already covered by the default.
1969 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1970 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1971 (i386_gdbarch_init): Initialize long_double_format and long_double
1974 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1975 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1977 * config/i386/i386sol2.mh: ... here.
1978 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1979 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1980 (SIGCONTEXT_PC_OFFSET): Remove define.
1981 (IN_SIGTRAMP): Remove define.
1982 * i386-sol2-tdep.c: New file.
1984 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1985 * config/i386/tm-i386nw.h: Removed.
1987 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1988 USE_STRUCT_CONVENTION): Remove defines.
1989 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1990 (get_longjmp_target): Remove prototype.
1991 (IN_SIGTRAMP): Remove define.
1992 (i386bsd_in_sigtramp): Remove prototype.
1993 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1994 function. Update comment accordingly
1995 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1996 (FRAME_SAVED_PC): Remove define.
1997 (i386bsd_frame_saved_pc): Remove prototype.
1998 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1999 GET_LONGJMP_TARGET): Remove defines.
2000 (get_longjmp_target): Remove prototype.
2001 (IN_SIGTRAMP): Remove define.
2002 (i386bsd_in_sigtramp): Remove prototype.
2003 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2004 function. Update comment accordingly
2005 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2006 (FRAME_SAVED_PC): Remove define.
2007 (i386bsd_frame_saved_pc): Remove prototype.
2008 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2010 (USE_STRUCT_CONVENTION): Remove prototype.
2011 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2013 (_initialize_i386bsd_nat): Revise logic to determine some
2014 constants at compile time when compiling a native GDB. Warn if
2015 things don't match up with what we expect.
2016 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2018 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2019 to use date stored in `struct gdbarch_tdep'.
2020 (i386bsd_sigcontext_offset): Remove varaible.
2021 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2022 stored in `struct gdbarch_tdep'.
2023 (i386bsd_frame_saved_pc): Make static.
2024 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2025 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2026 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2027 i386fbsd4_sc_pc_offset): New variables.
2028 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2029 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2031 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2033 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2034 Modify the value of i386fbsd_sigtramp_start and
2035 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2036 i386fbsd_sigtramp_end.
2037 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2040 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2041 define to i386-linux-tdep.h.
2042 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2043 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2045 (i386_linux_register_name, i386_linux_register_byte,
2046 i386_linux_register_raw_size): Remove prototypes.
2047 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2048 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2049 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2050 TARGET_WRITE_PC): Remove defines.
2051 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2052 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2053 i386_linux_write_pc): Remove prototypes.
2054 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2055 (get_longjmp_target): Remove prototype.
2056 * i386-linux-tdep.h: New file.
2057 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2058 * i386-linux-tdep.c: Include "i386-tdep.h" and
2059 "i386-linux-tdep.h".
2060 (i386_linux_register_name, i386_linux_register_byte,
2061 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2062 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2064 (i386_linux_init_abi): New function.
2065 (_initialize_i386_linux_tdep): New function.
2067 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2068 (i386_saved_pc_after_call): Remove prototype.
2069 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2070 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2071 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2072 (i386_register_name, i386_stab_reg_to_regnum,
2073 i386_dwarf_reg_to_regnum): Remove prototypes.
2074 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2075 SIZEOF_SSE_REGS): Remove defines.
2076 (REGISTER_BYTES): Remove define.
2077 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2078 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2079 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2080 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2081 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2082 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2083 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2084 (get_longjmp_target): Remove prototype.
2085 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2086 (sigtramp_saved_pc): Remove define.
2087 (i386v4_sigtramp_saved_pc): Remove prototype.
2088 * config/i386/tm-go32.h (FRAME_CHAIN,
2089 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2090 (i386go32_frame_saved_pc): Remove prototype.
2091 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2092 (get_longjmp_target): Remove prototype.
2093 * i386-tdep.h: Include "osabi.h".
2094 (enum i386_abi): Removed.
2095 (enum struct_return): New enum.
2096 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2097 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2098 sc_pc_offset members.
2099 (i386_gdbarch_register_os_abi): Remove prototype.
2100 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2101 I386_SSE_NUM_REGS): New defines.
2102 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2103 I386_SSE_SIZEOF_REGS): New defines.
2104 (i386_register_name, i386_register_byte, i386_register_raw_size):
2106 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2107 (i386bsd_sigtramp_saved_pc): New prototype.
2108 * i386-tdep.c: Don't include "elf-bfd.h".
2109 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2110 i386_frame_chain, i386_saved_pc_after_call): Make static.
2111 (i386_frame_saved_pc): Rewrite to call architecture dependent
2112 function to deal with signal handlers. Make static.
2113 (i386go32_frame_saved_pc): Removed.
2114 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2116 (i386_get_longjmp_target): New function.
2117 (default_struct_convention, pcc_struct_convention,
2118 reg_struct_convention, valid_conventions, struct_convention): New
2120 (i386_use_struct_convention): New function.
2121 (i386v4_sigtramp_saved_pc): Renamed to
2122 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2123 (i386_pc_in_sigtramp): New function.
2124 (i386_abi_names): Removed.
2125 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2126 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2128 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2129 i386_gdbarch_register_os_abi): Removed.
2130 (struct i386_abi_handler): Removed.
2131 (i386_abi_handler_list): Removed.
2132 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2134 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2135 i386_nw_init_abi): New functions.
2136 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2137 Use set_gdbarch_xxx() calls instead of relying on macros for a
2139 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2140 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2141 Register the various architecture variants defined in this file.
2143 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2145 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2146 (struct main_type): Remove arg_types member. Update comments for
2148 (TYPE_ARG_TYPES): Remove.
2149 (TYPE_FN_FIELD_ARGS): Update.
2150 (smash_to_method_type): Update prototype.
2152 * c-typeprint.c (cp_type_print_method_args): Take method type
2153 instead of argument list. Use new argument layout. Simplify.
2154 (c_type_print_args): Use new argument layout. Simplify.
2155 (c_type_print_base): Update call to cp_type_print_method_args.
2156 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2157 argument; use die->type instead. Update call to
2158 smash_to_method_type.
2159 (read_structure_scope): Update call to dwarf2_add_member_fn.
2160 * gdbtypes.c (allocate_stub_method): Update comment.
2161 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2162 Use new argument layout.
2163 (check_stub_method): Use new argument layout. Don't count
2164 void as an argument.
2165 (print_arg_types): Update comments. Use new argument layout.
2166 (recursive_dump_type): Don't print arg_types member.
2167 * hpread.c (hpread_read_struct_type): Use new argument layout.
2168 (fixup_class_method_type): Likewise.
2169 (hpread_type_lookup): Likewise.
2170 * stabsread.c (read_type): Update calls to read_args and
2171 smash_to_method_type.
2172 (read_args): Use new argument layout. Simplify.
2173 * valops.c (typecmp): Use new argument layout. Update parameters
2174 and comments. Simplify.
2175 (hand_function_call): Use new argument layout.
2176 (search_struct_method): Update call to typecmp.
2177 (find_overload_match): Use new argument layout.
2179 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2181 * NEWS: Mention multithreaded debug support for gdbserver.
2183 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2185 * MAINTAINERS: Mention NEWS.
2187 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2189 * gdbserver/regcache.c: Add comment.
2191 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2193 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2194 (struct mips_objfile_private, compare_pdr_entries): New.
2195 (non_heuristic_proc_desc): Read the ".pdr" section if it
2198 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2200 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2201 (arm_debug): New static variable.
2202 (_initialize_arm_tdep): Add ``set debug arm'' command.
2204 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2206 * Makefile.in (sim_arm_h): Define.
2207 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2208 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2209 (arm_register_sim_regno): New function, map an internal REGNUM
2210 onto a simulator register number.
2211 (arm_gdbarch_init): Set register_sim_regno.
2213 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2215 * MAINTAINERS: Add self.
2217 2002-06-11 Jim Blandy <jimb@redhat.com>
2219 * source.c (source_info): Mention whether the symtab has
2220 information about preprocessor macros.
2222 Call the command `info macro', not `show macro'.
2223 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2225 (_initialize_macrocmd): Register `info_macro_command' in
2226 `infolist', not `showlist'.
2228 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2230 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2231 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2232 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2233 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2234 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2236 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2237 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2238 (_initialize_mips_tdep): Remove dead code.
2239 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2240 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2241 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2242 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2243 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2244 MIPS_LAST_FP_ARG_REGNUM): Remove.
2246 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2248 * gdbserver/thread-db.c: New file.
2249 * gdbserver/proc-service.c: New file.
2250 * gdbserver/acinclude.m4: New file.
2251 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2252 proc-service.o, and thread-db.o.
2253 (linux-low.o): Add USE_THREAD_DB.
2254 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2255 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2256 * gdbserver/aclocal.m4: Regenerated.
2257 * gdbserver/config.in: Regenerated.
2258 * gdbserver/configure: Regenerated.
2259 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2260 thread_db.h, and linux/elf.h headrs.
2261 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2262 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2263 Check for -lthread_db and thread support.
2264 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2265 PowerPC, and SuperH.
2266 * gdbserver/i387-fp.c: Constify arguments.
2267 * gdbserver/i387-fp.h: Likewise.
2268 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2269 `struct inferior_info'. Remove PID member. Use generic inferior
2270 list header. All uses updated.
2271 (inferiors, signal_pid): Removed.
2272 (all_threads): New variable.
2273 (get_thread): Define.
2274 (add_inferior_to_list): New function.
2275 (for_each_inferior): New function.
2276 (change_inferior_id): New function.
2277 (add_inferior): Removed.
2278 (remove_inferior): New function.
2279 (add_thread): New function.
2280 (free_one_thread): New function.
2281 (remove_thread): New function.
2282 (clear_inferiors): Use for_each_inferior and free_one_thread.
2283 (find_inferior): New function.
2284 (find_inferior_id): New function.
2285 (inferior_target_data): Update argument type.
2286 (set_inferior_target_data): Likewise.
2287 (inferior_regcache_data): Likewise.
2288 (set_inferior_regcache_data): Likewise.
2289 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2290 (all_processes, stopping_threads, using_thrads)
2291 (struct pending_signals, debug_threads, pid_of): New.
2292 (inferior_pid): Replace with macro.
2293 (struct inferior_linux_data): Remove.
2294 (get_stop_pc, add_process): New functions.
2295 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2296 Use add_process and add_thread.
2297 (linux_attach_lwp): New function, based on old linux_attach. Use
2298 add_process and add_thread. Set stop_expected for new threads.
2299 (linux_attach): New function.
2300 (linux_kill_one_process): New function.
2301 (linux_kill): Kill all LWPs.
2302 (linux_thread_alive): Use find_inferior_id.
2303 (check_removed_breakpoints, status_pending_p): New functions.
2304 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2305 Update. Use WNOHANG. Wait for cloned processes also. Update process
2306 struct for the found process.
2307 (linux_wait_for_event): New function.
2308 (linux_wait): Use it. Support LWPs.
2309 (send_sigstop, wait_for_sigstop, stop_all_processes)
2310 (linux_resume_one_process, linux_continue_one_process): New functions.
2311 (linux_resume): Support LWPs.
2312 (REGISTER_RAW_SIZE): Remove.
2313 (fetch_register): Use register_size instead. Call supply_register.
2314 (usr_store_inferior_registers): Likewise. Call collect_register.
2316 (regsets_fetch_inferior_registers): Improve error message.
2317 (regsets_store_inferior_registers): Add debugging.
2318 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2319 (unstopped_p, linux_signal_pid): New functions.
2320 (linux_target_ops): Add linux_signal_pid.
2321 (linux_init_signals): New function.
2322 (initialize_low): Call it. Initialize using_threads.
2323 * gdbserver/regcache.c (inferior_regcache_data): Add valid
2325 (get_regcache): Fetch registers lazily. Add fetch argument
2326 and update all callers.
2327 (regcache_invalidate_one, regcache_invalidate): New
2329 (new_register_cache): Renamed from create_register_cache.
2330 Return the new regcache.
2331 (free_register_cache): Change argument to a void *.
2332 (registers_to_string, registers_from_string): Call get_regcache
2333 with fetch flag set.
2334 (register_data): Make static. Pass fetch flag to get_regcache.
2335 (supply_register): Call get_regcache with fetch flag clear.
2336 (collect_register): Call get_regcache with fetch flag set.
2337 (collect_register_as_string): New function.
2338 * gdbserver/regcache.h: Update.
2339 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
2341 Handle input interrupts while waiting for an ACK.
2342 (input_interrupt): Use signal_pid method.
2343 (getpkt): Flush after debug output and use stderr.
2344 (outreg): Use collect_register_as_string.
2345 (new_thread_notify, dead_thread_notify): New functions.
2346 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2348 (look_up_one_symbol): Flush after debug output.
2349 * gdbserver/server.c (step_thread, server_waiting): New variables.
2350 (start_inferior): Don't use signal_pid. Update call to mywait.
2351 (attach_inferior): Update call to mywait.
2352 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2353 (main): Don't fetch/store registers explicitly. Use
2354 set_desired_inferior. Support proposed ``Hs'' packet. Update
2356 * gdbserver/server.h: Update.
2357 (struct inferior_list, struct_inferior_list_entry): New.
2358 * gdbserver/target.c (set_desired_inferior): New.
2359 (write_inferior_memory): Constify.
2360 (mywait): New function.
2361 * gdbserver/target.h: Update.
2362 (struct target_ops): New signal_pid method.
2363 (mywait): Removed macro, added prototype.
2365 * gdbserver/linux-low.h (regset_func): Removed.
2366 (regset_fill_func, regset_store_func): New.
2367 (enum regset_type): New.
2368 (struct regset_info): Add type field. Use new operation types.
2369 (struct linux_target_ops): stop_pc renamed to get_pc.
2370 Add decr_pc_after_break and breakpoint_at.
2371 (get_process, get_thread_proess, get_process_thread)
2372 (strut process_info, all_processes, linux_attach_lwp)
2373 (thread_db_init): New.
2375 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
2376 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2377 (the_low_target): Add new members.
2378 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2379 (i386_store_fpxregset): Constify.
2380 (target_regsets): Add new kind identifier.
2381 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2382 (i386_set_pc): Add debugging.
2383 (i386_breakpoint_at): New function.
2384 (the_low_target): Add new members.
2385 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
2386 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2387 (mips_breakpoint_at): New.
2388 (the_low_target): Add new members.
2389 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2390 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2391 (the_low_target): Add new members.
2392 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
2393 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2394 (the_low_target): Add new members.
2395 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
2398 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2400 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2401 (unwind_tmp_obstack_free, parse_frame_info)
2402 (update_context, cfi_read_fp, cfi_write_fp)
2403 (cfi_frame_chain, cfi_init_extra_frame_info)
2404 (cfi_virtual_frame_pointer): Use the above function.
2405 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
2407 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
2409 * v850-tdep.c (v850_type_is_scalar): New function.
2410 (v850_use_struct_convention): Match current gcc implementation
2411 as close as possible.
2412 (v850_push_arguments): Fix stack_offset handling. Don't write
2413 struct_addr into register. This is done by v850_store_struct_return.
2414 (v850_extract_return_value): Care for structs.
2415 (v850_store_return_value): Ditto.
2416 (v850_store_struct_return): Actually write address.
2418 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2420 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2421 without debug information too.
2423 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2425 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2426 Make multi-arch pure.
2427 * gdbarch.h, gdbarch.c: Re-generate.
2428 * arm-tdep.c (arm_print_float_info): Update.
2429 * arch-utils.h (default_print_float_info): Update.
2430 * arch-utils.c (default_print_float_info): Update.
2431 * infcmd.c (float_info): Update call.
2433 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2435 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2436 the front of the initialize list.
2438 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2440 * infrun.c (struct inferior_status): Replace fields
2441 selected_frame_address and selected_level with field
2443 (save_inferior_status): Update. Use get_frame_id.
2444 (struct restore_selected_frame_args): Delete.
2445 (restore_selected_frame): Update. Use frame_find_by_id.
2446 (restore_inferior_status): Update.
2448 * breakpoint.h (struct breakpoint): Change type of
2449 watchpoint_frame to frame_id.
2450 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2451 call to get_current_frame.
2452 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2454 (watchpoint_check): Use frame_find_by_id.
2456 * frame.h (record_selected_frame): Delete declaration.
2457 * stack.c (record_selected_frame): Delete function.
2459 * frame.h (struct frame_id): Define.
2460 (get_frame_id): Declare.
2461 (frame_find_by_id): Declare.
2462 * frame.c (frame_find_by_id): New function.
2463 (get_frame_id): New function.
2465 2002-06-10 Andrey Volkov <avolkov@transas.com>
2467 * ser-e7kpc.c: Fix duplicated define and call of
2468 _initialize_ser_e7000pc
2470 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2472 * signals/signals.c (target_signal_from_host): Fix #ifdef
2474 (do_target_signal_to_host): Likewise.
2476 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2478 * mips-tdep.c (mips_find_abi_section): New function.
2479 (mips_gdbarch_init): Call it.
2481 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2483 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2484 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2485 after Andrew's 2002-06-08 gdbarch change.
2487 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2489 * i386-linux-nat.c (suppy_gregset): Don't supply
2490 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2492 (fill_gregset): Don't fetch it under the same circumstances.
2494 2002-06-09 Andrew Cagney <cagney@redhat.com>
2496 * Makefile.in (callback_h): Define.
2497 (remote_sim_h): Update path to remote-sim.h.
2498 (remote-rdp.o): Add $(callback_h).
2499 (remote-sim.o): Use $(callback_h).
2500 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2501 * remote-rdp.c: Include "gdb/callback.h".
2503 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2505 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2506 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2508 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2510 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2511 * rdi-share/serpardr.c: Ditto.
2512 * rdi-share/unixcomm.c: Ditto.
2513 * rdi-share/serdrv.c: Ditto.
2514 * rdi-share/hostchan.h: Ditto.
2515 * rdi-share/hostchan.c: Ditto.
2516 * rdi-share/host.h: Ditto.
2517 * rdi-share/devsw.c: Ditto.
2519 * objfiles.h: Change type of obj_private to void pointer.
2520 * pa64solib.c: Update copyright. Don't include "assert.h", use
2521 strcmp instead of STREQ, use LONGEST, do not use PTR
2522 * somsolib.c: Ditto.
2524 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2525 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2526 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2528 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2530 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2531 (default_get_saved_register): Delete function.
2532 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2533 generic_unwind_get_saved_register.
2534 * gdbarch.h, gdbarch.c: Re-generate.
2536 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2538 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2539 generic_func_frame_chain_valid.
2540 * gdbarch.h, gdbarch.c: Re-generate.
2541 * blockframe.c (generic_func_frame_chain_valid): Only check
2542 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2543 passing FP to PC_IN_CALL_DUMMY.
2546 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2548 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2549 (register_gdbarch_data): Initialize init_p.
2550 (gdbarch_data): Initialize data pointer using the init function.
2551 (init_gdbarch_data): Delete function.
2552 (gdbarch_update_p): Update.
2553 (initialize_non_multiarch): Update.
2554 (struct gdbarch): Add field initialized_p.
2555 * gdbarch.h, gdbarch.c: Re-generate.
2557 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2559 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2560 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2561 better do the things actually here.
2562 * x86-64-tdep.c (x86_64_register_name2nr): New.
2563 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2564 (x86_64_gdbarch_init): Respect the above change.
2565 * x86-64-tdep.h (x86_64_register_name2nr)
2566 (x86_64_register_nr2name): Add prototypes.
2567 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2569 2002-06-06 Michael Snyder <msnyder@redhat.com>
2571 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2572 Delete extra braces and re-indent.
2573 (d10v_store_return_value): Char return values
2574 must be shifted over by one byte in R0.
2575 (d10v_extract_return_value): Delete extra braces, re-indent.
2577 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2579 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2580 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2581 (d10v_integer_to_address): Rewrite.
2582 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2583 the d10v specific functions which take care of converting to the
2586 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2588 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2589 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2591 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2593 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2595 * config/tm-linux.h: Ditto.
2596 * config/alpha/tm-alphalinux.h: Ditto.
2597 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2598 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2599 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2600 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2601 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2602 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2603 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2604 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2605 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2606 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2607 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2608 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2609 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2610 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2611 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2612 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2613 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2614 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2615 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2616 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2617 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2618 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2619 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2620 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2621 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2622 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2623 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2624 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2625 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2626 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2627 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2628 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2629 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2630 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2631 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2632 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2633 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2635 2002-05-04 Aidan Skinner <aidan@velvet.net>
2637 * ada-exp.tab.c: New file
2638 * ada-exp.y: New file
2639 * ada-lang.c: New file
2640 * ada-lang.h: New file
2641 * ada-lex.c: New file
2642 * ada-lex.l: New file
2643 * ada-tasks.c: New file
2644 * ada-typeprint.c: New file
2645 * ada-valprint.c: New file
2647 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2649 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2650 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2652 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2654 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2655 insetead of ppc-linux-tdep.o.
2656 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2657 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2659 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2661 2002-05-07 Christian Groessler <chris@groessler.org>
2662 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2663 bit register contents for little endian hosts.
2665 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2667 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2670 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2672 * gdbarch.h: Regenerate.
2674 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2676 * MAINTAINERS: Add everyone to write-after-approval list.
2678 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2680 * stack.c (frame_info): Use frame_register_unwind instead of
2681 saved_regs. Mention when the SP is on the stack or in a register.
2683 * frame.h (frame_register_unwind_ftype): Define. Document.
2684 (struct frame_info): Add field register_unwind and
2685 register_unwind_cache.
2686 (frame_register_unwind): Declare.
2687 (generic_unwind_get_saved_register): Declare.
2689 * frame.c (frame_register_unwind): New function.
2690 (generic_unwind_get_saved_register): New function.
2692 * blockframe.c (generic_call_dummy_register_unwind): New function.
2693 (frame_saved_regs_register_unwind): New function.
2694 (set_unwind_by_pc): New function.
2695 (create_new_frame): New function.
2696 (get_prev_frame): New function.
2698 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2700 * a29k-share/: Delete directory.
2701 * remote-vx29k.c: Delete file.
2703 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2705 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2706 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2708 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2710 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2711 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2714 (sparcnbsd-tdep.o): New dependency lists.
2715 * NEWS: Note new UltraSPARC NetBSD native configuration.
2716 * configure.host (sparc64-*-netbsd*): New host.
2717 * configure.tgt (sparc-*-netbsdelf*)
2718 (sparc-*-netbsd*): Set gdb_target to nbsd.
2719 (sparc64-*-netbsd*): New target.
2720 * sparc64nbsd-nat.c: New file.
2721 * sparcnbsd-nat.c: New file.
2722 * sparcnbsd-tdep.c: New file.
2723 * sparcnbsd-tdep.h: New file.
2724 * config/sparc/nbsd.mt: New file.
2725 * config/sparc/nbsd64.mh: New file.
2726 * config/sparc/nbsd64.mt: New file.
2727 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2728 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2730 * config/sparc/nbsdaout.mt: Remove.
2731 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2732 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2734 * config/sparc/nbsdelf.mt: Remove.
2735 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2736 sparc-nat.c compatiblity defines.
2737 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2738 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2739 * config/sparc/tm-nbsd64.h: New file.
2740 * config/sparc/tm-nbsdaout.h: Remove.
2741 * config/sparc/xm-nbsd.h: Remove.
2743 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2745 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2746 * sparc-tdep.c: Include osabi.h.
2747 (gdbarch_tdep): Add osabi member.
2748 (_initialize_sparc_tdep): Use gdbarch_register.
2749 (sparc_gdbarch_init): Use generic OS ABI framework.
2750 (sparc_dump_tdep): New function.
2752 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2754 * corefile.c (do_captured_read_memory_integer): Return non-zero
2756 (safe_read_memory_integer): Copy result of memory read when
2757 status is non-zero. Also, add comments.
2759 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2761 * Makefile.in (ppc_tdep_h): Define.
2764 (rs6000-tdep.o): Use $(ppc_tdep_h).
2767 (ppcnbsd-tdep.o): New dependency lists.
2768 * ppc-tdep.h: Use generic OS ABI framework.
2769 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2770 (ppc_linux_init_abi): New functions.
2771 (ppc_sysv_abi_broken_use_struct_convention)
2772 (ppc_sysv_abi_use_struct_convention)
2773 (ppc_sysv_abi_push_arguments): Move to...
2774 * ppc-sysv-tdep.c: ...here.
2775 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2776 * rs6000-tdep.c (process_note_abi_tag_sections)
2777 (get_elfosabi): Remove.
2778 (rs6000_gdbarch_init): Use generic OS ABI framework.
2779 (rs6000_dump_tdep): New function.
2780 (_initialize_rs6000_tdep): Use gdbarch_register.
2781 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2782 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2783 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2784 of ppc-linux-tdep.o.
2785 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2786 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2787 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2788 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2789 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2790 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2792 2002-05-29 Jim Blandy <jimb@redhat.com>
2794 * macroscope.c (default_macro_scope): Put `void' in empty argument
2797 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2799 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2800 * arch-utils.c: Include "sim-regno.h".
2801 * gdbarch.sh: Don't include "sim-regno.h".
2802 * gdbarch.h, gdbarch.c: Regenerate.
2803 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2805 * arch-utils.h (legacy_register_sim_regno): To here.
2806 * remote-sim.c (legacy_register_sim_regno): Move function from
2808 * arch-utils.c (legacy_register_sim_regno): To here.
2810 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2812 * sim-regno.h: New file.
2813 * Makefile.in (sim_regno_h): Define.
2814 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2815 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2816 (legacy_register_sim_regno): New function.
2817 (one2one_register_sim_regno): New function.
2818 (gdbsim_fetch_register): Rewrite.
2819 (gdbsim_store_register): Only store a register when
2820 REGISTER_SIM_REGNO is valid.
2821 * d10v-tdep.c: Include "sim-regno.h".
2822 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2823 (d10v_ts3_register_sim_regno): Ditto.
2824 * gdbarch.sh: Include "sim-regno.h".
2825 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2826 * gdbarch.h, gdbarch.c: Regenerate.
2827 * arch-utils.h (default_register_sim_regno): Delete declaration.
2828 * arch-utils.c (default_register_sim_regno): Delete function.
2830 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2832 * ppcnbsd-nat.c: Rewrite.
2833 * ppcnbsd-tdep.c: New file.
2834 * ppcnbsd-tdep.h: New file.
2835 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2836 solib.o, and solib-svr4.o.
2837 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2838 nbsd-tdep.o, and corelow.o.
2840 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2842 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2843 `tr' and `sed'. Mention that `broken' targets are not expected to
2846 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2848 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2849 Let PC point right after the prologue before looking up symbols.
2851 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2853 * i386-tdep.c (i386_register_virtual_type): Return
2854 builtin_type_vec128i for SSE registers.
2856 * gdbtypes.h (builtin_type_vec128i): Declare.
2858 * gdbtypes.c (build_builtin_type_vec128i): New function.
2859 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2860 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2861 (build_gdbtypes): Initialize new builtin vector types.
2862 (_initialize_gdbtypes): Register new vector types with gdbarch.
2864 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2866 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2867 since it has been multi-arch'd.
2868 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2869 Move Alpha and VAX multi-arch news entries to same section
2870 as other multi-arch news.
2872 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2874 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2875 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2876 static. Rename some register numbers to put them in ns32k-tdep
2878 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2879 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2881 (_initialize_ns32k_tdep): Use gdbarch_register.
2882 * ns32k-tdep.h: New file.
2883 * ns32knbsd-tdep.c: New file.
2884 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2885 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2886 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2887 REGISTER_BYTES, REGISTER_BYTE): Remove.
2888 * config/ns32k/tm-ns32k.h: New file.
2889 * config/ns32k/tm-umax.h: Remove.
2891 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2893 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2894 ns32k_store_struct_return, ns32k_extract_return_value,
2895 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2897 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2898 ns32k_saved_pc_after_call.
2899 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2900 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2901 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2902 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2903 ns32k_extract_struct_value_address.
2905 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2907 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2908 ns32k_fix_call_dummy): New.
2909 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2910 ns32k_call_dummy_words.
2911 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2912 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2913 CALL_DUMMY_NARGS): Remove.
2914 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2916 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2918 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2919 ns32k_frame_saved_pc, ns32k_frame_args_address,
2920 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2921 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2922 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2923 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2924 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2925 (BREAKPOINT): Remove..
2926 (FRAME_CHAIN): Define as ns32k_frame_chain.
2927 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2928 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2929 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2930 (FRAME_FIND_SAVED_REGS): Remove.
2931 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2932 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2933 (POP_FRAME): Define as ns32k_pop_frame.
2935 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2937 * ns32k-tdep.c (ns32k_register_byte_32082,
2938 ns32k_register_byte_32382, ns32k_register_raw_size,
2939 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2941 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2942 ns32k_register_byte_32382.
2943 * config/ns32k/tm-umax.h: Update copyright years.
2944 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2945 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2946 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2947 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2948 (ns32k_get_enter_addr): Fix prototype.
2950 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2952 * ns32k-tdep.c: Update copyright years.
2953 (ns32k_register_name_32082): New function.
2954 (ns32k_register_name_32382): Ditto.
2955 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2956 (REGISTER_NAME): Define as ns32k_register_name_32382.
2957 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2958 (REGISTER_NAME): Define as ns32k_register_name_32082.
2960 2002-05-24 Jim Blandy <jimb@redhat.com>
2962 * dwarf2read.c (free_line_header): Use xfree, not free.
2964 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2966 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2967 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2969 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2971 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2973 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2975 From Ross Alexander at NEC Europe:
2976 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2978 2002-05-23 Michael Snyder <msnyder@redhat.com>
2980 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2981 for input, rather than parse_and_eval_address.
2983 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2985 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2986 * Makefile.in (sim_d10v_h): Update definition.
2988 2002-05-24 Andrew Cagney <cagney@redhat.com>
2990 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2991 change `2002-05-22 Michael Snyder' below.
2992 (d10v_push_arguments): Ditto.
2993 (d10v_extract_return_value): Ditto.
2995 2002-05-23 Jim Blandy <jimb@redhat.com>
2997 * macrotab.c (check_for_redefinition): Don't complain if the new
2998 definition is the same as the previous one. Take more arguments
2999 to allow the comparison.
3000 (macro_define_object, macro_define_function): Pass more arguments
3001 to check_for_redefinition.
3003 2002-05-22 Michael Snyder <msnyder@redhat.com>
3005 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3006 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3007 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3008 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3009 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3010 Add a temp variable to save a call (and a memory read).
3011 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3012 if possible (so that PC_IN_CALL_DUMMY will work).
3014 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
3016 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3018 2002-05-22 Michal Ludvig <mludvig@suse.cz>
3020 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3022 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3023 (dwarf2_build_frame_info): Add offset to fde->initial_location
3024 so that frames of shared libraries are mapped correctly.
3025 (execute_stack_op): Change type of 'result' from ULONGEST to
3028 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3030 * config/alpha/tm-nbsd.h: Include solib.h.
3032 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3034 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3035 assumptions about the host's byte order.
3037 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3039 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3041 * alphanbsd-tdep.c: Include solib-svr4.h.
3042 * shnbsd-tdep.c: Ditto.
3044 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3046 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3047 nbsd-tdep.h to dependency list.
3048 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3049 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3050 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3051 nbsdaout.mh and nbsdelf.mh consistently.
3052 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3053 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3054 nbsdaout.mt and nbsdelf.mh consistently.
3055 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3056 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3057 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3058 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3059 a.out shared library stuff from here...
3060 * config/nm-nbsdaout.h: ...to here.
3061 * config/tm-nbsd.h: Remove.
3062 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3063 * config/arm/nbsd.mh: Remove.
3064 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3066 * config/arm/nbsdaout.mh: New file.
3067 * config/arm/nbsdelf.mh: New file.
3068 * config/arm/nm-nbsdaout.h: New file.
3069 * config/i386/nbsd.mh: Remove.
3070 * config/i386/nbsd.mt: Remove.
3071 * config/i386/nbsdaout.mh: New file.
3072 * config/i386/nbsdaout.mt: New file.
3073 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3074 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3075 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3076 i386_register_u_addr): Remove.
3077 * config/i386/nm-nbsdaout.h: New file.
3078 * config/i386/nm-nbsdelf.h: Remove.
3079 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3080 (USE_STRUCT_CONVENTION): Remove.
3081 * config/i386/tm-nbsdaout.h: New file.
3082 * config/i386/tm-nbsdelf.h: Remove.
3083 * config/m68k/nbsd.mh: Remove.
3084 * config/m68k/nbsd.mt: Remove.
3085 * config/m68k/nbsdaout.mh: New file.
3086 * config/m68k/nbsdaout.mt: New file.
3087 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3088 * config/m68k/nm-nbsdaout.h: New file.
3089 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3090 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3091 * config/ns32k/nbsd.mh: Remove.
3092 * config/ns32k/nbsd.mt: Remove.
3093 * config/ns32k/nbsdaout.mh: New file.
3094 * config/ns32k/nbsdaout.mt: New file.
3095 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3096 * config/ns32k/nm-nbsdaout.h: New file.
3097 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3098 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3099 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3100 (SVR4_SHARED_LIBS): Remove.
3101 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3102 * config/sparc/nbsd.mh: Remove.
3103 * config/sparc/nbsd.mt: Remove.
3104 * config/sparc/nbsdaout.mh: New file.
3105 * config/sparc/nbsdaout.mt: New file.
3106 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3107 * config/sparc/nbsdelf.mt: New file.
3108 * config/sparc/nm-nbsdaout.h: New file.
3109 * config/sparc/nm-nbsdelf.h: Remove.
3110 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3111 * config/sparc/tm-nbsdaout.h: New file.
3113 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3115 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3117 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3119 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3121 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3123 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3125 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3127 * NEWS: Note new MIPS NetBSD native configuration.
3128 * configure.host (mips*-*-netbsd*): New host.
3129 * configure.tgt (mips*-*-netbsd*): New target.
3130 * mipsnbsd-nat.c: New file.
3131 * mipsnbsd-tdep.c: New file.
3132 * mipsnbsd-tdep.h: New file.
3133 * config/mips/nbsd.mh: New file.
3134 * config/mips/nbsd.mt: New file.
3135 * config/mips/nm-nbsd.h: New file.
3136 * config/mips/tm-nbsd.h: New file.
3138 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3140 * Makefile.in (SFILES): Add osabi.c.
3141 (COMMON_OBS): Add osabi.o.
3142 (osabi.o): New dependency list.
3143 * osabi.c: New file.
3144 * osabi.h: New file.
3145 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3147 * Makefile.in (alpha_tdep_h): Define and use instead of
3149 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3150 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3152 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3153 * alpha-tdep.h: Include osabi.h.
3154 (alpha_abi): Remove.
3155 (gdbarch_tdep): Use generic OS ABI framework.
3156 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3157 gdbarch_register_osabi.
3158 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3159 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3160 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3162 * Makefile.in (sh_tdep_h): Add osabi.h.
3163 * sh-tdep.h (sh_osabi): Remove.
3164 (gdbarch_tdep): Use generic OS ABI framework.
3165 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3166 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3167 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3168 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3170 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3171 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3172 gdbarch_register_osabi.
3173 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3174 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3175 (get_elfosabi): Rename to...
3176 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3177 ABI framework support routines.
3178 (arm_gdbarch_init): Use generic OS ABI framework.
3179 (arm_dump_tdep): Likewise.
3180 (_initialize_arm_tdep): Likewise.
3181 * arm-tdep.h: Include osabi.h.
3183 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3185 (arm_gdbarch_register_os_abi): Remove prototype.
3186 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3187 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3189 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3190 * mips-tdep.c: Include osabi.h.
3191 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3194 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3196 * h8300-tdep.c: Fix formatting.
3198 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3200 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3201 printing vector registers.
3203 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3205 From Fernando Nasser:
3206 * remote.c (remote_async_open_1): Re-throw the exception when the
3208 (remote_cisco_open): Ditto.
3209 (remote_open_1): Ditto.
3211 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3213 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3214 (remote_start_remote): Add uiout parameter. Pass through to
3215 remote_start_remote_dummy.
3216 (remote_open_1): Use catch_exception instead of catch_errors.
3217 (remote_async_open_1): Ditto.
3218 (remote_cisco_open): Ditto.
3220 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3222 * remote.c (remote_start_remote): Replace PTR with void pointer.
3223 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3226 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3228 * gdb_indent.sh: Allow the script to be run in the sim directory.
3230 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3232 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3233 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3235 * corelow.c (core_open): Only call set_gdbarch_from_file if
3238 2002-05-17 Andrey Volkov <avolkov@transas.com>
3240 * h8300-tdep.c: Add support of EXR register
3241 * config/h8300/tm-h8300.h: Ditto.
3243 2002-05-17 Andrey Volkov <avolkov@transas.com>
3245 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3247 2002-05-17 Andrey Volkov <avolkov@transas.com>
3249 * h8300-tdep.c: Change literal regnums to REGNO.
3251 2002-05-17 Jim Blandy <jimb@redhat.com>
3253 * NEWS: Note addition of macro support.
3255 Expand preprocessor macros in C expressions.
3256 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3257 (scan_macro_expansion, scanning_macro_expansion,
3258 finished_macro_expansion): New function declarations.
3259 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3260 variable declarations.
3261 * parser-defs.h (expression_context_pc): New declaration.
3262 * parse.c (expression_context_pc): New variable.
3263 (parse_exp_1): Set expression_context_pc, as well as
3264 expression_context_block.
3265 * c-exp.y (yylex): If we're not already reading the result of a
3266 macro expansion, try to macro-expand the next token. When we're
3267 done scanning a macro expansion, switch back to the mainline text.
3268 Commas and `if's in a macro's expansion don't terminate the input.
3269 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3270 (macro_original_text, macro_expanded_text,
3271 expression_macro_lookup_func, expression_macro_lookup_baton): New
3273 (scan_macro_expansion, scanning_macro_expansion,
3274 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3275 c_preprocess_and_parse): New functions.
3276 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3277 c_preprocess_and_parse, instead of c_parse.
3278 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3279 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3281 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3283 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3284 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3285 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3287 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
3289 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3291 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3293 * Makefile.in (sh_tdep_h): Define and use.
3294 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3295 register enum): Move to...
3296 * * sh-tdep.h: ...here.
3297 * sh-tdep.c: Include sh-tdep.h.
3298 * sh3-rom.c: Likewise.
3299 * shnbsd-tdep.c: Likewise.
3301 2002-05-16 Michael Snyder <msnyder@redhat.com>
3303 * arm-tdep.c: Spelling fix in comment.
3305 2002-05-16 Jim Blandy <jimb@redhat.com>
3307 Add commands for manually expanding macros and showing their
3309 * macrocmd.c, macroscope.c, macroscope.h: New files.
3310 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
3311 (macroscope_h): New variable.
3312 (HFILES_NO_SRCDIR): Add macroscope.h.
3313 (COMMON_OBS): Add macrocmd.o, macroscope.o.
3314 (macroscope.o, macrocmd.o): New rules.
3316 Teach the Dwarf 2 reader to read macro information.
3317 * dwarf2read.c: #include "macrotab.h".
3318 (dwarf_macinfo_buffer): New variable.
3319 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
3321 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
3322 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
3323 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
3324 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
3325 dwarf2_macro_spaces_in_definition): New complaints.
3326 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
3327 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
3328 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
3329 the partial symbol table.
3330 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
3331 from what's recorded in the partial symbol table.
3332 (read_file_scope): If the compilation unit has a
3333 `DW_AT_macro_info' attribute, read its macro information.
3334 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
3336 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3339 * ser-tcp.c: Don't include <netinet/udp.h>.
3341 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
3343 * MAINTAINERS: Update my email address.
3345 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
3347 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
3348 include file of the same name.
3350 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3352 * configure.tgt: Mark v850 as multi-arched.
3353 * config/v850/tm-v850.h: Remove file.
3354 * config/v850/v850.mt: Eliminate TM_FILE.
3356 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3358 * v850-tdep.c: Full multi-arch.
3359 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
3360 Define GDB_MULTI_ARCH to 2.
3362 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
3364 * p-exp.y (current_type): New static variable.
3365 Carries the type of the expression at the position that is parsed.
3366 (push_current_type, pop_current_type): Two new functions. Used
3367 to store/restore current_type in expression on specific tokens.
3368 (search_field): New static variable. Set to one after parsing a point
3369 as at that point only a FIELDNAME token should be searched.
3370 (FIELDNAME): New token. After a point only a token belonging to
3371 current_type type definition is allowed.
3372 (all over token rules): reset and change current_type according
3374 (exp '[' rule): insert implicit array index field if
3375 exp is a pascal string type.
3377 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3379 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
3380 frame info. Use frame_info's saved_regs instead of matching member
3381 in extra_frame_info throughout.
3382 (v850_frame_init_saved_regs): New function.
3383 (v850_init_extra_frame_info): Move most functionality into
3384 v850_frame_init_saved_regs().
3385 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
3386 (v850_frame_find_saved_regs): Remove declaration.
3387 (FRAME_FIND_SAVED_REGS): Remove definition.
3388 (v850_frame_init_saved_regs): Add declaration.
3389 (FRAME_INIT_SAVED_REGS): Add definition.
3391 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3393 * v850-tdep.c: Begin multi-arch'ing v850.
3394 (v850_target_architecture_hook): Remove function.
3395 (v850_gdbarch_init): New function. Add code previously in
3396 v850_target_architecture_hook().
3397 (_initialize_v850_tdep): Don't set target_architecture_hook.
3398 Call register_gdbarch_init() instead.
3400 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3402 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3403 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3404 (fixup_class_method_type): Likewise.
3406 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3408 From Martin Pool <mbp@samba.org>:
3409 * gdbserver/server.c (gdbserver_usage): New function.
3412 2002-05-15 Jim Blandy <jimb@redhat.com>
3414 Add macro structures to GDB's symbol tables. Nobody puts anything
3416 * symtab.h (struct symtab): New member: `macro_table'.
3417 * buildsym.h (pending_macros): New global variable.
3418 * buildsym.c: #include "macrotab.h".
3419 (buildsym_init): Initialize `pending_macros'.
3420 (end_symtab): If we found macro information while reading a CU's
3421 debugging info, do build a symtab structure for it. Make the
3422 symtab point to the macro information, and clear the
3423 `pending_macros' pointer which held it while we were reading the
3425 (really_free_pendings): Free any pending macro table.
3426 * objfiles.h (struct objfile): New member: `macro_cache'.
3427 * objfiles.c (allocate_objfile): Set allocate and free functions
3428 for the macro cache's objstack.
3429 (free_objfile): Empty the macro cache's obstack.
3430 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3431 set new allocate and free functions for it.
3432 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3433 free functions for the macro cache's objstack. (Why is this
3434 function building its own objfile?)
3435 * symmisc.c (print_objfile_statistics): Print statistics on the
3437 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3439 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3441 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3442 (REGISTER_U_ADDR): Delete definition.
3443 (arm_register_u_addr): Delete declaration.
3445 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3447 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3448 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3450 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3452 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3455 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3457 * regcache.c (register_valid): Revise comments refering to "Not
3458 available" and "unavailable".
3459 * frame.c (frame_register_read): Ditto.
3460 * findvar.c (value_of_register): Ditto.
3462 2002-05-15 Andrew Cagney <cagney@redhat.com>
3464 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3465 (remote-sim.o): Update dependencies.
3466 (d10v-tdep.o): Specify dependencies.
3467 (sim_d10v_h): Define.
3469 2002-05-14 Jim Blandy <jimb@redhat.com>
3471 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3472 * macrotab.c (macro_lookup_inclusion, find_definition,
3473 new_macro_table): Same.
3475 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3476 not `! strcmp ()'. This is a dubious improvement.
3477 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3479 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3480 although it's not necessary, to avoid a warning.
3482 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3484 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3485 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3486 TYPE_INSTANCE_FLAGS.
3487 (struct main_type): New.
3488 (struct type): Move most members to struct main_type. Change
3489 cv_type and as_type to new type_chain member. Add instance_flags.
3490 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3491 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3492 (finish_cv_type): Remove prototype.
3493 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3495 (alloc_type_instance): New function.
3496 (smash_type): New function.
3497 (make_pointer_type, make_reference_type, make_function_type)
3498 (smash_to_member_type, smash_to_method_type): Call smash_type.
3499 (make_qualified_type): New function.
3500 (make_type_with_address_space): Call make_qualified_type.
3501 (make_cv_type): Likewise.
3502 (finish_cv_type): Remove unnecessary function.
3503 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3504 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3505 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3506 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3507 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3508 * hpread.c (hpread_read_struct_type): Likewise.
3509 * stabsread.c (read_struct_type): Likewise.
3511 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3513 * configure.tgt: Add a catch all sh* target, for cases like
3514 sh[2,3,4]-elf and sh-hms.
3516 2002-05-14 Keith Seitz <keiths@redhat.com>
3518 * event-loop.c (create_file_handler): Don't do anything but
3519 update data when we are given a fd which we are already
3522 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3524 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3525 (update_context): Use __func__ in warnings.
3527 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3529 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3530 and tcp_close to net_open and net_close.
3531 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3532 using UDP if requested. Don't try to disable Nagle on UDP
3534 * remote.c (remote_serial_open): New function. Warn about UDP.
3535 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3537 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3539 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3541 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3543 * configure.tgt: Remove sh-hms target.
3544 * MAINTAINERS: Don't list sh-hms as a separate target.
3546 2002-05-13 Jim Blandy <jimb@redhat.com>
3548 Add first preprocessor macro-expansion files.
3549 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3550 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3551 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3552 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3553 (COMMON_OBS): Add macrotab.o, macroexp.o.
3554 (macroexp.o, macrotab.o): New rules.
3556 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3558 * config/m88k/tm-m88k.h: Update copyright.
3559 (m88k_target_write_pc): Declare
3560 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3561 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3562 (SHIFT_INST_REGS): Update definition.
3563 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3564 using old definition of TARGET_WRITE_PC.
3565 * regcache.c (generic_target_write_pc): Delete code handling
3567 * gdbarch.sh (NNPC_REGNUM): Delete.
3568 * gdbarch.h, gdbarch.c: Regenerate.
3570 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3572 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3575 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3577 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3578 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3579 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3581 * c-typeprint.c (cp_type_print_method_args): Likewise.
3582 (c_type_print_args): Likewise.
3583 * d10v-tdep.c (d10v_push_arguments): Likewise.
3584 (d10v_extract_return_value): Likewise.
3585 * expprint.c (print_subexp): Likewise.
3586 * gdbtypes.c (lookup_primitive_typename): Likewise.
3587 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3588 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3589 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3590 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3591 (TYPE_VECTOR): Likewise.
3592 * hpread.c (hpread_read_struct_type)
3593 (fix_static_member_physnames, fixup_class_method_type)
3594 (hpread_type_lookup): Likewise.
3595 * mdebugread.c (parse_symbol, parse_type): Likewise.
3596 * p-lang.c (is_pascal_string_type): Likewise.
3597 * valops.c (hand_function_call): Likewise.
3598 * x86-64-tdep.c (classify_argument): Likewise.
3600 * hpread.c (hpread_read_function_type)
3601 (hpread_read_doc_function_type): Call replace_type.
3602 * dstread.c (create_new_type): Delete.
3603 (decode_dst_structure, process_dst_function): Call alloc_type.
3604 Use type access macros.
3606 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3608 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3609 the're not supported by the current architecture.
3610 (i387_fill_fxsave): Likewise.
3612 2002-05-12 Fred Fish <fnf@redhat.com>
3614 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3615 sect_index_xxx members to index the first slot in section_offsets
3616 if all of the section_offsets are zero.
3618 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3620 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3621 checked in with last change.
3623 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3625 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3626 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3629 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3631 * Makefile.in: Update dependencies.
3633 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3635 * language.c (local_hex_string_custom): Simplify. Do not depend
3636 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3638 * memattr.c (mem_info_command): Replace calls to
3639 longest_local_hex_string and longest_local_hex_string_custom.
3640 * buildsym.c (make_blockvector): Ditto.
3641 * solib.c (info_sharedlibrary_command): Ditto.
3642 * tracepoint.c (tracepoints_info): Ditto.
3643 * symtab.c (print_msymbol_info): Ditto.
3645 * language.c (local_hex_string): Delete.
3646 (local_hex_string_custom): Delete.
3647 (longest_local_hex_string): Rename to local_hex_string.
3648 (longest_local_hex_string_custom): Rename to
3649 local_hex_string_custom.
3650 * language.h (local_hex_string): Change parameter type to LONGEST.
3651 (local_hex_string_custom): Ditto.
3652 (longest_local_hex_string): Delete declaration.
3653 (longest_local_hex_string_custom): Ditto.
3655 * solib.c: Update copyright.
3656 * memattr.c: Update copyright.
3658 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3660 * arch-utils.h (legacy_register_to_value): Declare.
3661 (legacy_value_to_register): Declare.
3662 (legacy_convert_register_p): Declare.
3663 * arch-utils.c (legacy_register_to_value): New function.
3664 (legacy_value_to_register): New function.
3665 (legacy_convert_register_p): New function.
3667 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3668 (VALUE_TO_REGISTER): Define.
3669 (CONVERT_REGISTER_P): Define.
3670 * gdbarch.h, gdbarch.c: Regenerate.
3672 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3674 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3677 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3678 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3680 * Makefile.in: Update dependencies for valops.c.
3681 * valops.c: Include "gdb_assert.h".
3682 (typecmp): Skip THIS parameter to methods.
3683 (find_method_list): Remove static_memfuncp argument,
3684 update callers. Check for stub methods.
3685 (find_value_oload_method_list): Don't set *static_memfuncp.
3686 (find_overload_match): Don't check for stub methods. Assert
3687 that methods are not stubbed. Handle static methods.
3688 (value_find_oload_method_list): Remove static_memfuncp argument.
3689 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3690 to the argument list for static stub methods.
3691 * value.h (value_find_oload_method_list): Update prototype.
3693 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3695 * arch-utils.h (generic_register_size): Declare.
3696 (generic_register_raw_size, generic_register_virtual_size): Delete
3698 * arch-utils.c (generic_register_raw_size): Delete.
3699 (generic_register_size): New function.
3700 (generic_register_virtual_size): Delete.
3702 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3703 default generic_register_size.
3704 * gdbarch.h, gdbarch.c: Re-generate.
3706 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3707 register_virtual_size.
3708 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3709 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3711 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3713 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3714 * gdbarch.h, gdbarch.c: Regenerate.
3715 * gnu-v3-abi.c: Update copyright.
3716 (vtable_address_point_offset): Update.
3717 (gnuv3_rtti_type): Update.
3718 (gnuv3_baseclass_offset): Update.
3719 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3720 (init_fetch_link_map_offsets): Update.
3721 * remote.c (get_remote_state): Update.
3723 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3725 * TODO: Remove value_headof/value_from_vtable_info comment.
3726 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3727 * values.c (value_headof, value_from_vtable_info): Delete.
3728 * value.h (value_from_vtable_info): Delete prototype.
3730 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3732 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3733 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3735 (gdb_assert_h): Define.
3736 (gdb_wait_h): Define.
3737 (gdb_regex_h): Define.
3739 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3741 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3742 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3744 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3746 * nbsd-tdep.c: Fix comment.
3748 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3750 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3751 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3752 (nbsd-tdep.o): New dependency list.
3753 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3755 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3756 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3757 * nbsd-tdep.c: New file.
3758 * nbsd-tdep.h: New file.
3759 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3761 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3762 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3763 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3764 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3766 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3768 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3769 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3770 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3771 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3772 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3773 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3775 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3777 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3778 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3779 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3780 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3781 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3782 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3783 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3785 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3787 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3788 fetch_elfcore_registers to...
3789 * i386nbsd-tdep.c: ...here.
3790 (i386nbsd_use_struct_convention): Rename to...
3791 (i386nbsd_aout_use_struct_convention): ...this.
3792 (i386nbsd_supply_reg): New function.
3793 (i386nbsd_fill_reg): New function.
3794 (fetch_core_registers): Use i386nbsd_supply_reg.
3795 (fetch_elfcore_registers): Likewise.
3796 (_initialize_i386nbsd_tdep): New function.
3797 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3798 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3799 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3800 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3801 (i386nbsd_aout_use_struct_convention): ...this.
3803 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3805 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3806 (store_inferior_registers): Use shnbsd_fill_reg.
3807 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3808 sh_nbsd_supply_register): Collapse into...
3809 (shnbsd_supply_reg): ...this.
3810 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3811 (shnbsd_fill_reg): ...this.
3812 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3813 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3814 (fetch_core_registers): Use shnbsd_supply_reg.
3815 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3816 (sh_nbsd_core_fns): Rename to...
3817 (shnbsd_core_fns): ...this.
3818 (sh_nbsd_elfcore_fns): Rename to...
3819 (shnbsd_elfcore_fns): ...this.
3820 (sh_nbsd_init_abi): Rename to...
3821 (shnbsd_init_abi): ...this.
3822 (_initialize_sh_nbsd_tdep): Rename to...
3823 (_initialize_shnbsd_tdep): ...this.
3824 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3825 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3826 sh_nbsd_fill_register): Remove prototypes.
3827 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3829 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3831 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3832 (i387-nat.o): Delete dependency list.
3833 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3834 (x86-64-linux-nat.o): Likewise.
3835 * i387-nat.c: Delete file, moving contents to...
3836 * i387-tdep.c: ...here.
3837 * i387-nat.h: Rename...
3838 * i387-tdep.h: ...to this.
3839 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3840 * i386-linux-nat.c: Likewise.
3841 * i386bsd-nat.c: Likewise.
3842 * i386gnu-nat.c: Likewise.
3843 * i386nbsd-nat.c: Likewise.
3844 * i386v4-nat.c: Likewise.
3845 * x86-64-linux-nat.c: Likewise.
3846 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3847 * config/i386/go32.mh (NATDEPFILES): Likewise.
3848 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3849 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3850 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3851 * config/i386/linux.mh (NATDEPFILES): Likewise.
3852 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3853 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3854 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3855 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3857 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3859 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3860 (alphanbsd-nat.o): Remove dependency list.
3861 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3862 * alphanbsd-nat.c: Delete. Contents moved to...
3863 * alphanbsd-tdep.c: ...here.
3864 (_initialize_alphanbsd_tdep): Register core functions.
3865 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3867 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3869 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3870 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3871 (alphanbsd-nat.o): Likewise.
3872 (alphabsd-tdep.o): New dependency list.
3873 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3874 (fill_gregset): Use alphabsd_fill_reg.
3875 (supply_fpregset): Use alphabsd_supply_fpreg.
3876 (fill_fpregset): Use alphabsd_fill_fpreg.
3877 (fetch_inferior_registers): Use struct reg and struct fpreg
3878 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3879 and alphabsd_supply_fpreg.
3880 (store_inferior_registers): Use struct reg and struct fpreg
3881 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3882 and alphabsd_fill_fpreg.
3883 * alphabsd-tdep.c: New file.
3884 * alphabsd-tdep.h: New file.
3885 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3886 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3887 alphabsd_supply_fpreg.
3888 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3889 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3891 2002-05-11 Eric Christopher <echristo@redhat.com>
3893 * mips-tdep.c (mips_double_register_type): Fix thinko.
3894 (mips_single_register_type): Ditto.
3895 * MAINTAINERS: Add self.
3897 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3899 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3900 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3901 right thing on architectures with different endianness and/or
3904 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3906 From Christian Limpach <chris@Pin.LU>
3907 * configure.in: Change sed expression which comments out
3908 NATDEPFILES to also comment out continuation lines.
3909 * configure: Regenerate.
3911 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3913 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3916 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3918 * sh-tdep.c: Include correct file.
3920 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3922 New support for sh64-elf (sh5) target.
3924 * configure.tgt: For sh64-elf target, default to sh-elf.
3926 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3927 (struct gdbarch_tdep): Add new fields for new registers and ABI
3930 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3931 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3932 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3933 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3934 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3935 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3936 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3937 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3938 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3939 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3940 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3941 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3942 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3943 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3944 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3945 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3946 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3947 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3948 sign_extend, sh64_nofp_frame_init_saved_regs,
3949 sh64_init_extra_frame_info, sh64_get_saved_register,
3950 sh64_extract_struct_value_address, sh64_pop_frame,
3951 sh64_push_arguments, sh64_extract_return_value,
3952 sh64_store_return_value, sh64_show_media_regs,
3953 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3954 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3955 sh_sh64_register_virtual_type,
3956 sh_sh64_register_convert_to_virtual,
3957 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3958 sh64_register_read, sh64_pseudo_register_write,
3959 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3960 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3961 sh64_do_pseudo_register, sh_compact_do_registers_info,
3962 sh64_do_registers_info, sh_gdbarch_init): New functions.
3964 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3966 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3968 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3970 * linespec.c (decode_line_1): Check for a double quote after
3971 a filename correctly.
3973 2002-05-10 Jim Blandy <jimb@redhat.com>
3975 Properly track the size of the current objfile's .debug_line section.
3976 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3977 (DWARF_LINE_SIZE): New macro.
3978 (dwarf2_build_psymtabs_hard): Record the line section's size in
3979 the partial symbol table.
3980 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3983 2002-05-10 Petr Sorfa <petrs@caldera.com>
3985 * ia64-tdep.c: Handle breakpoints on L instruction type
3986 in MLX instruction bundle by moving the breakpoint to
3987 the third slot (X instruction type) as L holds only data.
3989 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3991 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3992 (process_one_symbol): Complain about discarding local symbols
3993 due to a misplaced N_LBRAC entry.
3995 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3997 From Daniel Berlin <dan@cgsoftware.com>
3998 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3999 decrease the depth we are at, in the case of templates.
4001 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4003 * mips-tdep.c (mips_float_register_type): New function.
4004 (mips_double_register_type): New function.
4005 (mips_print_register): Use them.
4006 (do_fp_register_row): Likewise.
4008 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4010 * signals/signals.c (signals): Remove conditional compilation around
4011 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
4012 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
4014 2002-05-09 Michael Snyder <msnyder@redhat.com>
4016 * remote-rdp.c (remote_rdp_can_run): Remove.
4018 2002-05-09 Tom Tromey <tromey@redhat.com>
4020 * jv-valprint.c (java_val_print): Handle `char' as a special case
4023 2002-05-09 Michael Snyder <msnyder@redhat.com>
4025 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4026 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
4027 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
4028 str r(0123),[sp,#nn].
4029 (arm_skip_prologue): Ditto. Also make disassembly
4030 order-independent by placing it in a loop.
4032 2002-05-06 Michael Snyder <msnyder@redhat.com>
4034 * stabsread.c (read_type): Add recognition for new attribute:
4035 "@V;" means that an array type is actually a vector.
4036 This is analogous to the vector flag that's been added to dwarf2.
4038 2002-05-09 Mark Kettenis <kettenis@gnu.org>
4040 * i386-tdep.h (i386_abi): New enum.
4041 (struct gdbarch_tdep): Replace os_ident member with abi.
4042 (i386_gdbarch_register_os_abi): New prototype.
4043 * i386-tdep.c (i386_abi_names): New array.
4044 (process_note_abi_tag_sections): Removed.
4045 (process_note_sections): New function.
4046 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4047 (struct i386_abi_handler): New struct.
4048 (i386_abi_handler_list): New variable.
4049 (i386_gdbarch_register_os_abi): New function.
4050 (i386_gdbarch_init): Adapt for the changes given above.
4052 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
4054 * gregset.h: Say "GNU/Linux".
4056 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
4058 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4059 (build_gdbtypes): Build builtin_type_v2_float.
4060 (_initialize_gdbtypes): Register new builtin type.
4062 2002-05-08 Andrew Cagney <ac131313@redhat.com>
4064 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4065 (clear_gdbarch_swap): New function.
4066 (initialize_non_multiarch): Call.
4067 (gdbarch_update_p): Before calling init(), swap out and clear the
4068 existing architecture.
4069 * gdbarch.c: Regenerate.
4071 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4073 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4076 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4078 * sh-nbsd-nat.c: Rename to...
4079 * shnbsd-nat.c: ...this.
4080 * sh-nbsd-tdep.c: Rename to...
4081 * shnbsd-tdep.c: ...this.
4082 * sh-nbsd-tdep.h: Rename to...
4083 * shnbsd-tdep.h: ...this.
4084 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4085 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4087 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
4089 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4090 concatenation for command help messages.
4092 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4094 * NEWS: Note new sh*-*-netbsdelf* configuration.
4095 * configure.host: Set gdb_host_cpu to sh for all sh*.
4096 (sh*-*-netbsdelf*): New host.
4097 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4098 (sh*-*-netbsdelf*): New target.
4099 * sh-nbsd-nat.c: New file.
4100 * sh-nbsd-tdep.c: New file.
4101 * sh-nbsd-tdep.h: New file.
4102 * config/sh/nbsd.mh: New file.
4103 * config/sh/nbsd.mt: New file.
4104 * config/sh/nm-nbsd.h: New file.
4105 * config/sh/tm-nbsd.h: New file.
4107 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4109 * sh-tdep.c (sh_osabi_names): Declare.
4110 (process_note_abi_tag_sections): New function.
4111 (get_elfosabi): Ditto.
4112 (sh_gdbarch_register_os_abi): Ditto.
4113 (sh_dump_tdep): Ditto.
4114 _initialize_sh_tdep): Use gdbarch_register to register
4115 sh_gdbarch_init and sh_dump_tdep.
4116 * config/sh/tm-sh.h (sh_osabi): Declare.
4117 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4119 2002-05-07 Andrew Cagney <ac131313@redhat.com>
4121 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4122 (thumb_scan_prologue): Ditto.
4123 (arm_find_callers_reg): Ditto.
4124 (arm_frame_chain): Ditto.
4125 (arm_init_extra_frame_info): Ditto.
4126 (arm_frame_saved_pc): Ditto.
4127 (arm_pop_frame): Ditto.
4128 (arm_push_return_address): New function.
4129 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4130 call_dummy_location, call_dummy_breakpoint_offset_p,
4131 call_dummy_breakpoint_offset, call_dummy_p,
4132 call_dummy_stack_adjust_p, call_dummy_words,
4133 sizeof_call_dummy_words, call_dummy_start_offset,
4134 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4135 call_dummy_address, push_return_address and push_dummy_frame for
4136 generic dummy frames.
4138 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4140 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4141 size computation for alloca.
4142 (sh_fp_frame_init_saved_regs): Likewise.
4144 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4146 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4147 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4148 * arm-tdep.c (arm_store_return_value): Use them.
4149 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4150 * remote-rdp.c (remote_rdp_fetch_register): Use
4151 ARM_MAX_REGISTER_RAW_SIZE.
4152 (remote_rdp_store_register): Likewise.
4154 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4156 * dwarf2cfi.c: Code cleanup, removed unused variables,
4157 added default labels to switch {} statements.
4158 * x86-64-tdep.c: Ditto.
4159 * x86-64-linux-nat.c: Ditto.
4161 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4163 * solib.h: Protect against multiple inclusion.
4165 2002-05-06 Jim Blandy <jimb@redhat.com>
4167 Add first preprocessor macro-expansion files.
4168 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4169 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4170 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4171 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4172 (COMMON_OBS): Add macrotab.o, macroexp.o.
4173 (macroexp.o, macrotab.o): New rules.
4175 Separate the job of reading the line number info statement program
4176 header (...expialidocious) out into its own function.
4177 * dwarf2read.c (struct line_head, struct filenames, struct
4178 directories): Replace with...
4179 (struct line_header): New structure, containing the full
4180 contents of the statement program header, including the
4181 include directory and file name tables.
4182 (read_file_scope): If we have line number info, instead of just
4183 calling dwarf_decode_lines to do all the work, call
4184 dwarf_decode_line_header first to get a `struct line_header'
4185 containing the data in the statement program header, and then
4186 pass that to dwarf_decode_lines, which will pick up where that
4187 left off. Be sure to clean up the `struct line_header' object.
4188 (dwarf_decode_line_header, free_line_header, add_include_dir,
4189 add_file_name): New functions.
4190 (dwarf_decode_lines): Move all the code to read the statement
4191 program header into dwarf_decode_line_header. Take the line
4192 header it built as the first argument, instead of the offset to
4193 the compilation unit's line number info. Use the new `struct
4194 line_header' type instead of the old structures. No need to do
4195 cleanups here now, since we don't allocate anything.
4196 (dwarf2_statement_list_fits_in_line_number_section,
4197 dwarf2_line_header_too_long): New complaints.
4199 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4201 * gdbtypes.c (init_vector_type): New function.
4202 (build_builtin_type_vec128): Simplify the representation of SIMD
4204 (build_gdbtypes): Initialize new builtin vector types.
4205 (_initialize_gdbtypes): Register new vector types with gdbarch.
4206 (builtin_type_v4_float, builtin_type_v4_int32,
4207 builtin_type_v8_int16, builtin_type_v16_int8,
4208 builtin_type_v2_int32, builtin_type_v4_int16,
4209 builtin_type_v8_int8): New (renamed) SIMD types.
4211 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4213 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4214 (i387_fill_fxsave): Likewise.
4216 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4218 * alpha-tdep.c (alpha_extract_return_value): Don't use
4219 non-constant array size in prototype.
4221 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4223 From Brian Taylor <briant at model dot com>:
4224 * ui-out.c (ui_out_field_core_addr): Use the function
4225 longest_local_hex_string_custom'to format addresses > 32 bits
4228 * ui-out.c (ui_out_field_core_addr): Update comment.
4230 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4232 * stack.c (select_and_print_frame): Make static. Delete the
4234 (func_command): Update call.
4235 (select_frame_command): Delete code computing the frame level.
4236 * frame.h (select_and_print_frame): Delete declaration.
4238 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4240 * sparc-tdep.c (sparc_get_saved_register): Comment why
4241 get_prev_frame call is safe.
4243 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4245 * frame.h (select_frame): Delete level parameter.
4246 * stack.c (select_frame): Update. Use frame_relative_level to
4247 obtain the frame's level.
4248 (select_and_print_frame): Update call.
4249 (select_frame_command): Ditto.
4250 (up_silently_base): Ditto.
4251 (down_silently_base): Ditto.
4252 * ocd.c (ocd_start_remote): Ditto.
4253 * remote-rdp.c (remote_rdp_open): Ditto.
4254 * remote-mips.c (mips_initialize): Ditto.
4255 (common_open): Ditto.
4256 * remote-e7000.c (e7000_start_remote): Ditto.
4257 * m3-nat.c (select_thread): Ditto.
4258 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4259 (child_get_current_exception_event): Ditto.
4260 * varobj.c (varobj_create): Ditto.
4261 (varobj_update): Ditto.
4262 (c_value_of_root): Ditto.
4263 * tracepoint.c (finish_tfind_command): Ditto.
4264 * corelow.c (core_open): Ditto.
4265 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4266 * thread.c (info_threads_command): Ditto.
4267 (switch_to_thread): Ditto.
4268 * infrun.c (normal_stop): Ditto.
4269 (restore_selected_frame): Ditto.
4270 (restore_inferior_status): Ditto.
4271 * breakpoint.c (insert_breakpoints): Ditto.
4272 (watchpoint_check): Ditto.
4273 (bpstat_stop_status): Ditto.
4274 (do_enable_breakpoint): Ditto.
4275 * blockframe.c (flush_cached_frames): Ditto.
4276 (reinit_frame_cache): Ditto.
4278 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4280 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4283 2002-05-04 Jim Blandy <jimb@redhat.com>
4285 * gdbtypes.c (replace_type): Doc fix.
4287 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4289 * valprint.c (strcat_longest): Delete commented out function.
4292 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4294 * MAINTAINERS: Mark a29k as deleted.
4295 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4296 Move new configurations to the top.
4297 * configure.tgt: Remove a29k.
4298 * config/a29k/tm-vx29k.h: Delete.
4299 * config/a29k/vx29k.mt: Delete.
4300 * config/a29k/tm-a29k.h: Delete.
4301 * config/a29k/a29k-udi.mt: Delete.
4302 * config/a29k/a29k.mt: Delete.
4303 * a29k-tdep.c: Delete.
4304 * remote-udi.c: Delete.
4305 * remote-mm.c: Delete.
4306 * remote-eb.c: Delete.
4307 * remote-adapt.c: Delete.
4308 * Makefile.in: Remove obsolete code.
4309 * gdbserver/Makefile.in: Ditto.
4310 * config/s390/s390x.mt: Ditto.
4311 * config/s390/s390.mt: Ditto.
4312 * config/sparc/sparclynx.mh: Ditto.
4313 * config/sparc/linux.mh: Ditto.
4314 * config/pa/hppaosf.mh: Ditto.
4315 * config/pa/hppabsd.mh: Ditto.
4316 * config/ns32k/nbsd.mt: Ditto.
4317 * config/mips/vr5000.mt: Ditto.
4318 * config/m68k/sun3os4.mh: Ditto.
4319 * config/m68k/nbsd.mt: Ditto.
4320 * config/m68k/m68klynx.mh: Ditto.
4321 * config/m32r/m32r.mt: Ditto.
4322 * config/i386/x86-64linux.mt: Ditto.
4323 * config/i386/nbsdelf.mt: Ditto.
4324 * config/i386/nbsd.mt: Ditto.
4325 * config/i386/i386lynx.mh: Ditto.
4327 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4329 * target.c (debug_print_register): New function. Handle oversize
4331 (debug_to_fetch_registers): Call.
4332 (debug_to_store_registers): Call.
4334 2002-05-03 Jim Blandy <jimb@redhat.com>
4336 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
4337 (read_type): Doc fix.
4338 * gdbtypes.c (replace_type): Doc fix.
4340 * stabsread.c (multiply_defined_struct): New complaint.
4341 (read_struct_type): If the type we were passed isn't empty, or
4342 incomplete, don't read the new struct type into it; complain,
4343 and return the original type unchanged. Take a new `type_code'
4344 argument, which is the type code for the new type.
4345 (read_type): Rather than storing the type's type code here, pass
4346 it as an argument to read_struct_type, and let that take care of
4347 storing it. That way, we don't overwrite the original type code,
4348 so read_struct_type can use it to decide whether we're overwriting
4349 something we shouldn't.
4350 (complain_about_struct_wipeout): New function.
4352 2002-05-03 Andrew Cagney <ac131313@redhat.com>
4354 * gdbarch.sh: Assert that gdbarch is non-NULL.
4355 * gdbarch.c: Regenerate.
4357 2002-05-03 Jason Merrill <jason@redhat.com>
4359 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
4362 2002-05-03 Michal Ludvig <mludvig@suse.cz>
4364 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4365 (x86_64_dwarf2gdb_regno_map_length),
4366 (x86_64_dwarf2_reg_to_regnum): Added.
4367 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
4368 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
4369 (_initialize_x86_64_tdep): Synced with the change above.
4370 (x86_64_skip_prologue): Reformulated message.
4372 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4374 * f-exp.y: Also use new prev_lexptr variable
4375 to improve error reporting. Based on Michael Snyder
4376 2002-04-24 dated patch to c-exp.y.
4377 * jv-exp.y: Likewise.
4378 * m2-exp.y: Likewise.
4380 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
4382 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
4383 we are dealing with vectors.
4385 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4387 * config/m68k/tm-nbsd.h: Obvious fix,
4388 correct machine name.
4390 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4392 * p-typeprint.c (pascal_type_print_base): Add support
4393 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
4395 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4397 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
4398 for fondamental pascal 'char' type.
4400 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4402 * p-lang.h (is_pascal_string_type): Declaration changed,
4403 new sixth argument of type char ** added.
4404 * p-lang.c (is_pascal_string_type): Implementation
4405 changed. Args length_pos, length_size, string_pos, char_size
4406 can now be NULL. New argument arrayname set to the field
4407 name of the char array. Return value set to char array
4408 field index plus one.
4409 * p-valprint.c (pascal_val_print): Adapt to new declaration of
4410 is_pascal_string_type function.
4412 2002-05-02 Andrew Cagney <cagney@redhat.com>
4414 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4415 <cagney@redhat.com> change.
4416 * gdbarch.c: Regenerate.
4418 2002-05-02 Andrew Cagney <cagney@redhat.com>
4420 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4421 before probing for a new one. Detect errorenous gdbarch_init
4423 * gdbarch.c: Regenerate.
4425 2002-05-01 Andrew Cagney <cagney@redhat.com>
4427 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4428 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4429 * config/v850/tm-v850.h: Ditto. Update copyright.
4431 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4433 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4436 2002-04-30 Michael Snyder <msnyder@redhat.com>
4438 * arm-tdep.c: Whitespace clean-ups.
4439 (arm_skip_prologue): Fix thinko; two lines
4440 should have been removed as part of 4/24 change.
4442 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4444 * rs6000-tdep.c: Added comment describing how fpscr register
4445 numbers were chosen.
4447 2002-04-30 Michael Snyder <msnyder@redhat.com>
4449 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4451 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4453 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4454 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4455 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4457 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4459 From Louis Hamilton <hamilton@redhat.com>:
4460 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4461 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4462 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4463 not bfd-private xcoff data, to determine wordsize.
4464 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4466 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4468 GDB 5.2 released from 5.2 branch.
4470 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4472 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4473 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4474 (x86_64_register_info_table): Added comments with register numbers.
4476 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4478 * rs6000-tdep.c (rs6000_extract_return_value,
4479 rs6000_store_return_value): Handle returning vectors.
4480 (rs6000_gdbarch_init): Use
4481 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4482 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4484 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4486 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4487 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4489 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4491 * hpread.c (hpread_psymtab_to_symtab_1,
4492 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4493 with fprintf_unfiltered (gdb_stderr,...).
4495 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4497 * remote-array.c (printf_monitor, write_monitor,
4498 array_insert_breakpoint, array_remove_breakpoint ):
4499 Replace fprintf (stderr,...
4500 with fprintf_unfiltered (gdb_stderr,....
4501 * remote-es.c: Likewise.
4502 * remote-os9k.c: Likewise.
4503 * remote-st.c: Likewise.
4505 2002-04-28 Andreas Schwab <schwab@suse.de>
4507 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4508 linux-proc.o and gcore.o.
4510 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4512 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4513 code without frame pointers.
4515 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4517 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4520 2002-04-26 Ben Elliston <bje@redhat.com>
4522 * target.c (do_xfer_memory): Correct reference to the new option
4523 "trust-readonly-sections".
4525 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4527 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4528 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4529 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4531 (read_array_type): Record the fact that this array type is really a
4532 vector (i.e. are passed in by value).
4534 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4536 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4537 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4538 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4539 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4540 * alpha-linux-tdep.c: Include frame.h.
4541 (alpha_linux_sigcontext_addr): New function.
4542 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4543 alpha_linux_sigcontext_addr.
4544 * alpha-osf1-tdep.c: Include gdbcore.h.
4545 (alpha_osf1_sigcontext_addr): New function.
4546 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4547 alpha_osf1_sigcontext_addr.
4548 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4549 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4551 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4553 * stack.c (selected_frame_level):
4554 (select_frame): Do not set selected_frame_level.
4555 * frame.h (selected_frame_level): Delete declaration.
4557 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4559 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4560 convert_from_func_ptr-addr when AIX / PowerOpen.
4562 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4564 * valops.c (hand_function_call): Call
4565 generic_save_call_dummy_addr.
4566 * frame.h (generic_save_call_dummy_addr): Declare.
4567 * blockframe.c (struct dummy_frame): Add fields call_lo and
4569 (generic_find_dummy_frame): Check for PC in range call_lo to
4570 call_hi instead of entry_point_address.
4571 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4572 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4573 (generic_save_call_dummy_addr): New function.
4575 2002-04-24 David S. Miller <davem@redhat.com>
4577 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4578 sparc_skip_prologue.
4579 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4580 information to find prologue when possible.
4581 (sparc_prologue_frameless_p): Call examine_prologue directly.
4582 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4583 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4585 (SKIP_PROLOGUE): Likewise.
4587 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4589 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4590 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4591 indicate that the condition it was testing is always true.
4592 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4593 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4594 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4596 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4598 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4599 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4600 tdep->jb_pc and tdep->jb_elt_size.
4601 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4602 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4603 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4604 * alpha-nat.c (get_longjmp_target): Remove.
4605 (JB_ELEMENT_SIZE): Ditto.
4607 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4608 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4609 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4610 to alpha_get_longjmp_target.
4611 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4612 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4613 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4615 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4617 * README: Update to GDB 5.2.
4619 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4621 * gdbarch.sh (LC_ALL): Set to `c'.
4623 2002-04-25 Theodore A. Roth <troth@verinet.com>
4625 * avr-tdep.c: Ran through gdb_indent.sh.
4627 2002-04-25 Theodore A. Roth <troth@verinet.com>
4629 * MAINTAINERS: Add myself as AVR maintainer.
4630 * NEWS: Note new target avr.
4632 2002-04-25 Theodore A. Roth <troth@verinet.com>
4634 * Makefile.in: Add support for AVR target.
4635 * configure.tgt: Add support for AVR target.
4636 * avr-tdep.c: New file
4637 * config/avr/avr.mt: New file.
4639 2002-04-25 Theodore A. Roth <troth@verinet.com>
4641 * MAINTAINERS: Add myself to write-after-approval.
4643 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4645 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4646 with fprintf_unfiltered (gdb_stderr,....
4648 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4651 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4653 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4655 * p-exp.y: Also use new prev_lexptr variable
4656 to improve error reporting. Based on Michael Snyder
4657 2002-04-24 dated patch to c-exp.y.
4659 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4661 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4662 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4663 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4665 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4667 (FUNCTION_START_OFFSET): Remove.
4668 (BREAKPOINT): Ditto.
4670 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4672 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4675 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4677 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4678 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4679 alpha_linux_pc_in_sigtramp.
4680 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4681 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4682 alpha_osf1_pc_in_sigtramp.
4683 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4684 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4685 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4686 alphafbsd_pc_in_sigtramp.
4687 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4688 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4689 alphanbsd_pc_in_sigtramp.
4690 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4691 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4693 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4695 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4697 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4699 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4701 (alphanbsd-nat.o): New dependency list.
4702 (alphanbsd-tdep.o): Ditto.
4703 * NEWS: Note new native NetBSD/alpha configuration.
4704 * alphanbsd-nat.c: New file.
4705 * alphanbsd-tdep.c: Ditto.
4706 * configure.host (alpha*-*-netbsd*): New host.
4707 * configure.tgt (alpha*-*-netbsd*): New target.
4708 * config/alpha/nbsd.mh: New file.
4709 * config/alpha/nbsd.mt: Ditto.
4710 * config/alpha/nm-nbsd.h: Ditto.
4711 * config/alpha/tm-nbsd.h: Ditto.
4713 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4715 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4716 (alpha-osf1-tdep.o): New dependency list.
4717 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4718 and skip_sigtramp_frame members.
4719 * alpha-linux-tdep.c: Include gdbcore.h.
4720 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4721 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4722 * alpha-osf1-tdep.c: New file.
4723 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4725 (alpha_frame_past_sigtramp_frame): New function.
4726 (alpha_dynamic_sigtramp_offset): Ditto.
4727 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4728 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4729 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4730 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4731 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4732 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4733 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4734 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4735 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4736 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4737 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4738 to find_solib_trampoline_target.
4739 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4740 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4741 (SKIP_TRAMPOLINE_CODE): Remove.
4742 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4743 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4744 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4745 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4746 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4747 (PROC_SIGTRAMP_MAGIC): Ditto.
4748 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4749 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4750 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4751 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4752 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4754 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4756 * NEWS: Note that Alpha targets are now multi-arch.
4758 2002-04-24 Michael Snyder <msnyder@redhat.com>
4760 * parser-defs.h (prev_lexptr): New external variable.
4761 * parse.c (parse_exp_1): Set prev_lexptr to null before
4762 calling the language-specific parser.
4763 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4764 (yyerror): Use prev_lexptr in error reporting.
4766 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4768 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4769 * gregset.h: If FILL_FPXREGSET is defined, provide
4770 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4771 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4772 is defined, call fill_fpxregset.
4774 2002-04-24 Roland McGrath <roland@frob.com>
4776 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4777 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4778 (supply_gregset, supply_fpregset): New functions.
4780 * gnu-nat.c (gnu_find_memory_regions): New function.
4781 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4782 (gnu_xfer_memory): Add a cast.
4784 2002-04-24 Michael Snyder <msnyder@redhat.com>
4786 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4787 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4788 of argument regs ("str r(0123), [r11, #-nn"]).
4789 (arm_skip_prologue): Better handling for frameless functions.
4790 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4791 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4793 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4795 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4796 NUM_PSEUDO_REGS can be used.
4798 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4800 * arch-utils.h: Update copyright.
4802 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4803 * gdbarch.h, gdbarch.c: Re-generate.
4805 * inferior.h (IN_SIGTRAMP): Delete definition.
4806 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4807 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4809 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4810 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4811 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4812 (find_proc_framesize): Ditto.
4813 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4814 (alpha_init_extra_frame_info): Ditto.
4815 * infrun.c (handle_inferior_event): Ditto.
4816 (handle_inferior_event): Ditto.
4817 (check_sigtramp2): Ditto.
4818 * blockframe.c (create_new_frame): Ditto.
4819 (get_prev_frame): Ditto.
4820 * ppc-linux-tdep.c: Update comments.
4821 * i386-linux-tdep.c: Update comments.
4822 * breakpoint.c (bpstat_what): Update comment.
4824 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4826 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4827 (regsets_store_inferior_registers): Removed cast to int from
4829 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4831 2002-04-24 David S. Miller <davem@redhat.com>
4833 * i960-tdep.c (register_in_window_p): New function.
4834 (i960_find_saved_register): Use it instead of
4835 REGISTER_IN_WINDOW_P.
4836 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4838 * symtab.h (find_stab_function_addr): Kill extern.
4839 * minsyms.c (find_stab_function_addr): Remove from here...
4840 * dbxread.c: ... to here, and mark it static.
4842 2002-04-20 David S. Miller <davem@redhat.com>
4844 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4845 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4847 2002-04-21 David S. Miller <davem@redhat.com>
4849 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4850 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4851 (vx_write_register): Likewise.
4853 2002-04-23 J. Brobecker <brobecker@gnat.com>
4855 * source.c (is_regular_file): New function.
4856 (openp): Check wether file to open is a regular file
4857 to avoid opening directories.
4859 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4861 * findvar.c (extract_signed_integer): Cast printf argument
4862 to suppress format warning.
4863 (extract_unsigned_integer): Likewise.
4864 * infcmd.c (registers_info): Likewise.
4865 * top.c (get_prompt_1): Likewise.
4866 * valops.c (value_assign): Likewise.
4867 * valprint.c (print_decimal): Likewise.
4869 2002-04-22 H.J. Lu (hjl@gnu.org)
4871 * c-exp.y (typebase): Support
4873 [long|long long|short] [signed|unsigned] [int|]
4877 signed [long|long long|short] int
4879 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4881 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4883 * vax-tdep.h: New file.
4884 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4885 Make several routines static.
4886 (vax_get_saved_register): New function.
4887 (vax_gdbarch_init): New function.
4888 (_initialize_vax_tdep): Register vax_gdbarch_init.
4889 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4890 Remove macros now under the control of gdbarch.
4892 2002-04-22 Michael Snyder <msnyder@redhat.com>
4894 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4895 Some whitespace and coding standards tweaks.
4897 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4899 * vax-tdep.c: Include regcache.h.
4900 (vax_call_dummy_words): New.
4901 (sizeof_vax_call_dummy_words): New.
4902 (vax_fix_call_dummy): New function.
4903 (vax_saved_pc_after_call): Ditto.
4904 * config/vax/tm-vax.h: Don't include regcache.h.
4905 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4906 (CALL_DUMMY): Remove.
4907 (CALL_DUMMY_WORDS): Define.
4908 (SIZEOF_CALL_DUMMY_WORDS): Define.
4909 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4911 2002-04-18 Michael Snyder <msnyder@redhat.com>
4913 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4915 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4917 * vax-tdep.c (vax_frame_chain): New function.
4918 (vax_push_dummy_frame): Ditto.
4919 (vax_pop_frame): Ditto.
4920 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4921 (FRAMELESS_FUNCTION_INVOCATION): Use
4922 generic_frameless_function_invocation_not.
4923 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4924 (POP_FRAME): Use vax_pop_frame.
4926 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4928 * vax-tdep.c (vax_store_struct_return): New function.
4929 (vax_extract_return_value): Ditto.
4930 (vax_store_return_value): Ditto.
4931 (vax_extract_struct_value_address): Ditto.
4932 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4933 vax_store_struct_return.
4934 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4935 (STORE_RETURN_VALUE): Use vax_store_return_value.
4936 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4938 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4940 * vax-tdep.c (vax_frame_saved_pc): New function.
4941 (vax_frame_args_address_correct): Ditto.
4942 (vax_frame_args_address): Ditto.
4943 (vax_frame_locals_address): Ditto.
4944 (vax_frame_num_args): Move code to be in proximity to
4945 other frame-related functions.
4946 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4947 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4948 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4949 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4950 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4952 2002-04-22 H.J. Lu (hjl@gnu.org)
4954 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4957 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4959 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4960 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4961 (FRAME_INIT_SAVED_REGS): New macro.
4963 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4965 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4967 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4969 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4971 (fetch_osf_core_registers): Likewise.
4972 (supply_gregset): Likewise.
4974 2002-04-22 J. Brobecker <brobecker@gnat.com>
4976 * symfile.h (get_section_index): Define.
4977 * symfile.c (get_section_index): New function.
4978 * mdebugread.c (SC_IS_SBSS): New macro.
4979 (SC_IS_BSS): Return true for the scBss storage class only, as
4980 the scSBss storage class refers to the .sbss section.
4981 (parse_partial_symbols): Discard the symbols which associated
4982 section does not exist.
4983 Make sure to use the .sbss section index for symbols which
4984 storage class is scBss, rather than using the .bss section index.
4986 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4988 * vax-tdep.c: Update copyright years.
4989 (vax_register_name): New function.
4990 (vax_register_byte): Ditto.
4991 (vax_register_raw_size): Ditto.
4992 (vax_register_virtual_size): Ditto.
4993 (vax_register_virtual_type): Ditto.
4994 * config/vax/tm-vax.h: Update copyright years.
4995 (REGISTER_NAMES): Remove.
4996 (REGISTER_NAME): Define.
4997 (REGISTER_BYTE): Use vax_register_byte.
4998 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4999 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5000 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5002 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5004 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5006 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5008 2002-04-21 David S. Miller <davem@redhat.com>
5010 * arch-utils.c (generic_prologue_frameless_p): Kill
5011 SKIP_PROLOGUE_FRAMELESS_P code.
5012 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5014 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5015 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5016 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5018 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5019 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5020 (sparc_gdbarch_init): Pass it to
5021 set_gdbarch_prologue_frameless_p.
5023 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5025 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5026 (alphabsd-nat.o): New dependency list.
5028 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5030 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5032 (alpha-linux-tdep.o): New dependency list.
5033 (alphafbsd-tdep.o): Likewise.
5035 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5037 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5039 * alpha-tdep.c: ...from here.
5040 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5042 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5044 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5045 prototype from here...
5046 * alpha-tdep.h: ...to here.
5048 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5050 * frame.h (selected_frame_level): Document as deprecated.
5051 (frame_relative_level): Declare.
5052 * stack.c (frame_relative_level): New function.
5053 (selected_frame_level): Document as deprecated.
5054 (select_frame): Do not set the selected_frame_level.
5056 * stack.c (frame_info, record_selected_frame): Update.
5057 (frame_command, current_frame_command): Update.
5058 (up_silently_base, up_command, down_silently_base): Update.
5059 (down_command): Update.
5060 * inflow.c (kill_command): Update.
5061 * tracepoint.c (finish_tfind_command): Update.
5062 * corelow.c (core_open): Update.
5063 * thread.c (info_threads_command): Update.
5064 (do_captured_thread_select): Update.
5065 * infcmd.c (finish_command): Update.
5066 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5068 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5070 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5072 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5074 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5077 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5079 * alphafbsd-tdep.c: Update copyright years. Include
5081 (alphafbsd_use_struct_convention): Make static.
5082 (alphafbsd_init_abi): New function.
5083 (_initialize_alphafbsd_tdep): New function.
5084 * config/alpha/tm-fbsd.h: Update copyright years.
5085 (USE_STRUCT_CONVENTION): Remove.
5087 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5089 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5090 an Alpha ABI variant.
5091 (alpha_abi_handler_list): Declare.
5092 (alpha_gdbarch_register_os_abi): New function.
5093 (alpha_gdbarch_init): Give registered ABI variant handlers a
5094 chance to tweak the gdbarch once we have set up defaults.
5095 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5097 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5099 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5100 to standard_coerce_float_to_double.
5101 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5103 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5105 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5106 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5107 from gdbarch_tdep rather than a constant.
5108 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5109 the default text address for all Alpha Unix ABIs.
5110 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5111 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5113 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5115 * alpha-tdep.h: New file. Includes several Alpha target constants
5117 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5118 let gdbarch deal with.
5119 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5120 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5122 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5123 Alpha target register names.
5124 * alphabsd-nat.c: Likewise.
5125 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5126 Alpha target register names. Make serveral routines static.
5127 (alpha_get_saved_register): New function.
5128 (alpha_abi_names): New.
5129 (process_note_abi_tag_sections): New function.
5130 (get_elfosabi): New function.
5131 (alpha_gdbarch_init): New function.
5132 (alpha_dump_tdep): New function.
5133 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5135 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5137 * frame.c (find_saved_register): Delete #ifdef
5138 HAVE_REGISTER_WINDOWS code.
5139 * config/sparc/tm-sparc.h: Update comments.
5140 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5142 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5144 * i960-tdep.c (i960_find_saved_register): New function.
5145 (i960_get_saved_register): New function.
5146 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5147 (i960_get_saved_register): Declare.
5148 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5150 2002-04-20 David S. Miller <davem@redhat.com>
5152 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5154 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5156 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5157 instead of NUM_PSEUDO_REGS.
5159 2002-04-20 David S. Miller <davem@redhat.com>
5161 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5162 GDB_MULTI_ARCH_PARTIAL
5163 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5164 define, let tm-sp64.h do it.
5166 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5168 * frame.c (find_saved_register): Avoid a NULL pointer
5169 dereference and actually walk the frame list.
5171 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5173 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5174 sorted in most most-recent-used order. Document.
5175 * gdbarch.h, gdbarch.c: Regenerate.
5177 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5179 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5180 (add_inferior): Call create_register_cache.
5181 (clear_inferiors): Call free_register_cache.
5182 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5183 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5184 (registers): Remove.
5185 (get_regcache): New function.
5186 (create_register_cache, free_register_cache): New functions.
5187 (set_register_cache): Don't initialize the register cache here.
5188 (registers_to_string, registers_from_string, register_data): Call
5190 * gdbserver/regcache.h: Add prototypes.
5191 * gdbserver/server.h: Likewise.
5193 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5195 * gdbserver/mem-break.c: New file.
5196 * gdbserver/mem-break.h: New file.
5197 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5199 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5201 (clear_inferiors): Free target_data member if set.
5202 (inferior_target_data, set_inferior_target_data): New functions.
5203 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5204 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5205 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5206 (struct inferior_linux_data): New.
5207 (linux_create_inferior): Use set_inferior_target_data.
5208 (linux_attach): Likewise. Call add_inferior.
5209 (linux_wait_for_one_inferior): New function.
5210 (linux_wait): Call it.
5211 (linux_write_memory): Add const.
5212 (initialize_low): Call set_breakpoint_data.
5213 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5215 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5217 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5219 * gdbserver/target.c (read_inferior_memory)
5220 (write_inferior_memory): New functions.
5221 * gdbserver/target.h (read_inferior_memory)
5222 (write_inferior_memory): Change macros to prototypes.
5223 (struct target_ops): Update comments. Add const to write_memory
5226 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5228 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5230 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5231 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5232 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5235 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5238 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5239 (build_builtin_type_vec128): Ditto.
5240 (append_composite_type_field): Fix calculation of type length in
5243 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5245 * config/djgpp/README: Update.
5247 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5250 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5252 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5253 (alpha_setup_arbitrary_frame): ...to this.
5254 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5255 for alpha_setup_arbitrary_frame.
5257 2002-04-18 Andrew Cagney <cagney@redhat.com>
5259 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5260 * gdbarch.h, gdbarch.c: Regenerate.
5262 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5263 * target.h (memory_breakpoint_from_pc): Update declaration.
5264 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5266 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5267 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5268 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5269 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5270 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5271 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5272 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5273 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5274 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5275 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5276 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5277 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5279 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5281 * monitor.c (monitor_insert_breakpoint): Ditto.
5282 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5284 * config/mcore/tm-mcore.h: Update copyright.
5285 * mem-break.c: Ditto.
5286 * xstormy16-tdep.c: Ditto.
5288 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5290 * p-exp.y: Add precedence rule for '^' token.
5291 This removes the shift/reduce conflicts.
5292 Remove the comment concerning these shift/reduce conflicts.
5294 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
5296 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5297 (registers_powerpc_nofp): New register set for processors
5298 without floating point unit.
5300 2002-04-18 David S. Miller <davem@redhat.com>
5302 * MAINTAINERS: Add myself to write-after-approval.
5304 2002-04-17 Michael Snyder <msnyder@redhat.com>
5306 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
5308 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5310 * rs6000-tdep.c (frame_initial_stack_address): Use
5311 frame_register_read to read the alloca_reg.
5313 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5315 * frame.c (find_saved_register): Find saved registers in the next
5319 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5321 * gdbarch.sh (LANG): Set to ``c''.
5323 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5325 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
5327 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5329 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
5332 * hpread.c (hpread_get_lntt): Add declaration.
5333 Also fix PR gdb/391.
5335 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5337 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
5338 * aclocal.m4, configure: Re-generate.
5341 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5343 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
5344 instead of tm_print_insn.
5346 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5348 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
5350 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5352 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
5353 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
5354 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
5356 2002-04-12 Don Howard <dhoward@redhat.com>
5358 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
5359 max_user_call_depth.
5360 (init_cmd_lists): Initialize the new value;
5361 * cli/cli-script.c (execute_user_command): Limit the call depth of
5362 user defined commands. This avoids a core-dump when user commands
5363 are infinitly recursive.
5365 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5367 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
5368 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
5369 from tdep struct instead of DEFAULT_LR_SAVE.
5370 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
5371 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
5372 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
5374 2002-04-12 Michael Snyder <msnyder@redhat.com>
5376 * Remote.c: Spelling fix.
5377 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
5378 If no symbol found for "sbrk", try "_sbrk".
5379 (make_output_phdrs): Use bfd_section_name.
5380 (gcore_copy_callback): Use bfd_section_name.
5381 * eval.c: Indentation fix-ups.
5382 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
5383 in case it gets applied to an address that is already
5384 in the instruction space.
5385 * cli/cli-decode.c (help_list): Allow long lines to wrap.
5386 * symfile.c: Fix indentation, long lines.
5387 * source.c: White space fix-up.
5389 2002-04-12 Andrew Cagney <cagney@redhat.com>
5391 * defs.h (read_relative_register_raw_bytes): Delete declaration.
5392 * frame.c (frame_register_read): New function. Return non-zero on
5394 (read_relative_register_raw_bytes_for_frame): Delete.
5395 (read_relative_register_raw_bytes): Delete.
5396 * frame.h (frame_register_read): Declare.
5397 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5399 * infcmd.c (do_registers_info): Ditto.
5400 * hppa-tdep.c: Ditto.
5401 * rs6000-tdep.c: Ditto.
5402 * h8500-tdep.c: Ditto.
5403 * mips-tdep.c: Ditto.
5404 * h8300-tdep.c: Ditto.
5405 * z8k-tdep.c: Ditto.
5407 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5409 From Jimi X <jimix@watson.ibm.com>:
5410 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5413 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5415 From Jimi X <jimix@watson.ibm.com>:
5416 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5419 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5421 From Jimi X <jimix@watson.ibm.com>:
5422 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5423 register sets for these processor variants.
5425 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5427 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5428 registers which are allowed to fail to store.
5429 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5430 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5431 (ppc_cannot_store_register): FPSCR may not be storable.
5432 * regformats/reg-ppc.dat: Support FPSCR.
5434 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5436 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5437 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5438 Add fpscr as an invalid/unfetchable register.
5439 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5440 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5441 (fill_fpregset): Add support for register fpscr.
5442 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5443 (fill_gregset): Account for the fact that register ``mq'' might
5445 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5446 (registers_power): Add fpscr to register set at slot 71.
5447 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5448 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5450 2002-04-11 Michael Snyder <msnyder@redhat.com>
5452 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5453 * configure: Regenerate.
5454 * config.in: Regenerate.
5455 * acconfig.h: Add define for _SYSCALL32.
5456 * core-sol2.c: Remove #define _SYSCALL32.
5457 * solib-legacy.c: Remove #define _SYSCALL32.
5459 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5461 * stack.c (select_frame): Cleanup internal error message, do not
5464 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5466 * stack.c (select_frame): Check that selected_frame and the
5467 specified level are as expected.
5468 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5470 * frame.h (struct frame_info): Add field `level'. Update
5472 Work-in-progress PR gdb/464.
5474 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5476 * maint.c (maint_print_section_info): Rename print_section_info.
5477 (print_bfd_section_info, print_objfile_section_info): Update.
5478 * inferior.h (struct gdbarch): Add opaque declaration.
5479 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5480 * gdbarch.h: Regenerate.
5482 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5484 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5485 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5486 (kernel_u_size): Added.
5487 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5488 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5490 2002-04-04 Jim Ingham <jingham@apple.com>
5492 * valarith.c (find_size_for_pointer_math): New function, either returns
5493 the size for a pointer's target, returns 1 for void *, or errors for
5495 (value_add, value_sub): use find_size_for_pointer_math.
5497 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5499 * linux-low.c (linux_look_up_symbols): New hook.
5500 (linux_target_ops): Add linux_look_up_symbols.
5501 * remote-utils.c (decode_address): New function.
5502 (look_up_one_symbol): New function.
5503 * server.c (handle_query): Call target look_up_symbols hook.
5504 * server.h (look_up_one_symbol): Add prototype.
5505 * target.h (struct target_ops): Add look_up_symbols hook.
5507 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5509 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5510 * ChangeLog: Correct paths in last ChangeLog entry.
5512 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5514 * gdbserver/linux-low.h: Remove obsolete prototypes.
5515 (struct linux_target_ops): New.
5516 (extern the_low_target): New.
5517 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5518 (register_addr): Use the_low_target explicitly.
5519 (fetch_register): Likewise.
5520 (usr_fetch_inferior_registers): Likewise.
5521 (usr_store_inferior_registers): Likewise.
5522 * gdbserver/linux-arm-low.c (num_regs): Remove.
5523 (arm_num_regs): Define.
5524 (arm_regmap): Renamed from regmap, made static.
5525 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5527 (arm_cannot_store_register): Renamed from cannot_store_register,
5529 (the_low_target): New.
5530 * gdbserver/linux-i386-low.c (num_regs): Remove.
5531 (i386_num_regs): Define.
5532 (i386_regmap): Renamed from regmap, made static.
5533 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5535 (i386_cannot_store_register): Renamed from cannot_store_register,
5537 (the_low_target): New.
5538 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5539 (ia64_num_regs): Define.
5540 (ia64_regmap): Renamed from regmap, made static.
5541 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5543 (ia64_cannot_store_register): Renamed from cannot_store_register,
5545 (the_low_target): New.
5546 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5547 (m68k_num_regs): Define.
5548 (m68k_regmap): Renamed from regmap, made static.
5549 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5551 (m68k_cannot_store_register): Renamed from cannot_store_register,
5553 (the_low_target): New.
5554 * gdbserver/linux-mips-low.c (num_regs): Remove.
5555 (mips_num_regs): Define.
5556 (mips_regmap): Renamed from regmap, made static.
5557 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5559 (mips_cannot_store_register): Renamed from cannot_store_register,
5561 (the_low_target): New.
5562 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5563 (ppc_num_regs): Define.
5564 (ppc_regmap): Renamed from regmap, made static.
5565 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5567 (ppc_cannot_store_register): Renamed from cannot_store_register,
5569 (the_low_target): New.
5570 * gdbserver/linux-s390-low.c (num_regs): Remove.
5571 (s390_num_regs): Define.
5572 (s390_regmap): Renamed from regmap, made static.
5573 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5575 (s390_cannot_store_register): Renamed from cannot_store_register,
5577 (the_low_target): New.
5578 * gdbserver/linux-sh-low.c (num_regs): Remove.
5579 (sh_num_regs): Define.
5580 (sh_regmap): Renamed from regmap, made static.
5581 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5583 (sh_cannot_store_register): Renamed from cannot_store_register,
5585 (the_low_target): New.
5586 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5587 (the_low_target): New.
5589 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5591 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5592 override FP_REGNUM with frame->fp. Update copyright.
5593 * parse.c (num_std_regs, std_regs): Delete.
5594 (target_map_name_to_register): Do not search std_regs. Update
5595 function description.
5596 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5597 declarations. Update copyright.
5600 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5602 * gdbserver/Makefile.in: Add stamp-h target.
5603 * gdbserver/configure.in: Create stamp-h.
5604 * gdbserver/configure: Regenerated.
5606 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5608 * gdbserver/inferiors.c: New file.
5609 * gdbserver/target.c: New file.
5610 * gdbserver/target.h: New file.
5611 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5613 * gdbserver/linux-low.c (inferior_pid): New static variable,
5614 moved from server.c.
5615 (linux_create_inferior): Renamed from create_inferior.
5616 Call add_inferior. Return 0 on success instead of a PID.
5617 (linux_attach): Renamed from myattach.
5618 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5619 (linux_thread_alive): Renamed from mythread_alive.
5620 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5622 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5623 (regsets_store_inferior_registers): Correct error message.
5624 Add missing ``return 0''.
5625 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5626 (linux_store_registers): Renamed from store_inferior_registers.
5627 (linux_read_memory): Renamed from read_inferior_memory.
5628 (linux_write_memory): Renamed from write_inferior_memory.
5629 (linux_target_ops): New structure.
5630 (initialize_low): Call set_target_ops ().
5631 * gdbserver/remote-utils.c (unhexify): New function.
5632 (hexify): New function.
5633 (input_interrupt): Send signals to ``signal_pid''.
5634 * gdbserver/server.c (inferior_pid): Remove.
5635 (start_inferior): Update create_inferior call.
5636 (attach_inferior): Call add_inferior.
5637 (handle_query): New function.
5638 (main): Call handle_query for `q' packets.
5639 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5640 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5642 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5644 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5646 * gdbserver/configure.in: Check for <string.h>
5647 * gdbserver/configure: Regenerate.
5648 * gdbserver/config.in: Regenerate.
5649 * gdbserver/gdbreplay.c: Include needed system headers.
5650 (remote_open): Remove strchr prototype.
5651 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5652 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5653 (supply_register_by_name): Likewise.
5654 (collect_register): Change buf argument to void *.
5655 (collect_register_by_name): Likewise.
5656 * gdbserver/regcache.h: Add missing prototypes.
5657 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5658 * gdbserver/server.c (handle_query): New function.
5659 (attached): New static variable, moved out of main.
5660 (main): Quiet longjmp clobber warnings.
5661 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5662 * gdbserver/utils.c (error): Remove NORETURN.
5665 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5667 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5668 after the last symbol in a block.
5670 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5672 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5673 is non zero as a found symbol.
5675 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5677 * findvar.c: Include "builtin-regs.h".
5678 (value_of_register): Call value_of_builtin_reg when applicable.
5679 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5680 (target_map_name_to_register): Call
5681 builtin_reg_map_name_to_regnum.
5682 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5683 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5684 (builtin_regs_h): Define.
5685 (builtin-regs.o): New target.
5686 (findvar.o): Add $(builtin_regs_h).
5687 * builtin-regs.c, builtin-regs.h: New files.
5688 * std-regs.c: New file.
5689 Partial fix for PR gdb/251.
5691 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5693 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5694 it's no longer required.
5696 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5698 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5700 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5702 From Jimi X <jimix@watson.ibm.com>:
5703 * rs6000-tdep.c (rs6000_software_single_step): Use
5704 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5705 and size. Use target_insert_breakpoint() and
5706 target_remove_breakpoint() to insert and remove breakpoints
5707 instead of explicit memory reads and writes.
5709 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5711 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5712 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5713 ELF_OBJECT_FORMAT ifdef.
5715 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5717 From Jimi X <jimix@watson.ibm.com>:
5718 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5720 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5722 From Jimi X <jimix@watson.ibm.com>:
5723 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5724 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5726 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5728 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5729 s/asprintf/xasprintf/.
5730 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5732 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5734 I believe Jeff Law denies responsability for this one:
5735 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5736 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5737 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5738 Work-around for PR gdb/366.
5740 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5742 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5743 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5744 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5746 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5748 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5749 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5752 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5754 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5757 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5759 * README (Reporting Bugs in GDB): Document the bug web page as the
5760 prefered way of submitting bugs.
5763 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5765 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5767 * gdbarch.h, gdbarch.c: Re-generate.
5769 2002-04-07 Andreas Schwab <schwab@suse.de>
5771 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5772 buffer to regcache_collect.
5774 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5776 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5777 * gdbarch.c, gdbarch.h: Re-generate.
5779 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5781 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5782 declaration. Fix -Werror.
5784 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5786 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5787 * gdbarch.c: Regenerate.
5789 2002-04-05 Michael Snyder <msnyder@redhat.com>
5791 * breakpoint.c (clear_command): Rewrite middle section to
5792 combine two loops with identical control conditions.
5793 Add a cleanup to eliminate a memory leak.
5794 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5796 2002-04-05 H.J. Lu (hjl@gnu.org)
5798 * solib-svr4.c (bkpt_names): Add "__start".
5800 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5802 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5803 as test for 64 bit target.
5805 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5807 * h8500-tdep.c (h8500_write_fp): Delete function.
5808 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5809 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5810 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5812 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5813 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5815 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5816 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5817 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5818 (d10v_write_fp): Delete function.
5819 * inferior.h (write_fp, generic_target_write_fp): Delete
5821 * regcache.c (generic_target_write_fp): Delete function.
5822 (write_fp): Delete function.
5823 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5824 * gdbarch.h, gdbarch.c: Regenerate.
5825 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5826 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5827 (sparc64_write_fp): Delete declaration.
5828 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5829 (h8500_write_fp): Delete declaration.
5831 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5833 * sparc-tdep.c (sparc64_write_fp): Delete.
5834 (sparc_push_dummy_frame): Replace write_fp call with code to store
5836 (sparc_gdbarch_init): Do not initialize write_fp.
5838 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5840 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5843 2002-03-29 Jim Blandy <jimb@redhat.com>
5845 * stack.c (get_selected_block): Add new argument `addr_in_block',
5846 used to return the exact code address we used to select the block,
5848 * blockframe.c (get_frame_block, get_current_block): Same.
5849 * frame.h (get_frame_block, get_current_block,
5850 get_selected_block): Update declarations.
5851 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5852 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5854 2002-04-05 Michael Snyder <msnyder@redhat.com>
5856 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5859 2002-04-05 J. Brobecker <brobecker@gnat.com>
5861 * utils.c (xfullpath): New function.
5862 * defs.h (xfullpath): Add declaration.
5863 * source.c (openp): Use xfullpath in place of gdb_realpath to
5864 avoid resolving the basename part of filenames when the
5865 associated file is a symbolic link. This fixes a potential
5866 inconsistency between the filenames known to GDB and the
5867 filenames it prints in the annotations.
5868 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5869 to be able to match a filename with either the real filename, or
5870 the name of any symbolic link to this file.
5871 (lookup_partial_symtab): Ditto.
5873 2002-04-04 Michael Snyder <msnyder@redhat.com>
5875 * breakpoint.c: Add support for hardware breakpoints in overlays.
5876 (overlay_events_enabled): New state variable.
5877 (insert_breakpoints): Use overlay_events_enabled to decide
5878 whether to attempt to set a breakpoint at the overlay load addr.
5879 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5880 (remove_breakpoint): Use overlay_events_enabled to decide
5881 whether breakpoints need to be removed from overlay load addr.
5882 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5883 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5884 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5885 disable_overlay_breakpoints): Update overlay_events_enabled.
5887 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5889 * dwarf2read.c (struct function_range): New.
5890 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5891 (check_cu_functions): New.
5892 (read_file_scope): Initialize global function lists.
5893 Call dwarf_decode_line after processing children.
5894 (read_func_scope): Add to global function list.
5895 (dwarf_decode_lines): Call check_cu_functions everywhere
5896 record_line is called. Call record_line with a linenumber
5897 of 0 to mark sequence ends.
5899 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5901 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5902 change sync with glibc.
5904 2002-04-03 Jim Blandy <jimb@redhat.com>
5906 * configure.in: Call AC_C_INLINE.
5907 * configure: Regenerated.
5909 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5911 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5912 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5914 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5916 * NEWS: Mention gcore support on FreeBSD/i386.
5918 * fbsd-proc.c: New file.
5919 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5920 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5922 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5925 2002-03-29 Jim Blandy <jimb@redhat.com>
5927 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5928 unescaped newlines in string literals, but newer ones don't. So
5931 2002-03-26 Michael Snyder <msnyder@redhat.com>
5932 Andrew Cagney <cagney@redhat.com>
5934 * cli/cli-dump.c: New file. Dump memory to file,
5935 restore file to memory.
5936 * cli/cli-dump.h: New file.
5937 * Makefile.in: Add rules, dependencies for cli-dump.o.
5938 * NEWS: Mention new commands.
5940 2002-03-28 Michael Snyder <msnyder@redhat.com>
5942 * symfile.c (symbol_file_add): Move test for null symbols to later.
5944 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5946 From veksler at il.ibm.com:
5947 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5948 the xstrduped original path.
5951 2002-03-27 Michael Snyder <msnyder@redhat.com>
5953 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5954 * infcmd.c (_initialize_infcmd): Ditto.
5955 * language.c (_initialize_language): Ditto.
5956 * symfile.c (_initialize_symfile): Ditto.
5957 * top.c (_init_main): Ditto.
5958 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5960 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5962 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5963 vector registers handling.
5964 (skip_prologue): Handle new AltiVec instructions. Fill in new
5965 fields of frame data.
5966 (frame_get_saved_regs): Fill in information for AltiVec registers.
5968 2002-03-27 Jim Blandy <jimb@redhat.com>
5970 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5971 a function; leave this macro here to invoke that function.
5972 (symbol_init_mangled_name): Declaration for that function.
5973 * symtab.c (symbol_init_mangled_name): New function.
5975 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5977 * valarith.c: Replace strerror with safe_strerror.
5978 * tracepoint.c: Ditto.
5980 * go32-nat.c: Ditto.
5984 2002-03-27 Andreas Schwab <schwab@suse.de>
5986 * event-top.c (command_line_handler): Remove useless if.
5988 2002-03-27 Andreas Jaeger <aj@suse.de>
5990 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5993 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5995 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5996 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5997 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5998 (x86_64_linux_dr_get_status, supply_gregset),
5999 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6000 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6001 (x86_64_register_info_table): Add.
6002 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6003 (x86_64_register_raw_size, x86_64_register_virtual_type),
6004 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6005 general x86_64_register_info_table.
6006 (i386_gdbarch_init): gdbarch_register_bytes is now set
6007 dynamicaly during initialization.
6008 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6009 * gdbserver/linux-x86-64-low.c: Ditto.
6011 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6013 * gdbserver/server.c (main): Call target_signal_to_host_p
6014 and target_signal_to_host on signals received from the remote.
6015 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6016 target_signal_from_host on signals sent to the remote.
6017 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6018 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6020 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6022 * signals/signals.c: Include "server.h" in gdbserver build.
6023 (target_signal_from_name): Don't use STREQ.
6024 (_initialize_signals): Likewise. Don't include function in
6027 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6029 * signals.c: Moved to...
6030 * signals/signals.c: Here.
6031 * Makefile (signals.o): Update.
6033 2002-03-26 Jeff Law (law@redhat.com)
6035 * somread.c (som_symtab_read): Remove some commented out code and
6036 updated related comments. Do not set the minimal symbol table to
6037 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6038 in a dynamic executable.
6039 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6040 where we are unable to find the minimal symbol for the given
6043 2002-03-25 Jeff Law (law@redhat.com)
6045 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6047 2002-03-25 Michal Ludvig <mludvig@suse.cz>
6049 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6051 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6053 * command.h: Update copyright.
6054 (struct cmd_list_element): Replace definition with opaque
6056 (enum cmd_types): Document that it will eventually be moved to
6058 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6059 (MALLOCED_REPLACEMENT): Delete macro.
6060 * Makefile.in (cli_decode_h): Add $(command_h).
6061 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
6062 * top.c: Include "cli/cli-decode.h".
6063 * completer.c: Include "cli/cli-decode.h".
6064 * maint.c: Include "cli/cli-decode.h".
6065 * cli/cli-decode.h: Include "command.h".
6066 (enum command_class): Delete.
6067 (enum cmd_types): Comment out.
6068 (enum cmd_auto_boolean): Delete.
6069 (enum var_types): Delete.
6071 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6073 * cli/cli-decode.c: Include "gdb_assert.h".
6074 (add_set_or_show_cmd): New static function.
6075 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6076 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6077 all fields, such as func, from the set command.
6079 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6081 * MAINTAINERS (sh-elf): Change warning flag to -w.
6083 2002-03-23 Andrew Cagney <cagney@redhat.com>
6085 * defs.h (error): Add printf format attribute.
6086 * thread-db.c (thread_from_lwp): Fix error format string.
6087 * stack.c (parse_frame_specification): Ditto.
6088 * cli/cli-decode.c (undef_cmd_error): Ditto.
6089 * scm-lang.c (scm_lookup_name): Ditto.
6090 * tracepoint.c (trace_error): Ditto.
6091 * remote-utils.c (usage): Ditto.
6092 * remote.c (compare_sections_command): Ditto.
6095 2002-03-22 Andrew Cagney <ac131313@redhat.com>
6097 * gdbtypes.c (append_composite_type_field): New function.
6098 (init_composite_type): New function.
6099 * gdbtypes.h (append_composite_type_field): Declare.
6100 (init_composite_type): Ditto.
6102 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
6104 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
6106 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6107 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6108 structure returning convention for SYSV ABI case, but not
6109 for GNU/Linux, FreeBSD, or NetBSD.
6111 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
6113 * symtab.h (lookup_block_symbol): Add mangled_name argument
6116 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6117 with new mangled_name argument.
6118 * linespec.c (decode_line_1): Likewise.
6119 * valops (value_of_this): Likewise.
6120 * symtab.c (lookup_transparent_type): Likewise.
6121 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6122 (lookup_symbol): If we are given a mangled name, pass it down
6123 to lookup_symbol_aux.
6124 (lookup_block_symbol): If we are given a mangled name to check
6125 against, only return symbols which match it.
6127 2002-03-22 Christopher Faylor <cgf@redhat.com>
6129 * win32-nat.c (child_create_inferior): Check for proper shell to use
6130 here, in case the user changes it on the fly.
6131 (_initialize_inftarg): Remove shell path considerations.
6133 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6135 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6136 for gdbarch_max_register_raw_size and max_register_virtual_size.
6137 Adjust copyright year.
6139 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6141 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6142 in a function to cover the entire beginning of the function
6143 as well if it does not already.
6145 2002-03-21 Tom Rix <trix@redhat.com>
6147 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6148 (rs6000_ptrace64): Renamed from ptrace64.
6150 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6152 * gdbserver/remote-utils.c (remote_open): Don't call
6153 getprotobyname, we're all using TCP here so just use
6155 * gdbserver/gdbreplay.c (remote_open): Ditto.
6157 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6159 * regcache.c (_initialize_regcache): No need to call
6160 build_regcache() at this time; it gets called whenever
6161 the gdbarch changes.
6163 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6165 * sparc-nat.c: Include sys/param.h where possible.
6167 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6170 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6171 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6172 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6174 * stabsread.c (rs6000_builtin_type): Likewise.
6175 (read_sun_floating_type): Likewise.
6177 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6179 * stabsread.c (read_member_functions): Remove skip code for duplicate
6180 constructor/destructor methods. Use standard parsing for these
6181 methods and just do not chain them to the list of methods after
6184 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6186 * coffread.c: Remove redundant static declarations. Replace
6187 occurrences of `PTR' with `void *'.
6188 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6189 * top.h (quit_cover): Likewise.
6190 * defs.h (catch_errors): Likewise.
6192 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6194 * defs.h (XMALLOC): Define.
6195 * gdb-events.sh (XMALLOC): Delete macro.
6196 * gdb-events.c, gdb-events.h: Regenerate.
6197 * gdbarch.sh (XMALLOC): Delete macro.
6198 * gdbarch.c: Regenerate.
6199 * serial.c (XMALLOC): Delete macro.
6200 * ui-file.c (XMALLOC): Ditto.
6201 * ser-unix.h (XMALLOC): Ditto.
6202 * sh-tdep.c (XMALLOC): Ditto.
6203 * ui-out.c (XMALLOC): Ditto.
6204 * utils.c (XMALLOC): Ditto.
6205 * i386-tdep.c (XMALLOC): Ditto.
6206 * gdb-events.c (XMALLOC): Ditto.
6207 * d10v-tdep.c (XMALLOC): Ditto.
6208 * cli-out.c (XMALLOC): Ditto.
6210 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6211 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6212 * ui-file.c, ui-out.c: Ditto.
6214 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6216 * command.h (struct cmd_list_element): Add field context.
6217 (set_cmd_context, get_cmd_context): Declare.
6218 * cli/cli-decode.h: Ditto.
6219 * cli/cli-decode.c (get_cmd_context): New function.
6220 (set_cmd_context): New function.
6221 (add_cmd): Initialize context.
6222 Part of fixing PR gdb/145 and PR gdb/146.
6224 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6226 * cli/cli-decode.c (cmd_type): New function.
6227 * command.h (cmd_type): Declare.
6228 * infrun.c (set_schedlock_func): Call function cmd_type.
6229 * kod.c (kod_set_os): Call cmd_type.
6230 * cris-tdep.c (cris_version_update): Use function cmd_type.
6231 (cris_mode_update, cris_abi_update): Ditto.
6233 * command.h: (execute_cmd_post_hook): Declare.
6234 (execute_cmd_pre_hook): Declare.
6235 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6236 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6237 functions. Execute pre/post hook while ensuring that afterwords
6239 * top.c (execute_command): Use execute_cmd_post_hook, and
6240 execute_cmd_pre_hook to execute pre/post commands.
6241 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6243 (hook_stop_stub): Call execute_cmd_pre_hook.
6245 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6247 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6248 set'' and this leads to a core dump. Move xstrdup of
6249 operating_system to after check that it is not NULL.
6251 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6253 * kod.c (kod_set_os): Remove unnecessary check that
6254 ``command->type'' is set_cmd.
6256 * valprint.c (set_input_radix): Use input_radix.
6257 (set_output_radix): Use output_radix.
6258 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6261 2002-03-16 Andrew Cagney <ac131313@redhat.com>
6263 * value.h (struct value): Delete field ``substring_addr''. Change
6264 aligner fields to force_doublest_align, force_longest_align,
6265 force_core_addr_align and force_pointer_aligh.
6267 * value.h (struct value): Fix typo in above change.
6269 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6271 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6272 to fix internal_error from ``maintenance print architecture''.
6274 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6276 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6277 for gcc versions after gcc-2.8.1.
6279 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6281 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6282 for method resolution. Restore adjustment of ``this'' pointer after
6283 calling value_struct_elt, which was accidentally removed during the
6286 2002-03-15 Andrew Cagney <ac131313@redhat.com>
6288 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6290 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6292 * value.h (value_of_register): Update.
6294 2002-03-14 Richard Henderson <rth@redhat.com>
6296 * configure.in: Detect declaration for canonicalize_file_name.
6297 * utils.c (canonicalize_file_name): Declare, if needed.
6298 (gdb_realpath): Prefer realpath if available and usable.
6299 * config.in, configure: Rebuild.
6301 2002-03-14 Richard Henderson <rth@redhat.com>
6303 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6304 a constant array bound.
6306 * MAINTAINERS: Add myself to write-after-approval.
6308 2002-03-14 Michael Snyder <msnyder@redhat.com>
6310 * symfile.c (syms_from_objfile): Return immediately if no syms.
6311 (symbol_file_add): Return immediately if no syms.
6312 (find_sym_fns): Return immediately if no syms.
6314 2002-03-13 Michal Ludvig <mludvig@suse.cz>
6316 * gdbserver/remote-util.c (remote_open): Print remote-side's
6317 IP address when remote debugging over the network.
6319 2002-03-12 David O'Brien <obrien@FreeBSD.org>
6321 * config/sparc/fbsd.mh: Fix copyright.
6322 * config/sparc/fbsd.mt: Likewise.
6324 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
6326 * MAINTAINERS: Fix typo in name of gdb warnings option.
6327 (x86-64): Fix formating so that this can be parsed by awk.
6329 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6331 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
6332 * defs.h: Include "gdb/signals.h".
6333 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6335 2002-03-10 Michal Ludvig <mludvig@suse.cz>
6337 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
6338 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
6341 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6342 Don Howard <dhoward@redhat.com>
6344 * mips-tdep.c (ST0_FR): Define.
6345 (mips2_fp_compat): New function, temporarily disabled.
6346 (mips_read_fp_register_single): New function.
6347 (mips_read_fp_register_double): New function.
6348 (mips_print_register): Use them.
6349 (do_fp_register_row): Likewise.
6351 2002-03-09 Andrew Cagney <ac131313@redhat.com>
6353 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
6356 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6358 * stabsread.c (read_member_functions): Fix is_stub test for
6359 static member functions, improve comment.
6361 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6363 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
6364 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
6365 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
6366 commands that set boolean values.
6367 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
6368 (arm_rdi_resume): Always initialize PC.
6369 (arm_rdi_open): Don't use rslt as a boolean.
6370 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
6371 (arm_rdi_fetch_registers, arm_rdi_store_registers)
6372 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
6373 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
6375 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
6377 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
6378 * configure: Rebuilt.
6380 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6382 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
6383 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
6385 2002-03-06 Andrew Cagney <ac131313@redhat.com>
6387 * cli/cli-decode.c (set_cmd_completer): New function.
6388 * command.h (set_cmd_completer): Declare.
6389 * cli/cli-decode.h (set_cmd_completer): Ditto.
6391 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
6392 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6393 * win32-nat.c (_initialize_inftarg): Ditto.
6394 * remote-rdi.c (_initialize_remote_rdi): Ditto.
6395 * proc-api.c (_initialize_proc_api): Ditto.
6396 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
6397 * source.c (_initialize_source): Ditto.
6398 * exec.c (_initialize_exec): Ditto.
6399 * solib.c (_initialize_solib): Ditto.
6400 * top.c (init_main): Ditto.
6401 * tracepoint.c (_initialize_tracepoint): Ditto.
6402 * symfile.c (_initialize_symfile): Ditto.
6403 * printcmd.c (_initialize_printcmd): Ditto.
6404 * infcmd.c (_initialize_infcmd): Ditto.
6405 * corefile.c (_initialize_core): Ditto.
6407 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6409 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6411 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6413 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6415 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6417 * NEWS: Update headings, 5.2 has branched.
6419 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6421 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6422 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6423 (register_addr, REGISTER_RAW_SIZE): Likewise.
6424 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6425 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6427 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6429 * MAINTAINERS (x86-64): Add myself.
6430 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6431 changed value_ptr -> struct value *
6433 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6435 * configure.host (sparc64-*-freebsd): Add.
6436 * configure.tgt: Likewise.
6437 * config/sparc/fbsd.mh: New file.
6438 * config/sparc/fbsd.mt: Likewise.
6439 * config/sparc/nm-fbsd.h: Likewise.
6440 * config/sparc/tm-fbsd.h: Likewise.
6442 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6444 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6445 regformats/reg-s390x.dat.
6447 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6449 * utils.c: Add FIXME explaining true/false problem.
6451 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6453 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6455 2002-02-28 Michael Chastain <mec@shout.net>
6457 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6459 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6461 * gdbserver/linux-s390-low.c: New file.
6462 * regformats/reg-s390.dat: New file.
6463 * regformats/reg-s390x.dat: New file.
6464 * gdbserver/configure.srv: Add S/390.
6465 * gdbserver/Makefile.in: Add S/390.
6466 * configure.tgt: Enable gdbserver for S/390.
6468 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6470 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6471 first line of the doc string for "info dos", except at the end of
6472 the sentence, since the short help stops at the first period.
6474 2002-02-28 Jason Merrill <jason@redhat.com>
6476 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6478 2002-02-27 Fred Fish <fnf@redhat.com>
6480 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6481 comment (dumy -> dummy).
6483 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6485 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6487 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6489 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6491 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6493 * gdbserver/acconfig.h: New file.
6494 * gdbserver/i387-fp.c: New file.
6495 * gdbserver/i387-fp.h: New file.
6496 * gdbserver/linux-x86-64.c: New file.
6497 * regformats/reg-x86-64.dat: New file.
6498 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6499 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6500 * gdbserver/configure.in: Add support for regsets.
6501 * gdbserver/config.in: Regenerate.
6502 * gdbserver/configure: Regenerate.
6503 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6504 * gdbserver/linux-low.h: New file.
6505 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6507 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6508 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6509 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6510 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6511 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6512 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6513 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6514 "i387-fp.h". Add PTRACE_GETREGS and friends.
6515 * gdbserver/regcache.c (supply_register): New function.
6516 (supply_register_by_name): New function.
6517 (collect_register): New function.
6518 (collect_register_by_name): New function.
6520 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6522 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6523 (config.status): Add configure.srv dependency.
6524 (server_h): Add config.h dependency.
6526 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6528 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6529 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6530 * gdbserver/configure.srv: Change i386-*-linux* to use
6533 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6535 * x86-64-tdep.c: Re-indent. Update copyright date.
6537 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6539 From Michal Ludvig <mludvig@suse.cz>:
6540 * x86-64-tdep.c (value.h): Delete.
6541 (gdb_assert.h): Include.
6542 (x86_64_register_convert_to_virtual,
6543 x86_64_register_convert_to_raw ): Add check which lets only
6544 floating-point values to be converted.
6545 (value_push): Delete.
6546 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6547 (i386_gdbarch_init): Number of register_bytes fixed.
6549 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6551 * MAINTAINERS: Add x86-64 target.
6553 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6555 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6556 * osfsolib.c (solib_map_sections): Ditto.
6557 * irix5-nat.c (solib_map_sections): Ditto.
6558 * corelow.c (gdb_check_format): Ditto.
6559 * symfile.c (symfile_bfd_open): Ditto.
6560 * solib.c (solib_map_sections): Ditto.
6563 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6565 * remote.c (_initialize_remote): By default, disable ``e'' and
6566 ``E'' step out-of-range packets.
6568 2002-02-26 Andreas Schwab <schwab@suse.de>
6570 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6571 m68k_linux_frame_saved_pc.
6572 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6574 (SIGCONTEXT_PC_OFFSET): Remove.
6575 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6576 m68k_linux_sigtramp_saved_pc): New functions.
6577 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6578 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6579 (UCONTEXT_PC_OFFSET): Define.
6580 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6581 non-RT and RT signal trampolines.
6583 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6585 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6586 (TARGET_NBPG, STACK_END_ADDR): Delete
6587 (VARIABLES_INSIDE_BLOCK): Delete.
6589 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6591 * utils.c (perror_with_name): Make string parameter constant.
6592 (print_sys_errmsg): Ditto.
6594 * defs.h (perror_with_name): Update.
6595 (print_sys_errmsg): Update.
6598 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6600 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6601 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6603 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6605 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6606 if it already matches the current architecture from the exec file.
6607 Include arch-utils.h for gdbarch_info_init prototype.
6608 * Makefile.in (rs6000-nat.o): Update dependencies.
6610 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6612 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6613 list of exported variables.
6615 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6617 * gdbserver/configure.srv: New file.
6618 * gdbserver/configure.in: Use configure.srv instead
6619 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6621 * gdbserver/configure: Regenerated.
6622 * gdbserver/terminal.h: New file.
6623 * gdbserver/Makefile.in: Update for configure changes. Remove
6624 more unneeded include paths.
6626 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6628 From wiz at danbala:
6629 * config/sparc/tm-sp64.h: Fix grammar and typos.
6632 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6634 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6635 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6636 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6637 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6638 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6639 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6640 * s390-tdep.c: Ditto.
6641 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6642 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6643 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6644 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6645 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6646 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6647 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6648 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6649 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6650 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6653 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6655 * lin-thread.c: Delete file.
6656 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6657 to gdb_proc_service.h.
6658 * configure: Re-generate.
6660 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6661 * serial.c (serial_open): Delete check for "ocd".
6664 * Makefile.in (linux-thread.o): Delete target.
6665 * linux-thread.c: Delete file.
6667 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6668 renamed SH files to be consistent.
6670 * symtab.c (sort_search_symbols): Use xfree.
6672 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6674 * arm-linux-tdep.c (arm_linux_init_abi): Register
6675 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6676 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6677 definition with undef, since we don't want the sysvr4 definition.
6678 (SKIP_TRAMPOLINE_CODE): Likewise.
6680 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6682 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6684 * configure.in: (AC_CHECK_FUNCS) Added test for
6685 canonicalize_file_name Regenerated.
6686 * config.in, configure: Regenerated.
6687 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6688 defined use canonicalize_file_name.
6690 2002-02-23 Michael Chastain <mec@shout.net>
6692 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6694 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6696 * README: Remove references to cygnus.com.
6697 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6698 dot com'' form. Remove references to cygnus.com and sourceware.
6700 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6702 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6703 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6704 1003.1-2001 no longer allows "head -1".
6705 * gdb/Makefile.in (version.c): Likewise.
6706 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6707 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6708 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6710 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6712 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6713 * command.h (cmd_cfunc_eq): Declare.
6714 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6716 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6717 ``struct cmd_list_element *''.
6718 * cli/cli-cmds.c (is_complete_command): Update. Use
6720 * top.c (execute_command): Pass the command to
6721 is_complete_command.
6722 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6724 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6726 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6727 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6728 architecture defines.
6729 * s390-tdep.c (s390_gdbarch_init): Likewise.
6731 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6733 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6734 (arm_linux_push_arguments): Likewise.
6735 (arm_linux_init_abi): Register them. Also register linux-specific
6737 (find_minsym_and_objfile): Use strcmp, not STREQ.
6738 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6739 (arm_linux_call_dummy_words): Delete declaration.
6740 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6741 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6743 (LOWEST_PC): Delete.
6745 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6747 * maint.c (print_section_info): Do not prepend `0x' to filepos
6748 output, it will be handled by local_hex_string_custom.
6750 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6752 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6753 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6754 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6756 2002-02-22 Jim Blandy <jimb@redhat.com>
6758 Indicate that the bcache functions don't change the strings
6760 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6761 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6763 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6765 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6767 2002-02-21 Christopher Faylor <cgf@redhat.com>
6769 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6770 find the complete path to a loaded DLL.
6772 2002-02-21 Fred Fish <fnf@redhat.com>
6774 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6775 that marks the end of the range of a function, enter a line number
6776 entry that has a line number of zero and a PC offset that matches
6777 the end of the function. This starts a range of PC's for which no
6778 line number information is known.
6779 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6780 PC's for which no line number info is found (line number is zero)
6781 then we didn't find any valid line information.
6782 * symtab.h: Document use of zero line number entry.
6784 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6786 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6787 (have_ptrace_getvrregs): Define for run time checks.
6788 (gdb_vrregset_t): New type for Altivec register handling.
6789 (fetch_register, store_register): Fetch/store altivec register
6791 (fetch_altivec_register, store_altivec_register): New functions.
6792 (supply_vrregset, fill_vrregset): New functions.
6793 (fetch_altivec_registers, store_altivec_registers): New functions.
6794 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6797 2002-02-21 Jiri Smid <smid@suse.cz>
6799 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6801 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6803 * Makefile.in (armnbsd-nat.o): Update dependencies.
6804 * armnbsd-nat.c (supply_gregset): New function. Common code to
6805 supply the integer register set.
6806 (supply_fparegset): New function. Similar for FPA registers.
6807 (fetch_regs, fetch_fp_regs): Use them.
6808 (fetch_core_registers): Likewise.
6809 (fetch_elfcore_registers): New function.
6810 (arm_netbsd_elfcore_fns): New core-file type specification.
6811 (_initialize_arm_netbsd_nat): Register it.
6813 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6815 * armnbsd-nat.c: Include gdbcore.h.
6816 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6817 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6818 'void' to declaration, to shut up ARI.
6819 (fetch_core_registers): Make static. Rewrite using supply_register.
6820 (arm_netbsd_core_fns): New core-file type specification.
6821 (_initialize_arm_netbsd_nat): New function.
6823 2002-02-21 Christopher Faylor <cgf@redhat.com>
6825 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6828 2002-02-20 Christopher Faylor <cgf@redhat.com>
6830 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6833 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6835 * jv-exp.y (parse_number): Change type of implicit longs
6836 to builtin_type_uint64.
6838 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6840 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6841 to be an integer instead of a `union wait'.
6843 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6845 * mips-linux-nat.c: Call the operating system GNU/Linux.
6846 * mips-linux-tdep.c: Likewise.
6847 * mips-tdep.c: Likewise.
6849 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6852 * jv-exp.y (parse_number): Handle 64-bit integers.
6854 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6856 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6857 AC_STDC_HEADERS to AC_HEADER_STDC.
6858 * gdbserver/configure: Regenerated.
6860 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6862 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6864 * sparc-tdep.c (get_longjmp_target): Likewise.
6866 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6868 * News: Add news about ARM and Multi-arch. Mention the new target
6871 2002-02-19 Jim Blandy <jimb@redhat.com>
6873 * stabsread.c (error_type_complaint): Improve error message.
6875 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6877 * gdbserver/README: Update documentation.
6878 * gdbserver/configure.in: Update configury to match documentation.
6879 * gdbserver/Makefile.in: Likewise.
6880 * gdbserver/configure: Regenerated.
6881 * gdbserver/aclocal.m4: New file, generated by aclocal.
6882 * gdbserver/config.in: New file, generated by autoheader.
6884 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6886 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6889 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6891 * arm-tdep.h (enum arm_float_model): New enum.
6892 (struct gdbarch_tdep): Add fp_model.
6893 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6894 up floating-point conversions until we know the floating-point model
6895 in use by the inferior. Don't complain about being unable to
6896 determine the ABI of the inferior when we don't have one.
6897 (arm_extract_return_value): Support different floating-point models.
6898 (arm_store_return_value): Likewise.
6899 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6901 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6903 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6905 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6906 of ``current_gdbarch''.
6908 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6910 * armnbsd-nat.c : ANSIfy all function declarations.
6911 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6912 (fetch_inferior_registers): Re-implement in terms of above.
6913 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6914 (store_inferior_registers): Re-implement in terms of above.
6916 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6918 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6920 * arm-linux-tdep.c: Likewise.
6921 * config/arm/tm-linux.h: Likewise.
6923 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6925 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6926 * config/arm/nbsd.mt (TM_FILE): Delete.
6927 * config/arm/tm-nbsd.h: Delete.
6929 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6931 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6932 Initialize CALL_DUMMY_LENGTH.
6934 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6936 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6938 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6939 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6940 defines one thing and that is incorrect for this port.
6941 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6943 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6945 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6947 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6949 * win32-nat.c (display_selector): New function. Displays information
6950 about the information returned by GetThreadSelectorEntry API function.
6951 (display_selectors): New function. Displays the infomation of
6952 the selector given as argument, or of CS, DS ans FS selectors
6953 if no argument is given.
6954 ( _initialize_inftarg): Add "w32" as info prefix command.
6955 Add "info w32 selector" as command calling display_selectors.
6957 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6959 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6960 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6963 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6965 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6967 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6969 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6970 (arm_fix_call_dummy): Call it.
6971 (arm_call_dummy_breakpoint_offset): Delete.
6972 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6973 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6975 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6977 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6978 Default to func_frame_chain_valid.
6979 * gdbarch.h, gdbarch.c: Re-generate.
6980 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6982 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6984 * ppc-linux-nat.c: Update copyright.
6985 (fetch_register, store_register): Add tid parameter, don't compute
6987 (fetch_ppc_registers, store_ppc_registers): Add tid
6988 parameter. Pass it along to callees.
6989 (fetch_inferior_registers, store_inferior_registers): Compute tid
6990 here, and pass it to calleed functions.
6991 (fill_gregset, supply_fpregset): Clean up formatting.
6993 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6995 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6996 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6998 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7000 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7001 * gdbarch.c gdbarch.h: Regenerate.
7002 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7004 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7005 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7006 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7008 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7009 * arm-tdep.c (arm_get_longjmp_target): New function.
7010 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7011 this to a positive value register arm_get_longjmp_target as the
7013 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7014 (arm_linux_init_abi): Set up longjmp description in tdep.
7015 * armnbsd-nat.c (get_longjmp_target): Delete.
7016 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7017 description in tdep.
7018 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7019 (get_longjmp_target): Delete declaration.
7020 (GET_LONGJMP_TARGET): Delete.
7021 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7022 (GET_LONGJMP_TARGET): Delete.
7024 2002-02-17 Kevin Buettner <kevinb@redhat.com>
7026 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7027 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7028 of ``current_gdbarch''.
7030 2002-02-17 Tom Tromey <tromey@redhat.com>
7032 * cli/cli-cmds.c (compare_strings): New function.
7033 (complete_command): Only print each unique item once.
7034 * completer.h (complete_line): Declare.
7035 * completer.c (complete_line): New function.
7036 (line_completion_function): Use it.
7038 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7040 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7041 * gdbarch.h, gdbarch.c: Re-generate.
7043 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7045 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7047 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7049 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7050 * valops.c (value_arg_coerce): Don't take the address of a reference
7051 to convert an argument to a reference.
7053 2002-02-15 Christopher Faylor <cgf@redhat.com>
7055 * win32-nat.c (get_image_name): New function.
7056 (handle_load_dll): Use get_image_name function.
7057 (get_child_debug_event): Avoid registering debug events until possibly
7058 execed process is started.
7059 (child_create_inferior): Allow invocation via shell so that command
7060 line redirection, etc. works ok.
7061 (_initialize_inftarg): Add new command: "set shell" to control whether
7062 a shell is used to start a process.
7064 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7066 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7067 instead of find_register_by_number.
7068 (cannot_store_register): Likewise.
7070 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7072 * dwarf2read.c: Replace fprintf (stderr, ...) by
7073 fprintf_unfiltered (gdb_stderr, ...).
7075 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7077 * gdbserver/gdbserver.1: Document --attach.
7079 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7081 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7083 * arm-tdep.c (arm_default_arm_le_breakpoint)
7084 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7085 (arm_default_thumb_be_breakpoint): New. Initialize them from
7086 traditional breakpoint defines.
7087 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7088 (arm_gdbarch_init): Initialize new breakpoint variables.
7089 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7090 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7091 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7092 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7094 (arm_netbsd_init_abi_common): ... here; new function.
7095 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7096 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7097 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7098 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7100 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7102 * arm-tdep.h (enum arm_abi): New enum.
7103 (struct gdbarch_tdep): New structure.
7104 (LOWEST_PC): Provide a default.
7105 (arm_gdbarch_register_os_abi): Declare new function.
7106 * arm-tdep.c (arm_abi_names): New array.
7107 (process_note_abi_tag_sections): New function.
7108 (get_elfosabi): New function.
7109 (arm_gdbarch_register_os_abi): New function.
7110 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7111 support for that ABI has been built in, then call the appropriate
7112 configuration routine. Use gdbarch_num_regs() to get the number
7114 (arm_dump_tdep): New function.
7115 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7116 place-holder functions.
7117 (_initialize_arm_tdep): Register them.
7118 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7120 * armnbsd-tdep.c: New file.
7121 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7122 * config/arm/nbsd.mt (TDEPFILES): Add it.
7123 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7125 * armnbsd-nat.c: Include regcache.h.
7126 * Makefile.in (armnbsd-nat.o): Update dependency list.
7128 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7130 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7132 * gdbserver/Makefile.in: Fix typos in target rules.
7134 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7136 Fix part of PR gdb/267.
7137 * linespec.c (find_methods): Handle constructors specially for now.
7139 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7141 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7143 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7144 standard_coerce_float_to_double().
7146 2002-02-14 Christopher Faylor <cgf@redhat.com>
7148 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7151 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7153 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7154 find_variant_by_name, because it confuses the multiarch
7155 framework. Return NULL if there isn't an architecture with the
7156 user supplied name, instead of forcing a different one without
7157 recording the change with the multiarch machinery.
7158 (find_variant_by_name): Delete.
7160 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7162 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7163 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7165 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7167 * stack.c (print_frame_info_base): When calling
7168 print_frame_info_listing_hook, set current_source_symtab.
7170 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7172 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7173 and remove unused $(INCLUDE_DIR).
7174 Add regcache.c to OBS.
7175 Add generated register protocol files to clean target.
7176 Update dependencies for new objects, obsolete old target code.
7178 * gdbserver/linux-low.c: Remove all platform-specific code to
7179 new files. Remove various dead code. Update to use regcache
7181 * gdbserver/remote-utils.c (fromhex): Add return statement
7183 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7185 (input_interrupt): Add integer parameter to match prototype
7186 of a signal handler.
7187 (outreg): Use register_data ().
7188 (prepare_resume_reply): Use gdbserver_expedite_regs.
7189 * gdbserver/server.c (main): Dynamically allocate own_buf because
7190 PBUFSIZ is no longer constant. Use registers_to_string () and
7191 registers_from_string ().
7192 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7193 for error (), fatal (), and warning (). Update definition of
7194 PBUFSIZ to use regcache functionality. Add include guard.
7195 * gdbserver/utils.c (fatal): Add missing ``const''.
7196 (warning): New function.
7198 * regformats/regdat.sh: Include "regcache.h" in generated files.
7199 Provide init_registers () function.
7200 * regformats/regdef.h: Add prototype for set_register_cache ().
7203 * gdbserver/linux-arm-low.c: New file.
7204 * gdbserver/linux-i386-low.c: New file.
7205 * gdbserver/linux-ia64-low.c: New file.
7206 * gdbserver/linux-m68k-low.c: New file.
7207 * gdbserver/linux-mips-low.c: New file.
7208 * gdbserver/linux-ppc-low.c: New file.
7209 * gdbserver/linux-sh-low.c: New file.
7211 * gdbserver/regcache.c: New file.
7212 * gdbserver/regcache.h: New file.
7214 * gdbserver/low-linux.c: Removed obsolete file.
7216 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7218 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7219 * config/i386/linux.mt: Likewise.
7220 * config/ia64/linux.mt: Likewise.
7221 * config/m68k/linux.mh: Likewise.
7222 * config/powerpc/linux.mh: Likewise.
7223 * config/mips/linux.mt: Likewise.
7225 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7227 * config/i386/i386lynx.mh: Mark gdbserver variables
7228 as (currently) obsolete for this target.
7229 * config/i386/nbsd.mt: Likewise.
7230 * config/i386/nbsdelf.mt: Likewise.
7231 * config/m32r/m32r.mt: Likewise.
7232 * config/m68k/m68klynx.mh: Likewise.
7233 * config/m68k/nbsd.mt: Likewise.
7234 * config/m68k/sun3os4.mh: Likewise.
7235 * config/mips/vr5000.mt: Likewise.
7236 * config/ns32k/nbsd.mt: Likewise.
7237 * config/pa/hppabsd.mh: Likewise.
7238 * config/pa/hppaosf.mh: Likewise.
7239 * config/powerpc/nbsd.mt: Likewise.
7240 * config/rs6000/rs6000lynx.mh: Likewise.
7241 * config/s390/s390.mt: Likewise.
7242 * config/s390/s390x.mt: Likewise.
7243 * config/sparc/sparclynx.mh: Likewise.
7244 * config/sparc/sun4os4.mh: Likewise.
7245 * config/i386/x86-64linux.mt: Likewise.
7246 * config/sparc/linux.mh: Likewise.
7248 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7250 * configure.tgt: Configure gdbserver only for known working
7251 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7252 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7253 SUBDIRS if it is configured. Update comment for ${nativefile}.
7254 * configure: Regenerated.
7256 2002-02-13 Michael Snyder <msnyder@redhat.com>
7258 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7260 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7261 (default_gcore_mach): Just return 0, work around a problem in bfd.
7262 (default_gcore_target): OK to return NULL if exec_bfd is null.
7263 (make_mem_sec): Use a cast, avoid a warning.
7265 * procfs.c (find_memory_regions_callback): Use a cast instead of
7266 calling host_pointer_to_address (which complains if
7267 sizeof (host pointer) != sizeof (target pointer)).
7268 (procfs_make_note_section): Avoid overflow in psargs string.
7270 * procfs.c (procfs_make_note_section): Make the default
7271 implementation return an error.
7273 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
7275 * procfs.c (procfs_make_note_section): Provide a default definition
7276 (for alpha-dec-osf4.0f). Fix typos.
7278 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
7280 * linux-proc.c: Add include of regcache.h.
7281 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7283 2002-02-13 Andrew Cagney <ac131313@redhat.com>
7285 From 2002-01-18 Greg McGary <greg@mcgary.org>:
7286 * memattr.c (create_mem_region): Disallow useless empty region.
7287 Regions are half-open intervals, so allow [A..B) [B..C) as
7290 2002-02-13 Michael Chastain <mec@shout.net>
7292 * defs.h: Kill CONST_PTR.
7293 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7294 * c-lang.c (c_builtin_types): Likewise.
7295 * ch-lang.c (ch_builtin_types): Likewise.
7296 * f-lang.c (f_builtin_types): Likewise.
7297 * language.c (unknown_builtin_types): Likewise.
7298 * m2-lang.c (m2_builtin_types): Likewise.
7299 * p-lang.c (pascal_builtin_types): Likewise.
7300 * scm-lang.c (c_builtin_types): Likewise.
7302 2002-02-13 Keith Seitz <keiths@redhat.com>
7304 * arm-tdep.h (arm_get_next_pc): Add declaration.
7306 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
7308 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
7309 with other related struct-returning functions.
7310 (arm_extract_struct_value_address): New function.
7311 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
7312 initialize float_format, double_format and long_double_format as
7313 appropriate to the endianness of the target.
7314 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
7315 (arm_use_struct_convention): Delete declaration.
7316 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7318 2002-02-13 Keith Seitz <keiths@redhat.com>
7320 * defs.h (core_addr_to_string_nz): New function.
7322 2002-02-13 Mark Kettenis <kettenis@gnu.org>
7324 Apply missing bits of 2002-01-15 patch.
7325 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
7326 (fill_fpregset): Use i387_fill_fsave.
7328 2002-02-12 Keith Seitz <keiths@redhat.com>
7330 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
7331 (core_addr_to_string_nz): New function.
7333 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7335 * arm-linux-nat.c: Really include arm-tdep.h.
7336 * config/arm/tm-linux.h (struct type, struct value): Declare.
7338 2002-02-11 Michael Snyder <msnyder@redhat.com>
7340 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
7341 (gcore section): Ifdef for Solaris and Unixware only.
7342 (procfs_do_thread_registers): Unixware needs one lwpstatus
7343 per thread (not one prstatus or pstatus).
7344 (procfs_make_note_section): Iterate only over kernel threads (lwps),
7345 not over all gdb threads. For unixware, call elfcore_write_pstatus
7346 once before iterating over threads.
7348 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7350 * arm-tdep.h: New file.
7351 * arm-tdep.c: Include arm-tdep.h.
7352 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7353 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7354 (arm_print_float_info, arm_register_type, convert_to_extended)
7355 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7356 (arm_extract_return_value, arm_register_name): Make static.
7357 (arm_software_single_step): Similarly. Fix types in declaration.
7358 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
7359 (arm_store_return_value, arm_store_struct_return): New functions.
7360 (arm_gdbarch_init): Register the above functions. Also register
7361 call_dummy_start_offset, sizeof_call_dummy_words,
7362 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
7363 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
7364 max_register_virtual_size, register_size. Set up
7365 prologue_cache.saved_regs here, rather than ...
7366 (_initialize_arm_tdep): ... here.
7367 * config/arm/tm-arm.h (struct type, struct value): Delete forward
7369 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7370 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7371 (arm_print_float_info, arm_register_type, convert_to_extended)
7372 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7373 (arm_extract_return_value, arm_register_name): Delete declarations.
7374 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
7375 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
7376 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
7377 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
7378 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7379 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
7380 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
7381 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
7382 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
7383 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
7384 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
7385 (arm_get_next_pc): No-longer static -- these are needed by the RDI
7387 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
7388 * remote-rdi.c remote-rdp.c: Likewise.
7389 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
7390 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
7391 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
7394 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
7395 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
7396 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
7397 from non-ARM_ prefixed definitions.
7398 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7400 * remote-rdi.c remote-rdp.c: Likewise.
7401 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7403 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7405 * arm-tdep.c (arm_frameless_function_invocation)
7406 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7407 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7408 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7409 (arm_pop_frame, arm_get_next_pc): Make static.
7410 (arm_gdbarch_init): Register above in gdbarch structure.
7411 (arm_read_fp): Renamed from arm_target_read_fp.
7412 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7413 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7414 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7415 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7416 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7417 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7418 (arm_pc_is_thumb_dummy): Delete declarations.
7419 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7420 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7421 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7422 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7424 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7426 * symtab.c (compare_search_syms): New function.
7427 (sort_search_symbols): New function.
7428 (search_symbols): Sort symbols after searching rather than
7431 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7433 * NEWS: Linux -> GNU/Linux.
7435 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7437 * gdbarch.sh: For for level one methods, disallow a definition
7438 when partially multi-arched. Add comments explaining rationale.
7439 * gdbarch.h: Re-generate.
7441 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7443 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7446 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7448 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7450 * gdbarch.c: Re-generate.
7452 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7454 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7455 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7458 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7460 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7462 (PUSH_ARGUMENTS): Switch to using predefault.
7463 * gdbarch.c: Regenerate.
7465 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7467 * valops.c (PUSH_ARGUMENTS): Delete definition.
7468 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7469 partial. Default to default_push_arguments.
7470 * gdbarch.h, gdbarch.c: Regenerate.
7472 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7474 * defs.h (throw_exception): Rename return_to_top_level. Update
7476 * utils.c (error_stream, internal_verror, quit): Ditto.
7477 * top.c (throw_exception, catcher): Ditto.
7478 * sparclet-rom.c (sparclet_load): Ditto.
7479 * remote.c (interrupt_query, minitelnet): Ditto.
7480 * remote-sds.c (interrupt_query): Ditto.
7481 * remote-mips.c (mips_error, mips_kill): Ditto.
7482 * ocd.c (interrupt_query): Ditto.
7483 * monitor.c (monitor_interrupt_query): Ditto.
7484 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7485 * target.h: Update comment.
7487 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7489 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7491 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7492 default_double_format.
7493 * gdbarch.h, gdbarch.c: Re-generate.
7494 * findvar.c (floatformat_unknown): Delete variable definition.
7495 * doublest.h (floatformat_unknown): Delete variable declaration.
7497 2002-02-09 Jim Blandy <jimb@redhat.com>
7499 * stabsread.c (read_type): Add code to parse Sun's syntax for
7500 prototyped function types.
7502 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7504 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7505 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7507 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7509 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7510 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7511 now _initialize_xcoffsolib gets called again and overrides the
7512 commands from solib.c in a native configuration.
7514 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7516 * doublest.c (store_typed_floating): Don't try to return a value.
7519 2002-02-08 Jim Blandy <jimb@redhat.com>
7521 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7522 is prototyped and has no arguments, print its argument list as
7525 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7527 * MAINTAINERS (write-after-approval): Add myself.
7528 (paper-trail): I've escaped!
7530 2002-02-08 Christopher Faylor <cgf@redhat.com>
7532 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7534 (_initialize_check_for_gdb_ini): Ditto.
7536 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7538 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7539 xaprintf -> xasprintf.
7541 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7543 * win32-nat.c: Remove use of printf and sprintf functions.
7545 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7547 * arm-tdep.c (arm_frame_chain_valid): Make static.
7548 (arm_push_arguments): Likewise.
7549 (arm_gdbarch_init): New function.
7550 (_initialize_arm_tdep): Call it.
7551 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7552 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7553 (FRAME_CHAIN_VALID): Delete.
7554 (arm_frame_chain_valid): Delete declaration.
7555 (PUSH_ARGUMENTS): Delete.
7556 (arm_push_arguments): Delete declaration.
7557 (CALL_DUMMY_P): Delete.
7559 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7560 Corinna Vinschen <vinschen@redhat.com>
7562 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7563 on builtin float types.
7565 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7567 * utils.c: Include <curses.h> before "bfd.h".
7568 * tui/tui-hooks.c: Likewise.
7569 * tui/tui.c: Likewise.
7570 * tui/tuiCommand.c: Likewise.
7571 * tui/tuiData.c: Likewise.
7572 * tui/tuiDataWin.c: Likewise.
7573 * tui/tuiDisassem.c: Likewise.
7574 * tui/tuiGeneralWin.c: Likewise.
7575 * tui/tuiIO.c: Likewise.
7576 * tui/tuiLayout.c: Likewise.
7577 * tui/tuiRegs.c: Likewise.
7578 * tui/tuiSource.c: Likewise.
7579 * tui/tuiSourceWin.c: Likewise.
7580 * tui/tuiStack.c: Likewise.
7581 * tui/tuiWin.c: Likewise.
7583 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7585 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7586 to include space for pseudoregs as well. Update loops accordingly.
7587 (sh_fp_frame_init_saved_regs): Ditto.
7588 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7590 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7592 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7593 Add Richard Earnshaw to Arm maintainers.
7595 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7597 * defs.h (warning_begin): Delete declaration.
7599 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7602 2002-02-07 Michael Snyder <msnyder@redhat.com>
7604 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7605 Logic bug, remove misplaced else.
7607 2002-02-07 Klee Dienes <klee@apple.com>
7609 * fork-inferior.c (fork_inferior): Add '!' to the list of
7610 characters that need to be quoted when building a string for the
7611 shell. Quote '!' specifically with a backslash, since CSH chokes
7612 when trying to evaluate "str!str".
7614 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7616 * rdi-share/host.h: Only provide a typedef for bool if it is not
7619 2002-02-04 Michael Snyder <msnyder@redhat.com>
7621 * breakpoint.h (enum bptype): Add new overlay event bp type.
7622 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7624 * breakpoint.c (create_internal_breakpoint): New function.
7625 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7626 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7627 (create_thread_event_breakpoint): Ditto.
7628 (create_solib_event_breakpoint): Ditto.
7629 (create_overlay_event_breakpoint): New function.
7630 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7631 (update_breakpoints_after_exec): Delete and re-initialize
7632 overlay event breakpoints after an exec. Add FIXME comment
7633 about longjmp breakpoint.
7634 (print_it_typical): Ignore overlay event breakpoints.
7635 (print_one_breakpoint): Ditto.
7637 (bpstat_what): Do not stop for overlay event breakpoints.
7638 (delete_breakpoint): Don't delete overlay event breakpoints.
7639 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7640 (breakpoint_re_set): Re-create overlay event breakpoint.
7642 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7643 (overlay_manual_command): Disable overlay breakpoints.
7644 (overlay_off_command): Disable overlay breakpoints.
7646 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7648 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7649 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7650 to here from config/tm-arm.h.
7651 (coff_sym_is_thumb): Make static.
7652 (arm_elf_make_msymbol_special): New function.
7653 (arm_coff_make_msymbol_special): New function.
7654 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7655 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7656 (coff_sym_is_thumb): Delete declaration.
7657 (arm_elf_make_msymbol_special): Declare.
7658 (arm_coff_make_msymbol_special): Declare.
7659 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7660 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7662 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7664 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7666 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7668 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7669 * gdbarch.c gdbarch.h: Regenerate.
7670 * arch-utils.c (default_print_float_info): New function.
7671 * arch-utils.h (default_print_float_info): Prototype it.
7672 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7673 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7674 (PRINT_FLOAT_INFO): Document it.
7676 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7677 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7678 (PRINT_FLOAT_INFO): Define.
7680 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7682 * win32-nat.c (_initialize_check_for_gdb_ini):
7683 Add typecast to sprintf argument to suppress a warning.
7685 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7687 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7688 to allow easier handling of pass state.
7689 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7690 that gives exception name and address.
7691 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7692 and set last_sig value to ourstatus->value.sig. Some missing
7694 (child_continue): Correctly report continue_status.
7695 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7696 TARGET_SIGNAL_0 (new default value).
7697 (child_resume): consider sig argument passed to decide if
7698 the exception should be passed to debuggee or not.
7700 2002-02-05 Michael Snyder <msnyder@redhat.com>
7702 * regcache.c (fetch_register): Call target_fetch_register
7703 only if we don't call FETCH_PSEUDO_REGISTER.
7704 (store_register): Call target_store_register only if we
7705 don't call STORE_PSEUDO_REGISTER.
7707 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7709 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7710 ELF_MAKE_MSYMBOL_SPECIAL.
7711 * gdbarch.c, gdbarch.h: Regenerate.
7712 * arch-utils.c (default_make_msymbol_special): New function.
7713 * arch-utils.h (default_make_msymbol_special): Export.
7714 * elfread.c (elf_symtab_read): Compile use of
7715 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7717 * coffread.c (coff_symtab_read): Ditto, for
7718 COFF_MAKE_MSYMBOL_SPECIAL.
7720 2002-02-05 Jim Blandy <jimb@redhat.com>
7722 * solib-svr4.c (svr4_truncate_ptr): New function.
7723 (svr4_relocate_section_addresses): Do the address arithmetic with
7724 the appropriate truncation for target addresses, even when
7725 CORE_ADDR is larger than a target address.
7727 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7729 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7732 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7734 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7737 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7739 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7741 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7743 * gdbserver/linux-low.c: Remove unused include files.
7745 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7747 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7748 (read_inferior_memory): Use it.
7749 (write_inferior_memory): Likewise.
7751 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7753 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7754 grubbing through sys_errlist.
7756 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7758 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7760 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7761 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7763 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7765 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7766 (do_sfunc, set_cmd_sfunc): New functions.
7768 * command.h (struct cmd_list_element): Add field func.
7769 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7770 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7771 * cli/cli-decode.h: Ditto.
7773 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7774 (help_all, help_cmd_list): Ditto.
7775 (find_cmd, complete_on_cmdlist): Ditto.
7776 * top.c (execute_command): Ditto.
7778 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7781 * infcmd.c (notice_args_read): Fix function signature.
7783 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7784 * cli/cli-decode.c (add_set_cmd): Ditto.
7785 * utils.c (initialize_utils): Ditto.
7786 * maint.c (_initialize_maint_cmds): Ditto.
7787 * infrun.c (_initialize_infrun): Ditto.
7788 * demangle.c (_initialize_demangler): Ditto.
7789 * remote.c (add_packet_config_cmd): Ditto.
7790 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7791 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7792 * proc-api.c (_initialize_proc_api): Ditto.
7793 * kod.c (_initialize_kod): Ditto.
7794 * valprint.c (_initialize_valprint): Ditto.
7795 * top.c (init_main): Ditto.
7796 * infcmd.c (_initialize_infcmd): Ditto.
7797 * corefile.c (_initialize_core): Ditto.
7798 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7799 * arch-utils.c (initialize_current_architecture): Ditto.
7800 (_initialize_gdbarch_utils): Ditto.
7801 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7803 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7804 * wince.c (_initialize_inftarg): Ditto.
7805 * symfile.c (_initialize_symfile): Ditto.
7806 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7807 * language.c (_initialize_language): Ditto.
7808 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7810 2002-02-04 Michael Snyder <msnyder@redhat.com>
7812 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7814 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7816 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7817 Add rules for building the register data files.
7819 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7821 * regformats/regdat.sh: Add braces to the definition of
7822 expedite_regs_${arch}.
7824 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7826 * regformats/regdef.h (struct reg): Add comment describing the
7827 requirements for offset and size fields.
7829 2002-02-04 Andreas Schwab <schwab@suse.de>
7831 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7832 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7834 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7836 * gdbarch.sh (copyright): Update years in generated header.
7837 (SMASH_TEXT_ADDRESS): Add rule.
7838 * gdbarch.h, gdbarch.c: Re-generate.
7839 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7840 * dbxread.c: Likewise.
7841 * dwarfread.c: Likewise.
7842 * elfread.c: Likewise.
7843 * somread.c: Likewise.
7845 * arm-tdep.c (arm_smash_text_address): New function.
7846 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7848 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7850 Add support for hardware watchpoints on win32 native.
7851 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7852 CONTEXT_DEBUG_REGISTERS.
7853 (dr variable): New variable. Static array containing a local copy
7855 (debug_registers_changed): New variable. Reflects when debug registers
7856 are changed and need to be written to inferior.
7857 (debug_registers_used): New variable. Reflects when any debug register
7858 was set, used when new threads are created.
7859 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7861 (thread_rec): Set dr array if id is the thread of current_event .
7862 (child_continue, child_resume): Change the debug registers for all
7863 threads if debug_registers_changed.
7864 (child_add_thread): Change the debug registers if debug_registers_used.
7865 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7866 Link nm.h to new nm-cygwin.h file.
7867 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7868 of hardware registers.
7870 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7872 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7873 Restore behavour broken by 2002-01-20 Andrew Cagney
7874 <ac131313@redhat.com> IEEE_FLOAT removal.
7876 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7878 * c-valprint.c (c_val_print): Pass a proper valaddr to
7879 cp_print_class_method.
7880 * valops.c (search_struct_method): If there is only one method
7881 and args is NULL, return that method.
7883 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7885 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7886 accessing tag_name directly.
7888 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7890 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7891 of accessing tag_name directly.
7893 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7896 * gdbtypes.c (replace_type): New function.
7897 * gdbtypes.h (replace_type): Add prototype.
7898 * stabsread.c (read_type): Use replace_type.
7900 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7902 * Makefile.in (memattr.o): Add missing dependencies rule.
7904 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7906 * breakpoint.c (break_at_finish_command): Really export.
7907 (break_at_finish_at_depth_command): Ditto.
7908 (tbreak_at_finish_command): Ditto.
7909 * hppa-tdep.c: Include completer.h.
7910 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7911 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7913 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7915 * utils.c (do_write): New function.
7916 (error_stream): Rewrite combining the code from error_begin and
7918 (verror): Rewrite using error_stream.
7919 (error_begin): Delete function.
7921 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7923 * utils.c (error_begin): Make static.
7924 * defs.h (error_begin): Delete declaration.
7926 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7927 (decode_line_1): Use cplusplus_error instead of error_begin,
7928 cplusplus_hint and return_to_top_level.
7929 * coffread.c (coff_symfile_read): Use error instead of error_begin
7930 and return_to_top_level.
7931 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7933 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7935 * language.h (type_error, range_error): Make string parameter
7937 * language.c (warning_pre_print): Delete extern declaration.
7938 * dwarfread.c (warning_pre_print): Ditto.
7939 * language.c (type_error, range_error): Rewrite to use verror and
7940 vwarning instead of warning_begin.
7942 2002-02-01 Michael Snyder <msnyder@redhat.com>
7944 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7945 (set_ignore_count): Move misplaced comment back where it belongs.
7947 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7949 * command.h (NO_FUNCTION): Delete macro.
7950 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7951 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7952 * tracepoint.c (_initialize_tracepoint): Ditto.
7953 * cli/cli-decode.c (add_set_cmd): Ditto.
7954 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7956 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7958 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7959 Update ``this'' pointer when calling virtual functions.
7961 2002-02-01 Michael Snyder <msnyder@redhat.com>
7963 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7964 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7966 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7968 * regformats/reg-arm.dat: New file.
7969 * regformats/reg-i386.dat: New file.
7970 * regformats/reg-ia64.dat: New file.
7971 * regformats/reg-m68k.dat: New file.
7972 * regformats/reg-mips.dat: New file.
7973 * regformats/reg-ppc.dat: New file.
7974 * regformats/reg-sh.dat: New file.
7975 * regformats/regdef.h: New file.
7976 * regformats/regdat.sh: New file.
7978 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7980 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7981 (arm_frame_args_address, arm_frame_locals_address): New functions.
7982 (arm_frame_num_args): New function.
7983 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7984 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7985 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7987 2002-01-31 Michael Snyder <msnyder@redhat.com>
7989 * breakpoint.c (break_at_finish_command): Export.
7990 (break_at_finish_at_depth_command): Export.
7991 (tbreak_at_finish_command): Export.
7992 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7993 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7994 "tbreak" commands, which are HPPA specific.
7996 * printcmd.c (disassemble_command): Remove an ancient
7997 artifact of an old merge.
7999 * symfile.h (enum overlay_debugging_state):
8000 Define enum constant values for overlay mode.
8001 * symfile.c (overlay_debugging): Use enums instead of literals.
8002 (overlay_is_mapped, overlay_auto_command,
8003 overlay_manual_command): Ditto.
8005 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8006 breakpoint_here_p, breakpoint_inserted_here_p,
8007 breakpoint_thread_match, bpstat_stop_status,
8008 describe_other_breakpoints, check_duplicates, clear_command):
8009 Coding standard fixes.
8011 * target.c (target_xfer_memory): Add spaces, coding standard.
8012 (do_xfer_memory): Add missing line to trust-readonly
8013 code: check bfd SEC_READONLY flag for section.
8015 2002-01-31 Andrew Cagney <ac131313@redhat.com>
8017 * PROBLEMS: Fix typo, 5.1->5.1.1.
8019 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
8021 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8022 data symbols, since we search based on textlow and texthigh.
8023 (find_pc_sect_symtab): Likewise.
8025 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8027 * defs.h (vwarning): Declare.
8028 * utils.c (vwarning): New function.
8029 (warning): Call vwarning.
8030 (warning_begin): Delete function.
8032 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8033 the warning message.
8034 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8037 2002-01-30 Michael Snyder <msnyder@redhat.com>
8039 * NEWS: Mention "set trust-readonly-sections" command.
8040 Mention generate-core-file command.
8042 2002-01-15 Michael Snyder <msnyder@redhat.com>
8044 * target.c: New command, "set trust-readonly-sections on".
8045 (do_xfer_memory): Honor the suggestion to trust readonly sections
8046 by reading them from the object file instead of from the target.
8047 (initialize_targets): Register command "set trust-readonly-sections".
8049 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8051 * parse.c (target_map_name_to_register): Simplify, search regs and
8052 pseudo-regs using a single loop.
8054 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8056 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8058 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
8060 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8061 * config/i386/i386v42mp.mh: Add i387-nat.o .
8062 * i386v4-nat.c: Include i387-nat.h.
8063 (supply_fpregset): Use i387_supply_fsave.
8064 (fill_fpregset): Use i387_fill_fsave.
8066 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
8068 * arm-tdep.c (arm_call_dummy_words): Define.
8069 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8070 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8071 (CALL_DUMMY_WORDS): Define.
8072 (arm_call_dummy_words): Declare.
8073 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8074 (arm_linux_call_dummy_words): Declare.
8076 2002-01-30 Andreas Schwab <schwab@suse.de>
8078 * m68klinux-nat.c: Fix last change to use regcache_collect
8079 instead of referencing registers[] directly.
8081 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8083 * parse.c (target_map_name_to_register): Delete code wrapped in
8084 #ifdef REGISTER_NAME_ALIAS_HOOK.
8086 2002-01-28 Michael Snyder <msnyder@redhat.com>
8088 * regcache.c (legacy_read_register_gen): Need to be able to
8089 read pseudo-register as well as real register.
8090 (legacy_write_register_gen): Ditto.
8092 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8094 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8095 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8096 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8097 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8098 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8099 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8100 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8101 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8102 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8103 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8104 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8105 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8106 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8107 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8108 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8109 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8110 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8111 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8112 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8113 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8115 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8117 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8118 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8119 (initialize_current_architecture): Update target_byte_order using
8120 information from BFD.
8121 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
8122 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8124 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8126 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8127 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8129 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8130 #ifdef INVALID_FLOAT.
8131 * infcmd.c (do_registers_info): Ditto.
8132 * values.c (unpack_double): Ditto. Add comment.
8134 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8135 already commented out.
8137 2002-01-26 Andreas Schwab <schwab@suse.de>
8139 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8140 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8141 registers and add support for PTRACE_GETREGS.
8143 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8145 GDB 5.1.1 released from 5.1 branch.
8146 * NEWS: Add 5.1.1 news.
8147 * README: Sync with 5.1 branch.
8149 2002-01-23 Fred Fish <fnf@redhat.com>
8151 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8152 stabstring on initial malloc. Reallocing will copy it for us,
8155 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8157 * Makefile.in (hpread_h): Delete.
8158 (HFILES_NO_SRCDIR): Remove hpread.h.
8159 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8160 (hpread.o): Update dependencies.
8161 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8163 * hp-psymtab-read.c: Remove file.
8164 * hp-symtab-read.c: Remove file.
8165 * hpread.h: Remove file.
8167 * hpread.c: Merge all contents of hp-psymtab-read.c,
8168 hp-symtab-read.c and hpread.h into this file, as it was prior to
8171 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8172 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8173 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8174 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8176 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8178 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8179 fill_gregset): Call gdbarch_tdep() just once, assign result to
8180 variable and use that, instead of calling the function several
8183 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8185 * configure.host: Accept sparcv9 as alias for sparc64.
8186 * configure.tgt: Likewise.
8188 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8190 * solib-aix5.c (build_so_list_from_mapfile)
8191 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8192 arguments is not reversed.
8193 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8194 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8196 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8198 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8199 modified version of obsolete sh_fetch_pseudo_register.
8200 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8201 (sh4_register_read): New function.
8202 (sh_pseudo_register_write): New function. Renamed and modified
8203 version of obsolete sh_store_pseudo_register.
8204 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8205 (sh4_register_write): New function.
8206 (sh_gdbarch_init): Remove setting of gdbarch function
8207 fetch_pseudo_register and store_pseudo_register. Remove setting of
8208 register_convert_to_raw, register_convert_to_virtual,
8209 register_convertible.
8210 (sh_sh4_register_convertible): Delete. No longer needed. All is
8211 taken care by architecture specific functions
8212 register_read/register_write.
8213 (sh_sh4_register_convert_to_virtual): Make static.
8214 (sh_sh4_register_convert_to_raw): Ditto.
8216 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8218 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8219 (floatformat_is_nan, floatformat_mantissa): Ditto.
8221 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8222 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8223 builtin_type_ieee_double_little,
8224 builtin_type_ieee_double_littlebyte_bigword,
8225 builtin_type_m68881_ext, builtin_type_i960_ext,
8226 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8227 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8228 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8229 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8231 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8233 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8234 parameter. Set frameless flag if it exists and depended of
8235 whether the scanned function is frameless or not.
8236 (xstormy16_skip_prologue): If function is frameless, return
8237 result of xstormy16_scan_prologue().
8238 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8241 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8243 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8244 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8245 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8246 sh_sh4_register_byte, sh_sh4_register_raw_size,
8247 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8248 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8249 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8250 sh_store_pseudo_register, sh_do_pseudo_register): Call
8251 gdbarch_tdep() just once, assign result to variable and use that,
8252 instead of calling the function several times.
8254 2002-01-20 Mark Kettenis <kettenis@gnu.org>
8256 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8257 macros instead of LAST_FPU_CTRL_REGNUM.
8258 (store_register): Likewise.
8260 2002-01-21 Jim Blandy <jimb@redhat.com>
8262 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8263 is up-to-date before running the program, not just when a program
8266 2002-01-21 Fred Fish <fnf@redhat.com>
8268 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8269 when we have found all instructions we are looking for.
8271 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8273 * arm-tdep.c (arm_register_name): New function.
8274 (arm_registers_names): Make static.
8275 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8276 (arm_register_name): Declare.
8277 (REGISTER_NAME): Use it.
8279 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8280 Kevin Buettner <kevinb@redhat.com>
8282 Convert arm targets to new FRAME interface.
8283 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8284 (arm_frame_find_save_regs): Delete.
8285 (arm_frame_init_saved_regs): New.
8286 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8287 Allocate extra_info as required. Convert all uses of fsr.regs
8288 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8290 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8291 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8292 (check_prologue_cache, save_prologue_cache): Likewise.
8293 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8294 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8295 (FRAME_FIND_SAVED_REGS): Delete.
8296 (arm_frame_find_saved_regs): Delete prototype.
8297 (arm_frame_init_saved_regs): New prototype.
8298 (FRAME_INIT_SAVED_REGS): Define.
8300 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8302 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8304 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8306 From Jeff Law <law@redhat.com>:
8307 * infttrace.c: Include <sys/pstat.h>.
8308 (child_pid_to_exec_file): Revamp. Use pstat call to get the
8309 exec file if the ttrace equivalent fails.
8311 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8313 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
8314 (closeLogFile): Ditto.
8316 2002-01-20 Michael Chastain <mec@shout.net>
8318 * top.c (print_gdb_version): Bump copyright year to 2002.
8320 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8322 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
8323 Zannoni and Eli Zaretskii.
8325 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8327 * buildsym.c: Update copyright years.
8328 * c-typeprint.c: Likewise.
8329 * dwarf2read.c: Likewise.
8330 * f-typeprint.c: Likewise.
8331 * gdbtypes.c: Likewise.
8332 * gdbtypes.h: Likewise.
8333 * hp-symtab-read.c: Likewise.
8334 * hpread.c: Likewise.
8335 * mdebugread.c: Likewise.
8336 * p-typeprint.c: Likewise.
8338 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8340 * remote-sim.c (gdbsim_open): Simplify code testing the macro
8341 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
8342 byte-order selectable.
8343 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
8344 * arch-utils.c: Ditto.
8345 (set_endian): Ditto.
8346 (set_endian_from_file): Ditto.
8347 * gdbserver/low-sim.c (create_inferior): Ditto.
8348 * gdbarch.sh: Ditto.
8349 * gdbarch.h: Re-generate.
8350 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8351 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
8352 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
8353 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8354 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8355 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8356 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
8357 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
8359 * config/mips/tm-wince.h: Remove #undef of macro
8360 TARGET_BYTE_ORDER_SELECTABLE.
8361 * config/sh/tm-wince.h: Ditto.
8363 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8365 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
8366 member function fields. Add accessor macro
8367 TYPE_FN_FIELD_ARTIFICIAL.
8368 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
8369 * c-typeprint.c (c_type_print_base): Skip artificial member
8372 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8374 * f-typeprint.c: Delete unused function f_type_print_args.
8375 * p-typeprint.c: Delete unused function pascal_type_print_args.
8377 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8379 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
8380 comment. Add ``artificial'' to ``union field_location''.
8382 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
8384 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
8385 * mdebugread.c (parse_symbol): Likewise.
8386 * stabsread.c (define_symbol): Likewise.
8387 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
8388 initializing TYPE_FIELD_BITPOS to n (obsolete).
8389 (hpread_doc_function_type): Likewise.
8390 * hpread.c (hpread_function_type): Likewise.
8392 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8394 * configure.in (host_makefile_frag): Only require a host makefile
8395 fragment when a native build.
8396 * configure: Re-generate.
8398 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8400 * doublest.h (floatformat_from_type): Declare.
8401 * doublest.c (floatformat_from_type): New function.
8402 (convert_typed_floating): Use.
8404 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8405 call to function floatformat_from_type.
8407 * gdbarch.sh (IEEE_FLOAT): Delete.
8408 * gdbarch.h, gdbarch.c: Re-generate.
8409 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8410 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8411 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8412 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8413 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8414 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8415 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8416 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8417 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8418 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8419 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8420 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8422 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8423 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8424 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8425 * sh-tdep.c (sh_gdbarch_init): Ditto.
8426 * mips-tdep.c (mips_gdbarch_init): Ditto.
8427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8428 * cris-tdep.c (cris_gdbarch_init): Ditto.
8430 2002-01-20 Jiri Smid <smid@suse.cz>
8432 * configure.host, configure.tgt: Support x86-64.
8433 * NEWS: Note new target x86-64.
8435 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8436 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8437 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8438 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8439 x86-64-linux-nat.o): Fix dependencies.
8441 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8443 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8444 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8445 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8446 * config/sparc/xm-sun4os4.h: Delete file.
8447 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8449 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8451 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8452 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8453 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8454 * config/i386/i386lynx.mh (XM_FILE): Delete.
8455 * config/rs6000/xm-rs6000ly.h: Delete file.
8456 * config/sparc/xm-sparclynx.h: Delete file.
8457 * config/m68k/xm-m68klynx.h: Delete file.
8458 * config/i386/xm-i386lynx.h: Delete file.
8459 * config/xm-lynx.h: Delete file.
8460 * config/djgpp/fnchange.lst: Update.
8462 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8464 * alpha-tdep.c (alpha_register_byte): New function.
8465 (alpha_register_raw_size): Ditto.
8466 (alpha_register_virtual_size): Ditto.
8467 (alpha_skip_prologue_internal): Renamed from
8468 alpha_skip_prologue.
8469 (alpha_skip_prologue): New version that calls
8470 alpha_skip_prologue_internal.
8471 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8472 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8473 second argument from alpha_skip_prologue.
8474 (REGISTER_BYTE): Use alpha_register_byte.
8475 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8476 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8477 (FRAMELESS_FUNCTION_INVOCATION): Use
8478 generic_frameless_function_invocation_not.
8479 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8480 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8482 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8484 * config/mips/xm-news-mips.h: Delete file.
8485 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8487 * config/m88k/xm-m88k.h: Delete file.
8488 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8489 * config/m88k/xm-delta88v4.h: Ditto.
8490 * config/m88k/xm-delta88.h: Ditto.
8492 * config/alpha/xm-fbsd.h: Delete file.
8493 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8495 * config/sparc/xm-sparc.h: Delete file.
8496 * Makefile.in (xm-sun4os4.h): Delete dependency.
8497 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8498 * config/sparc/xm-sun4os4.h: Ditto.
8499 * config/sparc/xm-linux.h: Ditto.
8501 * config/i386/xm-windows.h: Delete file.
8503 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8505 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8506 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8508 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8510 * alpha-tdep.c (alpha_call_dummy_words): New.
8511 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8512 (CALL_DUMMY_P): Define.
8513 (CALL_DUMMY_WORDS): Define.
8514 (SIZEOF_CALL_DUMMY_WORDS): Define.
8516 2002-01-19 Per Bothner <per@bothner.com>
8518 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8519 isn't NULL, which can happen with some gcj-3.x-produced code.
8521 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8523 * alpha-tdep.c (alpha_register_virtual_type): New function.
8524 (alpha_init_frame_pc_first): Ditto.
8525 (alpha_fix_call_dummy): Ditto.
8526 (alpha_store_struct_return): Ditto.
8527 (alpha_extract_struct_value_address): Ditto.
8528 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8529 alpha_register_virtual_type.
8530 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8531 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8532 alpha_extract_struct_value_address.
8533 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8534 (INIT_FRAME_PC): Use init_frame_pc_noop.
8535 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8537 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8539 * i386gnu-nat.c: Include "i386-tdep.h".
8540 (fetch_fpregs): Simplify code dealing with uninitialized floating
8541 point states such that it doesn't require FP7_REGNUM.
8543 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8545 * alpha-tdep.c (frame_extra_info): New.
8546 (alpha_find_saved_regs): Make static. Use
8548 (alpha_frame_init_saved_regs): New function.
8549 (alpha_frame_saved_pc): Use frame->extra_info.
8550 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8551 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8552 (init_extra_frame_info): Rename to...
8553 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8554 (alpha_print_extra_frame_info): New function.
8555 (alpha_frame_locals_address): Ditto.
8556 (alpha_frame_args_address): Ditto.
8557 (alpha_pop_frame): Use frame->extra_info.
8558 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8559 alpha_frame_args_address.
8560 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8561 (alpha_find_saved_regs): Remove prototype.
8562 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8563 (EXTRA_FRAME_INFO): Remove.
8564 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8565 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8567 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8569 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8570 (alpha_cannot_fetch_register): Ditto.
8571 (alpha_cannot_store_register): Ditto.
8572 (alpha_register_convertible): Ditto.
8573 (alpha_use_struct_convention): Ditto.
8574 * config/alpha/tm-alpha.h: Update copyright years.
8575 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8576 (INNER_THAN): Use core_addr_lessthan.
8577 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8578 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8579 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8580 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8581 (FRAME_CHAIN): Remove unnecessary cast.
8583 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8585 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8588 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8590 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8591 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8592 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8593 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8594 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8595 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8596 * x86-64-linux-nat.c: Ditto.
8598 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8600 * alpha-tdep.c (alpha_register_name): New function.
8601 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8602 (REGISTER_NAME): Define.
8604 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8606 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8608 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8610 * alpha-tdep.c: Update copyright years.
8611 (alpha_next_pc): New function.
8612 (alpha_software_single_step): Ditto.
8613 * config/alpha/tm-alpha.h: Add prototype for
8614 alpha_software_single_step.
8616 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8618 * alphabsd-nat.c: Update copyright years.
8619 (fill_gregset): Use regcache_collect.
8620 (fill_fpregset): Likewise.
8621 (fetch_inferior_registers): Only fetch integer registers
8622 if requested to do so.
8623 (store_inferior_registers): Only store integer registers
8624 if requested to do so.
8626 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8628 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8629 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8630 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8631 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8632 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8633 * config/arm/linux.mh (XDEPFILES): Delete.
8634 * config/arm/nbsd.mh (XDEPFILES): Delete.
8635 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8636 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8637 * config/i386/i386m3.mh (XDEPFILES): Delete.
8638 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8639 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8640 * config/i386/fbsd.mh (XDEPFILES): Delete.
8641 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8642 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8643 * config/i386/i386v4.mh (XDEPFILES): Delete.
8644 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8645 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8646 * config/i386/i386aix.mh (XDEPFILES): Delete.
8647 * config/i386/go32.mh (XDEPFILES): Delete.
8648 * config/i386/cygwin.mh (XDEPFILES): Delete.
8649 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8650 * config/i386/i386mach.mh (XDEPFILES): Delete.
8651 * config/i386/i386v32.mh (XDEPFILES): Delete.
8652 * config/i386/linux.mh (XDEPFILES): Delete.
8653 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8654 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8655 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8656 * config/i386/i386sco.mh (XDEPFILES): Delete.
8657 * config/i386/i386v.mh (XDEPFILES): Delete.
8658 * config/i386/nbsd.mh (XDEPFILES): Delete.
8659 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8660 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8661 * config/i386/symmetry.mh (XDEPFILES): Delete.
8662 * config/i386/obsd.mh (XDEPFILES): Delete.
8663 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8664 * config/ia64/linux.mh (XDEPFILES): Delete.
8665 * config/ia64/aix.mh (XDEPFILES): Delete.
8666 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8667 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8668 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8669 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8670 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8671 * config/m68k/linux.mh (XDEPFILES): Delete.
8672 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8673 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8674 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8675 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8676 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8677 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8678 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8679 * config/m88k/delta88.mh (XDEPFILES): Delete.
8680 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8681 * config/m88k/m88k.mh (XDEPFILES): Delete.
8682 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8683 * config/mips/linux.mh (XDEPFILES): Delete.
8684 * config/mips/irix6.mh (XDEPFILES): Delete.
8685 * config/mips/irix5.mh (XDEPFILES): Delete.
8686 * config/mips/irix4.mh (XDEPFILES): Delete.
8687 * config/mips/irix3.mh (XDEPFILES): Delete.
8688 * config/mips/decstation.mh (XDEPFILES): Delete.
8689 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8690 (NATDEPFILES): Move core-aout.o to here.
8691 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8692 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8693 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8694 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8695 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8696 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8697 * config/pa/hpux11.mh (XDEPFILES): Delete.
8698 * config/powerpc/aix.mh (XDEPFILES): Delete.
8699 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8700 * config/powerpc/linux.mh (XDEPFILES): Delete.
8701 * config/romp/rtbsd.mh: Rename XDEPFILES.
8702 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8703 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8704 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8705 * config/s390/s390.mh (XDEPFILES): Delete.
8706 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8707 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8708 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8709 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8710 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8711 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8712 * config/sparc/linux.mh (XDEPFILES): Delete.
8713 * config/vax/vaxult.mh (XDEPFILES): Delete.
8714 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8715 * Makefile.in (DEPFILES): Remove XDEPFILES.
8717 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8719 * utils.c (internal_verror): Fix comments, default is yes not no.
8720 Update queries to match. Default to quit and dump core.
8722 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8724 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8726 * defs.h, event-top.c, gdbcmd.h: Ditto.
8727 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8728 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8729 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8730 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8731 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8732 * mi/mi-main.c:Ditto.
8734 * stack.c, symfile.c: Update copyright.
8736 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8738 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8739 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8740 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8741 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8743 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8745 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8746 * gdbserver/low-lynx.c (myattach): Likewise.
8747 * gdbserver/low-nbsd.c (myattach): Likewise.
8748 * gdbserver/low-sim.c (myattach): Likewise.
8749 * gdbserver/low-sparc.c (myattach): Likewise.
8750 * gdbserver/low-sun3.c (myattach): Likewise.
8752 * gdbserver/low-linux.c (myattach): New function.
8754 * gdbserver/server.c (attach_inferior): New function.
8755 (main): Handle "--attach".
8757 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8759 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8762 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8764 * c-typeprint.c (is_type_conversion_operator): Add additional
8765 check for non-conversion operators.
8767 2002-01-15 Michael Snyder <msnyder@redhat.com>
8769 * linux-proc.c: Add "info proc" command, a la procfs.c.
8770 (read_mapping): New function, abstract and re-use code.
8771 (linux_find_memory_regions): Use new func read_mapping.
8772 (linux_info_proc_cmd): New function, implement "info proc".
8773 (_initialize_linux_proc): Add new command "info proc".
8775 2002-01-15 Michael Snyder <msnyder@redhat.com>
8777 * symfile.c (generic_load): Use bfd_map_over_sections method
8778 instead of manipulating bfd structure members directly.
8779 (add_section_size_callback): New function, bfd sections callback
8780 used by generic_load.
8781 (load_sections_callback): New function, bfd sections callback
8782 used by generic_load.
8784 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8786 [Based on work by Jim Blandy]
8787 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8788 (builtin_type_vec128): Export.
8789 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8791 (builtin_type_vec128): New builtin type for 128 bit vector
8793 (build_gdbtypes): Initialize builtin_type_v16qi and
8794 builtin_type_v8hi. Create the vec128 register builtin type
8796 (build_builtin_type_vec128): New function.
8797 (_initialize_gdbtypes): Register builtin_type_v16qi and
8798 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8799 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8800 AltiVec register to new builtin type.
8802 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8804 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8807 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8809 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8810 CLEAN_UP_REGISTER_VALUE.
8811 * regcache.c (supply_register): Update only call.
8813 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8815 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8816 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8817 a29k-*-vxworks* targets as obsolete.
8819 2002-01-14 Michael Snyder <msnyder@redhat.com>
8821 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8822 until we can resolve portability issues.
8823 * gregset.h: Remove references to fpxregs.
8824 * gcore.c (gcore_command): Initialize note_sec to NULL.
8826 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8828 * signals.c (target_signal_to_name): Rewrite. Only use
8829 signals[].name when in bounds and non-NULL.
8831 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8833 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8834 * signals.c (target_signal_to_name): Verify that SIG is within the
8835 bounds of the signals array.
8837 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8839 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8841 2002-01-13 Keith Seitz <keiths@redhat.com>
8843 * stack.c (print_frame_info_base): Print the frame's pc
8844 only if when print_frame_info_listing_hook is not defined.
8846 2002-01-13 Keith Seitz <keiths@redhat.com>
8848 * varobj.c (varobj_set_value): Make sure that there were no
8849 errors evaluating the object before attempting to set its
8851 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8852 so this offset adjustment is no longer necessary.
8853 (create_child): Don't set the error flag if the child is
8855 (value_of_child): If value_fetch_lazy fails, return NULL
8856 so that callers will be notified that an error occurred.
8857 (c_value_of_variable): Delay check of variable's validity
8858 until later. We actually want all structs and unions to have
8860 Do not return "???" for variables which could not be evaluated.
8861 This error condition must be returned to the caller so that it
8862 can get the error condition from gdb.
8863 (cplus_name_of_child): Adjust index for vptr before figuring
8864 out the name of the child.
8865 (cplus_value_of_child): If a child's (real) parent is not valid,
8866 don't even bother trying to give a value for it. Just return
8867 an error. Change all instances in this function.
8868 (cplus_type_of_child): If our parent is one of the "fake"
8869 parents, we need to get at the type of the real parent, and
8870 derive the child's true type using this information.
8872 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8874 From 2002-01-09 John Marshall <johnm@falch.net>:
8875 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8876 sources.redhat.com, and tweak some related URLs which had
8877 suffered from linkrot.
8879 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8882 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8883 structures passed in registers.
8885 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8887 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8888 white space which prevented compilation. Reported by DSK
8889 <dsk@student.unsw.edu.au>.
8891 2002-01-11 Michael Snyder <msnyder@redhat.com>
8893 * symfile.c (build_section_addr_info_from_section_tab):
8894 Use bfd access method instead of manipulating bfd directly.
8895 (syms_from_objfile): Ditto.
8896 (simple_overlay_update_1): Ditto.
8897 (simple_overlay_update): Ditto.
8898 (generic_load): Ditto.
8899 (overlay_unmapped_address): FIXME comment, bfd access methods.
8900 (sections_overlap): FIXME comment, bfd access methods.
8901 (pc_in_mapped_range): FIXME comment, bfd access methods.
8902 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8903 (section_is_mapped): FIXME comment, bfd access methods.
8904 (section_is_overlay): FIXME comment, bfd access methods.
8906 * symfile.c (generic_load): Whitespace and long line cleanups.
8907 Remove duplicate variable, change several local variables to
8908 more appropriate data types.
8909 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8911 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8914 * language.c (longest_local_hex_string_custom): Use phex_nz to
8915 convert NUM to a hex string.
8917 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8919 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8921 Update Copyright year.
8923 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8925 * language.c (longest_raw_hex_string): Delete unused function.
8927 2002-01-11 Petr Sorfa <petrs@caldera.com>
8929 * MAINTAINERS (write-after-approval): Add myself.
8930 * dwarf2read.c (read_tag_string_type): Handling of
8932 (read_tag_string_type): FORTRAN fix to prevent propagation of
8934 (set_cu_language): Handling of DW_LANG_Fortran95
8936 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8938 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8939 GETPID(inferior_ptid).
8940 (store_inferior_registers): Likewise.
8942 2002-01-10 Jason Merrill <jason@redhat.com>
8944 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8947 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8949 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8950 and bfd/elf32-sh-nbsd.c.
8952 2002-01-10 Michael Snyder <msnyder@redhat.com>
8954 * NEWS: Mention --pid and corefile/proc-id behavior change.
8956 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8957 * gcore.c: Include cli/cli-decode.h instead of command.h.
8959 * main.c (captured_main): Add new command line option "--pid".
8960 If the second command line argument (following the symbol-file)
8961 begins with a digit, try to attach to it before trying to open
8963 (print_gdb_help): Document the "--pid" argument.
8965 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8967 * completer.c (command_completer): New function.
8969 * completer.h <command_completer>: Add prototype.
8971 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8972 completer for the "help" command.
8974 2002-01-09 Jason Merrill <jason@redhat.com>
8976 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8978 2002-01-09 Michael Snyder <msnyder@redhat.com>
8980 * i386-linux-nat.c (fill_fpxregset): Make global.
8981 (store_fpxregset): Ditto.
8983 * gregset.h (gdb_fpxregset_t): Define.
8984 (supply_fpxregset): Prototype.
8985 (fill_fpxregset): Prototype.
8987 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8989 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8991 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8992 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8993 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8995 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8997 * MAINTAINERS: Update target maintainer rules so that any
8998 Maintainer can approve a tested patch for a maintenance-only
9001 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9003 * MAINTAINERS (write-after-approval): Add myself.
9005 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
9008 2002-01-08 Michael Snyder <msnyder@redhat.com>
9010 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9011 real name of the executable, rather than the /proc name.
9013 2002-01-03 Michael Snyder <msnyder@redhat.com>
9015 Implement a "generate-core-file" command in gdb, save target state.
9016 * gcore.c: New file. Implement new command 'generate-core-file'.
9017 Save a corefile image of the current state of the inferior.
9018 * linux-proc.c: Add linux-specific code for saving corefiles.
9019 * target.h (struct target_ops): Add new target vectors for saving
9020 corefiles; to_find_memory_regions and to_make_corefile_notes.
9021 (target_find_memory_regions): New macro.
9022 (target_make_corefile_notes): New macro.
9023 * target.c (update_current_target): Inherit new target methods.
9024 (dummy_find_memory_regions): New place-holder method.
9025 (dummy_make_corefile_notes): New place-holder method.
9026 (init_dummy_target): Initialize new dummy target vectors.
9027 * exec.c (exec_set_find_memory_regions): New function.
9028 Allow the exec_ops vector for memory regions to be taken over.
9029 (exec_make_note_section): New function, target vector method.
9030 * defs.h (exec_set_find_memory_regions): Export prototype.
9031 * procfs.c (proc_find_memory_regions): New function, corefile method.
9032 (procfs_make_note_section): New function, corefile method.
9033 (init_procfs_ops): Set new target vector pointers.
9034 (find_memory_regions_callback): New function.
9035 (procfs_do_thread_registers): New function.
9036 (procfs_corefile_thread_callback): New function.
9037 * sol-thread.c (sol_find_memory_regions): New function.
9038 (sol_make_note_section): New function.
9039 (init_sol_thread_ops): Initialize new target vectors.
9040 * inftarg.c (inftarg_set_find_memory_regions): New function.
9041 Allow to_find_memory_regions vector to be taken over.
9042 (inftarg_set_make_corefile_notes): New function.
9043 Allow to_make_corefile_notes vector to be taken over.
9044 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9045 interface layer if not target_has_execution (may be a corefile).
9046 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9047 * config/sparc/sun4sol2.mh: Ditto.
9048 * config/alpha/alpha-linux.mh: Ditto.
9049 * config/arm/linux.mh: Ditto.
9050 * config/i386/x86-64linux.mh: Ditto.
9051 * config/ia64/linux.mh: Ditto.
9052 * config/m68k/linux.mh: Ditto.
9053 * config/mips/linux.mh: Ditto.
9054 * config/powerpc/linux.mh: Ditto.
9055 * config/sparc/linux.mh: Ditto.
9057 2002-01-07 Michael Snyder <msnyder@redhat.com>
9059 * arm-linux-nat.c: Remove references to regcache.c internal data
9060 (registers[] and register_valid[]).
9062 2002-01-07 Michael Snyder <msnyder@redhat.com>
9064 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9065 so that attaching to a pid will automatically read the process's
9066 symbol file and shlibs.
9067 * Makefile.in: Add rule for linux-proc.o.
9068 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9069 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9070 * config/arm/linux.mh: Ditto.
9071 * config/i386/linux.mh: Ditto.
9072 * config/i386/x86-64linux.mh: Ditto.
9073 * config/ia64/linux.mh: Ditto.
9074 * config/m68k/linux.mh: Ditto.
9075 * config/mips/linux.mh: Ditto.
9076 * config/powerpc/linux.mh: Ditto.
9077 * config/sparc/linux.mh: Ditto.
9079 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9081 * win32-nat.c: Add i386-tdep.h dependency.
9083 2002-01-07 Michael Snyder <msnyder@redhat.com>
9085 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9086 instead of bfd_get_arch_size. Don't bail out just because
9087 there's no exec_bfd.
9089 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9090 * p-valprint.c (pascal_object_print_value): Ditto.
9091 * somread.c (som_symtab_read): Ditto.
9092 * symfile.c (simple_free_overlay_region_table): Ditto.
9093 * valops.c (value_assign): Ditto.
9095 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9096 use tilde_expand and strerror for opening save-tracepoints file.
9098 * thread-db.c (thread_db_new_objfile): Indendation fix.
9100 * infptrace.c (GDB_MAX_ALLOCA): New define.
9101 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
9102 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
9103 can be overridden with whatever value is appropriate to the host).
9104 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9105 alloca to allocate potentially large buffer.
9106 * rs6000-nat.c (child_xfer_memory): Ditto.
9107 * symm-nat.c (child_xfer_memory): Ditto.
9108 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9110 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9112 From Nick Clifton <nickc@redhat.com>
9113 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9115 2002-01-07 Michael Snyder <msnyder@redhat.com>
9117 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9118 Don't use exec_bfd if it's NULL.
9120 2002-01-06 Mark Kettenis <kettenis@gnu.org>
9122 * valops.c (value_arg_coerce): Fix formatting.
9124 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9126 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9129 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9131 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9132 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9133 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9134 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9135 z8k-coff have not been multi-arched. Update z8k-coff build
9138 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9140 * MAINTAINERS: Mark a29k target as obsolete.
9141 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9142 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9144 * NEWS: Note that a29k targets are obsolete.
9145 * a29k-tdep.c: Mark as obsolete.
9146 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9147 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9148 a29k-*-vxworks* targets as obsolete.
9149 * remote-adapt.c: Obsolete.
9150 * remote-eb.c: Obsolete.
9151 * remote-mm.c: Obsolete.
9152 * remote-udi.c: Obsolete.
9153 * config/a29k/a29k-udi.mt: Obsolete.
9154 * config/a29k/a29k.mt: Obsolete.
9155 * config/a29k/tm-a29k.h: Obsolete.
9156 * config/a29k/tm-vx29k.h: Obsolete.
9157 * config/a29k/vx29k.mt: Obsolete.
9159 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9161 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9162 with BFD_ENDIAN_BIG.
9164 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9166 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9167 * configure, config.in: Re-generate.
9168 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9169 * defs.h: Do not include <endian.h>.
9171 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9173 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9174 * config.in: Regenerate.
9175 * configure.in: Update copyright years.
9176 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9177 * configure: Regenerate.
9178 * i386bsd-nat.c: Update copyright years.
9179 (fill_gregset): Use regcache_collect.
9180 (fetch_inferior_registers): Only fetch integer registers
9181 if requested to do so. Add support for XMM registers
9182 using PT_GETXMMREGS.
9183 (store_inferior_registers): Only store integer registers
9184 if requested to do so. Add support for XMM registers
9185 using PT_SETXMMREGS.
9186 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9187 (store_inferior_registers): Remove.
9188 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9189 (fetch_elfcore_registers): New function.
9190 (i386nbsd_elfcore_fns): New.
9191 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9192 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9194 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9195 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9196 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9197 * config/i386/tm-nbsd.h: Update copyright years.
9198 (HAVE_SSE_REGS): Define.
9199 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9200 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9201 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9202 (SIGCONTEXT_PC_OFFSET): Remove.
9203 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9205 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9207 * configure.tgt: Remove powerpc-*-macos* target.
9208 * config/m68k/xm-mpw.h: Delete file.
9209 * config/xm-mpw.h: Delete file.
9210 * ser-mac.c: Delete file.
9211 * mpw-make.sed: Delete file.
9212 * mpw-config.in: Delete file.
9213 * mac-xdep.c: Delete file.
9214 * mac-gdb.r: Delete file.
9215 * mac-defs.h: Delete file.
9216 * mac-nat.c: Delete file.
9217 * config/powerpc/macos.mh: Delete file.
9218 * config/powerpc/macos.mt: Delete file.
9219 * config/powerpc/nm-macos.h: Delete file.
9220 * config/powerpc/tm-macos.h: Delete file.
9221 * source.c (openp, open_source_file): Remove obsolete code.
9222 * top.c (gdb_readline): Ditto.
9223 * utils.c (query): Ditto.
9224 * event-top.c (display_gdb_prompt): Ditto.
9225 * Makefile.in (ser-mac.o): Delete obsolete target.
9228 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9230 * defs.h (BIG_ENDIAN): Delete macro definition.
9231 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9232 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9233 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9234 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9235 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9236 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9237 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9238 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9239 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9240 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9241 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9242 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9243 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9244 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9245 * gdbarch.c: Re-generate.
9247 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9249 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9252 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9254 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9256 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9258 * value.h (value_ptr): Delete typedef.
9260 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9262 * i386nbsd-nat.c: Update copyright years.
9263 Include i386-tdep.h.
9265 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
9267 * stabsread.c: Update copyright years.
9269 From Debashis Mahata <debashis.mahata@wipro.com>:
9270 (read_struct_fields): Deal with Sun C compiler erroneous stab
9271 output for structs and unions.
9274 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9276 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9279 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9281 * cp-abi.c: Fix whitespace.
9282 (baseclass_offset): New wrapper function.
9283 * cp-abi.h (baseclass_offset): Add prototype.
9284 (struct cp_abi_ops): Add baseclass_offset pointer.
9286 * valops.c (vb_match): Move to...
9287 * gnu-v2-abi.c (vb_match): here.
9288 * valops.c (baseclass_offset): Move to...
9289 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9291 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9293 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9294 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9295 * hpacc-abi.c (init_hpacc_ops): Likewise.
9297 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9299 * valops.c (find_overload_match): Accept obj as a
9300 reference parameter. Update it before returning.
9301 * value.h (find_overload_match): Update prototype.
9302 * eval.c (evaluate_subexp_standard): Pass object to
9303 find_overload_match by reference.
9305 2002-01-03 Andrew Cagney <ac131313@redhat.com>
9307 * valarith.c: Replace value_ptr with struct value pointer. Remove
9308 register attribute from value declarations.
9311 * scm-lang.c (scm_lookup_name): Ditto.
9313 2002-01-03 Michael Snyder <msnyder@redhat.com>
9315 Abstract the functionality of iterating over mapped memory
9316 regions into a general purpose iterator function.
9317 * procfs.c (iterate_over_mappings): New function, general purpose
9318 iterator for memory sections.
9319 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
9320 (solib_mappings_callback): New function, callback for above.
9321 (info_proc_mappings): Reimpliment using iterate_over_mappings.
9322 (info_mappings_callback): New function, callback for above.
9324 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
9326 2002-01-01 Mark Kettenis <kettenis@gnu.org>
9328 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
9329 * i386-tdep.c: Include "elf-bfd.h".
9330 (process_note_abi_tag_sections): New function.
9331 (i386_gdbarch_init): Add code to recognize various OS/ABI
9334 * maint.c (_initialize_maint_cmds): Add missing \ in
9337 For older changes see ChangeLog-2001
9343 version-control: never