1 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4 and save it in a local variable. Use variable in later test.
6 2002-07-31 Kevin Buettner <kevinb@redhat.com>
8 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
9 test. (Thanks to Daniel Jacobowitz.)
11 2002-07-31 Kevin Buettner <kevinb@redhat.com>
13 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
14 (mips_abi_strings): Add "n64".
15 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
17 2002-07-31 Kevin Buettner <kevinb@redhat.com>
19 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
20 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
22 2002-07-31 Kevin Buettner <kevinb@redhat.com>
24 * utils.c (host_pointer_to_address, address_to_host_pointer):
25 Use gdb_assert() instead of explicit call to internal_error().
27 2002-07-30 Kevin Buettner <kevinb@redhat.com>
29 * Makefile.in (rs6000-nat.o): Update dependencies.
32 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
33 (aix-thread.o): New rule.
34 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
35 * config/powerpc/aix432.mh: New file.
37 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
39 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
40 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
41 (fetch_core_registers, ppc_linux_supply_gregset)
42 (ppc_linux_supply_fpregset): New functions.
43 (ppc_linux_regset_core_fns): New.
44 (_initialize_ppc_linux_tdep): Call add_core_fns.
45 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
46 and ppc_linux_supply_gregset.
47 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
48 (supply_fpregset): Call ppc_linux_supply_fpregset.
49 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
51 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
53 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
55 * symtab.c (lookup_symbol): Demangle before lowercasing.
57 2002-07-30 Andrew Cagney <ac131313@redhat.com>
59 * symtab.h: Replace #include "gdb_obstack.h" with opaque
61 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
62 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
63 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
64 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
66 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
67 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
68 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
69 (avr-tdep.o, mon960-rom.o): Ditto.
70 (aout_stabs_gnu_h): Define.
71 (symtab_h): Remove $(gdb_obstack_h).
73 2002-07-30 Jim Blandy <jimb@redhat.com>
75 Patch from David Carlton <carlton@math.stanford.edu>:
76 * gdbinit.in: Move the `dir' commands that add GDB's own source
77 directory to the search path to the end, so that the `gdb' source
78 directory will be searched first.
80 2002-07-29 Andrew Cagney <ac131313@redhat.com>
82 * gdb_obstack.h: New file.
83 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
84 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
85 * objfiles.h: Include "gdb_obstack.h".
86 * Makefile.in (gdb_obstack_h): Define.
87 (symtab_h): Add $(gdb_obstack_h).
88 (objfiles_h): Add $(gdb_obstack_h).
90 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
91 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
92 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
93 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
94 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
95 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
96 * symfile.c, coffread.c, c-typeprint.c: Ditto.
97 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
99 * Makefile.in (bcache.o): Update dependencies.
100 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
101 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
102 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
103 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
104 (stabsread.o, symfile.o, symmisc.o): Ditto.
105 (symtab.o, typeprint.o, macroexp.o): Ditto.
106 (macrotab.o, mdebugread.o): Ditto.
107 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
108 (coff_ecoff_h, aout_aout64_h): Define.
109 (aout_stabs_gnu_h, libaout_h): Define.
111 2002-07-29 Andrew Cagney <cagney@redhat.com>
113 * regcache.c (struct regcache_descr): Rename nr_registers to
114 nr_cooked_registers. Revise comments describing the structure
116 (init_regcache_descr): Update.
117 (init_legacy_regcache_descr): Update.
118 (read_register_gen, write_register_gen): When a cooked register in
119 the raw register range, directly access the value from the raw
122 2002-07-29 Andrew Cagney <ac131313@redhat.com>
124 * z8k-tdep.c: Do not include "obstack.h".
125 * h8300-tdep.c, h8500-tdep.c: Ditto.
126 * m68hc11-tdep.c, sh-tdep.c: Ditto.
127 * valprint.c, v850-tdep.c: Ditto.
128 * d10v-tdep.c, mn10300-tdep.c: Ditto.
129 * mn10200-tdep.c: Ditto.
131 * Makefile.in (z8k-tdep.o): Update dependencies.
132 (m68hc11-tdep.o, valprint.o): Ditto.
133 (v850-tdep.o, d10v-tdep.o): Ditto.
134 (mn10300-tdep.o, sparc-tdep.o): Ditto.
135 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
136 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
137 (sh_opc_h, gdb_sim_sh_h): Define.
138 (elf_sh_h, elf_bfd_h): Define.
139 (opcode_m68hc11_h): Define.
140 (OPCODES_SRC, OPCODES_DIR): define.
141 (OPCODES): Use $(OPCODES_DIR).
142 (gdb_sim_d10v_h): Rename sim_d10v_h.
143 (gdb_sim_arm_h): Rename sim_arm_h.
145 2002-07-26 Kevin Buettner <kevinb@redhat.com>
147 * utils.c (host_pointer_to_address, address_to_host_pointer):
148 Change internal_error() message to indicate function responsible
151 2002-07-26 Kevin Buettner <kevinb@redhat.com>
153 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
154 calls to local_hex_string_custom().
156 2002-07-26 Kevin Buettner <kevinb@redhat.com>
158 * irix5-nat.c: Move IRIX shared library support from here...
159 * solib-irix.c: ...to here. Revised substantially to work with
160 generic solib framework.
162 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
163 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
164 * mips-irix-tdep.c: New file.
166 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
167 (mips-irix-tdep.o, solib-irix.o): New rules.
168 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
170 * config/mips/irix6.mt (TDEPFILES): Likewise.
171 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
173 2002-07-26 Kevin Buettner <kevinb@redhat.com>
175 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
176 disabled (via ``#if 0'') includes.
178 2002-07-26 Kevin Buettner <kevinb@redhat.com>
180 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
181 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
182 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
183 Add support for the fpscr register.
184 * rs6000-nat.c (regmap, fetch_inferior_registers)
185 (store_inferior_registers, fetch_core_registers): Likewise.
187 2002-07-26 Kevin Buettner <kevinb@redhat.com>
189 * rs6000-nat.c (language.h): Include.
190 (special_regs): Delete this array.
191 (regmap): New function.
192 (fetch_register, store_register): Use regmap() to map gdb
193 register numbers to ptrace register numbers. Also, use
194 outputs from regmap() to make decisions regarding type of
195 ptrace() call to make. In particular, don't compare against
196 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
197 (fetch_inferior_registers, store_inferior_registers): Where
198 possible, obtain register numbers from tdep struct. Don't
199 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
200 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
201 (LAST_UISA_SP_REGNUM): Delete.
203 2002-07-25 Kevin Buettner <kevinb@redhat.com>
205 * rs6000-nat.c (ppc-tdep.h): Include.
206 (fetch_registers, store_register, fetch_core_registers): Don't
207 access registers[] directly. Instead, use supply_register() or
208 regcache_collect() as appropriate.
209 (find_toc_address): Format hex address with local_hex_string().
211 2002-07-25 Andrew Cagney <ac131313@redhat.com>
213 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
216 2002-07-24 Tom Tromey <tromey@redhat.com>
218 * jv-exp.y: Marked all strings with _().
219 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
221 (MethodInvocation, CastExpression, parse_number, yyerror,
222 java_type_from_name, push_expression_name, yylex): Typo fixes.
224 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
226 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
227 (tee_file_flush, tee_file_write, tee_file_fputs)
228 (tee_file_isatty): New.
229 * ui-file.h (tee_file_new): Add prototype.
231 2002-07-24 Aidan Skinner <aidan@velvet.net>
233 * ada-lang.c: Change k&r style function definitions to prototyped
235 * ada-typeprint.c: Change k&r style function definitions to prototyped
237 * ada-valprint.c: Change k&r style function definitions to prototyped
240 2002-07-24 Andrew Cagney <cagney@redhat.com>
242 * README: Remove reference to remote-bug.
243 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
245 (m88k-nat.o): Delete rule.
246 (m88k-tdep.o): Delete rule.
247 (remote-bug.o): Delete rule.
248 * MAINTAINERS: Mark as obsolete.
249 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
250 * m88k-tdep.c: Make file obsolete.
251 * config/m88k/m88k.mh: Ditto.
252 * config/m88k/delta88v4.mh: Ditto.
253 * config/m88k/delta88v4.mt: Ditto.
254 * config/m88k/delta88.mt: Ditto.
255 * config/m88k/delta88.mh: Ditto.
256 * remote-bug.c: Ditto.
257 * config/m88k/tm-delta88.h: Ditto.
258 * config/m88k/nm-delta88v4.h: Ditto.
259 * config/m88k/xm-delta88.h: Ditto.
260 * config/m88k/xm-dgux.h: Ditto.
261 * config/m88k/tm-m88k.h: Ditto.
262 * config/m88k/nm-m88k.h: Ditto.
263 * config/m88k/tm-delta88v4.h: Ditto.
266 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
267 and m88*-*-* obsolete.
268 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
271 2002-07-24 Andrew Cagney <cagney@redhat.com>
273 * findvar.c (extract_unsigned_integer): Make `addr' parameter
274 constant. Same for local pointer variables.
275 (extract_signed_integer): Ditto.
276 * defs.h (extract_unsigned_integer): Update.
277 (extract_signed_integer): Update.
279 2002-07-24 Kevin Buettner <kevinb@redhat.com>
281 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
282 * gdbserver/configure: Regenerate.
283 * gdbserver/config.in: Regenerate.
285 2002-07-24 Andrew Cagney <cagney@redhat.com>
287 * regcache.c (regcache_raw_write): Change buf parameter to a
288 constant void pointer.
289 (regcache_raw_read): Change buf parameter to a void pointer.
290 (legacy_write_register_gen): Change myaddr parameter a constant
292 (supply_register): Change val parameter to a const void pointer.
293 * regcache.h (regcache_raw_write): Update declaration.
294 (regcache_raw_read): Update declaration.
295 (supply_register): Update declaration.
297 2002-07-24 Tom Tromey <tromey@redhat.com>
299 * defs.h (gdb_readline_wrapper): Declare.
300 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
301 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
302 * top.c (gdb_readline_wrapper): New function.
303 (command_line_input): Use it.
305 2002-07-24 Andrew Cagney <cagney@redhat.com>
307 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
308 regcache_read and regcache_write.
309 (regcache_raw_read_as_address): Replace regcache_read_as_address.
310 * regcache.c: Update.
311 * sh-tdep.c (sh64_push_arguments): Update comment.
312 (sh_pseudo_register_read): Update.
313 (sh_pseudo_register_write): Update.
314 (sh4_register_read): Update.
315 (sh4_register_write): Update.
316 (sh64_pseudo_register_read): Update.
317 (sh64_pseudo_register_write): Update.
318 (sh64_register_read): Update.
319 (sh64_register_write): Update.
320 * i386-tdep.c (i386_extract_return_value): Update.
321 (i386_extract_struct_value_address): Update.
322 (i386_extract_return_value): Update.
323 * blockframe.c (generic_read_register_dummy): Update.
324 (generic_call_dummy_register_unwind): Update
325 * infrun.c (write_inferior_status_register): Update.
327 2002-07-23 Jim Blandy <jimb@redhat.com>
329 * parser-defs.h (expression_context_pc): Make this extern.
330 (Thanks to Michael Snyder.)
332 2002-07-23 Andrew Cagney <ac131313@redhat.com>
334 GDB 5.2.1 released from 5.2 branch.
335 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
336 * README: Update to mention 5.2.1.
338 2002-07-23 Mark Salter <msalter@redhat.com>
340 * remote.c (remote_read_bytes): Fix check for error.
342 2002-07-22 Kevin Buettner <kevinb@redhat.com>
344 * aix-thread.c (language.h): Include.
345 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
346 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
347 Print newlines at end of debug messages.
348 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
349 (pdc_write_data): Use local_hex_string() instead of %llx formats.
351 2002-07-22 Kevin Buettner <kevinb@redhat.com>
353 * aix-thread.c (ppc-tdep.h): Include.
354 (special_register_p): New function.
355 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
356 (store_regs_user_thread): Use register number information from
357 gdbarch_tdep struct instead of hardcoded offsets relative to
358 FIRST_UISA_SP_REGNUM.
359 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
360 special_register_p() instead of using FPLAST_REGNUM and
361 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
362 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
363 will be MQ's register number.
365 2002-07-22 Michael Snyder <msnyder@redhat.com>
367 * aix-thread.c (ops): Rename to aix_thread_ops.
368 (base_ops): Rename to base_target.
369 (ops_attach): Rename to aix_thread_attach.
370 (ops_detach): Rename to aix_thread_detach.
371 (ops_resume): Rename to aix_thread_detach.
372 (ops_wait): Rename to aix_thread_wait.
373 (ops_kill): Rename to aix_thread_kill.
374 (init_ops): Rename to init_aix_thread_ops.
375 (ops_fetch_register): Rename to aix_thread_fetch_register.
376 (ops_store_register): Rename to aix_thread_store_register.
377 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
378 (ops_thread_alive): Rename to aix_thread_thread_alive.
379 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
380 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
381 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
382 (fetch_regs_lib): Rename to fetch_regs_user_thread.
383 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
384 (store_regs_lib): Rename to store_regs_user_thread.
385 (store_regs_kern): Rename to store_regs_kernel_thread.
387 2002-07-22 Michael Snyder <msnyder@redhat.com>
389 * aix-thread.c (ops_prepare_to_store): Eliminate.
390 (init_ops): Don't initialize ops.prepare_to_store.
391 (store_regs_kern): Pre-fetch register buffers from child,
392 because some registers may not be in the cache. Copy
393 regs from register cache only if they are cached.
394 (store_regs_lib): Copy regs from register cache only
396 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
399 2002-07-22 Kevin Buettner <kevinb@redhat.com>
401 * aix-thread.c (gdb_assert.h): Include.
402 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
403 register sizes (from register cache) match size of buffer holding
405 (fill_sprs32): Change parameter types to match those in the ptrace()
407 (store_regs_lib): Likewise, but for 32-bit temporary variables.
408 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
410 2002-07-22 Michael Snyder <msnyder@redhat.com>
412 * aix-thread.c (supply_sprs64): Cosmetic change.
413 (supply_sprs32): Cosmetic change.
414 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
415 (fill_sprs64): Use regcache_collect instead of read_register.
416 (store_regs_lib): Use regcache_collect instead of
417 read_register. Use fill_sprs32 instead of fill_sprs64,
418 if debugging a 32-bit architecture.
419 (store_regs_kern): Use fill_gprs64 etc. to pull the values
420 out of the register cache, instead of passing a pointer into
421 the register cache directly to ptrace. Use regcache_collect
422 insteaad of read_register.
423 (ops_prepare_to_store): Use target_read_registers instead
424 of read_register_bytes.
426 2002-07-20 Aidan Skinner <aidan@velvet.net>
428 * MAINTAINERS: Add self under write after approval.
430 2002-07-20 Aidan Skinner <aidan@velvet.net>
432 * ada-tasks.c: Change k&r style function definitions to prototyped
435 2002-07-19 Andrew Cagney <ac131313@redhat.com>
437 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
438 * x86-64-tdep.c: Include "objfiles.h".
439 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
440 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
442 2002-07-17 Michal Ludvig <michal@suse.cz>
444 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
445 (update_context): Initialise cfa variable.
447 2002-07-17 Michael Snyder <msnyder@redhat.com>
449 * aix-thread.c: Shorten some long lines.
450 Bring comments into line with code spec.
452 2002-07-18 Joel Brobecker <brobecker@gnat.com>
454 * infrun.c: Re-indent using gdb_indent.sh.
456 2002-07-18 Joel Brobecker <brobecker@gnat.com>
458 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
459 Leave the indentation temporarily untouched, to minimize the diffs.
461 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
463 * stabsread.c: Make os9k sections of the code obsolete,
465 * stabsread.h: Make os9k sections of the code obsolete.
467 2002-07-18 Michal Ludvig <mludvig@suse.cz>
469 * linux-low.c (regsets_store_inferior_registers): Add free()
470 at the end of a loop to prevent memory leak.
471 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
472 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
473 * config/sparc/tm-sp64linux.h: Make the rest of #endif
475 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
477 2002-07-17 Jim Blandy <jimb@redhat.com>
479 * macrocmd.c (info_macro_command): Remove newline from error
482 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
484 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
485 (sh_gdbarch_init): Use it for sh-dsp.
487 2002-07-16 Kevin Buettner <kevinb@redhat.com>
489 * dwarf2read.c (read_initial_length): Handle older, non-standard,
490 64-bit DWARF2 format.
492 2002-07-16 Joel Brobecker <brobecker@gnat.com>
494 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
495 <sys/proc.h> when not available.
497 2002-07-16 Andrew Cagney <ac131313@redhat.com>
499 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
500 * stabsread.c: Make os9k sections of the code obsolete.
501 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
502 * config/i386/i386os9k.mt: Make file obsolete.
503 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
504 (COMMON_OBS): Remove os9kread.o
505 (SFILES): Remove os9kread.c.
506 (os9kread.o, remote-os9k.o): Make target obsolete.
507 * remote-os9k.c: Make file obsolete.
508 * os9kread.c: Make file obsolete.
511 2002-07-16 Andrew Cagney <ac131313@redhat.com>
513 * NEWS: Mention that the FR30 has been made obsolete.
514 * fr30-tdep.c: Make file obsolete.
515 * config/fr30/tm-fr30.h: Ditto.
516 * config/fr30/fr30.mt: Ditto.
517 * configure.tgt: Make fr30-*-elf obsolete.
518 * MAINTAINERS: Make fr30-elf obsolete.
520 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
522 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
523 found is not inside a section.
525 2002-07-15 Kevin Buettner <kevinb@redhat.com>
527 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
529 (pdc_realloc): Use xrealloc() instead of realloc().
531 2002-07-15 Kevin Buettner <kevinb@redhat.com>
533 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
534 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
535 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
538 2002-07-15 Kevin Buettner <kevinb@redhat.com>
540 * aix-thread.c (ptrace_check): Eliminate goto.
541 (sync_threadlists): Eliminate gotos. Also, fix array overrun
544 2002-07-15 Kevin Buettner <kevinb@redhat.com>
546 * aix-thread.c (gdbcmd.h): Include.
547 (DEBUG, DBG, DBG2, dbg): Eliminate.
548 (debug_aix_thread): New static global.
549 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
550 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
551 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
552 invocations to DBG and DBG2 macros to test against
553 ``debug_aix_thread'' and call fprintf_unfiltered().
554 (_initialize_aix_thread): Add new command "set debug aix-thread".
556 2002-07-15 Andrew Cagney <ac131313@redhat.com>
558 From Gerhard Tonn <TON@de.ibm.com>:
559 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
560 instead of supply_register.
562 2002-07-15 Andrew Cagney <ac131313@redhat.com>
564 * dwarf2cfi.c: Include "gdb_assert.h".
565 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
567 (update_context): Do not use __func__. Add missing ``break''.
568 (update_context): Do not use __func__.
570 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
572 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
573 and its setting. Set gdbarch instruction printing functions
574 directly. For non-rs6000 case use new function
575 gdb_print_insn_powerpc.
576 (gdb_print_insn_powerpc): New function.
578 2002-07-13 Andrew Cagney <ac131313@redhat.com>
580 * NEWS: Mention that the d30v has been marked obsolete.
581 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
582 * configure.tgt: Mark d30v-*-* as obsolete.
583 * d30v-tdep.c: Mark file as obsolete.
584 * config/d30v/d30v.mt: Ditto.
585 * config/d30v/tm-d30v.h: Ditto.
587 2002-07-13 Aidan Skinner <aidan@velvet.net>
589 * ada-tasks.c (add_task_entry): replace calls to
590 malloc() with xmalloc
591 * ada-tasks.c (init_task_list): replace calls to free with xfree()
593 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
594 ada_finish_decode_line_1, all_sals_for_line
595 ada_breakpoint_rewrite): replace calls to free() with xfree()
597 2002-07-12 Kevin Buettner <kevinb@redhat.com>
599 From Nicholas Duffek (with minor changes by Martin Hunt,
600 Louis Hamilton, and Kevin Buettner):
601 * aix-thread.c: New file.
603 2002-07-12 Petr Sorfa <petrs@caldera.com>
605 * dwarf2read.c (dwarf2_invalid_attrib_class): New
606 complaint for invalid attribute class or form.
607 (read_func_scope): DW_AT_frame_base
608 better handling of DW_AT_block*.
609 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
610 better handling of DW_AT_block*.
611 (read_common_block): DW_AT_location
612 better handling of DW_AT_block*.
613 (read_partial_die): DW_AT_location better handling
615 (new_symbol): DW_AT_external better handling of
616 DW_AT_block*. Proper initialization of variable
618 (attr_form_is_block): New function that returns true
619 if the attribute's form is of DW_FORM_block*.
621 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
623 * valops.c (find_method_list): Remove comment about
624 removed STATIC_MEMFUNCP argument.
625 (value_find_oload_method_list): Likewise.
627 2002-07-12 Kevin Buettner <kevinb@redhat.com>
629 From Nicholas Duffek:
630 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
631 target_new_objfile_hook.
633 2002-07-12 Kevin Buettner <kevinb@redhat.com>
635 From Nicholas Duffek:
636 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
639 2002-07-12 Andrew Cagney <cagney@redhat.com>
641 * MAINTAINERS: Mention --enable-sim-build-warnings.
642 (m68hc11-elf): Disable sim build warnings.
643 (m32r-elf): Mark as broken obsolete candidate.
644 (x86_64-linux-gnu): Mark as buildable with -Werror.
645 (arm-elf): Change -w to ``,'' which enables warnings but not
648 2002-07-12 Andrew Cagney <ac131313@redhat.com>
650 * bcache.h: Update copyright.
651 (struct bstring, struct bcache): Move definition to "bcache.c".
652 Replaced by opaque declaration.
653 (bcache_xfree): Replace free_bcache.
654 (bcache_xmalloc, bcache_memory_used): Declare.
656 * bcache.c: Update copyright.
657 (struct bstring, struct bcache): Moved to here from "bcache.h".
659 (bcache_xmalloc, bcache_memory_used): New functions.
660 (bcache_xfree): Replace function free_bcache.
662 * Makefile.in (objfiles.o): Add $(bcache_h).
663 (objfiles_h): Remove $(bcache_h).
664 (symfile.o): Add $(bcache_h).
666 * symmisc.c: Update copyright.
667 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
668 (print_objfile_statistics): Use bcache_memory_used.
670 * symfile.c: Include "bcache.h".
671 (reread_symbols): Use bcache_xfree.
672 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
673 (add_psymbol_to_list): Pass psymbol_cache by value.
674 (add_psymbol_with_dem_name_to_list): Ditto.
676 * objfiles.h: Update copyright.
677 (struct bcache): Declare opaque. Do not include "bcache.h".
678 (struct objfile): Change psymbol_cache and macro_cache to ``struct
680 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
682 * objfiles.c: Include "bcache.h". Update copyright.
683 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
685 (free_objfile): Use bcache_xfree.
687 2002-07-11 Grace Sainsbury <graces@redhat.com>
689 * monitor.c (monitor_fetch_register): Make name a constant.
690 (monitor_store_register): Same.
692 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
694 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
695 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
696 (finish_block) For non-function blocks, hash the symbol table. For
697 function blocks, mark the symbol table as unhashed.
698 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
699 (msymbol_hash_iw): Likewise.
700 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
702 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
703 (lookup_minimal_symbol): Likewise for both.
704 * symtab.h (struct block): Add `hashtable' flag. Comment the
706 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
707 (ALL_BLOCK_SYMBOLS): Update.
708 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
709 (struct symbol): Add `hash_next' pointer.
710 * symtab.c (lookup_block_symbol): Search using the hash table when
712 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
713 (search_symbols, find_addr_symbol): Likewise.
715 * dstread.c (process_dst_block): Clear hashtable bit for new block.
716 (read_dst_symtab): Likewise.
717 * jv-lang.c (get_java_class_symtab): Likewise.
718 * mdebugread.c: Include "gdb_assert.h".
719 (shrink_block): Assert that the block being modified is not hashed.
720 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
721 * symmisc.c (free_symtab_block): Walk the hash table when freeing
723 (dump_symtab): Recognize hashed blocks.
724 * printcmd.c (print_frame_args): Assert that function blocks do not
725 have hashed symbol tables.
726 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
727 (fill_in_ada_prototype, debug_print_block): Likewise.
728 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
730 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
732 * stack.c (print_frame): Use result of frame_address_in_block()
733 instead of fi->pc when evaluating symbols.
734 (backtrace_command_1): Ditto.
736 2002-07-11 Andrew Cagney <cagney@redhat.com>
738 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
741 * arm-tdep.c (arm_register_name): Make return type constant.
743 2002-07-10 Andrew Cagney <ac131313@redhat.com>
745 * win32-nat.c (has_detach_ability): Convert to strict ISO C
747 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
748 * s390-tdep.c (s390_fp_regnum): Ditto.
749 (s390_read_fp): Ditto.
750 (s390_pop_frame): Ditto.
751 (_initialize_s390_tdep): Ditto.
752 * remote.c (get_remote_state): Ditto.
753 * procfs.c (mappingflags): Ditto.
754 * memattr.c (_initialize_mem): Ditto.
755 * mcore-tdep.c (mcore_pop_frame): Ditto.
756 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
757 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
758 * language.c (set_case_str): Ditto.
759 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
760 * frv-tdep.c (new_variant): Ditto.
761 (frv_stopped_data_address): Ditto.
762 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
763 (context_alloc): Ditto.
764 (frame_state_alloc): Ditto.
765 (unwind_tmp_obstack_init): Ditto.
766 (unwind_tmp_obstack_free): Ditto.
767 (cfi_read_fp): Ditto.
768 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
769 (cris_pop_frame): Ditto.
770 * c-lang.c (scanning_macro_expansion): Ditto.
771 (finished_macro_expansion): Ditto.
772 (c_preprocess_and_parse): Ditto.
774 * gdbarch.h, gdbarch.c: Regenerate.
775 * config/mn10200/tm-mn10200.h: Adjust indentation.
776 * target.c: Adjust indentation.
777 * symtab.h: Adjust indentation.
778 * stabsread.h: Adjust indentation.
779 * remote-es.c: Adjust indentation.
780 * os9kread.c: Adjust indentation.
782 2002-07-10 Andrew Cagney <ac131313@redhat.com>
784 * wince.c (_initialize_wince): Rename _initialize_inftarg.
785 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
787 2002-07-10 Grace Sainsbury <graces@redhat.com>
789 * NEWS: Mention m68k, mcore multi-arching.
790 * MAINTAINERS: Change status of m68k, mcore to reflect
793 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
795 * valops.c (find_overload_match): Free oload_syms.
797 2002-07-09 Joel Brobecker <brobecker@gnat.com>
799 Define HAVE_SYS_PROC_H if sys/proc.h exists
800 * configure.in: Add check for sys/proc.h
801 * config.in: Regenerate.
802 * configure: Regenerate.
804 2002-07-09 Grace Sainsbury <graces@redhat.com>
806 * config/m68k/tm-m68k.h: Remove macros wrapped in
809 2002-07-09 David O'Brien <obrien@FreeBSD.org>
811 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
812 (perror_with_name, remote_close, remote_open, expect, play): Static.
814 2002-07-08 Andrew Cagney <ac131313@redhat.com>
816 * config.in, configure: Regenerate.
818 2002-07-08 Mark Kettenis <kettenis@gnu.org>
820 * dwarf2cfi.c: Include "gcore.h".
821 (execute_stack_op): Fix implementation of the
822 DW_OP_deref and DW_OP_deref_size operators by letting do their
823 lookup in the target.
825 2002-07-07 Mark Kettenis <kettenis@gnu.org>
827 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
828 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
831 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
833 Fix PR gdb/595, gdb/602
834 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
835 Don't call value_cast, just read the vtable pointer; update comments
838 2002-07-05 Grace Sainsbury <graces@redhat.com>
840 * config/mcore/tm-mcore.h: Remove file.
841 * config/mcore/mcore.mt: Remove definition of TM_FILE
842 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
844 2002-07-05 Mark Kettenis <kettenis@gnu.org>
846 * i386bsd-tdep.c: Include "gdb_string.h".
848 2002-07-04 Grace Sainsbury <graces@redhat.com>
850 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
851 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
853 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
854 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
855 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
856 (RETVAL_REGNUM): Move macros from tm-mcore.h
857 (mcore_reg_struct_has_addr): New function.
858 (mcore_gdbarch_init): Added initializations for the macros removed
861 2002-07-04 Mark Kettenis <kettenis@gnu.org>
863 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
864 traditonal string branding within the ELF header.
866 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
868 * symtab.c (remove_params): New function.
869 (make_symbol_overload_list): Use it instead of cplus_demangle.
870 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
872 2002-07-04 Mark Kettenis <kettenis@gnu.org>
874 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
876 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
878 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
879 and tdep->sigtramp_end.
880 * i386obsd-nat.c: New file.
881 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
883 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
884 Don't call get_current_frame().
886 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
888 * i386-nat.c (child_post_startup_inferior): New function
889 calling i386_cleanup_dregs if
890 I386_USE_GENERIC_WATCHPOINTS is defined.
891 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
892 conditional to acknowledge that i386-nat.c has its
893 own child_post_startup_inferior function.
895 2002-07-04 Mark Kettenis <kettenis@gnu.org>
897 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
898 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
899 instead of MAX_REGISTER_RAW_SIZE.
900 (i386_extract_return_value, i386_extract_struct_value_address):
901 Convert to use regcache.
902 (i386_gdbarch_init): Set max_register_raw_size and
903 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
904 Set extract_return_value and extract_struct_value_address instead
905 of their deprecated variants.
907 Convert i386 target to generic dummy frames.
908 * i386-tdep.c: Include "symfile.h".
909 (i386_frameless_signal_p): Consider a function to be frameless if
910 the pc points at the first instruction of the function.
911 (i386_frame_chain): Handle (generic) call dummies.
912 (i386_frame_saved_pc): Likewise.
913 (i386_frame_init_saved_regs): Remove code dealing with call
914 dummies on the stack.
915 (i386_push_dummy_frame): Removed.
916 (i386_call_dummy_words): Removed.
917 (i386_fix_call_dummy): Removed.
918 (i386_push_return_address): New function.
919 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
920 parameter, and don't call get_current_frame.
921 (i386_pop_frame): New function.
922 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
923 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
924 entry_point_address, set call_dummy_breakpoint_offset to 0, set
925 call_dummy_length to 0, set call_dummy_words to NULL, set
926 sizeof_call_dummy_words to 0, set fix_call_dummy to
927 generic_fix_call_dummy, set pc_in_call_dummy to
928 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
929 generic_push_dummy_frame, set push_return_address to
930 i386_push_return_address and set frame_chain_valid to
931 generic_file_frame_chain_valid.
933 2002-07-04 Michal Ludvig <mludvig@suse.cz>
935 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
936 byte offsets instead of an array of indexes.
937 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
939 2002-07-03 Andrew Cagney <ac131313@redhat.com>
941 * gdbarch.sh (struct regcache): Add opaque declaration.
942 (EXTRACT_RETURN_VALUE): New architecture method.
943 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
944 * gdbarch.h, gdbarch.c: Regenerate.
945 * arch-utils.c (legacy_extract_return_value): New function.
946 * arch-utils.h (legacy_extract_return_value): Declare.
947 * values.c (value_being_returned): Re-enable code handling
948 EXTRACT_STRUCT_VALUE_ADDRESS. Move
949 deprecated_grub_regcache_for_registers call to block handling
950 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
951 (EXTRACT_RETURN_VALUE): Do not define.
953 2002-07-03 Grace Sainsbury <graces@redhat.com>
955 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
956 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
957 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
958 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
959 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
960 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
961 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
962 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
963 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
964 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
965 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
966 argument so the function fits the prototype in the architecture
968 (mcore_pop_frame): Remove argument so the function fits the
969 prototype. Use get_current_frame instead of the argument.
970 (mcore_push_arguments): Change type of struct_return so the
971 function can be used in the architecture vector.
972 (mcore_store_struct_return): Add.
973 (mcore_frame_init_saved_regs): Add.
974 (mcore_gdbarch_init): Add function calls to replace the macros
975 removed from tm-mcore.h
977 2002-07-03 Andrew Cagney <ac131313@redhat.com>
979 * infcmd.c (print_return_value): Remove compatibility code calling
980 deprecated_grub_regcache_for_registers.
982 * values.c: Include "regcache.h".
983 (value_being_returned): Update. Use
984 deprecated_grub_regcache_for_registers to extract the register
986 * value.h (value_being_returned): Change ``retbuf'' parameter to a
988 * Makefile.in (values.o): Add dependency on $(regcache_h).
990 * inferior.h (run_stack_dummy): Change type of second parameter to
991 a ``struct regcache''.
992 * valops.c (hand_function_call): Change type of retbuf to ``struct
993 regcache''. Allocate using regcache_xmalloc, clean using
994 make_cleanup_regcache_xfree.
995 * infcmd.c (run_stack_dummy): Update. Use
996 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
998 * regcache.c (do_regcache_xfree): New function.
999 (make_cleanup_regcache_xfree): New function.
1000 * regcache.h (make_cleanup_regcache_xfree): Declare.
1002 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1004 * event-top.c (command_line_handler): Don't read past
1005 beginning of buffer.
1007 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1009 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1011 (varobj_create): Store frame_id for root.
1012 (varobj_gen_name): Use xasprintf.
1013 (varobj_update): Save and restore frame using get_frame_id() and
1015 (create_child): Use xasprintf.
1016 (new_root_variable): Initialize frame_id.
1017 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1018 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1019 to prevent memory leak.
1021 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1023 * valops.c (hand_function_call): Move declaration of retbuf to
1024 start of function, allocate using malloc, add a cleanup but before
1025 the inf_status cleanup, cleanup the buffer. Rename local variable
1026 old_chain to inf_status_cleanup.
1028 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1030 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1032 * cli/cli-decode.c (cmd_func_p): New function.
1033 (cmd_func): New function.
1035 * command.h: Add cmd_func() and cmd_func_p().
1037 2002-07-03 Grace Sainsbury <graces@redhat.com>
1039 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1040 (REGISTER_SIZE): Remove.
1041 (MAX_REGISTER_RAW_SIZE): Remove.
1042 (REGISTER_VIRTUAL_TYPE): Remove.
1043 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1044 (REGISTER_NAME): Remove.
1045 (USE_GENERIC_DUMMY_FRAMES): Remove.
1046 (CALL_DUMMY): Remove.
1047 (CALL_DUMMY_START_OFFSET): Remove.
1048 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1049 (CALL_DUMMY_LOCATION): Remove.
1050 (FIX_CALL_DUMMY): Remove.
1051 (CALL_DUMMY_ADDRESS): Remove.
1052 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1053 (SAVE_DUMMY_FRAME_TOS): Remove.
1054 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1055 (mcore_register_virtual_type): New function.
1056 (mcore_register_byte): New function.
1057 (mcore_register_size): New function.
1058 (mcore_register_name): New function.
1059 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1060 macros removed from tm-mcore.h.
1061 (mcore_dump_tdep): Add.
1062 (_initialize_mcore_tdep): Add gdbarch_register call.
1064 2002-07-03 Mark Kettenis <kettenis@gnu.org>
1066 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1067 frameless_look_for_prologue, such that we actually call this
1070 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1072 * frame.h (frame_address_in_block): New function.
1074 * blockframe.c (frame_address_in_block): New function extracted
1075 from get_frame_block().
1076 (get_frame_block): Use frame_address_in_block().
1077 (block_innermost_frame): Use frame_address_in_block() to match
1078 the frame pc address against the block boundaries rather than
1079 the frame pc directly. This prevents a failure when a frame pc
1080 is actually a return-address pointing immediately after the end
1083 2002-07-02 Grace Sainsbury <graces@redhat.com>
1085 * MAINTAINERS: Add self under write after approval.
1087 2002-07-02 Grace Sainsbury <graces@redhat.com>
1089 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1090 used in architecture vector. The default is
1091 m68k_local_breakpoint_from_pc.
1092 (m68k_local_breakpoint_from_pc): Add.
1093 (enum): Add register numbers from tm-m68k.h.
1094 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1096 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1097 GDB_MULTI_ARCH_PARTIAL.
1098 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1099 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1101 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1102 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1103 to enum in m68k-tdep.c
1105 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1107 * solib-osf.c (open_map): Compute the list of shared libraries
1108 loaded by the inferior, rather than the list of libraries loaded
1109 by GDB itself. Otherwise, GDB ends up reading the symbols from
1110 the wrong shared libraries...
1112 2002-07-02 Mark Kettenis <kettenis@gnu.org>
1114 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1115 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1117 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1119 (FRAMELESS_SIGNAL): Remove function.
1120 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1121 i386_linux_saved_pc_after_call): Removed.
1122 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1123 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1124 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1126 * i386-tdep.c (i386_frameless_signal_p): New function.
1127 (i386_frame_chain): Deal with frameless signals.
1128 (i386_sigtramp_saved_sp): New function.
1129 (i386_frame_saved_pc): Deal with frameless signals.
1130 (i386_saved_pc_after_call): Make sure the correct value is
1131 returned just after entry into a sigtramp.
1132 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1133 i386fbsd4_sc_sp_offset): New variables.
1134 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1135 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1136 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1137 similiar to what we already did for sc_pc_offset.
1138 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1141 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1143 2002-07-02 Michal Ludvig <mludvig@suse.cz>
1145 * config/i386/tm-x86-64linux.h: New.
1146 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1148 * config/i386/nm-x86-64.h: Rename to ...
1149 * config/i386/nm-x86-64linux.h: ... this one.
1150 * config/i386/x86-64linux.mh: Reflect the above change.
1152 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1154 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1155 with sigcontext_addr. Add sc_sp_offset.
1156 (i386bsd_sigtramp_saved_pc): Remove prototype.
1157 (i386bsd_sicontext_addr): Add prototype.
1158 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1159 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1160 (i386_svr4_sigtramp_saved_pc): Removed.
1161 (i386_svr4_sigcontext_addr): New function.
1162 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1163 Initialize tdep->sigcontext_addr instead. Initialize
1164 tdep->sc_pc_offset and tdep->sc_sp_offset.
1165 (i386_gdbarch_init): Likewise.
1166 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1168 (i386bsd_sigtramp_saved_pc): Remove function.
1169 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1170 Initialize tdep->sigcontext_addr instead. Initialize
1172 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1173 of tdep->sigtramp_saved_pc.
1174 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1175 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1178 * i386-tdep.c (i386_frameless_function_invocation,
1179 i386_frame_num_args, i386_frame_init_saved_regs,
1180 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1181 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1182 i386_extract_return_value, i386_store_return_value,
1183 i386_extract_struct_value_address, i386_register_virtual_type,
1184 i386_register_convertible, i386_register_convert_to_virtual,
1185 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1186 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1189 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1191 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1193 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1194 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1195 this macro. Include "value.h".
1197 2002-06-30 Aidan Skinner <aidan@velvet.net>
1199 * ada-exp.tab.c: remove as it's a generated file
1200 * ada-lex.c: remove as it's a generated file
1202 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1204 * config/i386/tm-i386.h (struct frame_info, struct
1205 frame_saved_regs, struct value, struct type): Remove forward
1208 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1209 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1210 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1211 (FILL_FPXREGSET): Define.
1213 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1215 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1216 i[3456]86-*-netbsd* case.
1217 * config/i386/tm-obsd.h: Removed.
1218 * config/i386/obsd.mt: Removed.
1219 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1221 (MH_CFLAGS): Add -DYYDEBUG=0.
1223 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1224 i386nbsd_sc_pc_offset on OpenBSD too.
1226 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1227 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1228 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1230 * i386bsd-tdep.c: Include "arch-utils.h".
1231 (i386bsd_aout_in_solib_call_trampoline): New function.
1232 (i386bsd_init_abi): Set in_solib_call_trampoline to
1233 i386bsd_aout_in_solib_call_trampoline.
1234 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1235 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1237 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1239 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1240 (struct obstack, struct bcache): Add opaque declarations.
1241 * Makefile.in (macrotab_h): Update
1243 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1245 * blockframe.c (generic_find_dummy_frame): Change return type to
1246 ``struct regcache''.
1247 (struct dummy_frame): Replace field ``registers'' with regcache, a
1248 struct regcache object.
1249 (generic_find_dummy_frame): Update.
1250 (generic_push_dummy_frame): Update. Use regcache_xfree,
1251 regcache_xmalloc and regcache_cpy.
1252 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1254 (deprecated_generic_find_dummy_frame): Update.
1255 (generic_read_register_dummy): Update. Use
1256 regcache_read_as_address.
1257 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1258 (generic_get_saved_register): Update. Use regcache_read.
1260 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1262 * Makefile.in (objfiles_h): Add $(bcache_h).
1263 * objfiles.h: Include "bcache.h".
1265 * Makefile.in (symtab_h): Remove $(bcache_h).
1266 * symtab.h: Do not include "bcache.h".
1268 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1270 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1271 generic_func_frame_chain_valid.
1273 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1275 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1276 * config/i386/tm-fbsd.h: Likewise.
1278 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1280 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1281 generic_unwind_get_saved_register.
1283 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1285 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1286 * regcache.c (supply_register): Add missing argument to
1287 register_buffer call.
1289 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1291 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1292 Solaris /bin/grep does not not like it. From Peter Schauer.
1294 2002-06-26 Tom Tromey <tromey@redhat.com>
1296 * command.h (add_setshow_cmd): Declare.
1297 (add_setshow_cmd_full): Declare.
1298 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1299 returns void. Use add_setshow_cmd_full.
1300 (add_setshow_cmd_full): New function.
1301 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1302 (add_setshow_boolean_cmd): Likewise.
1304 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1306 * config/vax/tm-vax.h: Protect from multiple inclusion.
1307 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1308 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1309 * config/vax/tm-vaxbsd.h: ...here. New file.
1310 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1312 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1314 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1315 (BELIEVE_PCC_PROMOTION): Remove.
1316 (AP_REGNUM): Move to...
1317 * config/vax/nm-vax.h: ...here.
1318 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1319 (vax_breakpoint_from_pc): New function.
1320 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1321 and gdbarch_believe_pcc_promotion.
1323 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1325 * Makefile.in (vax_tdep_h): Define.
1326 (vax-tdep.o): Use $(vax_tdep_h).
1327 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1328 (vax_dump_tdep): New function.
1329 (_initialize_vax_tdep): Register vax_dump_tdep.
1330 * vax-tdep.h: Include osabi.h.
1331 (struct gdbarch_tdep): New.
1333 2002-06-26 Andrew Cagney <cagney@redhat.com>
1335 * frame.h (deprecated_generic_find_dummy_frame): Rename
1336 generic_find_dummy_frame.
1337 * blockframe.c (generic_find_dummy_frame): Make static.
1338 (deprecated_generic_find_dummy_frame): New function.
1339 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1340 generic_find_dummy_frame with deprecated_find_dummy_frame.
1341 (sh64_nofp_frame_init_saved_regs): Ditto.
1342 (sh_fp_frame_init_saved_regs): Ditto.
1343 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1344 (s390_frame_chain): Ditto.
1345 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1347 2002-06-26 Grace Sainsbury <graces@redhat.com>
1349 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1350 gdbarch vector are at the top.
1352 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1353 (FRAME_ARGS_ADDRESS): Remove.
1354 (FRAME_LOCALS_ADDRESS): Remove.
1355 (FRAME_NUM_ARGS): Remove.
1356 (FRAME_ARGS_SKIP): Remove.
1357 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1358 (m68k_gdbarch_init): Add gdbarch initializations for macros
1359 undefined in tm-m68k.h
1361 2002-06-26 Grace Sainsbury <graces@redhat.com>
1363 * monitor.h: Add the function regname to monitor_ops
1364 structure. This way NUM_REGS does not have to be a constant.
1365 * monitor.c (monitor_fetch_register): Added support for regname
1366 function. The function is called if the array regnames is NULL.
1367 (monitor_store_register): Same.
1368 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1370 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1371 cpu32bug_cmds.regname to point to new function.
1372 * abug-rom.c (abug_regname): Same as above.
1373 (init_abug_cmds): Same.
1374 * dbug-rom.c (dbug_regname): Same as above.
1375 (init_dbug_cmds): Same.
1376 * remote-est.c (est_regname): Same.
1377 (init_est_cmds): Same.
1378 * rom68k-rom.c (rom68k_regname): Same.
1379 (init_rom68k_cmds): Same.
1381 2002-06-25 Tom Tromey <tromey@redhat.com>
1383 * breakpoint.c (delete_command): Don't repeat `delete' commands.
1385 2002-06-25 Andrew Cagney <cagney@redhat.com>
1387 * infrun.c (stop_registers): Change variable's type to ``struct
1389 (xmalloc_inferior_status): Delete function.
1390 (free_inferior_status): Delete function.
1391 (normal_stop): Use regcache_cpy.
1392 (struct inferior_status): Change type of fields ``stop_registers''
1393 and ``registers'' to ``struct regcache''.
1394 (write_inferior_status_register): Use regcache_write.
1395 (save_inferior_status): Instead of calling
1396 xmalloc_inferior_status, allocate the inf_status buffer directly.
1397 Use regcache_dup_no_passthrough and regcache_dup to save the
1399 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
1400 Replace the stop_registers regcache instead of overriding it. Use
1401 regcache_xfree. Instead of calling free_inferior_status, xfree
1402 the buffer directly.
1403 (discard_inferior_status): Use regcache_xfree. Instead of calling
1404 free_inferior_status, xfree the buffer directly.
1405 (build_infrun): Use regcache_xmalloc.
1406 (_initialize_infrun): Delete redundant call to build_infrun.
1408 * Makefile.in (infcmd.o): Add $(regcache_h).
1410 * infcmd.c: Include "regcache.h".
1411 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
1412 obtain the address of `stop_registers' register buffer.
1413 (print_return_value): Ditto.
1415 * inferior.h (struct regcache): Add opaque declaration.
1416 (stop_registers): Change variable's declared type to ``struct
1419 2002-06-24 Tom Tromey <tromey@redhat.com>
1421 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
1422 * target.c (initialize_targets): Fixed typo in
1423 trust-readonly-sections `show' documentation.
1425 * main.c: Marked all strings with _().
1427 2002-06-24 Don Howard <dhoward@redhat.com>
1429 * memattr.c (create_mem_region): Treat hi == 0 as a special case
1430 that means max CORE_ADDR+1.
1431 (lookup_mem_region): Ditto.
1432 (mem_info_command): Ditto.
1434 2002-06-24 Grace Sainsbury <graces@redhat.com>
1436 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
1437 (REGISTER_BYTES_OK): Remove.
1438 (REGISTER_BYTES): Remove.
1439 (STORE_STRUCT_RETURN): Remove.
1440 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
1441 (STORE_RETURN_VALUE): Remove.
1442 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1443 (FRAME_CHAIN): Remove.
1444 (FRAMELESS_FUNCTION_INVOCATION): Remove.
1445 (FRAME_SAVED_PC): Remove.
1446 * m68k-tdep.c (m68k_register_bytes_ok):Add.
1447 (m68k_store_struct_return): Add.
1448 (m68k_deprecated_extract_return_value): Add.
1449 (m68k_deprecated_extract_struct_value_address): Add.
1450 (m68k_store_return_value): Add.
1451 (m68k_frame_chain): Add.
1452 (m68k_frameless_function_invocation): Add.
1453 (m68k_frame_saved_pc): Add.
1454 (m68k_gdbarch_init): added set_gdbarch calls for new
1455 functions and deleted macros.
1457 2002-06-23 Tom Tromey <tromey@redhat.com>
1459 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
1460 (ALLDEPFILES): Likewise.
1461 (udiheaders): Removed.
1462 (udip2soc.o): Likewise.
1463 (udi2go32.o): Likewise.
1465 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
1467 2002-06-22 Andrew Cagney <ac131313@redhat.com>
1469 * infrun.c (_initialize_infrun): Delete unnecessary call to
1472 * regcache.h: Update comments describing the regcache_cpy family
1474 (regcache_save, regcache_restore): Delete declaration.
1475 (regcache_save_no_passthrough): Delete declaration.
1476 (regcache_restore_no_passthrough): Delete declaration.
1477 * regcache.c (regcache_save): Delete function.
1478 (regcache_save_no_passthrough): Delete function.
1479 (regcache_restore): Delete function.
1480 (regcache_restore_no_passthrough): Delete function.
1482 2002-06-21 Andrew Cagney <ac131313@redhat.com>
1484 * config/m68k/tm-m68k.h: Fix typo.
1485 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1486 (m68k_frame_init_saved_regs): Declare.
1488 2002-06-21 Jim Blandy <jimb@redhat.com>
1490 Remove some vestiges of Harris 88k support.
1491 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1492 register numbering quirk.
1493 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1494 odd symbols occurring in Harris 88k ELF targets.
1496 2002-06-21 Tom Tromey <tromey@redhat.com>
1498 * gdb_locale.h: New file.
1499 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1500 (defs_h): Added gdb_locale.h.
1501 * configure, config.in: Rebuilt.
1502 * configure.in (PACKAGE): Define.
1503 * defs.h: Include gdb_locale.h.
1504 * main.c (captured_main): Call setlocale, bindtextdomain,
1507 2002-06-21 Dave Brolley <brolley@redhat.com>
1509 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1510 * config/frv/frv.mt: New file.
1511 * config/frv/tm-frv.h: New file.
1512 * configure.tgt: Support frv-*-*.
1513 * Makefile.in (frv-tdep.o): New target.
1514 * frv-tdep.c: New file.
1515 * NEWS: Mention frv.
1517 2002-06-21 Dave Brolley <brolley@redhat.com>
1519 * MAINTAINERS: Add self to "Write After Approval" list.
1521 2002-06-21 Grace Sainsbury <graces@redhat.com>
1523 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1524 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1525 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1526 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1527 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1529 * m68k-tdep.c: Include arch-utils.h
1530 (m68k_register_raw_size): Add.
1531 (m68k_register_virtual_size): Add.
1532 (m68k_register_virtual_type): Add.
1533 (m68k_register_name): Add.
1534 (m68k_stack_align): Add.
1535 (m68k_register_byte): Add.
1536 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1539 2002-06-21 Grace Sainsbury <graces@redhat.com>
1541 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1542 m68k_find_saved_regs.
1543 (m68k_pop_frame): Removed saved_regs structure, and replaced
1544 references to it with frame->saved_regs.
1545 (m68k_gdbarch_init): Added function calls to initialize the
1547 (m68k_fix_call_dummy): Add.
1548 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1549 (CALL_DUMMY): Remove.
1550 (CALL_DUMMY_LENGTH): Remove.
1551 (CALL_DUMMY_START_OFFSET): Remove.
1552 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1553 (FIX_CALL_DUMMY): Remove.
1554 (PUSH_DUMMY_FRAME): Remove.
1555 (POP_FRAME): Remove.
1557 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1559 * parse.c (parse_fprintf): New function used to avoid calls to
1560 fprintf in bison parser generated debug code.
1561 * parser-defs.h: Declaration of new parse_fprintf function.
1562 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1563 Set YYDEBUG to 1 by default.
1564 Set YYFPRINTF as parse_fprintf.
1566 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1568 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1570 (pointer_encoding, enum ptr_encoding): New.
1571 (execute_cfa_program): Take care about pointer encoding.
1572 (dwarf2_build_frame_info): Only call parse_frame_info for
1573 .debug_frame and .eh_frame.
1574 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1575 fixed augmentation handling, added relative addressing,
1576 ignore duplicate FDEs. Added comments.
1577 * dwarf2cfi.c: Reindented.
1579 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1581 * event-top.c (command_handler): Don't use space_at_cmd_start
1582 unless there is sbrk() on the host. Assign time and space data
1583 to union fields of the appropriate length.
1585 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1587 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1588 x86_64_register_name. Return type changed to 'const char *'.
1589 (x86_64_register_name2nr): Rename to x86_64_register_number.
1590 (x86_64_gdbarch_init): Update to reflect the change.
1591 * x86-64-tdep.h: Ditto.
1592 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1593 (supply_fpregset): Ditto.
1595 2002-06-19 Andrew Cagney <cagney@redhat.com>
1597 * regcache.h: Update copyright.
1598 (struct regcache, struct gdbarch): Add opaque declarations.
1599 (current_regcache): Declare global variable.
1600 (regcache_read, regcache_write): Add gdbarch parameter.
1601 (regcache_save, regcache_save_no_passthrough)
1602 (regcache_restore, regcache_restore_no_passthrough)
1603 (regcache_dup, regcache_dup_no_passthrough)
1604 (regcache_cpy, regcache_cpy_no_passthrough)
1605 (deprecated_grub_regcache_for_registers)
1606 (deprecated_grub_regcache_for_register_valid)
1607 (regcache_valid_p): Add function declarations.
1609 * regcache.c: Update copyright.
1610 (regcache_descr_handle): New global variable.
1611 (struct regcache_descr): Define.
1612 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1613 (regcache_descr, xfree_regcache_descr): New functions.
1614 (struct regcache): Define.
1615 (regcache_xmalloc, regcache_xfree): New functions.
1616 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1617 (regcache_dup, regcache_dup_no_passthrough): New functions.
1618 (regcache_valid_p, regcache_read_as_address): New functions.
1619 (deprecated_grub_regcache_for_registers): New function.
1620 (deprecated_grub_regcache_for_register_valid): New function.
1621 (current_regcache): New global variable.
1622 (register_buffer): Add regcache parameter. Update calls.
1623 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1624 (read_register_gen, write_register_gen): Update register_buffer
1625 call. Test for legacy_p instead of gdbarch_register_read_p or
1626 gdbarch_register_write_p.
1627 (regcache_collect): Update register_buffer call.
1628 (build_regcache): Rewrite. Use deprecated grub functions.
1629 (regcache_save, regcache_save_no_passthrough): New functions.
1630 (regcache_restore, regcache_restore_no_passthrough): New
1632 (_initialize_regcache): Create the regcache_data_handle. Swap
1633 current_regcache global variable.
1635 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1636 parameter to regcache_read and regcache_write calls.
1637 (sh4_register_read): Ditto.
1638 (sh64_pseudo_register_read): Ditto.
1639 (sh64_register_read): Ditto.
1640 (sh_pseudo_register_write): Ditto.
1641 (sh4_register_write): Ditto.
1642 (sh64_pseudo_register_write): Ditto.
1643 (sh64_register_write): Ditto.
1645 * defs.h (XCALLOC): Define.
1647 2002-06-19 Grace Sainsbury <graces@redhat.com>
1649 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1650 * m68k-tdep.c (m68k_gdbarch_init): Added.
1651 (m68k_dump_tdep): Added.
1653 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1655 * ada-lang.c (fill_in_ada_prototype): Update comment.
1657 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1659 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1661 (mips_abi_string, mips_abi_strings): New.
1662 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1663 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1664 tdep->mips_abi_string. Honor mips_abi_string. Default to
1665 O32 if no ABI is found.
1666 (mips_dump_tdep): Use mips_abi_strings.
1667 (mips_abi_update): New function.
1668 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1669 ``set mips abi'' and ``show mips abi''. Check the size of
1672 2002-06-19 Andrew Cagney <cagney@redhat.com>
1674 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1677 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1679 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1680 current frame using only the first stack size adjustment. All
1681 subsequent size adjustments are not considered to be part of
1682 the "static" part of the current frame.
1683 Compute the address of the saved registers relative to the
1684 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1685 in use in this frame.
1687 2002-06-18 Don Howard <dhoward@redhat.com>
1689 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1690 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1691 suggesting this solution.
1693 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1695 * config/romp/xm-rtbsd.h: Delete file.
1696 * config/romp/rtbsd.mh: Delete file.
1698 2002-06-18 Keith Seitz <keiths@redhat.com>
1700 * breakpoint.c (condition_command): Post breakpoint_modify
1701 when a condition is added to an existing breakpoint.
1702 (commands_command): Likewise for commands.
1703 (set_ignore_count): Likewise for ignore counts.
1704 If no tty, do not simply return, still need to send event
1706 (ignore_command): Only print a newline if the command came
1708 Don't call breakpoints_changed, since this is now properly
1709 handled by set_ignore_count.
1711 2002-06-18 Andrew Cagney <cagney@redhat.com>
1713 * MAINTAINERS: Note that cris-elf target can be compiled with
1715 * cris-tdep.c (cris_register_name): Make return type constant.
1716 (cris_breakpoint_from_pc): Ditto.
1718 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1720 * frame.h (struct frame_info): Change type of context to
1723 2002-06-17 Andrew Cagney <cagney@redhat.com>
1725 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1727 * gdbarch.h, gdbarch.c: Regenerate.
1728 * config/mips/tm-mips.h (mips_register_name): Update.
1729 * i386-tdep.h (i386_register_name): Update.
1730 * mips-tdep.c (mips_register_name): Update
1731 * alpha-tdep.c (alpha_register_name): Update.
1732 * arch-utils.c (legacy_register_name): Update.
1733 * arch-utils.h (legacy_register_name): Update.
1734 * avr-tdep.c (avr_register_name): Update.
1735 * ia64-tdep.c (ia64_register_name): Update.
1736 * i386-tdep.c (i386_register_name): Update.
1737 * sparc-tdep.c (sparc32_register_name): Update.
1738 (sparc64_register_name): Update.
1739 (sparclite_register_name): Update.
1740 (sparclet_register_name): Update.
1741 * sh-tdep.c (sh_generic_register_name): Update.
1742 (sh_sh_register_name): Update.
1743 (sh_sh3_register_name): Update.
1744 (sh_sh3e_register_name): Update.
1745 (sh_sh_dsp_register_name): Update.
1746 (sh_sh3_dsp_register_name): Update.
1747 (sh_sh4_register_name): Update.
1748 (sh_sh64_register_name): Update.
1749 * s390-tdep.c (s390_register_name): Update.
1750 * rs6000-tdep.c (rs6000_register_name): Update.
1751 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1752 (ns32k_register_name_32382): Update.
1753 * d10v-tdep.c (d10v_ts2_register_name): Update.
1754 (d10v_ts3_register_name): Update.
1755 * xstormy16-tdep.c (xstormy16_register_name): Update.
1756 * vax-tdep.c (vax_register_name): Update.
1757 * v850-tdep.c (v850_register_name): Update.
1758 * m68hc11-tdep.c (m68hc11_register_name): Update.
1759 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1760 (am33_register_name): Update.
1762 2002-06-17 Grace Sainsbury <graces@redhat.com>
1764 * m68k-tdep.c: Reindented.
1766 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1768 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1769 list of predefined types.
1771 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1773 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1774 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1775 REGISTER_CONVERT_TO_RAW): Remove defines.
1776 (i386_register_virtual_type, i386_register_convertible,
1777 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1779 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1780 macros mentioned above.
1782 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1783 (i386lynx_saved_pc_after_call): Remove prototype.
1784 * i386ly-tdep.c: Include "i386-tdep.h".
1785 (i386lynx_saved_pc_after_call): Make static. Use
1786 read_memory_nobpt instead of read_memory. Use
1787 read_memory_unsigned_integer instead of read_memory_integer.
1788 (i386lynx_init_abi): New function.
1789 (i386lynx_coff_osabi_sniffer): New function.
1790 (_initialize_i386bsd_tdep): New function.
1792 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1793 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1794 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1795 (i386_fix_call_dummy): Remove prototype.
1796 * i386-tdep.c (i386_call_dummy_words): New variable.
1797 (i386_gdbarch_init): Adjust for removal of the
1798 macros mentioned above.
1800 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1802 * command.h (add_setshow_auto_boolean_cmd): Replace
1803 add_set_auto_boolean_cmd.
1804 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1805 add_set_auto_boolean_cmd.
1806 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1807 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1808 mask-address'' command.
1809 (show_mask_address): Add cmd parameter.
1810 * remote.c (add_packet_config_cmd): Update. Change type of
1811 set_func and show_func to cmd_sfunc_ftype.
1812 (_initialize_remote): Update `set remote Z-packet'
1813 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1814 (show_remote_protocol_e_packet_cmd): Ditto.
1815 (show_remote_protocol_E_packet_cmd): Ditto.
1816 (show_remote_protocol_P_packet_cmd): Ditto.
1817 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1818 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1819 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1820 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1821 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1822 (show_remote_protocol_Z_packet_cmd): Ditto.
1823 (show_remote_protocol_binary_download_cmd): Ditto.
1824 (show_remote_cmd): Pass NULL to all of above.
1826 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1828 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1829 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1830 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1831 POP_FRAME): Remove defines.
1832 (i386_push_arguments, i386_store_struct_return,
1833 i386_extract_return_value, i386_store_return_value,
1834 i386_extract_struct_value_address, i386_push_dummy_frame,
1835 i386_pop_frame): Renove prototypes.
1836 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1837 macros mentioned above.
1839 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1841 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1842 add_set_boolean_cmd.
1843 (add_setshow_cmd): New function.
1844 * command.h (add_setshow_boolean_cmd): Replace
1845 add_set_boolean_cmd.
1846 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1847 and ``set rdiromatzero''.
1848 * maint.c (_initialize_maint_cmds): Update commented out code.
1849 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1850 * target.c (initialize_targets): Update `set
1851 trust-readonly-sections'.
1852 * remote.c (_initialize_remote): Update `set remotebreak'.
1854 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1856 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1857 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1858 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1859 fit into multi-arch framework.
1860 (i386_breakpoint_from_pc): New function.
1861 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1864 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1865 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1866 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1867 (i386_frameless_function_invocation, i386_frame_num_args,
1868 i386_frame_init_saved_regs): Remove prototypes.
1869 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1870 macros mentioned above.
1872 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1874 * cli/cli-decode.c (set_cmd_cfunc): Update.
1875 (set_cmd_sfunc): Update.
1876 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1877 (set_cmd_sfunc, set_cmd_cfunc): Update.
1878 * cli/cli-decode.h: Update.
1880 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1882 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1883 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1885 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1887 * defs.h (auto_boolean): Declare enum.
1888 * command.h (cmd_auto_boolean): Delete enum.
1889 * mips-tdep.c (mask_address_var): Update.
1890 (mips_mask_address_p): Update.
1891 (show_mask_address): Update.
1892 * remote.c (struct packet_config): Update.
1893 (update_packet_config): Update.
1894 (show_packet_config_cmd): Update.
1895 (packet_ok): Update.
1896 (add_packet_config_cmd): Update.
1897 (_initialize_remote):
1898 * command.h: Update.
1899 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1900 (do_setshow_command): Update.
1901 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1902 * cli/cli-decode.h: Update.
1904 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1906 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1907 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1908 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1909 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1910 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1911 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1913 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1914 list of DJGPP COFF targets.
1916 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1917 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1918 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1919 (FP0_REGNUM): Remove define.
1920 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1921 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1922 (i386_register_virtual_size): Remove protoype.
1923 * i386-tdep.c (i386_register_virtual_size): Removed.
1924 (i386_extract_return_value, i386_store_return_value): Use
1925 FP0_REGNUM instead of NUM_FREGS to determine whether the
1926 floating-point registers are available.
1927 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1928 Adjust for removal of macros mentioned above.
1930 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1932 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1934 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1936 (supply_gregset, fill_gregset): Remove use of register keyword and
1937 remove declaration for regmap. Use I386_NUM_GREGS instead of
1938 NUM_REGS and NUM_FREGS.
1939 (FPREGSET_FSAVE_OFFSET): Remove.
1940 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1941 NUM_FREGS to determine whether the floating-point registers are
1944 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1945 gnu_store_registers): Replace usage of NUM_GREGS with
1948 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1949 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1950 usage of NUM_GREGS with I386_NUM_GREGS.
1952 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1954 * i386bsd-nat.c: Include "i386-tdep.h".
1955 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1958 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1959 and associated comment. They no longer make any sense, since we
1960 don't use this file anymore on Linux.
1962 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1963 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1964 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1965 elements in these arrays.
1966 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1969 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1971 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1972 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1974 2002-06-14 Andrew Cagney <cagney@redhat.com>
1976 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1977 EXTRACT_RETURN_VALUE.
1978 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1979 EXTRACT_STRUCT_VALUE_ADDRESS.
1980 * gdbarch.h, gdbarch.c: Regenerate.
1982 * values.c (value_being_returned): Handle
1983 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1984 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1986 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1987 * arm-tdep.c (arm_gdbarch_init): Update.
1988 * avr-tdep.c (avr_gdbarch_init): Update.
1989 * cris-tdep.c (cris_gdbarch_init): Update.
1990 * d10v-tdep.c (d10v_gdbarch_init): Update.
1991 * ia64-tdep.c (ia64_gdbarch_init): Update.
1992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1993 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1994 * s390-tdep.c (s390_gdbarch_init): Update.
1995 * sh-tdep.c (sh_gdbarch_init): Update.
1996 * s390-tdep.c (s390_gdbarch_init): Update.
1997 * sparc-tdep.c (sparc_gdbarch_init): Update.
1998 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1999 * v850-tdep.c (v850_gdbarch_init): Update.
2000 * vax-tdep.c (vax_gdbarch_init): Update.
2001 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2004 * config/arc/tm-arc.h: Update.
2005 * config/d30v/tm-d30v.h: Update.
2006 * config/fr30/tm-fr30.h: Update.
2007 * config/h8300/tm-h8300.h: Update.
2008 * config/h8500/tm-h8500.h: Update.
2009 * config/i386/tm-i386.h: Update.
2010 * config/i386/tm-ptx.h: Update.
2011 * config/i386/tm-symmetry.h: Update.
2012 * config/i960/tm-i960.h: Update.
2013 * config/m32r/tm-m32r.h: Update.
2014 * config/m68k/tm-delta68.h: Update.
2015 * config/m68k/tm-linux.h: Update.
2016 * config/m68k/tm-m68k.h: Update.
2017 * config/m88k/tm-m88k.h: Update.
2018 * config/mcore/tm-mcore.h: Update.
2019 * config/mips/tm-mips.h: Update.
2020 * config/mn10200/tm-mn10200.h: Update.
2021 * config/pa/tm-hppa.h: Update.
2022 * config/pa/tm-hppa64.h: Update.
2023 * config/sparc/tm-sp64.h: Update.
2024 * config/sparc/tm-sparc.h: Update.
2025 * config/sparc/tm-sparclet.h: Update.
2026 * config/z8k/tm-z8k.h: Update.
2028 2002-06-14 Andrew Cagney <cagney@redhat.com>
2030 * Makefile.in (i386_linux_tdep_h): Define.
2031 (i386_tdep_h, i387_tdep_h): Define.
2032 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2033 $(i386_tdep_h) and $(i387_tdep_h).
2034 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2036 2002-06-14 Mark Kettenis <kettenis@gnu.org>
2038 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2039 Already covered by the default.
2041 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2042 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2043 (i386_gdbarch_init): Initialize long_double_format and long_double
2046 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2047 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2049 * config/i386/i386sol2.mh: ... here.
2050 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2051 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2052 (SIGCONTEXT_PC_OFFSET): Remove define.
2053 (IN_SIGTRAMP): Remove define.
2054 * i386-sol2-tdep.c: New file.
2056 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2057 * config/i386/tm-i386nw.h: Removed.
2059 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2060 USE_STRUCT_CONVENTION): Remove defines.
2061 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2062 (get_longjmp_target): Remove prototype.
2063 (IN_SIGTRAMP): Remove define.
2064 (i386bsd_in_sigtramp): Remove prototype.
2065 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2066 function. Update comment accordingly
2067 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2068 (FRAME_SAVED_PC): Remove define.
2069 (i386bsd_frame_saved_pc): Remove prototype.
2070 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2071 GET_LONGJMP_TARGET): Remove defines.
2072 (get_longjmp_target): Remove prototype.
2073 (IN_SIGTRAMP): Remove define.
2074 (i386bsd_in_sigtramp): Remove prototype.
2075 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2076 function. Update comment accordingly
2077 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2078 (FRAME_SAVED_PC): Remove define.
2079 (i386bsd_frame_saved_pc): Remove prototype.
2080 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2082 (USE_STRUCT_CONVENTION): Remove prototype.
2083 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2085 (_initialize_i386bsd_nat): Revise logic to determine some
2086 constants at compile time when compiling a native GDB. Warn if
2087 things don't match up with what we expect.
2088 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2090 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2091 to use date stored in `struct gdbarch_tdep'.
2092 (i386bsd_sigcontext_offset): Remove varaible.
2093 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2094 stored in `struct gdbarch_tdep'.
2095 (i386bsd_frame_saved_pc): Make static.
2096 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2097 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2098 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2099 i386fbsd4_sc_pc_offset): New variables.
2100 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2101 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2103 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2105 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2106 Modify the value of i386fbsd_sigtramp_start and
2107 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2108 i386fbsd_sigtramp_end.
2109 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2112 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2113 define to i386-linux-tdep.h.
2114 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2115 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2117 (i386_linux_register_name, i386_linux_register_byte,
2118 i386_linux_register_raw_size): Remove prototypes.
2119 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2120 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2121 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2122 TARGET_WRITE_PC): Remove defines.
2123 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2124 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2125 i386_linux_write_pc): Remove prototypes.
2126 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2127 (get_longjmp_target): Remove prototype.
2128 * i386-linux-tdep.h: New file.
2129 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2130 * i386-linux-tdep.c: Include "i386-tdep.h" and
2131 "i386-linux-tdep.h".
2132 (i386_linux_register_name, i386_linux_register_byte,
2133 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2134 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2136 (i386_linux_init_abi): New function.
2137 (_initialize_i386_linux_tdep): New function.
2139 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2140 (i386_saved_pc_after_call): Remove prototype.
2141 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2142 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2143 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2144 (i386_register_name, i386_stab_reg_to_regnum,
2145 i386_dwarf_reg_to_regnum): Remove prototypes.
2146 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2147 SIZEOF_SSE_REGS): Remove defines.
2148 (REGISTER_BYTES): Remove define.
2149 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2150 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2151 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2152 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2153 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2154 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2155 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2156 (get_longjmp_target): Remove prototype.
2157 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2158 (sigtramp_saved_pc): Remove define.
2159 (i386v4_sigtramp_saved_pc): Remove prototype.
2160 * config/i386/tm-go32.h (FRAME_CHAIN,
2161 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2162 (i386go32_frame_saved_pc): Remove prototype.
2163 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2164 (get_longjmp_target): Remove prototype.
2165 * i386-tdep.h: Include "osabi.h".
2166 (enum i386_abi): Removed.
2167 (enum struct_return): New enum.
2168 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2169 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2170 sc_pc_offset members.
2171 (i386_gdbarch_register_os_abi): Remove prototype.
2172 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2173 I386_SSE_NUM_REGS): New defines.
2174 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2175 I386_SSE_SIZEOF_REGS): New defines.
2176 (i386_register_name, i386_register_byte, i386_register_raw_size):
2178 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2179 (i386bsd_sigtramp_saved_pc): New prototype.
2180 * i386-tdep.c: Don't include "elf-bfd.h".
2181 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2182 i386_frame_chain, i386_saved_pc_after_call): Make static.
2183 (i386_frame_saved_pc): Rewrite to call architecture dependent
2184 function to deal with signal handlers. Make static.
2185 (i386go32_frame_saved_pc): Removed.
2186 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2188 (i386_get_longjmp_target): New function.
2189 (default_struct_convention, pcc_struct_convention,
2190 reg_struct_convention, valid_conventions, struct_convention): New
2192 (i386_use_struct_convention): New function.
2193 (i386v4_sigtramp_saved_pc): Renamed to
2194 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2195 (i386_pc_in_sigtramp): New function.
2196 (i386_abi_names): Removed.
2197 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2198 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2200 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2201 i386_gdbarch_register_os_abi): Removed.
2202 (struct i386_abi_handler): Removed.
2203 (i386_abi_handler_list): Removed.
2204 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2206 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2207 i386_nw_init_abi): New functions.
2208 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2209 Use set_gdbarch_xxx() calls instead of relying on macros for a
2211 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2212 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2213 Register the various architecture variants defined in this file.
2215 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2217 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2218 (struct main_type): Remove arg_types member. Update comments for
2220 (TYPE_ARG_TYPES): Remove.
2221 (TYPE_FN_FIELD_ARGS): Update.
2222 (smash_to_method_type): Update prototype.
2224 * c-typeprint.c (cp_type_print_method_args): Take method type
2225 instead of argument list. Use new argument layout. Simplify.
2226 (c_type_print_args): Use new argument layout. Simplify.
2227 (c_type_print_base): Update call to cp_type_print_method_args.
2228 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2229 argument; use die->type instead. Update call to
2230 smash_to_method_type.
2231 (read_structure_scope): Update call to dwarf2_add_member_fn.
2232 * gdbtypes.c (allocate_stub_method): Update comment.
2233 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2234 Use new argument layout.
2235 (check_stub_method): Use new argument layout. Don't count
2236 void as an argument.
2237 (print_arg_types): Update comments. Use new argument layout.
2238 (recursive_dump_type): Don't print arg_types member.
2239 * hpread.c (hpread_read_struct_type): Use new argument layout.
2240 (fixup_class_method_type): Likewise.
2241 (hpread_type_lookup): Likewise.
2242 * stabsread.c (read_type): Update calls to read_args and
2243 smash_to_method_type.
2244 (read_args): Use new argument layout. Simplify.
2245 * valops.c (typecmp): Use new argument layout. Update parameters
2246 and comments. Simplify.
2247 (hand_function_call): Use new argument layout.
2248 (search_struct_method): Update call to typecmp.
2249 (find_overload_match): Use new argument layout.
2251 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2253 * NEWS: Mention multithreaded debug support for gdbserver.
2255 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2257 * MAINTAINERS: Mention NEWS.
2259 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2261 * gdbserver/regcache.c: Add comment.
2263 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2265 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2266 (struct mips_objfile_private, compare_pdr_entries): New.
2267 (non_heuristic_proc_desc): Read the ".pdr" section if it
2270 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2272 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2273 (arm_debug): New static variable.
2274 (_initialize_arm_tdep): Add ``set debug arm'' command.
2276 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2278 * Makefile.in (sim_arm_h): Define.
2279 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2280 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2281 (arm_register_sim_regno): New function, map an internal REGNUM
2282 onto a simulator register number.
2283 (arm_gdbarch_init): Set register_sim_regno.
2285 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2287 * MAINTAINERS: Add self.
2289 2002-06-11 Jim Blandy <jimb@redhat.com>
2291 * source.c (source_info): Mention whether the symtab has
2292 information about preprocessor macros.
2294 Call the command `info macro', not `show macro'.
2295 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2297 (_initialize_macrocmd): Register `info_macro_command' in
2298 `infolist', not `showlist'.
2300 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2302 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2303 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2304 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2305 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2306 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2308 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2309 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2310 (_initialize_mips_tdep): Remove dead code.
2311 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2312 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2313 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2314 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2315 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2316 MIPS_LAST_FP_ARG_REGNUM): Remove.
2318 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2320 * gdbserver/thread-db.c: New file.
2321 * gdbserver/proc-service.c: New file.
2322 * gdbserver/acinclude.m4: New file.
2323 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2324 proc-service.o, and thread-db.o.
2325 (linux-low.o): Add USE_THREAD_DB.
2326 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2327 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2328 * gdbserver/aclocal.m4: Regenerated.
2329 * gdbserver/config.in: Regenerated.
2330 * gdbserver/configure: Regenerated.
2331 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2332 thread_db.h, and linux/elf.h headrs.
2333 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2334 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2335 Check for -lthread_db and thread support.
2336 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2337 PowerPC, and SuperH.
2338 * gdbserver/i387-fp.c: Constify arguments.
2339 * gdbserver/i387-fp.h: Likewise.
2340 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2341 `struct inferior_info'. Remove PID member. Use generic inferior
2342 list header. All uses updated.
2343 (inferiors, signal_pid): Removed.
2344 (all_threads): New variable.
2345 (get_thread): Define.
2346 (add_inferior_to_list): New function.
2347 (for_each_inferior): New function.
2348 (change_inferior_id): New function.
2349 (add_inferior): Removed.
2350 (remove_inferior): New function.
2351 (add_thread): New function.
2352 (free_one_thread): New function.
2353 (remove_thread): New function.
2354 (clear_inferiors): Use for_each_inferior and free_one_thread.
2355 (find_inferior): New function.
2356 (find_inferior_id): New function.
2357 (inferior_target_data): Update argument type.
2358 (set_inferior_target_data): Likewise.
2359 (inferior_regcache_data): Likewise.
2360 (set_inferior_regcache_data): Likewise.
2361 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2362 (all_processes, stopping_threads, using_thrads)
2363 (struct pending_signals, debug_threads, pid_of): New.
2364 (inferior_pid): Replace with macro.
2365 (struct inferior_linux_data): Remove.
2366 (get_stop_pc, add_process): New functions.
2367 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2368 Use add_process and add_thread.
2369 (linux_attach_lwp): New function, based on old linux_attach. Use
2370 add_process and add_thread. Set stop_expected for new threads.
2371 (linux_attach): New function.
2372 (linux_kill_one_process): New function.
2373 (linux_kill): Kill all LWPs.
2374 (linux_thread_alive): Use find_inferior_id.
2375 (check_removed_breakpoints, status_pending_p): New functions.
2376 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2377 Update. Use WNOHANG. Wait for cloned processes also. Update process
2378 struct for the found process.
2379 (linux_wait_for_event): New function.
2380 (linux_wait): Use it. Support LWPs.
2381 (send_sigstop, wait_for_sigstop, stop_all_processes)
2382 (linux_resume_one_process, linux_continue_one_process): New functions.
2383 (linux_resume): Support LWPs.
2384 (REGISTER_RAW_SIZE): Remove.
2385 (fetch_register): Use register_size instead. Call supply_register.
2386 (usr_store_inferior_registers): Likewise. Call collect_register.
2388 (regsets_fetch_inferior_registers): Improve error message.
2389 (regsets_store_inferior_registers): Add debugging.
2390 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2391 (unstopped_p, linux_signal_pid): New functions.
2392 (linux_target_ops): Add linux_signal_pid.
2393 (linux_init_signals): New function.
2394 (initialize_low): Call it. Initialize using_threads.
2395 * gdbserver/regcache.c (inferior_regcache_data): Add valid
2397 (get_regcache): Fetch registers lazily. Add fetch argument
2398 and update all callers.
2399 (regcache_invalidate_one, regcache_invalidate): New
2401 (new_register_cache): Renamed from create_register_cache.
2402 Return the new regcache.
2403 (free_register_cache): Change argument to a void *.
2404 (registers_to_string, registers_from_string): Call get_regcache
2405 with fetch flag set.
2406 (register_data): Make static. Pass fetch flag to get_regcache.
2407 (supply_register): Call get_regcache with fetch flag clear.
2408 (collect_register): Call get_regcache with fetch flag set.
2409 (collect_register_as_string): New function.
2410 * gdbserver/regcache.h: Update.
2411 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
2413 Handle input interrupts while waiting for an ACK.
2414 (input_interrupt): Use signal_pid method.
2415 (getpkt): Flush after debug output and use stderr.
2416 (outreg): Use collect_register_as_string.
2417 (new_thread_notify, dead_thread_notify): New functions.
2418 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2420 (look_up_one_symbol): Flush after debug output.
2421 * gdbserver/server.c (step_thread, server_waiting): New variables.
2422 (start_inferior): Don't use signal_pid. Update call to mywait.
2423 (attach_inferior): Update call to mywait.
2424 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2425 (main): Don't fetch/store registers explicitly. Use
2426 set_desired_inferior. Support proposed ``Hs'' packet. Update
2428 * gdbserver/server.h: Update.
2429 (struct inferior_list, struct_inferior_list_entry): New.
2430 * gdbserver/target.c (set_desired_inferior): New.
2431 (write_inferior_memory): Constify.
2432 (mywait): New function.
2433 * gdbserver/target.h: Update.
2434 (struct target_ops): New signal_pid method.
2435 (mywait): Removed macro, added prototype.
2437 * gdbserver/linux-low.h (regset_func): Removed.
2438 (regset_fill_func, regset_store_func): New.
2439 (enum regset_type): New.
2440 (struct regset_info): Add type field. Use new operation types.
2441 (struct linux_target_ops): stop_pc renamed to get_pc.
2442 Add decr_pc_after_break and breakpoint_at.
2443 (get_process, get_thread_proess, get_process_thread)
2444 (strut process_info, all_processes, linux_attach_lwp)
2445 (thread_db_init): New.
2447 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
2448 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2449 (the_low_target): Add new members.
2450 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2451 (i386_store_fpxregset): Constify.
2452 (target_regsets): Add new kind identifier.
2453 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2454 (i386_set_pc): Add debugging.
2455 (i386_breakpoint_at): New function.
2456 (the_low_target): Add new members.
2457 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
2458 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2459 (mips_breakpoint_at): New.
2460 (the_low_target): Add new members.
2461 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2462 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2463 (the_low_target): Add new members.
2464 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
2465 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2466 (the_low_target): Add new members.
2467 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
2470 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2472 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2473 (unwind_tmp_obstack_free, parse_frame_info)
2474 (update_context, cfi_read_fp, cfi_write_fp)
2475 (cfi_frame_chain, cfi_init_extra_frame_info)
2476 (cfi_virtual_frame_pointer): Use the above function.
2477 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
2479 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
2481 * v850-tdep.c (v850_type_is_scalar): New function.
2482 (v850_use_struct_convention): Match current gcc implementation
2483 as close as possible.
2484 (v850_push_arguments): Fix stack_offset handling. Don't write
2485 struct_addr into register. This is done by v850_store_struct_return.
2486 (v850_extract_return_value): Care for structs.
2487 (v850_store_return_value): Ditto.
2488 (v850_store_struct_return): Actually write address.
2490 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2492 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2493 without debug information too.
2495 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2497 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2498 Make multi-arch pure.
2499 * gdbarch.h, gdbarch.c: Re-generate.
2500 * arm-tdep.c (arm_print_float_info): Update.
2501 * arch-utils.h (default_print_float_info): Update.
2502 * arch-utils.c (default_print_float_info): Update.
2503 * infcmd.c (float_info): Update call.
2505 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2507 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2508 the front of the initialize list.
2510 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2512 * infrun.c (struct inferior_status): Replace fields
2513 selected_frame_address and selected_level with field
2515 (save_inferior_status): Update. Use get_frame_id.
2516 (struct restore_selected_frame_args): Delete.
2517 (restore_selected_frame): Update. Use frame_find_by_id.
2518 (restore_inferior_status): Update.
2520 * breakpoint.h (struct breakpoint): Change type of
2521 watchpoint_frame to frame_id.
2522 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2523 call to get_current_frame.
2524 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2526 (watchpoint_check): Use frame_find_by_id.
2528 * frame.h (record_selected_frame): Delete declaration.
2529 * stack.c (record_selected_frame): Delete function.
2531 * frame.h (struct frame_id): Define.
2532 (get_frame_id): Declare.
2533 (frame_find_by_id): Declare.
2534 * frame.c (frame_find_by_id): New function.
2535 (get_frame_id): New function.
2537 2002-06-10 Andrey Volkov <avolkov@transas.com>
2539 * ser-e7kpc.c: Fix duplicated define and call of
2540 _initialize_ser_e7000pc
2542 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2544 * signals/signals.c (target_signal_from_host): Fix #ifdef
2546 (do_target_signal_to_host): Likewise.
2548 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2550 * mips-tdep.c (mips_find_abi_section): New function.
2551 (mips_gdbarch_init): Call it.
2553 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2555 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2556 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2557 after Andrew's 2002-06-08 gdbarch change.
2559 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2561 * i386-linux-nat.c (suppy_gregset): Don't supply
2562 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2564 (fill_gregset): Don't fetch it under the same circumstances.
2566 2002-06-09 Andrew Cagney <cagney@redhat.com>
2568 * Makefile.in (callback_h): Define.
2569 (remote_sim_h): Update path to remote-sim.h.
2570 (remote-rdp.o): Add $(callback_h).
2571 (remote-sim.o): Use $(callback_h).
2572 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2573 * remote-rdp.c: Include "gdb/callback.h".
2575 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2577 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2578 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2580 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2582 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2583 * rdi-share/serpardr.c: Ditto.
2584 * rdi-share/unixcomm.c: Ditto.
2585 * rdi-share/serdrv.c: Ditto.
2586 * rdi-share/hostchan.h: Ditto.
2587 * rdi-share/hostchan.c: Ditto.
2588 * rdi-share/host.h: Ditto.
2589 * rdi-share/devsw.c: Ditto.
2591 * objfiles.h: Change type of obj_private to void pointer.
2592 * pa64solib.c: Update copyright. Don't include "assert.h", use
2593 strcmp instead of STREQ, use LONGEST, do not use PTR
2594 * somsolib.c: Ditto.
2596 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2597 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2598 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2600 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2602 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2603 (default_get_saved_register): Delete function.
2604 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2605 generic_unwind_get_saved_register.
2606 * gdbarch.h, gdbarch.c: Re-generate.
2608 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2610 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2611 generic_func_frame_chain_valid.
2612 * gdbarch.h, gdbarch.c: Re-generate.
2613 * blockframe.c (generic_func_frame_chain_valid): Only check
2614 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2615 passing FP to PC_IN_CALL_DUMMY.
2618 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2620 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2621 (register_gdbarch_data): Initialize init_p.
2622 (gdbarch_data): Initialize data pointer using the init function.
2623 (init_gdbarch_data): Delete function.
2624 (gdbarch_update_p): Update.
2625 (initialize_non_multiarch): Update.
2626 (struct gdbarch): Add field initialized_p.
2627 * gdbarch.h, gdbarch.c: Re-generate.
2629 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2631 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2632 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2633 better do the things actually here.
2634 * x86-64-tdep.c (x86_64_register_name2nr): New.
2635 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2636 (x86_64_gdbarch_init): Respect the above change.
2637 * x86-64-tdep.h (x86_64_register_name2nr)
2638 (x86_64_register_nr2name): Add prototypes.
2639 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2641 2002-06-06 Michael Snyder <msnyder@redhat.com>
2643 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2644 Delete extra braces and re-indent.
2645 (d10v_store_return_value): Char return values
2646 must be shifted over by one byte in R0.
2647 (d10v_extract_return_value): Delete extra braces, re-indent.
2649 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2651 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2652 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2653 (d10v_integer_to_address): Rewrite.
2654 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2655 the d10v specific functions which take care of converting to the
2658 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2660 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2661 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2663 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2665 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2667 * config/tm-linux.h: Ditto.
2668 * config/alpha/tm-alphalinux.h: Ditto.
2669 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2670 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2671 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2672 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2673 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2674 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2675 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2676 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2677 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2678 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2679 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2680 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2681 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2682 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2683 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2684 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2685 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2686 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2687 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2688 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2689 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2690 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2691 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2692 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2693 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2694 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2695 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2696 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2697 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2698 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2699 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2700 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2701 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2702 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2703 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2704 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2705 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2707 2002-05-04 Aidan Skinner <aidan@velvet.net>
2709 * ada-exp.tab.c: New file
2710 * ada-exp.y: New file
2711 * ada-lang.c: New file
2712 * ada-lang.h: New file
2713 * ada-lex.c: New file
2714 * ada-lex.l: New file
2715 * ada-tasks.c: New file
2716 * ada-typeprint.c: New file
2717 * ada-valprint.c: New file
2719 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2721 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2722 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2724 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2726 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2727 insetead of ppc-linux-tdep.o.
2728 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2729 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2731 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2733 2002-05-07 Christian Groessler <chris@groessler.org>
2734 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2735 bit register contents for little endian hosts.
2737 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2739 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2742 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2744 * gdbarch.h: Regenerate.
2746 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2748 * MAINTAINERS: Add everyone to write-after-approval list.
2750 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2752 * stack.c (frame_info): Use frame_register_unwind instead of
2753 saved_regs. Mention when the SP is on the stack or in a register.
2755 * frame.h (frame_register_unwind_ftype): Define. Document.
2756 (struct frame_info): Add field register_unwind and
2757 register_unwind_cache.
2758 (frame_register_unwind): Declare.
2759 (generic_unwind_get_saved_register): Declare.
2761 * frame.c (frame_register_unwind): New function.
2762 (generic_unwind_get_saved_register): New function.
2764 * blockframe.c (generic_call_dummy_register_unwind): New function.
2765 (frame_saved_regs_register_unwind): New function.
2766 (set_unwind_by_pc): New function.
2767 (create_new_frame): New function.
2768 (get_prev_frame): New function.
2770 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2772 * a29k-share/: Delete directory.
2773 * remote-vx29k.c: Delete file.
2775 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2777 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2778 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2780 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2782 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2783 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2786 (sparcnbsd-tdep.o): New dependency lists.
2787 * NEWS: Note new UltraSPARC NetBSD native configuration.
2788 * configure.host (sparc64-*-netbsd*): New host.
2789 * configure.tgt (sparc-*-netbsdelf*)
2790 (sparc-*-netbsd*): Set gdb_target to nbsd.
2791 (sparc64-*-netbsd*): New target.
2792 * sparc64nbsd-nat.c: New file.
2793 * sparcnbsd-nat.c: New file.
2794 * sparcnbsd-tdep.c: New file.
2795 * sparcnbsd-tdep.h: New file.
2796 * config/sparc/nbsd.mt: New file.
2797 * config/sparc/nbsd64.mh: New file.
2798 * config/sparc/nbsd64.mt: New file.
2799 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2800 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2802 * config/sparc/nbsdaout.mt: Remove.
2803 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2804 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2806 * config/sparc/nbsdelf.mt: Remove.
2807 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2808 sparc-nat.c compatiblity defines.
2809 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2810 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2811 * config/sparc/tm-nbsd64.h: New file.
2812 * config/sparc/tm-nbsdaout.h: Remove.
2813 * config/sparc/xm-nbsd.h: Remove.
2815 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2817 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2818 * sparc-tdep.c: Include osabi.h.
2819 (gdbarch_tdep): Add osabi member.
2820 (_initialize_sparc_tdep): Use gdbarch_register.
2821 (sparc_gdbarch_init): Use generic OS ABI framework.
2822 (sparc_dump_tdep): New function.
2824 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2826 * corefile.c (do_captured_read_memory_integer): Return non-zero
2828 (safe_read_memory_integer): Copy result of memory read when
2829 status is non-zero. Also, add comments.
2831 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2833 * Makefile.in (ppc_tdep_h): Define.
2836 (rs6000-tdep.o): Use $(ppc_tdep_h).
2839 (ppcnbsd-tdep.o): New dependency lists.
2840 * ppc-tdep.h: Use generic OS ABI framework.
2841 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2842 (ppc_linux_init_abi): New functions.
2843 (ppc_sysv_abi_broken_use_struct_convention)
2844 (ppc_sysv_abi_use_struct_convention)
2845 (ppc_sysv_abi_push_arguments): Move to...
2846 * ppc-sysv-tdep.c: ...here.
2847 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2848 * rs6000-tdep.c (process_note_abi_tag_sections)
2849 (get_elfosabi): Remove.
2850 (rs6000_gdbarch_init): Use generic OS ABI framework.
2851 (rs6000_dump_tdep): New function.
2852 (_initialize_rs6000_tdep): Use gdbarch_register.
2853 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2854 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2855 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2856 of ppc-linux-tdep.o.
2857 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2858 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2859 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2860 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2861 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2862 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2864 2002-05-29 Jim Blandy <jimb@redhat.com>
2866 * macroscope.c (default_macro_scope): Put `void' in empty argument
2869 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2871 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2872 * arch-utils.c: Include "sim-regno.h".
2873 * gdbarch.sh: Don't include "sim-regno.h".
2874 * gdbarch.h, gdbarch.c: Regenerate.
2875 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2877 * arch-utils.h (legacy_register_sim_regno): To here.
2878 * remote-sim.c (legacy_register_sim_regno): Move function from
2880 * arch-utils.c (legacy_register_sim_regno): To here.
2882 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2884 * sim-regno.h: New file.
2885 * Makefile.in (sim_regno_h): Define.
2886 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2887 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2888 (legacy_register_sim_regno): New function.
2889 (one2one_register_sim_regno): New function.
2890 (gdbsim_fetch_register): Rewrite.
2891 (gdbsim_store_register): Only store a register when
2892 REGISTER_SIM_REGNO is valid.
2893 * d10v-tdep.c: Include "sim-regno.h".
2894 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2895 (d10v_ts3_register_sim_regno): Ditto.
2896 * gdbarch.sh: Include "sim-regno.h".
2897 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2898 * gdbarch.h, gdbarch.c: Regenerate.
2899 * arch-utils.h (default_register_sim_regno): Delete declaration.
2900 * arch-utils.c (default_register_sim_regno): Delete function.
2902 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2904 * ppcnbsd-nat.c: Rewrite.
2905 * ppcnbsd-tdep.c: New file.
2906 * ppcnbsd-tdep.h: New file.
2907 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2908 solib.o, and solib-svr4.o.
2909 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2910 nbsd-tdep.o, and corelow.o.
2912 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2914 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2915 `tr' and `sed'. Mention that `broken' targets are not expected to
2918 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2920 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2921 Let PC point right after the prologue before looking up symbols.
2923 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2925 * i386-tdep.c (i386_register_virtual_type): Return
2926 builtin_type_vec128i for SSE registers.
2928 * gdbtypes.h (builtin_type_vec128i): Declare.
2930 * gdbtypes.c (build_builtin_type_vec128i): New function.
2931 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2932 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2933 (build_gdbtypes): Initialize new builtin vector types.
2934 (_initialize_gdbtypes): Register new vector types with gdbarch.
2936 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2938 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2939 since it has been multi-arch'd.
2940 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2941 Move Alpha and VAX multi-arch news entries to same section
2942 as other multi-arch news.
2944 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2946 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2947 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2948 static. Rename some register numbers to put them in ns32k-tdep
2950 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2951 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2953 (_initialize_ns32k_tdep): Use gdbarch_register.
2954 * ns32k-tdep.h: New file.
2955 * ns32knbsd-tdep.c: New file.
2956 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2957 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2958 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2959 REGISTER_BYTES, REGISTER_BYTE): Remove.
2960 * config/ns32k/tm-ns32k.h: New file.
2961 * config/ns32k/tm-umax.h: Remove.
2963 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2965 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2966 ns32k_store_struct_return, ns32k_extract_return_value,
2967 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2969 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2970 ns32k_saved_pc_after_call.
2971 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2972 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2973 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2974 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2975 ns32k_extract_struct_value_address.
2977 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2979 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2980 ns32k_fix_call_dummy): New.
2981 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2982 ns32k_call_dummy_words.
2983 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2984 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2985 CALL_DUMMY_NARGS): Remove.
2986 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2988 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2990 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2991 ns32k_frame_saved_pc, ns32k_frame_args_address,
2992 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2993 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2994 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2995 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2996 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2997 (BREAKPOINT): Remove..
2998 (FRAME_CHAIN): Define as ns32k_frame_chain.
2999 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3000 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3001 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3002 (FRAME_FIND_SAVED_REGS): Remove.
3003 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3004 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3005 (POP_FRAME): Define as ns32k_pop_frame.
3007 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3009 * ns32k-tdep.c (ns32k_register_byte_32082,
3010 ns32k_register_byte_32382, ns32k_register_raw_size,
3011 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3013 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3014 ns32k_register_byte_32382.
3015 * config/ns32k/tm-umax.h: Update copyright years.
3016 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3017 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3018 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3019 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3020 (ns32k_get_enter_addr): Fix prototype.
3022 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3024 * ns32k-tdep.c: Update copyright years.
3025 (ns32k_register_name_32082): New function.
3026 (ns32k_register_name_32382): Ditto.
3027 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3028 (REGISTER_NAME): Define as ns32k_register_name_32382.
3029 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3030 (REGISTER_NAME): Define as ns32k_register_name_32082.
3032 2002-05-24 Jim Blandy <jimb@redhat.com>
3034 * dwarf2read.c (free_line_header): Use xfree, not free.
3036 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3038 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3039 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3041 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3043 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3045 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3047 From Ross Alexander at NEC Europe:
3048 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3050 2002-05-23 Michael Snyder <msnyder@redhat.com>
3052 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3053 for input, rather than parse_and_eval_address.
3055 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3057 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3058 * Makefile.in (sim_d10v_h): Update definition.
3060 2002-05-24 Andrew Cagney <cagney@redhat.com>
3062 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3063 change `2002-05-22 Michael Snyder' below.
3064 (d10v_push_arguments): Ditto.
3065 (d10v_extract_return_value): Ditto.
3067 2002-05-23 Jim Blandy <jimb@redhat.com>
3069 * macrotab.c (check_for_redefinition): Don't complain if the new
3070 definition is the same as the previous one. Take more arguments
3071 to allow the comparison.
3072 (macro_define_object, macro_define_function): Pass more arguments
3073 to check_for_redefinition.
3075 2002-05-22 Michael Snyder <msnyder@redhat.com>
3077 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3078 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3079 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3080 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3081 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3082 Add a temp variable to save a call (and a memory read).
3083 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3084 if possible (so that PC_IN_CALL_DUMMY will work).
3086 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
3088 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3090 2002-05-22 Michal Ludvig <mludvig@suse.cz>
3092 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3094 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3095 (dwarf2_build_frame_info): Add offset to fde->initial_location
3096 so that frames of shared libraries are mapped correctly.
3097 (execute_stack_op): Change type of 'result' from ULONGEST to
3100 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3102 * config/alpha/tm-nbsd.h: Include solib.h.
3104 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3106 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3107 assumptions about the host's byte order.
3109 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3111 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3113 * alphanbsd-tdep.c: Include solib-svr4.h.
3114 * shnbsd-tdep.c: Ditto.
3116 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3118 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3119 nbsd-tdep.h to dependency list.
3120 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3121 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3122 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3123 nbsdaout.mh and nbsdelf.mh consistently.
3124 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3125 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3126 nbsdaout.mt and nbsdelf.mh consistently.
3127 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3128 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3129 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3130 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3131 a.out shared library stuff from here...
3132 * config/nm-nbsdaout.h: ...to here.
3133 * config/tm-nbsd.h: Remove.
3134 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3135 * config/arm/nbsd.mh: Remove.
3136 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3138 * config/arm/nbsdaout.mh: New file.
3139 * config/arm/nbsdelf.mh: New file.
3140 * config/arm/nm-nbsdaout.h: New file.
3141 * config/i386/nbsd.mh: Remove.
3142 * config/i386/nbsd.mt: Remove.
3143 * config/i386/nbsdaout.mh: New file.
3144 * config/i386/nbsdaout.mt: New file.
3145 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3146 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3147 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3148 i386_register_u_addr): Remove.
3149 * config/i386/nm-nbsdaout.h: New file.
3150 * config/i386/nm-nbsdelf.h: Remove.
3151 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3152 (USE_STRUCT_CONVENTION): Remove.
3153 * config/i386/tm-nbsdaout.h: New file.
3154 * config/i386/tm-nbsdelf.h: Remove.
3155 * config/m68k/nbsd.mh: Remove.
3156 * config/m68k/nbsd.mt: Remove.
3157 * config/m68k/nbsdaout.mh: New file.
3158 * config/m68k/nbsdaout.mt: New file.
3159 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3160 * config/m68k/nm-nbsdaout.h: New file.
3161 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3162 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3163 * config/ns32k/nbsd.mh: Remove.
3164 * config/ns32k/nbsd.mt: Remove.
3165 * config/ns32k/nbsdaout.mh: New file.
3166 * config/ns32k/nbsdaout.mt: New file.
3167 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3168 * config/ns32k/nm-nbsdaout.h: New file.
3169 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3170 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3171 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3172 (SVR4_SHARED_LIBS): Remove.
3173 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3174 * config/sparc/nbsd.mh: Remove.
3175 * config/sparc/nbsd.mt: Remove.
3176 * config/sparc/nbsdaout.mh: New file.
3177 * config/sparc/nbsdaout.mt: New file.
3178 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3179 * config/sparc/nbsdelf.mt: New file.
3180 * config/sparc/nm-nbsdaout.h: New file.
3181 * config/sparc/nm-nbsdelf.h: Remove.
3182 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3183 * config/sparc/tm-nbsdaout.h: New file.
3185 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3187 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3189 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3191 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3193 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3195 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3197 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3199 * NEWS: Note new MIPS NetBSD native configuration.
3200 * configure.host (mips*-*-netbsd*): New host.
3201 * configure.tgt (mips*-*-netbsd*): New target.
3202 * mipsnbsd-nat.c: New file.
3203 * mipsnbsd-tdep.c: New file.
3204 * mipsnbsd-tdep.h: New file.
3205 * config/mips/nbsd.mh: New file.
3206 * config/mips/nbsd.mt: New file.
3207 * config/mips/nm-nbsd.h: New file.
3208 * config/mips/tm-nbsd.h: New file.
3210 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3212 * Makefile.in (SFILES): Add osabi.c.
3213 (COMMON_OBS): Add osabi.o.
3214 (osabi.o): New dependency list.
3215 * osabi.c: New file.
3216 * osabi.h: New file.
3217 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3219 * Makefile.in (alpha_tdep_h): Define and use instead of
3221 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3222 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3224 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3225 * alpha-tdep.h: Include osabi.h.
3226 (alpha_abi): Remove.
3227 (gdbarch_tdep): Use generic OS ABI framework.
3228 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3229 gdbarch_register_osabi.
3230 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3231 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3232 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3234 * Makefile.in (sh_tdep_h): Add osabi.h.
3235 * sh-tdep.h (sh_osabi): Remove.
3236 (gdbarch_tdep): Use generic OS ABI framework.
3237 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3238 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3239 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3240 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3242 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3243 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3244 gdbarch_register_osabi.
3245 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3246 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3247 (get_elfosabi): Rename to...
3248 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3249 ABI framework support routines.
3250 (arm_gdbarch_init): Use generic OS ABI framework.
3251 (arm_dump_tdep): Likewise.
3252 (_initialize_arm_tdep): Likewise.
3253 * arm-tdep.h: Include osabi.h.
3255 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3257 (arm_gdbarch_register_os_abi): Remove prototype.
3258 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3259 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3261 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3262 * mips-tdep.c: Include osabi.h.
3263 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3266 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3268 * h8300-tdep.c: Fix formatting.
3270 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3272 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3273 printing vector registers.
3275 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3277 From Fernando Nasser:
3278 * remote.c (remote_async_open_1): Re-throw the exception when the
3280 (remote_cisco_open): Ditto.
3281 (remote_open_1): Ditto.
3283 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3285 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3286 (remote_start_remote): Add uiout parameter. Pass through to
3287 remote_start_remote_dummy.
3288 (remote_open_1): Use catch_exception instead of catch_errors.
3289 (remote_async_open_1): Ditto.
3290 (remote_cisco_open): Ditto.
3292 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3294 * remote.c (remote_start_remote): Replace PTR with void pointer.
3295 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3298 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3300 * gdb_indent.sh: Allow the script to be run in the sim directory.
3302 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3304 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3305 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3307 * corelow.c (core_open): Only call set_gdbarch_from_file if
3310 2002-05-17 Andrey Volkov <avolkov@transas.com>
3312 * h8300-tdep.c: Add support of EXR register
3313 * config/h8300/tm-h8300.h: Ditto.
3315 2002-05-17 Andrey Volkov <avolkov@transas.com>
3317 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3319 2002-05-17 Andrey Volkov <avolkov@transas.com>
3321 * h8300-tdep.c: Change literal regnums to REGNO.
3323 2002-05-17 Jim Blandy <jimb@redhat.com>
3325 * NEWS: Note addition of macro support.
3327 Expand preprocessor macros in C expressions.
3328 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3329 (scan_macro_expansion, scanning_macro_expansion,
3330 finished_macro_expansion): New function declarations.
3331 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3332 variable declarations.
3333 * parser-defs.h (expression_context_pc): New declaration.
3334 * parse.c (expression_context_pc): New variable.
3335 (parse_exp_1): Set expression_context_pc, as well as
3336 expression_context_block.
3337 * c-exp.y (yylex): If we're not already reading the result of a
3338 macro expansion, try to macro-expand the next token. When we're
3339 done scanning a macro expansion, switch back to the mainline text.
3340 Commas and `if's in a macro's expansion don't terminate the input.
3341 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3342 (macro_original_text, macro_expanded_text,
3343 expression_macro_lookup_func, expression_macro_lookup_baton): New
3345 (scan_macro_expansion, scanning_macro_expansion,
3346 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3347 c_preprocess_and_parse): New functions.
3348 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3349 c_preprocess_and_parse, instead of c_parse.
3350 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3351 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3353 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3355 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3356 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3357 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3359 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
3361 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3363 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3365 * Makefile.in (sh_tdep_h): Define and use.
3366 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3367 register enum): Move to...
3368 * * sh-tdep.h: ...here.
3369 * sh-tdep.c: Include sh-tdep.h.
3370 * sh3-rom.c: Likewise.
3371 * shnbsd-tdep.c: Likewise.
3373 2002-05-16 Michael Snyder <msnyder@redhat.com>
3375 * arm-tdep.c: Spelling fix in comment.
3377 2002-05-16 Jim Blandy <jimb@redhat.com>
3379 Add commands for manually expanding macros and showing their
3381 * macrocmd.c, macroscope.c, macroscope.h: New files.
3382 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
3383 (macroscope_h): New variable.
3384 (HFILES_NO_SRCDIR): Add macroscope.h.
3385 (COMMON_OBS): Add macrocmd.o, macroscope.o.
3386 (macroscope.o, macrocmd.o): New rules.
3388 Teach the Dwarf 2 reader to read macro information.
3389 * dwarf2read.c: #include "macrotab.h".
3390 (dwarf_macinfo_buffer): New variable.
3391 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
3393 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
3394 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
3395 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
3396 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
3397 dwarf2_macro_spaces_in_definition): New complaints.
3398 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
3399 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
3400 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
3401 the partial symbol table.
3402 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
3403 from what's recorded in the partial symbol table.
3404 (read_file_scope): If the compilation unit has a
3405 `DW_AT_macro_info' attribute, read its macro information.
3406 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
3408 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3411 * ser-tcp.c: Don't include <netinet/udp.h>.
3413 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
3415 * MAINTAINERS: Update my email address.
3417 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
3419 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
3420 include file of the same name.
3422 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3424 * configure.tgt: Mark v850 as multi-arched.
3425 * config/v850/tm-v850.h: Remove file.
3426 * config/v850/v850.mt: Eliminate TM_FILE.
3428 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3430 * v850-tdep.c: Full multi-arch.
3431 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
3432 Define GDB_MULTI_ARCH to 2.
3434 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
3436 * p-exp.y (current_type): New static variable.
3437 Carries the type of the expression at the position that is parsed.
3438 (push_current_type, pop_current_type): Two new functions. Used
3439 to store/restore current_type in expression on specific tokens.
3440 (search_field): New static variable. Set to one after parsing a point
3441 as at that point only a FIELDNAME token should be searched.
3442 (FIELDNAME): New token. After a point only a token belonging to
3443 current_type type definition is allowed.
3444 (all over token rules): reset and change current_type according
3446 (exp '[' rule): insert implicit array index field if
3447 exp is a pascal string type.
3449 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3451 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
3452 frame info. Use frame_info's saved_regs instead of matching member
3453 in extra_frame_info throughout.
3454 (v850_frame_init_saved_regs): New function.
3455 (v850_init_extra_frame_info): Move most functionality into
3456 v850_frame_init_saved_regs().
3457 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
3458 (v850_frame_find_saved_regs): Remove declaration.
3459 (FRAME_FIND_SAVED_REGS): Remove definition.
3460 (v850_frame_init_saved_regs): Add declaration.
3461 (FRAME_INIT_SAVED_REGS): Add definition.
3463 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3465 * v850-tdep.c: Begin multi-arch'ing v850.
3466 (v850_target_architecture_hook): Remove function.
3467 (v850_gdbarch_init): New function. Add code previously in
3468 v850_target_architecture_hook().
3469 (_initialize_v850_tdep): Don't set target_architecture_hook.
3470 Call register_gdbarch_init() instead.
3472 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3474 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3475 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3476 (fixup_class_method_type): Likewise.
3478 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3480 From Martin Pool <mbp@samba.org>:
3481 * gdbserver/server.c (gdbserver_usage): New function.
3484 2002-05-15 Jim Blandy <jimb@redhat.com>
3486 Add macro structures to GDB's symbol tables. Nobody puts anything
3488 * symtab.h (struct symtab): New member: `macro_table'.
3489 * buildsym.h (pending_macros): New global variable.
3490 * buildsym.c: #include "macrotab.h".
3491 (buildsym_init): Initialize `pending_macros'.
3492 (end_symtab): If we found macro information while reading a CU's
3493 debugging info, do build a symtab structure for it. Make the
3494 symtab point to the macro information, and clear the
3495 `pending_macros' pointer which held it while we were reading the
3497 (really_free_pendings): Free any pending macro table.
3498 * objfiles.h (struct objfile): New member: `macro_cache'.
3499 * objfiles.c (allocate_objfile): Set allocate and free functions
3500 for the macro cache's objstack.
3501 (free_objfile): Empty the macro cache's obstack.
3502 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3503 set new allocate and free functions for it.
3504 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3505 free functions for the macro cache's objstack. (Why is this
3506 function building its own objfile?)
3507 * symmisc.c (print_objfile_statistics): Print statistics on the
3509 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3511 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3513 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3514 (REGISTER_U_ADDR): Delete definition.
3515 (arm_register_u_addr): Delete declaration.
3517 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3519 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3520 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3522 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3524 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3527 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3529 * regcache.c (register_valid): Revise comments refering to "Not
3530 available" and "unavailable".
3531 * frame.c (frame_register_read): Ditto.
3532 * findvar.c (value_of_register): Ditto.
3534 2002-05-15 Andrew Cagney <cagney@redhat.com>
3536 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3537 (remote-sim.o): Update dependencies.
3538 (d10v-tdep.o): Specify dependencies.
3539 (sim_d10v_h): Define.
3541 2002-05-14 Jim Blandy <jimb@redhat.com>
3543 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3544 * macrotab.c (macro_lookup_inclusion, find_definition,
3545 new_macro_table): Same.
3547 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3548 not `! strcmp ()'. This is a dubious improvement.
3549 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3551 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3552 although it's not necessary, to avoid a warning.
3554 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3556 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3557 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3558 TYPE_INSTANCE_FLAGS.
3559 (struct main_type): New.
3560 (struct type): Move most members to struct main_type. Change
3561 cv_type and as_type to new type_chain member. Add instance_flags.
3562 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3563 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3564 (finish_cv_type): Remove prototype.
3565 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3567 (alloc_type_instance): New function.
3568 (smash_type): New function.
3569 (make_pointer_type, make_reference_type, make_function_type)
3570 (smash_to_member_type, smash_to_method_type): Call smash_type.
3571 (make_qualified_type): New function.
3572 (make_type_with_address_space): Call make_qualified_type.
3573 (make_cv_type): Likewise.
3574 (finish_cv_type): Remove unnecessary function.
3575 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3576 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3577 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3578 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3579 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3580 * hpread.c (hpread_read_struct_type): Likewise.
3581 * stabsread.c (read_struct_type): Likewise.
3583 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3585 * configure.tgt: Add a catch all sh* target, for cases like
3586 sh[2,3,4]-elf and sh-hms.
3588 2002-05-14 Keith Seitz <keiths@redhat.com>
3590 * event-loop.c (create_file_handler): Don't do anything but
3591 update data when we are given a fd which we are already
3594 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3596 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3597 (update_context): Use __func__ in warnings.
3599 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3601 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3602 and tcp_close to net_open and net_close.
3603 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3604 using UDP if requested. Don't try to disable Nagle on UDP
3606 * remote.c (remote_serial_open): New function. Warn about UDP.
3607 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3609 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3611 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3613 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3615 * configure.tgt: Remove sh-hms target.
3616 * MAINTAINERS: Don't list sh-hms as a separate target.
3618 2002-05-13 Jim Blandy <jimb@redhat.com>
3620 Add first preprocessor macro-expansion files.
3621 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3622 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3623 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3624 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3625 (COMMON_OBS): Add macrotab.o, macroexp.o.
3626 (macroexp.o, macrotab.o): New rules.
3628 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3630 * config/m88k/tm-m88k.h: Update copyright.
3631 (m88k_target_write_pc): Declare
3632 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3633 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3634 (SHIFT_INST_REGS): Update definition.
3635 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3636 using old definition of TARGET_WRITE_PC.
3637 * regcache.c (generic_target_write_pc): Delete code handling
3639 * gdbarch.sh (NNPC_REGNUM): Delete.
3640 * gdbarch.h, gdbarch.c: Regenerate.
3642 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3644 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3647 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3649 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3650 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3651 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3653 * c-typeprint.c (cp_type_print_method_args): Likewise.
3654 (c_type_print_args): Likewise.
3655 * d10v-tdep.c (d10v_push_arguments): Likewise.
3656 (d10v_extract_return_value): Likewise.
3657 * expprint.c (print_subexp): Likewise.
3658 * gdbtypes.c (lookup_primitive_typename): Likewise.
3659 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3660 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3661 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3662 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3663 (TYPE_VECTOR): Likewise.
3664 * hpread.c (hpread_read_struct_type)
3665 (fix_static_member_physnames, fixup_class_method_type)
3666 (hpread_type_lookup): Likewise.
3667 * mdebugread.c (parse_symbol, parse_type): Likewise.
3668 * p-lang.c (is_pascal_string_type): Likewise.
3669 * valops.c (hand_function_call): Likewise.
3670 * x86-64-tdep.c (classify_argument): Likewise.
3672 * hpread.c (hpread_read_function_type)
3673 (hpread_read_doc_function_type): Call replace_type.
3674 * dstread.c (create_new_type): Delete.
3675 (decode_dst_structure, process_dst_function): Call alloc_type.
3676 Use type access macros.
3678 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3680 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3681 the're not supported by the current architecture.
3682 (i387_fill_fxsave): Likewise.
3684 2002-05-12 Fred Fish <fnf@redhat.com>
3686 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3687 sect_index_xxx members to index the first slot in section_offsets
3688 if all of the section_offsets are zero.
3690 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3692 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3693 checked in with last change.
3695 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3697 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3698 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3701 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3703 * Makefile.in: Update dependencies.
3705 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3707 * language.c (local_hex_string_custom): Simplify. Do not depend
3708 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3710 * memattr.c (mem_info_command): Replace calls to
3711 longest_local_hex_string and longest_local_hex_string_custom.
3712 * buildsym.c (make_blockvector): Ditto.
3713 * solib.c (info_sharedlibrary_command): Ditto.
3714 * tracepoint.c (tracepoints_info): Ditto.
3715 * symtab.c (print_msymbol_info): Ditto.
3717 * language.c (local_hex_string): Delete.
3718 (local_hex_string_custom): Delete.
3719 (longest_local_hex_string): Rename to local_hex_string.
3720 (longest_local_hex_string_custom): Rename to
3721 local_hex_string_custom.
3722 * language.h (local_hex_string): Change parameter type to LONGEST.
3723 (local_hex_string_custom): Ditto.
3724 (longest_local_hex_string): Delete declaration.
3725 (longest_local_hex_string_custom): Ditto.
3727 * solib.c: Update copyright.
3728 * memattr.c: Update copyright.
3730 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3732 * arch-utils.h (legacy_register_to_value): Declare.
3733 (legacy_value_to_register): Declare.
3734 (legacy_convert_register_p): Declare.
3735 * arch-utils.c (legacy_register_to_value): New function.
3736 (legacy_value_to_register): New function.
3737 (legacy_convert_register_p): New function.
3739 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3740 (VALUE_TO_REGISTER): Define.
3741 (CONVERT_REGISTER_P): Define.
3742 * gdbarch.h, gdbarch.c: Regenerate.
3744 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3746 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3749 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3750 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3752 * Makefile.in: Update dependencies for valops.c.
3753 * valops.c: Include "gdb_assert.h".
3754 (typecmp): Skip THIS parameter to methods.
3755 (find_method_list): Remove static_memfuncp argument,
3756 update callers. Check for stub methods.
3757 (find_value_oload_method_list): Don't set *static_memfuncp.
3758 (find_overload_match): Don't check for stub methods. Assert
3759 that methods are not stubbed. Handle static methods.
3760 (value_find_oload_method_list): Remove static_memfuncp argument.
3761 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3762 to the argument list for static stub methods.
3763 * value.h (value_find_oload_method_list): Update prototype.
3765 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3767 * arch-utils.h (generic_register_size): Declare.
3768 (generic_register_raw_size, generic_register_virtual_size): Delete
3770 * arch-utils.c (generic_register_raw_size): Delete.
3771 (generic_register_size): New function.
3772 (generic_register_virtual_size): Delete.
3774 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3775 default generic_register_size.
3776 * gdbarch.h, gdbarch.c: Re-generate.
3778 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3779 register_virtual_size.
3780 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3781 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3783 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3785 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3786 * gdbarch.h, gdbarch.c: Regenerate.
3787 * gnu-v3-abi.c: Update copyright.
3788 (vtable_address_point_offset): Update.
3789 (gnuv3_rtti_type): Update.
3790 (gnuv3_baseclass_offset): Update.
3791 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3792 (init_fetch_link_map_offsets): Update.
3793 * remote.c (get_remote_state): Update.
3795 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3797 * TODO: Remove value_headof/value_from_vtable_info comment.
3798 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3799 * values.c (value_headof, value_from_vtable_info): Delete.
3800 * value.h (value_from_vtable_info): Delete prototype.
3802 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3804 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3805 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3807 (gdb_assert_h): Define.
3808 (gdb_wait_h): Define.
3809 (gdb_regex_h): Define.
3811 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3813 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3814 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3816 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3818 * nbsd-tdep.c: Fix comment.
3820 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3822 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3823 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3824 (nbsd-tdep.o): New dependency list.
3825 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3827 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3828 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3829 * nbsd-tdep.c: New file.
3830 * nbsd-tdep.h: New file.
3831 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3833 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3834 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3835 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3836 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3838 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3840 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3841 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3842 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3843 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3844 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3845 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3847 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3849 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3850 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3851 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3852 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3853 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3854 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3855 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3857 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3859 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3860 fetch_elfcore_registers to...
3861 * i386nbsd-tdep.c: ...here.
3862 (i386nbsd_use_struct_convention): Rename to...
3863 (i386nbsd_aout_use_struct_convention): ...this.
3864 (i386nbsd_supply_reg): New function.
3865 (i386nbsd_fill_reg): New function.
3866 (fetch_core_registers): Use i386nbsd_supply_reg.
3867 (fetch_elfcore_registers): Likewise.
3868 (_initialize_i386nbsd_tdep): New function.
3869 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3870 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3871 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3872 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3873 (i386nbsd_aout_use_struct_convention): ...this.
3875 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3877 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3878 (store_inferior_registers): Use shnbsd_fill_reg.
3879 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3880 sh_nbsd_supply_register): Collapse into...
3881 (shnbsd_supply_reg): ...this.
3882 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3883 (shnbsd_fill_reg): ...this.
3884 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3885 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3886 (fetch_core_registers): Use shnbsd_supply_reg.
3887 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3888 (sh_nbsd_core_fns): Rename to...
3889 (shnbsd_core_fns): ...this.
3890 (sh_nbsd_elfcore_fns): Rename to...
3891 (shnbsd_elfcore_fns): ...this.
3892 (sh_nbsd_init_abi): Rename to...
3893 (shnbsd_init_abi): ...this.
3894 (_initialize_sh_nbsd_tdep): Rename to...
3895 (_initialize_shnbsd_tdep): ...this.
3896 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3897 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3898 sh_nbsd_fill_register): Remove prototypes.
3899 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3901 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3903 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3904 (i387-nat.o): Delete dependency list.
3905 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3906 (x86-64-linux-nat.o): Likewise.
3907 * i387-nat.c: Delete file, moving contents to...
3908 * i387-tdep.c: ...here.
3909 * i387-nat.h: Rename...
3910 * i387-tdep.h: ...to this.
3911 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3912 * i386-linux-nat.c: Likewise.
3913 * i386bsd-nat.c: Likewise.
3914 * i386gnu-nat.c: Likewise.
3915 * i386nbsd-nat.c: Likewise.
3916 * i386v4-nat.c: Likewise.
3917 * x86-64-linux-nat.c: Likewise.
3918 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3919 * config/i386/go32.mh (NATDEPFILES): Likewise.
3920 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3921 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3922 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3923 * config/i386/linux.mh (NATDEPFILES): Likewise.
3924 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3925 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3926 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3927 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3929 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3931 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3932 (alphanbsd-nat.o): Remove dependency list.
3933 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3934 * alphanbsd-nat.c: Delete. Contents moved to...
3935 * alphanbsd-tdep.c: ...here.
3936 (_initialize_alphanbsd_tdep): Register core functions.
3937 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3939 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3941 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3942 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3943 (alphanbsd-nat.o): Likewise.
3944 (alphabsd-tdep.o): New dependency list.
3945 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3946 (fill_gregset): Use alphabsd_fill_reg.
3947 (supply_fpregset): Use alphabsd_supply_fpreg.
3948 (fill_fpregset): Use alphabsd_fill_fpreg.
3949 (fetch_inferior_registers): Use struct reg and struct fpreg
3950 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3951 and alphabsd_supply_fpreg.
3952 (store_inferior_registers): Use struct reg and struct fpreg
3953 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3954 and alphabsd_fill_fpreg.
3955 * alphabsd-tdep.c: New file.
3956 * alphabsd-tdep.h: New file.
3957 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3958 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3959 alphabsd_supply_fpreg.
3960 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3961 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3963 2002-05-11 Eric Christopher <echristo@redhat.com>
3965 * mips-tdep.c (mips_double_register_type): Fix thinko.
3966 (mips_single_register_type): Ditto.
3967 * MAINTAINERS: Add self.
3969 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3971 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3972 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3973 right thing on architectures with different endianness and/or
3976 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3978 From Christian Limpach <chris@Pin.LU>
3979 * configure.in: Change sed expression which comments out
3980 NATDEPFILES to also comment out continuation lines.
3981 * configure: Regenerate.
3983 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3985 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3988 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3990 * sh-tdep.c: Include correct file.
3992 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3994 New support for sh64-elf (sh5) target.
3996 * configure.tgt: For sh64-elf target, default to sh-elf.
3998 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3999 (struct gdbarch_tdep): Add new fields for new registers and ABI
4002 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4003 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4004 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4005 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4006 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4007 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4008 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4009 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4010 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4011 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4012 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4013 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4014 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4015 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4016 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4017 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4018 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4019 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4020 sign_extend, sh64_nofp_frame_init_saved_regs,
4021 sh64_init_extra_frame_info, sh64_get_saved_register,
4022 sh64_extract_struct_value_address, sh64_pop_frame,
4023 sh64_push_arguments, sh64_extract_return_value,
4024 sh64_store_return_value, sh64_show_media_regs,
4025 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4026 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4027 sh_sh64_register_virtual_type,
4028 sh_sh64_register_convert_to_virtual,
4029 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4030 sh64_register_read, sh64_pseudo_register_write,
4031 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4032 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4033 sh64_do_pseudo_register, sh_compact_do_registers_info,
4034 sh64_do_registers_info, sh_gdbarch_init): New functions.
4036 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4038 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4040 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
4042 * linespec.c (decode_line_1): Check for a double quote after
4043 a filename correctly.
4045 2002-05-10 Jim Blandy <jimb@redhat.com>
4047 Properly track the size of the current objfile's .debug_line section.
4048 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4049 (DWARF_LINE_SIZE): New macro.
4050 (dwarf2_build_psymtabs_hard): Record the line section's size in
4051 the partial symbol table.
4052 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4055 2002-05-10 Petr Sorfa <petrs@caldera.com>
4057 * ia64-tdep.c: Handle breakpoints on L instruction type
4058 in MLX instruction bundle by moving the breakpoint to
4059 the third slot (X instruction type) as L holds only data.
4061 2002-05-10 Kevin Buettner <kevinb@redhat.com>
4063 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4064 (process_one_symbol): Complain about discarding local symbols
4065 due to a misplaced N_LBRAC entry.
4067 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
4069 From Daniel Berlin <dan@cgsoftware.com>
4070 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4071 decrease the depth we are at, in the case of templates.
4073 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4075 * mips-tdep.c (mips_float_register_type): New function.
4076 (mips_double_register_type): New function.
4077 (mips_print_register): Use them.
4078 (do_fp_register_row): Likewise.
4080 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4082 * signals/signals.c (signals): Remove conditional compilation around
4083 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
4084 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
4086 2002-05-09 Michael Snyder <msnyder@redhat.com>
4088 * remote-rdp.c (remote_rdp_can_run): Remove.
4090 2002-05-09 Tom Tromey <tromey@redhat.com>
4092 * jv-valprint.c (java_val_print): Handle `char' as a special case
4095 2002-05-09 Michael Snyder <msnyder@redhat.com>
4097 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4098 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
4099 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
4100 str r(0123),[sp,#nn].
4101 (arm_skip_prologue): Ditto. Also make disassembly
4102 order-independent by placing it in a loop.
4104 2002-05-06 Michael Snyder <msnyder@redhat.com>
4106 * stabsread.c (read_type): Add recognition for new attribute:
4107 "@V;" means that an array type is actually a vector.
4108 This is analogous to the vector flag that's been added to dwarf2.
4110 2002-05-09 Mark Kettenis <kettenis@gnu.org>
4112 * i386-tdep.h (i386_abi): New enum.
4113 (struct gdbarch_tdep): Replace os_ident member with abi.
4114 (i386_gdbarch_register_os_abi): New prototype.
4115 * i386-tdep.c (i386_abi_names): New array.
4116 (process_note_abi_tag_sections): Removed.
4117 (process_note_sections): New function.
4118 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4119 (struct i386_abi_handler): New struct.
4120 (i386_abi_handler_list): New variable.
4121 (i386_gdbarch_register_os_abi): New function.
4122 (i386_gdbarch_init): Adapt for the changes given above.
4124 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
4126 * gregset.h: Say "GNU/Linux".
4128 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
4130 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4131 (build_gdbtypes): Build builtin_type_v2_float.
4132 (_initialize_gdbtypes): Register new builtin type.
4134 2002-05-08 Andrew Cagney <ac131313@redhat.com>
4136 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4137 (clear_gdbarch_swap): New function.
4138 (initialize_non_multiarch): Call.
4139 (gdbarch_update_p): Before calling init(), swap out and clear the
4140 existing architecture.
4141 * gdbarch.c: Regenerate.
4143 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4145 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4148 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4150 * sh-nbsd-nat.c: Rename to...
4151 * shnbsd-nat.c: ...this.
4152 * sh-nbsd-tdep.c: Rename to...
4153 * shnbsd-tdep.c: ...this.
4154 * sh-nbsd-tdep.h: Rename to...
4155 * shnbsd-tdep.h: ...this.
4156 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4157 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4159 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
4161 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4162 concatenation for command help messages.
4164 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4166 * NEWS: Note new sh*-*-netbsdelf* configuration.
4167 * configure.host: Set gdb_host_cpu to sh for all sh*.
4168 (sh*-*-netbsdelf*): New host.
4169 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4170 (sh*-*-netbsdelf*): New target.
4171 * sh-nbsd-nat.c: New file.
4172 * sh-nbsd-tdep.c: New file.
4173 * sh-nbsd-tdep.h: New file.
4174 * config/sh/nbsd.mh: New file.
4175 * config/sh/nbsd.mt: New file.
4176 * config/sh/nm-nbsd.h: New file.
4177 * config/sh/tm-nbsd.h: New file.
4179 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4181 * sh-tdep.c (sh_osabi_names): Declare.
4182 (process_note_abi_tag_sections): New function.
4183 (get_elfosabi): Ditto.
4184 (sh_gdbarch_register_os_abi): Ditto.
4185 (sh_dump_tdep): Ditto.
4186 _initialize_sh_tdep): Use gdbarch_register to register
4187 sh_gdbarch_init and sh_dump_tdep.
4188 * config/sh/tm-sh.h (sh_osabi): Declare.
4189 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4191 2002-05-07 Andrew Cagney <ac131313@redhat.com>
4193 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4194 (thumb_scan_prologue): Ditto.
4195 (arm_find_callers_reg): Ditto.
4196 (arm_frame_chain): Ditto.
4197 (arm_init_extra_frame_info): Ditto.
4198 (arm_frame_saved_pc): Ditto.
4199 (arm_pop_frame): Ditto.
4200 (arm_push_return_address): New function.
4201 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4202 call_dummy_location, call_dummy_breakpoint_offset_p,
4203 call_dummy_breakpoint_offset, call_dummy_p,
4204 call_dummy_stack_adjust_p, call_dummy_words,
4205 sizeof_call_dummy_words, call_dummy_start_offset,
4206 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4207 call_dummy_address, push_return_address and push_dummy_frame for
4208 generic dummy frames.
4210 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4212 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4213 size computation for alloca.
4214 (sh_fp_frame_init_saved_regs): Likewise.
4216 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4218 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4219 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4220 * arm-tdep.c (arm_store_return_value): Use them.
4221 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4222 * remote-rdp.c (remote_rdp_fetch_register): Use
4223 ARM_MAX_REGISTER_RAW_SIZE.
4224 (remote_rdp_store_register): Likewise.
4226 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4228 * dwarf2cfi.c: Code cleanup, removed unused variables,
4229 added default labels to switch {} statements.
4230 * x86-64-tdep.c: Ditto.
4231 * x86-64-linux-nat.c: Ditto.
4233 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4235 * solib.h: Protect against multiple inclusion.
4237 2002-05-06 Jim Blandy <jimb@redhat.com>
4239 Add first preprocessor macro-expansion files.
4240 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4241 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4242 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4243 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4244 (COMMON_OBS): Add macrotab.o, macroexp.o.
4245 (macroexp.o, macrotab.o): New rules.
4247 Separate the job of reading the line number info statement program
4248 header (...expialidocious) out into its own function.
4249 * dwarf2read.c (struct line_head, struct filenames, struct
4250 directories): Replace with...
4251 (struct line_header): New structure, containing the full
4252 contents of the statement program header, including the
4253 include directory and file name tables.
4254 (read_file_scope): If we have line number info, instead of just
4255 calling dwarf_decode_lines to do all the work, call
4256 dwarf_decode_line_header first to get a `struct line_header'
4257 containing the data in the statement program header, and then
4258 pass that to dwarf_decode_lines, which will pick up where that
4259 left off. Be sure to clean up the `struct line_header' object.
4260 (dwarf_decode_line_header, free_line_header, add_include_dir,
4261 add_file_name): New functions.
4262 (dwarf_decode_lines): Move all the code to read the statement
4263 program header into dwarf_decode_line_header. Take the line
4264 header it built as the first argument, instead of the offset to
4265 the compilation unit's line number info. Use the new `struct
4266 line_header' type instead of the old structures. No need to do
4267 cleanups here now, since we don't allocate anything.
4268 (dwarf2_statement_list_fits_in_line_number_section,
4269 dwarf2_line_header_too_long): New complaints.
4271 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4273 * gdbtypes.c (init_vector_type): New function.
4274 (build_builtin_type_vec128): Simplify the representation of SIMD
4276 (build_gdbtypes): Initialize new builtin vector types.
4277 (_initialize_gdbtypes): Register new vector types with gdbarch.
4278 (builtin_type_v4_float, builtin_type_v4_int32,
4279 builtin_type_v8_int16, builtin_type_v16_int8,
4280 builtin_type_v2_int32, builtin_type_v4_int16,
4281 builtin_type_v8_int8): New (renamed) SIMD types.
4283 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4285 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4286 (i387_fill_fxsave): Likewise.
4288 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4290 * alpha-tdep.c (alpha_extract_return_value): Don't use
4291 non-constant array size in prototype.
4293 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4295 From Brian Taylor <briant at model dot com>:
4296 * ui-out.c (ui_out_field_core_addr): Use the function
4297 longest_local_hex_string_custom'to format addresses > 32 bits
4300 * ui-out.c (ui_out_field_core_addr): Update comment.
4302 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4304 * stack.c (select_and_print_frame): Make static. Delete the
4306 (func_command): Update call.
4307 (select_frame_command): Delete code computing the frame level.
4308 * frame.h (select_and_print_frame): Delete declaration.
4310 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4312 * sparc-tdep.c (sparc_get_saved_register): Comment why
4313 get_prev_frame call is safe.
4315 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4317 * frame.h (select_frame): Delete level parameter.
4318 * stack.c (select_frame): Update. Use frame_relative_level to
4319 obtain the frame's level.
4320 (select_and_print_frame): Update call.
4321 (select_frame_command): Ditto.
4322 (up_silently_base): Ditto.
4323 (down_silently_base): Ditto.
4324 * ocd.c (ocd_start_remote): Ditto.
4325 * remote-rdp.c (remote_rdp_open): Ditto.
4326 * remote-mips.c (mips_initialize): Ditto.
4327 (common_open): Ditto.
4328 * remote-e7000.c (e7000_start_remote): Ditto.
4329 * m3-nat.c (select_thread): Ditto.
4330 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4331 (child_get_current_exception_event): Ditto.
4332 * varobj.c (varobj_create): Ditto.
4333 (varobj_update): Ditto.
4334 (c_value_of_root): Ditto.
4335 * tracepoint.c (finish_tfind_command): Ditto.
4336 * corelow.c (core_open): Ditto.
4337 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4338 * thread.c (info_threads_command): Ditto.
4339 (switch_to_thread): Ditto.
4340 * infrun.c (normal_stop): Ditto.
4341 (restore_selected_frame): Ditto.
4342 (restore_inferior_status): Ditto.
4343 * breakpoint.c (insert_breakpoints): Ditto.
4344 (watchpoint_check): Ditto.
4345 (bpstat_stop_status): Ditto.
4346 (do_enable_breakpoint): Ditto.
4347 * blockframe.c (flush_cached_frames): Ditto.
4348 (reinit_frame_cache): Ditto.
4350 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4352 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4355 2002-05-04 Jim Blandy <jimb@redhat.com>
4357 * gdbtypes.c (replace_type): Doc fix.
4359 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4361 * valprint.c (strcat_longest): Delete commented out function.
4364 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4366 * MAINTAINERS: Mark a29k as deleted.
4367 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4368 Move new configurations to the top.
4369 * configure.tgt: Remove a29k.
4370 * config/a29k/tm-vx29k.h: Delete.
4371 * config/a29k/vx29k.mt: Delete.
4372 * config/a29k/tm-a29k.h: Delete.
4373 * config/a29k/a29k-udi.mt: Delete.
4374 * config/a29k/a29k.mt: Delete.
4375 * a29k-tdep.c: Delete.
4376 * remote-udi.c: Delete.
4377 * remote-mm.c: Delete.
4378 * remote-eb.c: Delete.
4379 * remote-adapt.c: Delete.
4380 * Makefile.in: Remove obsolete code.
4381 * gdbserver/Makefile.in: Ditto.
4382 * config/s390/s390x.mt: Ditto.
4383 * config/s390/s390.mt: Ditto.
4384 * config/sparc/sparclynx.mh: Ditto.
4385 * config/sparc/linux.mh: Ditto.
4386 * config/pa/hppaosf.mh: Ditto.
4387 * config/pa/hppabsd.mh: Ditto.
4388 * config/ns32k/nbsd.mt: Ditto.
4389 * config/mips/vr5000.mt: Ditto.
4390 * config/m68k/sun3os4.mh: Ditto.
4391 * config/m68k/nbsd.mt: Ditto.
4392 * config/m68k/m68klynx.mh: Ditto.
4393 * config/m32r/m32r.mt: Ditto.
4394 * config/i386/x86-64linux.mt: Ditto.
4395 * config/i386/nbsdelf.mt: Ditto.
4396 * config/i386/nbsd.mt: Ditto.
4397 * config/i386/i386lynx.mh: Ditto.
4399 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4401 * target.c (debug_print_register): New function. Handle oversize
4403 (debug_to_fetch_registers): Call.
4404 (debug_to_store_registers): Call.
4406 2002-05-03 Jim Blandy <jimb@redhat.com>
4408 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
4409 (read_type): Doc fix.
4410 * gdbtypes.c (replace_type): Doc fix.
4412 * stabsread.c (multiply_defined_struct): New complaint.
4413 (read_struct_type): If the type we were passed isn't empty, or
4414 incomplete, don't read the new struct type into it; complain,
4415 and return the original type unchanged. Take a new `type_code'
4416 argument, which is the type code for the new type.
4417 (read_type): Rather than storing the type's type code here, pass
4418 it as an argument to read_struct_type, and let that take care of
4419 storing it. That way, we don't overwrite the original type code,
4420 so read_struct_type can use it to decide whether we're overwriting
4421 something we shouldn't.
4422 (complain_about_struct_wipeout): New function.
4424 2002-05-03 Andrew Cagney <ac131313@redhat.com>
4426 * gdbarch.sh: Assert that gdbarch is non-NULL.
4427 * gdbarch.c: Regenerate.
4429 2002-05-03 Jason Merrill <jason@redhat.com>
4431 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
4434 2002-05-03 Michal Ludvig <mludvig@suse.cz>
4436 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4437 (x86_64_dwarf2gdb_regno_map_length),
4438 (x86_64_dwarf2_reg_to_regnum): Added.
4439 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
4440 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
4441 (_initialize_x86_64_tdep): Synced with the change above.
4442 (x86_64_skip_prologue): Reformulated message.
4444 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4446 * f-exp.y: Also use new prev_lexptr variable
4447 to improve error reporting. Based on Michael Snyder
4448 2002-04-24 dated patch to c-exp.y.
4449 * jv-exp.y: Likewise.
4450 * m2-exp.y: Likewise.
4452 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
4454 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
4455 we are dealing with vectors.
4457 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4459 * config/m68k/tm-nbsd.h: Obvious fix,
4460 correct machine name.
4462 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4464 * p-typeprint.c (pascal_type_print_base): Add support
4465 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
4467 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4469 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
4470 for fondamental pascal 'char' type.
4472 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4474 * p-lang.h (is_pascal_string_type): Declaration changed,
4475 new sixth argument of type char ** added.
4476 * p-lang.c (is_pascal_string_type): Implementation
4477 changed. Args length_pos, length_size, string_pos, char_size
4478 can now be NULL. New argument arrayname set to the field
4479 name of the char array. Return value set to char array
4480 field index plus one.
4481 * p-valprint.c (pascal_val_print): Adapt to new declaration of
4482 is_pascal_string_type function.
4484 2002-05-02 Andrew Cagney <cagney@redhat.com>
4486 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4487 <cagney@redhat.com> change.
4488 * gdbarch.c: Regenerate.
4490 2002-05-02 Andrew Cagney <cagney@redhat.com>
4492 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4493 before probing for a new one. Detect errorenous gdbarch_init
4495 * gdbarch.c: Regenerate.
4497 2002-05-01 Andrew Cagney <cagney@redhat.com>
4499 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4500 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4501 * config/v850/tm-v850.h: Ditto. Update copyright.
4503 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4505 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4508 2002-04-30 Michael Snyder <msnyder@redhat.com>
4510 * arm-tdep.c: Whitespace clean-ups.
4511 (arm_skip_prologue): Fix thinko; two lines
4512 should have been removed as part of 4/24 change.
4514 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4516 * rs6000-tdep.c: Added comment describing how fpscr register
4517 numbers were chosen.
4519 2002-04-30 Michael Snyder <msnyder@redhat.com>
4521 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4523 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4525 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4526 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4527 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4529 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4531 From Louis Hamilton <hamilton@redhat.com>:
4532 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4533 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4534 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4535 not bfd-private xcoff data, to determine wordsize.
4536 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4538 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4540 GDB 5.2 released from 5.2 branch.
4542 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4544 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4545 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4546 (x86_64_register_info_table): Added comments with register numbers.
4548 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4550 * rs6000-tdep.c (rs6000_extract_return_value,
4551 rs6000_store_return_value): Handle returning vectors.
4552 (rs6000_gdbarch_init): Use
4553 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4554 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4556 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4558 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4559 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4561 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4563 * hpread.c (hpread_psymtab_to_symtab_1,
4564 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4565 with fprintf_unfiltered (gdb_stderr,...).
4567 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4569 * remote-array.c (printf_monitor, write_monitor,
4570 array_insert_breakpoint, array_remove_breakpoint ):
4571 Replace fprintf (stderr,...
4572 with fprintf_unfiltered (gdb_stderr,....
4573 * remote-es.c: Likewise.
4574 * remote-os9k.c: Likewise.
4575 * remote-st.c: Likewise.
4577 2002-04-28 Andreas Schwab <schwab@suse.de>
4579 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4580 linux-proc.o and gcore.o.
4582 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4584 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4585 code without frame pointers.
4587 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4589 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4592 2002-04-26 Ben Elliston <bje@redhat.com>
4594 * target.c (do_xfer_memory): Correct reference to the new option
4595 "trust-readonly-sections".
4597 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4599 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4600 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4601 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4603 (read_array_type): Record the fact that this array type is really a
4604 vector (i.e. are passed in by value).
4606 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4608 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4609 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4610 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4611 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4612 * alpha-linux-tdep.c: Include frame.h.
4613 (alpha_linux_sigcontext_addr): New function.
4614 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4615 alpha_linux_sigcontext_addr.
4616 * alpha-osf1-tdep.c: Include gdbcore.h.
4617 (alpha_osf1_sigcontext_addr): New function.
4618 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4619 alpha_osf1_sigcontext_addr.
4620 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4621 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4623 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4625 * stack.c (selected_frame_level):
4626 (select_frame): Do not set selected_frame_level.
4627 * frame.h (selected_frame_level): Delete declaration.
4629 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4631 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4632 convert_from_func_ptr-addr when AIX / PowerOpen.
4634 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4636 * valops.c (hand_function_call): Call
4637 generic_save_call_dummy_addr.
4638 * frame.h (generic_save_call_dummy_addr): Declare.
4639 * blockframe.c (struct dummy_frame): Add fields call_lo and
4641 (generic_find_dummy_frame): Check for PC in range call_lo to
4642 call_hi instead of entry_point_address.
4643 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4644 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4645 (generic_save_call_dummy_addr): New function.
4647 2002-04-24 David S. Miller <davem@redhat.com>
4649 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4650 sparc_skip_prologue.
4651 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4652 information to find prologue when possible.
4653 (sparc_prologue_frameless_p): Call examine_prologue directly.
4654 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4655 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4657 (SKIP_PROLOGUE): Likewise.
4659 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4661 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4662 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4663 indicate that the condition it was testing is always true.
4664 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4665 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4666 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4668 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4670 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4671 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4672 tdep->jb_pc and tdep->jb_elt_size.
4673 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4674 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4675 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4676 * alpha-nat.c (get_longjmp_target): Remove.
4677 (JB_ELEMENT_SIZE): Ditto.
4679 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4680 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4681 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4682 to alpha_get_longjmp_target.
4683 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4684 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4685 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4687 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4689 * README: Update to GDB 5.2.
4691 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4693 * gdbarch.sh (LC_ALL): Set to `c'.
4695 2002-04-25 Theodore A. Roth <troth@verinet.com>
4697 * avr-tdep.c: Ran through gdb_indent.sh.
4699 2002-04-25 Theodore A. Roth <troth@verinet.com>
4701 * MAINTAINERS: Add myself as AVR maintainer.
4702 * NEWS: Note new target avr.
4704 2002-04-25 Theodore A. Roth <troth@verinet.com>
4706 * Makefile.in: Add support for AVR target.
4707 * configure.tgt: Add support for AVR target.
4708 * avr-tdep.c: New file
4709 * config/avr/avr.mt: New file.
4711 2002-04-25 Theodore A. Roth <troth@verinet.com>
4713 * MAINTAINERS: Add myself to write-after-approval.
4715 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4717 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4718 with fprintf_unfiltered (gdb_stderr,....
4720 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4723 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4725 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4727 * p-exp.y: Also use new prev_lexptr variable
4728 to improve error reporting. Based on Michael Snyder
4729 2002-04-24 dated patch to c-exp.y.
4731 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4733 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4734 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4735 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4737 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4739 (FUNCTION_START_OFFSET): Remove.
4740 (BREAKPOINT): Ditto.
4742 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4744 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4747 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4749 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4750 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4751 alpha_linux_pc_in_sigtramp.
4752 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4753 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4754 alpha_osf1_pc_in_sigtramp.
4755 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4756 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4757 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4758 alphafbsd_pc_in_sigtramp.
4759 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4760 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4761 alphanbsd_pc_in_sigtramp.
4762 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4763 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4765 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4767 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4769 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4771 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4773 (alphanbsd-nat.o): New dependency list.
4774 (alphanbsd-tdep.o): Ditto.
4775 * NEWS: Note new native NetBSD/alpha configuration.
4776 * alphanbsd-nat.c: New file.
4777 * alphanbsd-tdep.c: Ditto.
4778 * configure.host (alpha*-*-netbsd*): New host.
4779 * configure.tgt (alpha*-*-netbsd*): New target.
4780 * config/alpha/nbsd.mh: New file.
4781 * config/alpha/nbsd.mt: Ditto.
4782 * config/alpha/nm-nbsd.h: Ditto.
4783 * config/alpha/tm-nbsd.h: Ditto.
4785 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4787 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4788 (alpha-osf1-tdep.o): New dependency list.
4789 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4790 and skip_sigtramp_frame members.
4791 * alpha-linux-tdep.c: Include gdbcore.h.
4792 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4793 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4794 * alpha-osf1-tdep.c: New file.
4795 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4797 (alpha_frame_past_sigtramp_frame): New function.
4798 (alpha_dynamic_sigtramp_offset): Ditto.
4799 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4800 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4801 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4802 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4803 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4804 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4805 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4806 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4807 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4808 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4809 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4810 to find_solib_trampoline_target.
4811 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4812 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4813 (SKIP_TRAMPOLINE_CODE): Remove.
4814 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4815 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4816 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4817 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4818 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4819 (PROC_SIGTRAMP_MAGIC): Ditto.
4820 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4821 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4822 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4823 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4824 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4826 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4828 * NEWS: Note that Alpha targets are now multi-arch.
4830 2002-04-24 Michael Snyder <msnyder@redhat.com>
4832 * parser-defs.h (prev_lexptr): New external variable.
4833 * parse.c (parse_exp_1): Set prev_lexptr to null before
4834 calling the language-specific parser.
4835 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4836 (yyerror): Use prev_lexptr in error reporting.
4838 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4840 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4841 * gregset.h: If FILL_FPXREGSET is defined, provide
4842 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4843 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4844 is defined, call fill_fpxregset.
4846 2002-04-24 Roland McGrath <roland@frob.com>
4848 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4849 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4850 (supply_gregset, supply_fpregset): New functions.
4852 * gnu-nat.c (gnu_find_memory_regions): New function.
4853 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4854 (gnu_xfer_memory): Add a cast.
4856 2002-04-24 Michael Snyder <msnyder@redhat.com>
4858 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4859 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4860 of argument regs ("str r(0123), [r11, #-nn"]).
4861 (arm_skip_prologue): Better handling for frameless functions.
4862 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4863 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4865 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4867 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4868 NUM_PSEUDO_REGS can be used.
4870 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4872 * arch-utils.h: Update copyright.
4874 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4875 * gdbarch.h, gdbarch.c: Re-generate.
4877 * inferior.h (IN_SIGTRAMP): Delete definition.
4878 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4879 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4881 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4882 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4883 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4884 (find_proc_framesize): Ditto.
4885 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4886 (alpha_init_extra_frame_info): Ditto.
4887 * infrun.c (handle_inferior_event): Ditto.
4888 (handle_inferior_event): Ditto.
4889 (check_sigtramp2): Ditto.
4890 * blockframe.c (create_new_frame): Ditto.
4891 (get_prev_frame): Ditto.
4892 * ppc-linux-tdep.c: Update comments.
4893 * i386-linux-tdep.c: Update comments.
4894 * breakpoint.c (bpstat_what): Update comment.
4896 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4898 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4899 (regsets_store_inferior_registers): Removed cast to int from
4901 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4903 2002-04-24 David S. Miller <davem@redhat.com>
4905 * i960-tdep.c (register_in_window_p): New function.
4906 (i960_find_saved_register): Use it instead of
4907 REGISTER_IN_WINDOW_P.
4908 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4910 * symtab.h (find_stab_function_addr): Kill extern.
4911 * minsyms.c (find_stab_function_addr): Remove from here...
4912 * dbxread.c: ... to here, and mark it static.
4914 2002-04-20 David S. Miller <davem@redhat.com>
4916 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4917 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4919 2002-04-21 David S. Miller <davem@redhat.com>
4921 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4922 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4923 (vx_write_register): Likewise.
4925 2002-04-23 J. Brobecker <brobecker@gnat.com>
4927 * source.c (is_regular_file): New function.
4928 (openp): Check wether file to open is a regular file
4929 to avoid opening directories.
4931 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4933 * findvar.c (extract_signed_integer): Cast printf argument
4934 to suppress format warning.
4935 (extract_unsigned_integer): Likewise.
4936 * infcmd.c (registers_info): Likewise.
4937 * top.c (get_prompt_1): Likewise.
4938 * valops.c (value_assign): Likewise.
4939 * valprint.c (print_decimal): Likewise.
4941 2002-04-22 H.J. Lu (hjl@gnu.org)
4943 * c-exp.y (typebase): Support
4945 [long|long long|short] [signed|unsigned] [int|]
4949 signed [long|long long|short] int
4951 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4953 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4955 * vax-tdep.h: New file.
4956 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4957 Make several routines static.
4958 (vax_get_saved_register): New function.
4959 (vax_gdbarch_init): New function.
4960 (_initialize_vax_tdep): Register vax_gdbarch_init.
4961 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4962 Remove macros now under the control of gdbarch.
4964 2002-04-22 Michael Snyder <msnyder@redhat.com>
4966 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4967 Some whitespace and coding standards tweaks.
4969 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4971 * vax-tdep.c: Include regcache.h.
4972 (vax_call_dummy_words): New.
4973 (sizeof_vax_call_dummy_words): New.
4974 (vax_fix_call_dummy): New function.
4975 (vax_saved_pc_after_call): Ditto.
4976 * config/vax/tm-vax.h: Don't include regcache.h.
4977 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4978 (CALL_DUMMY): Remove.
4979 (CALL_DUMMY_WORDS): Define.
4980 (SIZEOF_CALL_DUMMY_WORDS): Define.
4981 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4983 2002-04-18 Michael Snyder <msnyder@redhat.com>
4985 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4987 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4989 * vax-tdep.c (vax_frame_chain): New function.
4990 (vax_push_dummy_frame): Ditto.
4991 (vax_pop_frame): Ditto.
4992 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4993 (FRAMELESS_FUNCTION_INVOCATION): Use
4994 generic_frameless_function_invocation_not.
4995 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4996 (POP_FRAME): Use vax_pop_frame.
4998 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5000 * vax-tdep.c (vax_store_struct_return): New function.
5001 (vax_extract_return_value): Ditto.
5002 (vax_store_return_value): Ditto.
5003 (vax_extract_struct_value_address): Ditto.
5004 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5005 vax_store_struct_return.
5006 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5007 (STORE_RETURN_VALUE): Use vax_store_return_value.
5008 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5010 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5012 * vax-tdep.c (vax_frame_saved_pc): New function.
5013 (vax_frame_args_address_correct): Ditto.
5014 (vax_frame_args_address): Ditto.
5015 (vax_frame_locals_address): Ditto.
5016 (vax_frame_num_args): Move code to be in proximity to
5017 other frame-related functions.
5018 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5019 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5020 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5021 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5022 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5024 2002-04-22 H.J. Lu (hjl@gnu.org)
5026 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5029 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5031 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5032 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5033 (FRAME_INIT_SAVED_REGS): New macro.
5035 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5037 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5039 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5041 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5043 (fetch_osf_core_registers): Likewise.
5044 (supply_gregset): Likewise.
5046 2002-04-22 J. Brobecker <brobecker@gnat.com>
5048 * symfile.h (get_section_index): Define.
5049 * symfile.c (get_section_index): New function.
5050 * mdebugread.c (SC_IS_SBSS): New macro.
5051 (SC_IS_BSS): Return true for the scBss storage class only, as
5052 the scSBss storage class refers to the .sbss section.
5053 (parse_partial_symbols): Discard the symbols which associated
5054 section does not exist.
5055 Make sure to use the .sbss section index for symbols which
5056 storage class is scBss, rather than using the .bss section index.
5058 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5060 * vax-tdep.c: Update copyright years.
5061 (vax_register_name): New function.
5062 (vax_register_byte): Ditto.
5063 (vax_register_raw_size): Ditto.
5064 (vax_register_virtual_size): Ditto.
5065 (vax_register_virtual_type): Ditto.
5066 * config/vax/tm-vax.h: Update copyright years.
5067 (REGISTER_NAMES): Remove.
5068 (REGISTER_NAME): Define.
5069 (REGISTER_BYTE): Use vax_register_byte.
5070 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5071 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5072 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5074 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5076 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5078 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5080 2002-04-21 David S. Miller <davem@redhat.com>
5082 * arch-utils.c (generic_prologue_frameless_p): Kill
5083 SKIP_PROLOGUE_FRAMELESS_P code.
5084 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5086 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5087 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5088 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5090 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5091 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5092 (sparc_gdbarch_init): Pass it to
5093 set_gdbarch_prologue_frameless_p.
5095 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5097 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5098 (alphabsd-nat.o): New dependency list.
5100 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5102 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5104 (alpha-linux-tdep.o): New dependency list.
5105 (alphafbsd-tdep.o): Likewise.
5107 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5109 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5111 * alpha-tdep.c: ...from here.
5112 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5114 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5116 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5117 prototype from here...
5118 * alpha-tdep.h: ...to here.
5120 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5122 * frame.h (selected_frame_level): Document as deprecated.
5123 (frame_relative_level): Declare.
5124 * stack.c (frame_relative_level): New function.
5125 (selected_frame_level): Document as deprecated.
5126 (select_frame): Do not set the selected_frame_level.
5128 * stack.c (frame_info, record_selected_frame): Update.
5129 (frame_command, current_frame_command): Update.
5130 (up_silently_base, up_command, down_silently_base): Update.
5131 (down_command): Update.
5132 * inflow.c (kill_command): Update.
5133 * tracepoint.c (finish_tfind_command): Update.
5134 * corelow.c (core_open): Update.
5135 * thread.c (info_threads_command): Update.
5136 (do_captured_thread_select): Update.
5137 * infcmd.c (finish_command): Update.
5138 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5140 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5142 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5144 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5146 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5149 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5151 * alphafbsd-tdep.c: Update copyright years. Include
5153 (alphafbsd_use_struct_convention): Make static.
5154 (alphafbsd_init_abi): New function.
5155 (_initialize_alphafbsd_tdep): New function.
5156 * config/alpha/tm-fbsd.h: Update copyright years.
5157 (USE_STRUCT_CONVENTION): Remove.
5159 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5161 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5162 an Alpha ABI variant.
5163 (alpha_abi_handler_list): Declare.
5164 (alpha_gdbarch_register_os_abi): New function.
5165 (alpha_gdbarch_init): Give registered ABI variant handlers a
5166 chance to tweak the gdbarch once we have set up defaults.
5167 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5169 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5171 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5172 to standard_coerce_float_to_double.
5173 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5175 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5177 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5178 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5179 from gdbarch_tdep rather than a constant.
5180 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5181 the default text address for all Alpha Unix ABIs.
5182 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5183 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5185 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5187 * alpha-tdep.h: New file. Includes several Alpha target constants
5189 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5190 let gdbarch deal with.
5191 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5192 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5194 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5195 Alpha target register names.
5196 * alphabsd-nat.c: Likewise.
5197 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5198 Alpha target register names. Make serveral routines static.
5199 (alpha_get_saved_register): New function.
5200 (alpha_abi_names): New.
5201 (process_note_abi_tag_sections): New function.
5202 (get_elfosabi): New function.
5203 (alpha_gdbarch_init): New function.
5204 (alpha_dump_tdep): New function.
5205 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5207 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5209 * frame.c (find_saved_register): Delete #ifdef
5210 HAVE_REGISTER_WINDOWS code.
5211 * config/sparc/tm-sparc.h: Update comments.
5212 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5214 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5216 * i960-tdep.c (i960_find_saved_register): New function.
5217 (i960_get_saved_register): New function.
5218 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5219 (i960_get_saved_register): Declare.
5220 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5222 2002-04-20 David S. Miller <davem@redhat.com>
5224 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5226 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5228 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5229 instead of NUM_PSEUDO_REGS.
5231 2002-04-20 David S. Miller <davem@redhat.com>
5233 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5234 GDB_MULTI_ARCH_PARTIAL
5235 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5236 define, let tm-sp64.h do it.
5238 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5240 * frame.c (find_saved_register): Avoid a NULL pointer
5241 dereference and actually walk the frame list.
5243 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5245 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5246 sorted in most most-recent-used order. Document.
5247 * gdbarch.h, gdbarch.c: Regenerate.
5249 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5251 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5252 (add_inferior): Call create_register_cache.
5253 (clear_inferiors): Call free_register_cache.
5254 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5255 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5256 (registers): Remove.
5257 (get_regcache): New function.
5258 (create_register_cache, free_register_cache): New functions.
5259 (set_register_cache): Don't initialize the register cache here.
5260 (registers_to_string, registers_from_string, register_data): Call
5262 * gdbserver/regcache.h: Add prototypes.
5263 * gdbserver/server.h: Likewise.
5265 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5267 * gdbserver/mem-break.c: New file.
5268 * gdbserver/mem-break.h: New file.
5269 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5271 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5273 (clear_inferiors): Free target_data member if set.
5274 (inferior_target_data, set_inferior_target_data): New functions.
5275 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5276 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5277 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5278 (struct inferior_linux_data): New.
5279 (linux_create_inferior): Use set_inferior_target_data.
5280 (linux_attach): Likewise. Call add_inferior.
5281 (linux_wait_for_one_inferior): New function.
5282 (linux_wait): Call it.
5283 (linux_write_memory): Add const.
5284 (initialize_low): Call set_breakpoint_data.
5285 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5287 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5289 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5291 * gdbserver/target.c (read_inferior_memory)
5292 (write_inferior_memory): New functions.
5293 * gdbserver/target.h (read_inferior_memory)
5294 (write_inferior_memory): Change macros to prototypes.
5295 (struct target_ops): Update comments. Add const to write_memory
5298 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5300 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5302 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5303 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5304 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5307 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5310 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5311 (build_builtin_type_vec128): Ditto.
5312 (append_composite_type_field): Fix calculation of type length in
5315 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5317 * config/djgpp/README: Update.
5319 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5322 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5324 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5325 (alpha_setup_arbitrary_frame): ...to this.
5326 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5327 for alpha_setup_arbitrary_frame.
5329 2002-04-18 Andrew Cagney <cagney@redhat.com>
5331 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5332 * gdbarch.h, gdbarch.c: Regenerate.
5334 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5335 * target.h (memory_breakpoint_from_pc): Update declaration.
5336 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5338 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5339 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5340 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5341 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5342 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5343 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5344 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5345 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5346 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5347 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5348 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5349 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5351 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5353 * monitor.c (monitor_insert_breakpoint): Ditto.
5354 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5356 * config/mcore/tm-mcore.h: Update copyright.
5357 * mem-break.c: Ditto.
5358 * xstormy16-tdep.c: Ditto.
5360 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5362 * p-exp.y: Add precedence rule for '^' token.
5363 This removes the shift/reduce conflicts.
5364 Remove the comment concerning these shift/reduce conflicts.
5366 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
5368 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5369 (registers_powerpc_nofp): New register set for processors
5370 without floating point unit.
5372 2002-04-18 David S. Miller <davem@redhat.com>
5374 * MAINTAINERS: Add myself to write-after-approval.
5376 2002-04-17 Michael Snyder <msnyder@redhat.com>
5378 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
5380 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5382 * rs6000-tdep.c (frame_initial_stack_address): Use
5383 frame_register_read to read the alloca_reg.
5385 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5387 * frame.c (find_saved_register): Find saved registers in the next
5391 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5393 * gdbarch.sh (LANG): Set to ``c''.
5395 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5397 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
5399 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5401 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
5404 * hpread.c (hpread_get_lntt): Add declaration.
5405 Also fix PR gdb/391.
5407 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5409 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
5410 * aclocal.m4, configure: Re-generate.
5413 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5415 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
5416 instead of tm_print_insn.
5418 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5420 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
5422 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5424 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
5425 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
5426 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
5428 2002-04-12 Don Howard <dhoward@redhat.com>
5430 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
5431 max_user_call_depth.
5432 (init_cmd_lists): Initialize the new value;
5433 * cli/cli-script.c (execute_user_command): Limit the call depth of
5434 user defined commands. This avoids a core-dump when user commands
5435 are infinitly recursive.
5437 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5439 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
5440 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
5441 from tdep struct instead of DEFAULT_LR_SAVE.
5442 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
5443 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
5444 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
5446 2002-04-12 Michael Snyder <msnyder@redhat.com>
5448 * Remote.c: Spelling fix.
5449 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
5450 If no symbol found for "sbrk", try "_sbrk".
5451 (make_output_phdrs): Use bfd_section_name.
5452 (gcore_copy_callback): Use bfd_section_name.
5453 * eval.c: Indentation fix-ups.
5454 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
5455 in case it gets applied to an address that is already
5456 in the instruction space.
5457 * cli/cli-decode.c (help_list): Allow long lines to wrap.
5458 * symfile.c: Fix indentation, long lines.
5459 * source.c: White space fix-up.
5461 2002-04-12 Andrew Cagney <cagney@redhat.com>
5463 * defs.h (read_relative_register_raw_bytes): Delete declaration.
5464 * frame.c (frame_register_read): New function. Return non-zero on
5466 (read_relative_register_raw_bytes_for_frame): Delete.
5467 (read_relative_register_raw_bytes): Delete.
5468 * frame.h (frame_register_read): Declare.
5469 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5471 * infcmd.c (do_registers_info): Ditto.
5472 * hppa-tdep.c: Ditto.
5473 * rs6000-tdep.c: Ditto.
5474 * h8500-tdep.c: Ditto.
5475 * mips-tdep.c: Ditto.
5476 * h8300-tdep.c: Ditto.
5477 * z8k-tdep.c: Ditto.
5479 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5481 From Jimi X <jimix@watson.ibm.com>:
5482 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5485 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5487 From Jimi X <jimix@watson.ibm.com>:
5488 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5491 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5493 From Jimi X <jimix@watson.ibm.com>:
5494 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5495 register sets for these processor variants.
5497 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5499 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5500 registers which are allowed to fail to store.
5501 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5502 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5503 (ppc_cannot_store_register): FPSCR may not be storable.
5504 * regformats/reg-ppc.dat: Support FPSCR.
5506 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5508 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5509 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5510 Add fpscr as an invalid/unfetchable register.
5511 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5512 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5513 (fill_fpregset): Add support for register fpscr.
5514 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5515 (fill_gregset): Account for the fact that register ``mq'' might
5517 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5518 (registers_power): Add fpscr to register set at slot 71.
5519 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5520 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5522 2002-04-11 Michael Snyder <msnyder@redhat.com>
5524 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5525 * configure: Regenerate.
5526 * config.in: Regenerate.
5527 * acconfig.h: Add define for _SYSCALL32.
5528 * core-sol2.c: Remove #define _SYSCALL32.
5529 * solib-legacy.c: Remove #define _SYSCALL32.
5531 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5533 * stack.c (select_frame): Cleanup internal error message, do not
5536 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5538 * stack.c (select_frame): Check that selected_frame and the
5539 specified level are as expected.
5540 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5542 * frame.h (struct frame_info): Add field `level'. Update
5544 Work-in-progress PR gdb/464.
5546 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5548 * maint.c (maint_print_section_info): Rename print_section_info.
5549 (print_bfd_section_info, print_objfile_section_info): Update.
5550 * inferior.h (struct gdbarch): Add opaque declaration.
5551 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5552 * gdbarch.h: Regenerate.
5554 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5556 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5557 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5558 (kernel_u_size): Added.
5559 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5560 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5562 2002-04-04 Jim Ingham <jingham@apple.com>
5564 * valarith.c (find_size_for_pointer_math): New function, either returns
5565 the size for a pointer's target, returns 1 for void *, or errors for
5567 (value_add, value_sub): use find_size_for_pointer_math.
5569 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5571 * linux-low.c (linux_look_up_symbols): New hook.
5572 (linux_target_ops): Add linux_look_up_symbols.
5573 * remote-utils.c (decode_address): New function.
5574 (look_up_one_symbol): New function.
5575 * server.c (handle_query): Call target look_up_symbols hook.
5576 * server.h (look_up_one_symbol): Add prototype.
5577 * target.h (struct target_ops): Add look_up_symbols hook.
5579 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5581 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5582 * ChangeLog: Correct paths in last ChangeLog entry.
5584 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5586 * gdbserver/linux-low.h: Remove obsolete prototypes.
5587 (struct linux_target_ops): New.
5588 (extern the_low_target): New.
5589 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5590 (register_addr): Use the_low_target explicitly.
5591 (fetch_register): Likewise.
5592 (usr_fetch_inferior_registers): Likewise.
5593 (usr_store_inferior_registers): Likewise.
5594 * gdbserver/linux-arm-low.c (num_regs): Remove.
5595 (arm_num_regs): Define.
5596 (arm_regmap): Renamed from regmap, made static.
5597 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5599 (arm_cannot_store_register): Renamed from cannot_store_register,
5601 (the_low_target): New.
5602 * gdbserver/linux-i386-low.c (num_regs): Remove.
5603 (i386_num_regs): Define.
5604 (i386_regmap): Renamed from regmap, made static.
5605 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5607 (i386_cannot_store_register): Renamed from cannot_store_register,
5609 (the_low_target): New.
5610 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5611 (ia64_num_regs): Define.
5612 (ia64_regmap): Renamed from regmap, made static.
5613 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5615 (ia64_cannot_store_register): Renamed from cannot_store_register,
5617 (the_low_target): New.
5618 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5619 (m68k_num_regs): Define.
5620 (m68k_regmap): Renamed from regmap, made static.
5621 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5623 (m68k_cannot_store_register): Renamed from cannot_store_register,
5625 (the_low_target): New.
5626 * gdbserver/linux-mips-low.c (num_regs): Remove.
5627 (mips_num_regs): Define.
5628 (mips_regmap): Renamed from regmap, made static.
5629 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5631 (mips_cannot_store_register): Renamed from cannot_store_register,
5633 (the_low_target): New.
5634 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5635 (ppc_num_regs): Define.
5636 (ppc_regmap): Renamed from regmap, made static.
5637 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5639 (ppc_cannot_store_register): Renamed from cannot_store_register,
5641 (the_low_target): New.
5642 * gdbserver/linux-s390-low.c (num_regs): Remove.
5643 (s390_num_regs): Define.
5644 (s390_regmap): Renamed from regmap, made static.
5645 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5647 (s390_cannot_store_register): Renamed from cannot_store_register,
5649 (the_low_target): New.
5650 * gdbserver/linux-sh-low.c (num_regs): Remove.
5651 (sh_num_regs): Define.
5652 (sh_regmap): Renamed from regmap, made static.
5653 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5655 (sh_cannot_store_register): Renamed from cannot_store_register,
5657 (the_low_target): New.
5658 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5659 (the_low_target): New.
5661 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5663 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5664 override FP_REGNUM with frame->fp. Update copyright.
5665 * parse.c (num_std_regs, std_regs): Delete.
5666 (target_map_name_to_register): Do not search std_regs. Update
5667 function description.
5668 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5669 declarations. Update copyright.
5672 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5674 * gdbserver/Makefile.in: Add stamp-h target.
5675 * gdbserver/configure.in: Create stamp-h.
5676 * gdbserver/configure: Regenerated.
5678 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5680 * gdbserver/inferiors.c: New file.
5681 * gdbserver/target.c: New file.
5682 * gdbserver/target.h: New file.
5683 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5685 * gdbserver/linux-low.c (inferior_pid): New static variable,
5686 moved from server.c.
5687 (linux_create_inferior): Renamed from create_inferior.
5688 Call add_inferior. Return 0 on success instead of a PID.
5689 (linux_attach): Renamed from myattach.
5690 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5691 (linux_thread_alive): Renamed from mythread_alive.
5692 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5694 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5695 (regsets_store_inferior_registers): Correct error message.
5696 Add missing ``return 0''.
5697 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5698 (linux_store_registers): Renamed from store_inferior_registers.
5699 (linux_read_memory): Renamed from read_inferior_memory.
5700 (linux_write_memory): Renamed from write_inferior_memory.
5701 (linux_target_ops): New structure.
5702 (initialize_low): Call set_target_ops ().
5703 * gdbserver/remote-utils.c (unhexify): New function.
5704 (hexify): New function.
5705 (input_interrupt): Send signals to ``signal_pid''.
5706 * gdbserver/server.c (inferior_pid): Remove.
5707 (start_inferior): Update create_inferior call.
5708 (attach_inferior): Call add_inferior.
5709 (handle_query): New function.
5710 (main): Call handle_query for `q' packets.
5711 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5712 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5714 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5716 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5718 * gdbserver/configure.in: Check for <string.h>
5719 * gdbserver/configure: Regenerate.
5720 * gdbserver/config.in: Regenerate.
5721 * gdbserver/gdbreplay.c: Include needed system headers.
5722 (remote_open): Remove strchr prototype.
5723 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5724 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5725 (supply_register_by_name): Likewise.
5726 (collect_register): Change buf argument to void *.
5727 (collect_register_by_name): Likewise.
5728 * gdbserver/regcache.h: Add missing prototypes.
5729 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5730 * gdbserver/server.c (handle_query): New function.
5731 (attached): New static variable, moved out of main.
5732 (main): Quiet longjmp clobber warnings.
5733 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5734 * gdbserver/utils.c (error): Remove NORETURN.
5737 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5739 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5740 after the last symbol in a block.
5742 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5744 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5745 is non zero as a found symbol.
5747 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5749 * findvar.c: Include "builtin-regs.h".
5750 (value_of_register): Call value_of_builtin_reg when applicable.
5751 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5752 (target_map_name_to_register): Call
5753 builtin_reg_map_name_to_regnum.
5754 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5755 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5756 (builtin_regs_h): Define.
5757 (builtin-regs.o): New target.
5758 (findvar.o): Add $(builtin_regs_h).
5759 * builtin-regs.c, builtin-regs.h: New files.
5760 * std-regs.c: New file.
5761 Partial fix for PR gdb/251.
5763 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5765 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5766 it's no longer required.
5768 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5770 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5772 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5774 From Jimi X <jimix@watson.ibm.com>:
5775 * rs6000-tdep.c (rs6000_software_single_step): Use
5776 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5777 and size. Use target_insert_breakpoint() and
5778 target_remove_breakpoint() to insert and remove breakpoints
5779 instead of explicit memory reads and writes.
5781 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5783 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5784 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5785 ELF_OBJECT_FORMAT ifdef.
5787 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5789 From Jimi X <jimix@watson.ibm.com>:
5790 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5792 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5794 From Jimi X <jimix@watson.ibm.com>:
5795 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5796 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5798 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5800 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5801 s/asprintf/xasprintf/.
5802 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5804 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5806 I believe Jeff Law denies responsability for this one:
5807 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5808 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5809 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5810 Work-around for PR gdb/366.
5812 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5814 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5815 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5816 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5818 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5820 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5821 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5824 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5826 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5829 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5831 * README (Reporting Bugs in GDB): Document the bug web page as the
5832 prefered way of submitting bugs.
5835 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5837 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5839 * gdbarch.h, gdbarch.c: Re-generate.
5841 2002-04-07 Andreas Schwab <schwab@suse.de>
5843 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5844 buffer to regcache_collect.
5846 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5848 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5849 * gdbarch.c, gdbarch.h: Re-generate.
5851 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5853 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5854 declaration. Fix -Werror.
5856 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5858 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5859 * gdbarch.c: Regenerate.
5861 2002-04-05 Michael Snyder <msnyder@redhat.com>
5863 * breakpoint.c (clear_command): Rewrite middle section to
5864 combine two loops with identical control conditions.
5865 Add a cleanup to eliminate a memory leak.
5866 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5868 2002-04-05 H.J. Lu (hjl@gnu.org)
5870 * solib-svr4.c (bkpt_names): Add "__start".
5872 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5874 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5875 as test for 64 bit target.
5877 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5879 * h8500-tdep.c (h8500_write_fp): Delete function.
5880 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5881 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5882 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5884 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5885 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5887 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5888 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5889 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5890 (d10v_write_fp): Delete function.
5891 * inferior.h (write_fp, generic_target_write_fp): Delete
5893 * regcache.c (generic_target_write_fp): Delete function.
5894 (write_fp): Delete function.
5895 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5896 * gdbarch.h, gdbarch.c: Regenerate.
5897 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5898 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5899 (sparc64_write_fp): Delete declaration.
5900 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5901 (h8500_write_fp): Delete declaration.
5903 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5905 * sparc-tdep.c (sparc64_write_fp): Delete.
5906 (sparc_push_dummy_frame): Replace write_fp call with code to store
5908 (sparc_gdbarch_init): Do not initialize write_fp.
5910 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5912 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5915 2002-03-29 Jim Blandy <jimb@redhat.com>
5917 * stack.c (get_selected_block): Add new argument `addr_in_block',
5918 used to return the exact code address we used to select the block,
5920 * blockframe.c (get_frame_block, get_current_block): Same.
5921 * frame.h (get_frame_block, get_current_block,
5922 get_selected_block): Update declarations.
5923 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5924 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5926 2002-04-05 Michael Snyder <msnyder@redhat.com>
5928 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5931 2002-04-05 J. Brobecker <brobecker@gnat.com>
5933 * utils.c (xfullpath): New function.
5934 * defs.h (xfullpath): Add declaration.
5935 * source.c (openp): Use xfullpath in place of gdb_realpath to
5936 avoid resolving the basename part of filenames when the
5937 associated file is a symbolic link. This fixes a potential
5938 inconsistency between the filenames known to GDB and the
5939 filenames it prints in the annotations.
5940 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5941 to be able to match a filename with either the real filename, or
5942 the name of any symbolic link to this file.
5943 (lookup_partial_symtab): Ditto.
5945 2002-04-04 Michael Snyder <msnyder@redhat.com>
5947 * breakpoint.c: Add support for hardware breakpoints in overlays.
5948 (overlay_events_enabled): New state variable.
5949 (insert_breakpoints): Use overlay_events_enabled to decide
5950 whether to attempt to set a breakpoint at the overlay load addr.
5951 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5952 (remove_breakpoint): Use overlay_events_enabled to decide
5953 whether breakpoints need to be removed from overlay load addr.
5954 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5955 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5956 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5957 disable_overlay_breakpoints): Update overlay_events_enabled.
5959 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5961 * dwarf2read.c (struct function_range): New.
5962 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5963 (check_cu_functions): New.
5964 (read_file_scope): Initialize global function lists.
5965 Call dwarf_decode_line after processing children.
5966 (read_func_scope): Add to global function list.
5967 (dwarf_decode_lines): Call check_cu_functions everywhere
5968 record_line is called. Call record_line with a linenumber
5969 of 0 to mark sequence ends.
5971 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5973 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5974 change sync with glibc.
5976 2002-04-03 Jim Blandy <jimb@redhat.com>
5978 * configure.in: Call AC_C_INLINE.
5979 * configure: Regenerated.
5981 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5983 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5984 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5986 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5988 * NEWS: Mention gcore support on FreeBSD/i386.
5990 * fbsd-proc.c: New file.
5991 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5992 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5994 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5997 2002-03-29 Jim Blandy <jimb@redhat.com>
5999 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6000 unescaped newlines in string literals, but newer ones don't. So
6003 2002-03-26 Michael Snyder <msnyder@redhat.com>
6004 Andrew Cagney <cagney@redhat.com>
6006 * cli/cli-dump.c: New file. Dump memory to file,
6007 restore file to memory.
6008 * cli/cli-dump.h: New file.
6009 * Makefile.in: Add rules, dependencies for cli-dump.o.
6010 * NEWS: Mention new commands.
6012 2002-03-28 Michael Snyder <msnyder@redhat.com>
6014 * symfile.c (symbol_file_add): Move test for null symbols to later.
6016 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6018 From veksler at il.ibm.com:
6019 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6020 the xstrduped original path.
6023 2002-03-27 Michael Snyder <msnyder@redhat.com>
6025 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6026 * infcmd.c (_initialize_infcmd): Ditto.
6027 * language.c (_initialize_language): Ditto.
6028 * symfile.c (_initialize_symfile): Ditto.
6029 * top.c (_init_main): Ditto.
6030 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6032 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
6034 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6035 vector registers handling.
6036 (skip_prologue): Handle new AltiVec instructions. Fill in new
6037 fields of frame data.
6038 (frame_get_saved_regs): Fill in information for AltiVec registers.
6040 2002-03-27 Jim Blandy <jimb@redhat.com>
6042 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6043 a function; leave this macro here to invoke that function.
6044 (symbol_init_mangled_name): Declaration for that function.
6045 * symtab.c (symbol_init_mangled_name): New function.
6047 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6049 * valarith.c: Replace strerror with safe_strerror.
6050 * tracepoint.c: Ditto.
6052 * go32-nat.c: Ditto.
6056 2002-03-27 Andreas Schwab <schwab@suse.de>
6058 * event-top.c (command_line_handler): Remove useless if.
6060 2002-03-27 Andreas Jaeger <aj@suse.de>
6062 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6065 2002-03-27 Michal Ludvig <mludvig@suse.cz>
6067 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6068 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6069 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6070 (x86_64_linux_dr_get_status, supply_gregset),
6071 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6072 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6073 (x86_64_register_info_table): Add.
6074 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6075 (x86_64_register_raw_size, x86_64_register_virtual_type),
6076 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6077 general x86_64_register_info_table.
6078 (i386_gdbarch_init): gdbarch_register_bytes is now set
6079 dynamicaly during initialization.
6080 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6081 * gdbserver/linux-x86-64-low.c: Ditto.
6083 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6085 * gdbserver/server.c (main): Call target_signal_to_host_p
6086 and target_signal_to_host on signals received from the remote.
6087 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6088 target_signal_from_host on signals sent to the remote.
6089 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6090 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6092 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6094 * signals/signals.c: Include "server.h" in gdbserver build.
6095 (target_signal_from_name): Don't use STREQ.
6096 (_initialize_signals): Likewise. Don't include function in
6099 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6101 * signals.c: Moved to...
6102 * signals/signals.c: Here.
6103 * Makefile (signals.o): Update.
6105 2002-03-26 Jeff Law (law@redhat.com)
6107 * somread.c (som_symtab_read): Remove some commented out code and
6108 updated related comments. Do not set the minimal symbol table to
6109 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6110 in a dynamic executable.
6111 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6112 where we are unable to find the minimal symbol for the given
6115 2002-03-25 Jeff Law (law@redhat.com)
6117 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6119 2002-03-25 Michal Ludvig <mludvig@suse.cz>
6121 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6123 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6125 * command.h: Update copyright.
6126 (struct cmd_list_element): Replace definition with opaque
6128 (enum cmd_types): Document that it will eventually be moved to
6130 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6131 (MALLOCED_REPLACEMENT): Delete macro.
6132 * Makefile.in (cli_decode_h): Add $(command_h).
6133 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
6134 * top.c: Include "cli/cli-decode.h".
6135 * completer.c: Include "cli/cli-decode.h".
6136 * maint.c: Include "cli/cli-decode.h".
6137 * cli/cli-decode.h: Include "command.h".
6138 (enum command_class): Delete.
6139 (enum cmd_types): Comment out.
6140 (enum cmd_auto_boolean): Delete.
6141 (enum var_types): Delete.
6143 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6145 * cli/cli-decode.c: Include "gdb_assert.h".
6146 (add_set_or_show_cmd): New static function.
6147 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6148 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6149 all fields, such as func, from the set command.
6151 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6153 * MAINTAINERS (sh-elf): Change warning flag to -w.
6155 2002-03-23 Andrew Cagney <cagney@redhat.com>
6157 * defs.h (error): Add printf format attribute.
6158 * thread-db.c (thread_from_lwp): Fix error format string.
6159 * stack.c (parse_frame_specification): Ditto.
6160 * cli/cli-decode.c (undef_cmd_error): Ditto.
6161 * scm-lang.c (scm_lookup_name): Ditto.
6162 * tracepoint.c (trace_error): Ditto.
6163 * remote-utils.c (usage): Ditto.
6164 * remote.c (compare_sections_command): Ditto.
6167 2002-03-22 Andrew Cagney <ac131313@redhat.com>
6169 * gdbtypes.c (append_composite_type_field): New function.
6170 (init_composite_type): New function.
6171 * gdbtypes.h (append_composite_type_field): Declare.
6172 (init_composite_type): Ditto.
6174 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
6176 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
6178 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6179 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6180 structure returning convention for SYSV ABI case, but not
6181 for GNU/Linux, FreeBSD, or NetBSD.
6183 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
6185 * symtab.h (lookup_block_symbol): Add mangled_name argument
6188 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6189 with new mangled_name argument.
6190 * linespec.c (decode_line_1): Likewise.
6191 * valops (value_of_this): Likewise.
6192 * symtab.c (lookup_transparent_type): Likewise.
6193 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6194 (lookup_symbol): If we are given a mangled name, pass it down
6195 to lookup_symbol_aux.
6196 (lookup_block_symbol): If we are given a mangled name to check
6197 against, only return symbols which match it.
6199 2002-03-22 Christopher Faylor <cgf@redhat.com>
6201 * win32-nat.c (child_create_inferior): Check for proper shell to use
6202 here, in case the user changes it on the fly.
6203 (_initialize_inftarg): Remove shell path considerations.
6205 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6207 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6208 for gdbarch_max_register_raw_size and max_register_virtual_size.
6209 Adjust copyright year.
6211 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6213 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6214 in a function to cover the entire beginning of the function
6215 as well if it does not already.
6217 2002-03-21 Tom Rix <trix@redhat.com>
6219 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6220 (rs6000_ptrace64): Renamed from ptrace64.
6222 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6224 * gdbserver/remote-utils.c (remote_open): Don't call
6225 getprotobyname, we're all using TCP here so just use
6227 * gdbserver/gdbreplay.c (remote_open): Ditto.
6229 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6231 * regcache.c (_initialize_regcache): No need to call
6232 build_regcache() at this time; it gets called whenever
6233 the gdbarch changes.
6235 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6237 * sparc-nat.c: Include sys/param.h where possible.
6239 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6242 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6243 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6244 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6246 * stabsread.c (rs6000_builtin_type): Likewise.
6247 (read_sun_floating_type): Likewise.
6249 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6251 * stabsread.c (read_member_functions): Remove skip code for duplicate
6252 constructor/destructor methods. Use standard parsing for these
6253 methods and just do not chain them to the list of methods after
6256 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6258 * coffread.c: Remove redundant static declarations. Replace
6259 occurrences of `PTR' with `void *'.
6260 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6261 * top.h (quit_cover): Likewise.
6262 * defs.h (catch_errors): Likewise.
6264 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6266 * defs.h (XMALLOC): Define.
6267 * gdb-events.sh (XMALLOC): Delete macro.
6268 * gdb-events.c, gdb-events.h: Regenerate.
6269 * gdbarch.sh (XMALLOC): Delete macro.
6270 * gdbarch.c: Regenerate.
6271 * serial.c (XMALLOC): Delete macro.
6272 * ui-file.c (XMALLOC): Ditto.
6273 * ser-unix.h (XMALLOC): Ditto.
6274 * sh-tdep.c (XMALLOC): Ditto.
6275 * ui-out.c (XMALLOC): Ditto.
6276 * utils.c (XMALLOC): Ditto.
6277 * i386-tdep.c (XMALLOC): Ditto.
6278 * gdb-events.c (XMALLOC): Ditto.
6279 * d10v-tdep.c (XMALLOC): Ditto.
6280 * cli-out.c (XMALLOC): Ditto.
6282 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6283 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6284 * ui-file.c, ui-out.c: Ditto.
6286 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6288 * command.h (struct cmd_list_element): Add field context.
6289 (set_cmd_context, get_cmd_context): Declare.
6290 * cli/cli-decode.h: Ditto.
6291 * cli/cli-decode.c (get_cmd_context): New function.
6292 (set_cmd_context): New function.
6293 (add_cmd): Initialize context.
6294 Part of fixing PR gdb/145 and PR gdb/146.
6296 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6298 * cli/cli-decode.c (cmd_type): New function.
6299 * command.h (cmd_type): Declare.
6300 * infrun.c (set_schedlock_func): Call function cmd_type.
6301 * kod.c (kod_set_os): Call cmd_type.
6302 * cris-tdep.c (cris_version_update): Use function cmd_type.
6303 (cris_mode_update, cris_abi_update): Ditto.
6305 * command.h: (execute_cmd_post_hook): Declare.
6306 (execute_cmd_pre_hook): Declare.
6307 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6308 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6309 functions. Execute pre/post hook while ensuring that afterwords
6311 * top.c (execute_command): Use execute_cmd_post_hook, and
6312 execute_cmd_pre_hook to execute pre/post commands.
6313 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6315 (hook_stop_stub): Call execute_cmd_pre_hook.
6317 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6319 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6320 set'' and this leads to a core dump. Move xstrdup of
6321 operating_system to after check that it is not NULL.
6323 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6325 * kod.c (kod_set_os): Remove unnecessary check that
6326 ``command->type'' is set_cmd.
6328 * valprint.c (set_input_radix): Use input_radix.
6329 (set_output_radix): Use output_radix.
6330 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6333 2002-03-16 Andrew Cagney <ac131313@redhat.com>
6335 * value.h (struct value): Delete field ``substring_addr''. Change
6336 aligner fields to force_doublest_align, force_longest_align,
6337 force_core_addr_align and force_pointer_aligh.
6339 * value.h (struct value): Fix typo in above change.
6341 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6343 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6344 to fix internal_error from ``maintenance print architecture''.
6346 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6348 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6349 for gcc versions after gcc-2.8.1.
6351 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6353 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6354 for method resolution. Restore adjustment of ``this'' pointer after
6355 calling value_struct_elt, which was accidentally removed during the
6358 2002-03-15 Andrew Cagney <ac131313@redhat.com>
6360 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6362 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6364 * value.h (value_of_register): Update.
6366 2002-03-14 Richard Henderson <rth@redhat.com>
6368 * configure.in: Detect declaration for canonicalize_file_name.
6369 * utils.c (canonicalize_file_name): Declare, if needed.
6370 (gdb_realpath): Prefer realpath if available and usable.
6371 * config.in, configure: Rebuild.
6373 2002-03-14 Richard Henderson <rth@redhat.com>
6375 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6376 a constant array bound.
6378 * MAINTAINERS: Add myself to write-after-approval.
6380 2002-03-14 Michael Snyder <msnyder@redhat.com>
6382 * symfile.c (syms_from_objfile): Return immediately if no syms.
6383 (symbol_file_add): Return immediately if no syms.
6384 (find_sym_fns): Return immediately if no syms.
6386 2002-03-13 Michal Ludvig <mludvig@suse.cz>
6388 * gdbserver/remote-util.c (remote_open): Print remote-side's
6389 IP address when remote debugging over the network.
6391 2002-03-12 David O'Brien <obrien@FreeBSD.org>
6393 * config/sparc/fbsd.mh: Fix copyright.
6394 * config/sparc/fbsd.mt: Likewise.
6396 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
6398 * MAINTAINERS: Fix typo in name of gdb warnings option.
6399 (x86-64): Fix formating so that this can be parsed by awk.
6401 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6403 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
6404 * defs.h: Include "gdb/signals.h".
6405 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6407 2002-03-10 Michal Ludvig <mludvig@suse.cz>
6409 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
6410 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
6413 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6414 Don Howard <dhoward@redhat.com>
6416 * mips-tdep.c (ST0_FR): Define.
6417 (mips2_fp_compat): New function, temporarily disabled.
6418 (mips_read_fp_register_single): New function.
6419 (mips_read_fp_register_double): New function.
6420 (mips_print_register): Use them.
6421 (do_fp_register_row): Likewise.
6423 2002-03-09 Andrew Cagney <ac131313@redhat.com>
6425 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
6428 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6430 * stabsread.c (read_member_functions): Fix is_stub test for
6431 static member functions, improve comment.
6433 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6435 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
6436 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
6437 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
6438 commands that set boolean values.
6439 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
6440 (arm_rdi_resume): Always initialize PC.
6441 (arm_rdi_open): Don't use rslt as a boolean.
6442 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
6443 (arm_rdi_fetch_registers, arm_rdi_store_registers)
6444 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
6445 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
6447 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
6449 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
6450 * configure: Rebuilt.
6452 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6454 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
6455 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
6457 2002-03-06 Andrew Cagney <ac131313@redhat.com>
6459 * cli/cli-decode.c (set_cmd_completer): New function.
6460 * command.h (set_cmd_completer): Declare.
6461 * cli/cli-decode.h (set_cmd_completer): Ditto.
6463 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
6464 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6465 * win32-nat.c (_initialize_inftarg): Ditto.
6466 * remote-rdi.c (_initialize_remote_rdi): Ditto.
6467 * proc-api.c (_initialize_proc_api): Ditto.
6468 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
6469 * source.c (_initialize_source): Ditto.
6470 * exec.c (_initialize_exec): Ditto.
6471 * solib.c (_initialize_solib): Ditto.
6472 * top.c (init_main): Ditto.
6473 * tracepoint.c (_initialize_tracepoint): Ditto.
6474 * symfile.c (_initialize_symfile): Ditto.
6475 * printcmd.c (_initialize_printcmd): Ditto.
6476 * infcmd.c (_initialize_infcmd): Ditto.
6477 * corefile.c (_initialize_core): Ditto.
6479 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6481 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6483 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6485 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6487 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6489 * NEWS: Update headings, 5.2 has branched.
6491 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6493 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6494 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6495 (register_addr, REGISTER_RAW_SIZE): Likewise.
6496 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6497 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6499 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6501 * MAINTAINERS (x86-64): Add myself.
6502 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6503 changed value_ptr -> struct value *
6505 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6507 * configure.host (sparc64-*-freebsd): Add.
6508 * configure.tgt: Likewise.
6509 * config/sparc/fbsd.mh: New file.
6510 * config/sparc/fbsd.mt: Likewise.
6511 * config/sparc/nm-fbsd.h: Likewise.
6512 * config/sparc/tm-fbsd.h: Likewise.
6514 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6516 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6517 regformats/reg-s390x.dat.
6519 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6521 * utils.c: Add FIXME explaining true/false problem.
6523 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6525 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6527 2002-02-28 Michael Chastain <mec@shout.net>
6529 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6531 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6533 * gdbserver/linux-s390-low.c: New file.
6534 * regformats/reg-s390.dat: New file.
6535 * regformats/reg-s390x.dat: New file.
6536 * gdbserver/configure.srv: Add S/390.
6537 * gdbserver/Makefile.in: Add S/390.
6538 * configure.tgt: Enable gdbserver for S/390.
6540 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6542 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6543 first line of the doc string for "info dos", except at the end of
6544 the sentence, since the short help stops at the first period.
6546 2002-02-28 Jason Merrill <jason@redhat.com>
6548 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6550 2002-02-27 Fred Fish <fnf@redhat.com>
6552 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6553 comment (dumy -> dummy).
6555 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6557 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6559 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6561 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6563 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6565 * gdbserver/acconfig.h: New file.
6566 * gdbserver/i387-fp.c: New file.
6567 * gdbserver/i387-fp.h: New file.
6568 * gdbserver/linux-x86-64.c: New file.
6569 * regformats/reg-x86-64.dat: New file.
6570 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6571 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6572 * gdbserver/configure.in: Add support for regsets.
6573 * gdbserver/config.in: Regenerate.
6574 * gdbserver/configure: Regenerate.
6575 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6576 * gdbserver/linux-low.h: New file.
6577 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6579 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6580 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6581 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6582 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6583 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6584 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6585 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6586 "i387-fp.h". Add PTRACE_GETREGS and friends.
6587 * gdbserver/regcache.c (supply_register): New function.
6588 (supply_register_by_name): New function.
6589 (collect_register): New function.
6590 (collect_register_by_name): New function.
6592 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6594 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6595 (config.status): Add configure.srv dependency.
6596 (server_h): Add config.h dependency.
6598 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6600 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6601 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6602 * gdbserver/configure.srv: Change i386-*-linux* to use
6605 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6607 * x86-64-tdep.c: Re-indent. Update copyright date.
6609 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6611 From Michal Ludvig <mludvig@suse.cz>:
6612 * x86-64-tdep.c (value.h): Delete.
6613 (gdb_assert.h): Include.
6614 (x86_64_register_convert_to_virtual,
6615 x86_64_register_convert_to_raw ): Add check which lets only
6616 floating-point values to be converted.
6617 (value_push): Delete.
6618 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6619 (i386_gdbarch_init): Number of register_bytes fixed.
6621 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6623 * MAINTAINERS: Add x86-64 target.
6625 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6627 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6628 * osfsolib.c (solib_map_sections): Ditto.
6629 * irix5-nat.c (solib_map_sections): Ditto.
6630 * corelow.c (gdb_check_format): Ditto.
6631 * symfile.c (symfile_bfd_open): Ditto.
6632 * solib.c (solib_map_sections): Ditto.
6635 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6637 * remote.c (_initialize_remote): By default, disable ``e'' and
6638 ``E'' step out-of-range packets.
6640 2002-02-26 Andreas Schwab <schwab@suse.de>
6642 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6643 m68k_linux_frame_saved_pc.
6644 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6646 (SIGCONTEXT_PC_OFFSET): Remove.
6647 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6648 m68k_linux_sigtramp_saved_pc): New functions.
6649 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6650 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6651 (UCONTEXT_PC_OFFSET): Define.
6652 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6653 non-RT and RT signal trampolines.
6655 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6657 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6658 (TARGET_NBPG, STACK_END_ADDR): Delete
6659 (VARIABLES_INSIDE_BLOCK): Delete.
6661 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6663 * utils.c (perror_with_name): Make string parameter constant.
6664 (print_sys_errmsg): Ditto.
6666 * defs.h (perror_with_name): Update.
6667 (print_sys_errmsg): Update.
6670 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6672 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6673 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6675 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6677 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6678 if it already matches the current architecture from the exec file.
6679 Include arch-utils.h for gdbarch_info_init prototype.
6680 * Makefile.in (rs6000-nat.o): Update dependencies.
6682 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6684 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6685 list of exported variables.
6687 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6689 * gdbserver/configure.srv: New file.
6690 * gdbserver/configure.in: Use configure.srv instead
6691 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6693 * gdbserver/configure: Regenerated.
6694 * gdbserver/terminal.h: New file.
6695 * gdbserver/Makefile.in: Update for configure changes. Remove
6696 more unneeded include paths.
6698 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6700 From wiz at danbala:
6701 * config/sparc/tm-sp64.h: Fix grammar and typos.
6704 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6706 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6707 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6708 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6709 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6710 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6711 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6712 * s390-tdep.c: Ditto.
6713 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6714 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6715 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6716 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6717 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6718 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6719 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6720 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6721 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6722 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6725 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6727 * lin-thread.c: Delete file.
6728 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6729 to gdb_proc_service.h.
6730 * configure: Re-generate.
6732 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6733 * serial.c (serial_open): Delete check for "ocd".
6736 * Makefile.in (linux-thread.o): Delete target.
6737 * linux-thread.c: Delete file.
6739 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6740 renamed SH files to be consistent.
6742 * symtab.c (sort_search_symbols): Use xfree.
6744 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6746 * arm-linux-tdep.c (arm_linux_init_abi): Register
6747 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6748 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6749 definition with undef, since we don't want the sysvr4 definition.
6750 (SKIP_TRAMPOLINE_CODE): Likewise.
6752 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6754 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6756 * configure.in: (AC_CHECK_FUNCS) Added test for
6757 canonicalize_file_name Regenerated.
6758 * config.in, configure: Regenerated.
6759 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6760 defined use canonicalize_file_name.
6762 2002-02-23 Michael Chastain <mec@shout.net>
6764 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6766 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6768 * README: Remove references to cygnus.com.
6769 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6770 dot com'' form. Remove references to cygnus.com and sourceware.
6772 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6774 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6775 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6776 1003.1-2001 no longer allows "head -1".
6777 * gdb/Makefile.in (version.c): Likewise.
6778 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6779 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6780 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6782 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6784 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6785 * command.h (cmd_cfunc_eq): Declare.
6786 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6788 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6789 ``struct cmd_list_element *''.
6790 * cli/cli-cmds.c (is_complete_command): Update. Use
6792 * top.c (execute_command): Pass the command to
6793 is_complete_command.
6794 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6796 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6798 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6799 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6800 architecture defines.
6801 * s390-tdep.c (s390_gdbarch_init): Likewise.
6803 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6805 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6806 (arm_linux_push_arguments): Likewise.
6807 (arm_linux_init_abi): Register them. Also register linux-specific
6809 (find_minsym_and_objfile): Use strcmp, not STREQ.
6810 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6811 (arm_linux_call_dummy_words): Delete declaration.
6812 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6813 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6815 (LOWEST_PC): Delete.
6817 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6819 * maint.c (print_section_info): Do not prepend `0x' to filepos
6820 output, it will be handled by local_hex_string_custom.
6822 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6824 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6825 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6826 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6828 2002-02-22 Jim Blandy <jimb@redhat.com>
6830 Indicate that the bcache functions don't change the strings
6832 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6833 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6835 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6837 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6839 2002-02-21 Christopher Faylor <cgf@redhat.com>
6841 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6842 find the complete path to a loaded DLL.
6844 2002-02-21 Fred Fish <fnf@redhat.com>
6846 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6847 that marks the end of the range of a function, enter a line number
6848 entry that has a line number of zero and a PC offset that matches
6849 the end of the function. This starts a range of PC's for which no
6850 line number information is known.
6851 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6852 PC's for which no line number info is found (line number is zero)
6853 then we didn't find any valid line information.
6854 * symtab.h: Document use of zero line number entry.
6856 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6858 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6859 (have_ptrace_getvrregs): Define for run time checks.
6860 (gdb_vrregset_t): New type for Altivec register handling.
6861 (fetch_register, store_register): Fetch/store altivec register
6863 (fetch_altivec_register, store_altivec_register): New functions.
6864 (supply_vrregset, fill_vrregset): New functions.
6865 (fetch_altivec_registers, store_altivec_registers): New functions.
6866 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6869 2002-02-21 Jiri Smid <smid@suse.cz>
6871 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6873 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6875 * Makefile.in (armnbsd-nat.o): Update dependencies.
6876 * armnbsd-nat.c (supply_gregset): New function. Common code to
6877 supply the integer register set.
6878 (supply_fparegset): New function. Similar for FPA registers.
6879 (fetch_regs, fetch_fp_regs): Use them.
6880 (fetch_core_registers): Likewise.
6881 (fetch_elfcore_registers): New function.
6882 (arm_netbsd_elfcore_fns): New core-file type specification.
6883 (_initialize_arm_netbsd_nat): Register it.
6885 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6887 * armnbsd-nat.c: Include gdbcore.h.
6888 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6889 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6890 'void' to declaration, to shut up ARI.
6891 (fetch_core_registers): Make static. Rewrite using supply_register.
6892 (arm_netbsd_core_fns): New core-file type specification.
6893 (_initialize_arm_netbsd_nat): New function.
6895 2002-02-21 Christopher Faylor <cgf@redhat.com>
6897 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6900 2002-02-20 Christopher Faylor <cgf@redhat.com>
6902 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6905 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6907 * jv-exp.y (parse_number): Change type of implicit longs
6908 to builtin_type_uint64.
6910 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6912 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6913 to be an integer instead of a `union wait'.
6915 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6917 * mips-linux-nat.c: Call the operating system GNU/Linux.
6918 * mips-linux-tdep.c: Likewise.
6919 * mips-tdep.c: Likewise.
6921 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6924 * jv-exp.y (parse_number): Handle 64-bit integers.
6926 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6928 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6929 AC_STDC_HEADERS to AC_HEADER_STDC.
6930 * gdbserver/configure: Regenerated.
6932 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6934 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6936 * sparc-tdep.c (get_longjmp_target): Likewise.
6938 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6940 * News: Add news about ARM and Multi-arch. Mention the new target
6943 2002-02-19 Jim Blandy <jimb@redhat.com>
6945 * stabsread.c (error_type_complaint): Improve error message.
6947 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6949 * gdbserver/README: Update documentation.
6950 * gdbserver/configure.in: Update configury to match documentation.
6951 * gdbserver/Makefile.in: Likewise.
6952 * gdbserver/configure: Regenerated.
6953 * gdbserver/aclocal.m4: New file, generated by aclocal.
6954 * gdbserver/config.in: New file, generated by autoheader.
6956 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6958 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6961 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6963 * arm-tdep.h (enum arm_float_model): New enum.
6964 (struct gdbarch_tdep): Add fp_model.
6965 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6966 up floating-point conversions until we know the floating-point model
6967 in use by the inferior. Don't complain about being unable to
6968 determine the ABI of the inferior when we don't have one.
6969 (arm_extract_return_value): Support different floating-point models.
6970 (arm_store_return_value): Likewise.
6971 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6973 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6975 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6977 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6978 of ``current_gdbarch''.
6980 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6982 * armnbsd-nat.c : ANSIfy all function declarations.
6983 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6984 (fetch_inferior_registers): Re-implement in terms of above.
6985 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6986 (store_inferior_registers): Re-implement in terms of above.
6988 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6990 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6992 * arm-linux-tdep.c: Likewise.
6993 * config/arm/tm-linux.h: Likewise.
6995 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6997 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6998 * config/arm/nbsd.mt (TM_FILE): Delete.
6999 * config/arm/tm-nbsd.h: Delete.
7001 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7003 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7004 Initialize CALL_DUMMY_LENGTH.
7006 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7008 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7010 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
7011 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
7012 defines one thing and that is incorrect for this port.
7013 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7015 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7017 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7019 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7021 * win32-nat.c (display_selector): New function. Displays information
7022 about the information returned by GetThreadSelectorEntry API function.
7023 (display_selectors): New function. Displays the infomation of
7024 the selector given as argument, or of CS, DS ans FS selectors
7025 if no argument is given.
7026 ( _initialize_inftarg): Add "w32" as info prefix command.
7027 Add "info w32 selector" as command calling display_selectors.
7029 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7031 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7032 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7035 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7037 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7039 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7041 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7042 (arm_fix_call_dummy): Call it.
7043 (arm_call_dummy_breakpoint_offset): Delete.
7044 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7045 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7047 2002-02-18 Andrew Cagney <ac131313@redhat.com>
7049 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7050 Default to func_frame_chain_valid.
7051 * gdbarch.h, gdbarch.c: Re-generate.
7052 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7054 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
7056 * ppc-linux-nat.c: Update copyright.
7057 (fetch_register, store_register): Add tid parameter, don't compute
7059 (fetch_ppc_registers, store_ppc_registers): Add tid
7060 parameter. Pass it along to callees.
7061 (fetch_inferior_registers, store_inferior_registers): Compute tid
7062 here, and pass it to calleed functions.
7063 (fill_gregset, supply_fpregset): Clean up formatting.
7065 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7067 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7068 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7070 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7072 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7073 * gdbarch.c gdbarch.h: Regenerate.
7074 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7076 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7077 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7078 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7080 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7081 * arm-tdep.c (arm_get_longjmp_target): New function.
7082 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7083 this to a positive value register arm_get_longjmp_target as the
7085 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7086 (arm_linux_init_abi): Set up longjmp description in tdep.
7087 * armnbsd-nat.c (get_longjmp_target): Delete.
7088 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7089 description in tdep.
7090 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7091 (get_longjmp_target): Delete declaration.
7092 (GET_LONGJMP_TARGET): Delete.
7093 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7094 (GET_LONGJMP_TARGET): Delete.
7096 2002-02-17 Kevin Buettner <kevinb@redhat.com>
7098 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7099 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7100 of ``current_gdbarch''.
7102 2002-02-17 Tom Tromey <tromey@redhat.com>
7104 * cli/cli-cmds.c (compare_strings): New function.
7105 (complete_command): Only print each unique item once.
7106 * completer.h (complete_line): Declare.
7107 * completer.c (complete_line): New function.
7108 (line_completion_function): Use it.
7110 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7112 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7113 * gdbarch.h, gdbarch.c: Re-generate.
7115 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7117 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7119 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7121 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7122 * valops.c (value_arg_coerce): Don't take the address of a reference
7123 to convert an argument to a reference.
7125 2002-02-15 Christopher Faylor <cgf@redhat.com>
7127 * win32-nat.c (get_image_name): New function.
7128 (handle_load_dll): Use get_image_name function.
7129 (get_child_debug_event): Avoid registering debug events until possibly
7130 execed process is started.
7131 (child_create_inferior): Allow invocation via shell so that command
7132 line redirection, etc. works ok.
7133 (_initialize_inftarg): Add new command: "set shell" to control whether
7134 a shell is used to start a process.
7136 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7138 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7139 instead of find_register_by_number.
7140 (cannot_store_register): Likewise.
7142 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7144 * dwarf2read.c: Replace fprintf (stderr, ...) by
7145 fprintf_unfiltered (gdb_stderr, ...).
7147 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7149 * gdbserver/gdbserver.1: Document --attach.
7151 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7153 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7155 * arm-tdep.c (arm_default_arm_le_breakpoint)
7156 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7157 (arm_default_thumb_be_breakpoint): New. Initialize them from
7158 traditional breakpoint defines.
7159 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7160 (arm_gdbarch_init): Initialize new breakpoint variables.
7161 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7162 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7163 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7164 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7166 (arm_netbsd_init_abi_common): ... here; new function.
7167 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7168 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7169 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7170 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7172 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7174 * arm-tdep.h (enum arm_abi): New enum.
7175 (struct gdbarch_tdep): New structure.
7176 (LOWEST_PC): Provide a default.
7177 (arm_gdbarch_register_os_abi): Declare new function.
7178 * arm-tdep.c (arm_abi_names): New array.
7179 (process_note_abi_tag_sections): New function.
7180 (get_elfosabi): New function.
7181 (arm_gdbarch_register_os_abi): New function.
7182 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7183 support for that ABI has been built in, then call the appropriate
7184 configuration routine. Use gdbarch_num_regs() to get the number
7186 (arm_dump_tdep): New function.
7187 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7188 place-holder functions.
7189 (_initialize_arm_tdep): Register them.
7190 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7192 * armnbsd-tdep.c: New file.
7193 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7194 * config/arm/nbsd.mt (TDEPFILES): Add it.
7195 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7197 * armnbsd-nat.c: Include regcache.h.
7198 * Makefile.in (armnbsd-nat.o): Update dependency list.
7200 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7202 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7204 * gdbserver/Makefile.in: Fix typos in target rules.
7206 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7208 Fix part of PR gdb/267.
7209 * linespec.c (find_methods): Handle constructors specially for now.
7211 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7213 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7215 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7216 standard_coerce_float_to_double().
7218 2002-02-14 Christopher Faylor <cgf@redhat.com>
7220 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7223 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7225 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7226 find_variant_by_name, because it confuses the multiarch
7227 framework. Return NULL if there isn't an architecture with the
7228 user supplied name, instead of forcing a different one without
7229 recording the change with the multiarch machinery.
7230 (find_variant_by_name): Delete.
7232 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7234 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7235 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7237 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7239 * stack.c (print_frame_info_base): When calling
7240 print_frame_info_listing_hook, set current_source_symtab.
7242 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7244 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7245 and remove unused $(INCLUDE_DIR).
7246 Add regcache.c to OBS.
7247 Add generated register protocol files to clean target.
7248 Update dependencies for new objects, obsolete old target code.
7250 * gdbserver/linux-low.c: Remove all platform-specific code to
7251 new files. Remove various dead code. Update to use regcache
7253 * gdbserver/remote-utils.c (fromhex): Add return statement
7255 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7257 (input_interrupt): Add integer parameter to match prototype
7258 of a signal handler.
7259 (outreg): Use register_data ().
7260 (prepare_resume_reply): Use gdbserver_expedite_regs.
7261 * gdbserver/server.c (main): Dynamically allocate own_buf because
7262 PBUFSIZ is no longer constant. Use registers_to_string () and
7263 registers_from_string ().
7264 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7265 for error (), fatal (), and warning (). Update definition of
7266 PBUFSIZ to use regcache functionality. Add include guard.
7267 * gdbserver/utils.c (fatal): Add missing ``const''.
7268 (warning): New function.
7270 * regformats/regdat.sh: Include "regcache.h" in generated files.
7271 Provide init_registers () function.
7272 * regformats/regdef.h: Add prototype for set_register_cache ().
7275 * gdbserver/linux-arm-low.c: New file.
7276 * gdbserver/linux-i386-low.c: New file.
7277 * gdbserver/linux-ia64-low.c: New file.
7278 * gdbserver/linux-m68k-low.c: New file.
7279 * gdbserver/linux-mips-low.c: New file.
7280 * gdbserver/linux-ppc-low.c: New file.
7281 * gdbserver/linux-sh-low.c: New file.
7283 * gdbserver/regcache.c: New file.
7284 * gdbserver/regcache.h: New file.
7286 * gdbserver/low-linux.c: Removed obsolete file.
7288 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7290 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7291 * config/i386/linux.mt: Likewise.
7292 * config/ia64/linux.mt: Likewise.
7293 * config/m68k/linux.mh: Likewise.
7294 * config/powerpc/linux.mh: Likewise.
7295 * config/mips/linux.mt: Likewise.
7297 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7299 * config/i386/i386lynx.mh: Mark gdbserver variables
7300 as (currently) obsolete for this target.
7301 * config/i386/nbsd.mt: Likewise.
7302 * config/i386/nbsdelf.mt: Likewise.
7303 * config/m32r/m32r.mt: Likewise.
7304 * config/m68k/m68klynx.mh: Likewise.
7305 * config/m68k/nbsd.mt: Likewise.
7306 * config/m68k/sun3os4.mh: Likewise.
7307 * config/mips/vr5000.mt: Likewise.
7308 * config/ns32k/nbsd.mt: Likewise.
7309 * config/pa/hppabsd.mh: Likewise.
7310 * config/pa/hppaosf.mh: Likewise.
7311 * config/powerpc/nbsd.mt: Likewise.
7312 * config/rs6000/rs6000lynx.mh: Likewise.
7313 * config/s390/s390.mt: Likewise.
7314 * config/s390/s390x.mt: Likewise.
7315 * config/sparc/sparclynx.mh: Likewise.
7316 * config/sparc/sun4os4.mh: Likewise.
7317 * config/i386/x86-64linux.mt: Likewise.
7318 * config/sparc/linux.mh: Likewise.
7320 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7322 * configure.tgt: Configure gdbserver only for known working
7323 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7324 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7325 SUBDIRS if it is configured. Update comment for ${nativefile}.
7326 * configure: Regenerated.
7328 2002-02-13 Michael Snyder <msnyder@redhat.com>
7330 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7332 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7333 (default_gcore_mach): Just return 0, work around a problem in bfd.
7334 (default_gcore_target): OK to return NULL if exec_bfd is null.
7335 (make_mem_sec): Use a cast, avoid a warning.
7337 * procfs.c (find_memory_regions_callback): Use a cast instead of
7338 calling host_pointer_to_address (which complains if
7339 sizeof (host pointer) != sizeof (target pointer)).
7340 (procfs_make_note_section): Avoid overflow in psargs string.
7342 * procfs.c (procfs_make_note_section): Make the default
7343 implementation return an error.
7345 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
7347 * procfs.c (procfs_make_note_section): Provide a default definition
7348 (for alpha-dec-osf4.0f). Fix typos.
7350 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
7352 * linux-proc.c: Add include of regcache.h.
7353 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7355 2002-02-13 Andrew Cagney <ac131313@redhat.com>
7357 From 2002-01-18 Greg McGary <greg@mcgary.org>:
7358 * memattr.c (create_mem_region): Disallow useless empty region.
7359 Regions are half-open intervals, so allow [A..B) [B..C) as
7362 2002-02-13 Michael Chastain <mec@shout.net>
7364 * defs.h: Kill CONST_PTR.
7365 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7366 * c-lang.c (c_builtin_types): Likewise.
7367 * ch-lang.c (ch_builtin_types): Likewise.
7368 * f-lang.c (f_builtin_types): Likewise.
7369 * language.c (unknown_builtin_types): Likewise.
7370 * m2-lang.c (m2_builtin_types): Likewise.
7371 * p-lang.c (pascal_builtin_types): Likewise.
7372 * scm-lang.c (c_builtin_types): Likewise.
7374 2002-02-13 Keith Seitz <keiths@redhat.com>
7376 * arm-tdep.h (arm_get_next_pc): Add declaration.
7378 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
7380 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
7381 with other related struct-returning functions.
7382 (arm_extract_struct_value_address): New function.
7383 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
7384 initialize float_format, double_format and long_double_format as
7385 appropriate to the endianness of the target.
7386 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
7387 (arm_use_struct_convention): Delete declaration.
7388 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7390 2002-02-13 Keith Seitz <keiths@redhat.com>
7392 * defs.h (core_addr_to_string_nz): New function.
7394 2002-02-13 Mark Kettenis <kettenis@gnu.org>
7396 Apply missing bits of 2002-01-15 patch.
7397 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
7398 (fill_fpregset): Use i387_fill_fsave.
7400 2002-02-12 Keith Seitz <keiths@redhat.com>
7402 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
7403 (core_addr_to_string_nz): New function.
7405 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7407 * arm-linux-nat.c: Really include arm-tdep.h.
7408 * config/arm/tm-linux.h (struct type, struct value): Declare.
7410 2002-02-11 Michael Snyder <msnyder@redhat.com>
7412 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
7413 (gcore section): Ifdef for Solaris and Unixware only.
7414 (procfs_do_thread_registers): Unixware needs one lwpstatus
7415 per thread (not one prstatus or pstatus).
7416 (procfs_make_note_section): Iterate only over kernel threads (lwps),
7417 not over all gdb threads. For unixware, call elfcore_write_pstatus
7418 once before iterating over threads.
7420 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7422 * arm-tdep.h: New file.
7423 * arm-tdep.c: Include arm-tdep.h.
7424 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7425 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7426 (arm_print_float_info, arm_register_type, convert_to_extended)
7427 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7428 (arm_extract_return_value, arm_register_name): Make static.
7429 (arm_software_single_step): Similarly. Fix types in declaration.
7430 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
7431 (arm_store_return_value, arm_store_struct_return): New functions.
7432 (arm_gdbarch_init): Register the above functions. Also register
7433 call_dummy_start_offset, sizeof_call_dummy_words,
7434 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
7435 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
7436 max_register_virtual_size, register_size. Set up
7437 prologue_cache.saved_regs here, rather than ...
7438 (_initialize_arm_tdep): ... here.
7439 * config/arm/tm-arm.h (struct type, struct value): Delete forward
7441 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7442 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7443 (arm_print_float_info, arm_register_type, convert_to_extended)
7444 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7445 (arm_extract_return_value, arm_register_name): Delete declarations.
7446 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
7447 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
7448 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
7449 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
7450 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7451 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
7452 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
7453 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
7454 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
7455 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
7456 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
7457 (arm_get_next_pc): No-longer static -- these are needed by the RDI
7459 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
7460 * remote-rdi.c remote-rdp.c: Likewise.
7461 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
7462 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
7463 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
7466 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
7467 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
7468 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
7469 from non-ARM_ prefixed definitions.
7470 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7472 * remote-rdi.c remote-rdp.c: Likewise.
7473 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7475 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7477 * arm-tdep.c (arm_frameless_function_invocation)
7478 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7479 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7480 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7481 (arm_pop_frame, arm_get_next_pc): Make static.
7482 (arm_gdbarch_init): Register above in gdbarch structure.
7483 (arm_read_fp): Renamed from arm_target_read_fp.
7484 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7485 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7486 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7487 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7488 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7489 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7490 (arm_pc_is_thumb_dummy): Delete declarations.
7491 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7492 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7493 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7494 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7496 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7498 * symtab.c (compare_search_syms): New function.
7499 (sort_search_symbols): New function.
7500 (search_symbols): Sort symbols after searching rather than
7503 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7505 * NEWS: Linux -> GNU/Linux.
7507 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7509 * gdbarch.sh: For for level one methods, disallow a definition
7510 when partially multi-arched. Add comments explaining rationale.
7511 * gdbarch.h: Re-generate.
7513 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7515 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7518 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7520 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7522 * gdbarch.c: Re-generate.
7524 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7526 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7527 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7530 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7532 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7534 (PUSH_ARGUMENTS): Switch to using predefault.
7535 * gdbarch.c: Regenerate.
7537 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7539 * valops.c (PUSH_ARGUMENTS): Delete definition.
7540 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7541 partial. Default to default_push_arguments.
7542 * gdbarch.h, gdbarch.c: Regenerate.
7544 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7546 * defs.h (throw_exception): Rename return_to_top_level. Update
7548 * utils.c (error_stream, internal_verror, quit): Ditto.
7549 * top.c (throw_exception, catcher): Ditto.
7550 * sparclet-rom.c (sparclet_load): Ditto.
7551 * remote.c (interrupt_query, minitelnet): Ditto.
7552 * remote-sds.c (interrupt_query): Ditto.
7553 * remote-mips.c (mips_error, mips_kill): Ditto.
7554 * ocd.c (interrupt_query): Ditto.
7555 * monitor.c (monitor_interrupt_query): Ditto.
7556 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7557 * target.h: Update comment.
7559 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7561 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7563 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7564 default_double_format.
7565 * gdbarch.h, gdbarch.c: Re-generate.
7566 * findvar.c (floatformat_unknown): Delete variable definition.
7567 * doublest.h (floatformat_unknown): Delete variable declaration.
7569 2002-02-09 Jim Blandy <jimb@redhat.com>
7571 * stabsread.c (read_type): Add code to parse Sun's syntax for
7572 prototyped function types.
7574 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7576 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7577 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7579 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7581 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7582 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7583 now _initialize_xcoffsolib gets called again and overrides the
7584 commands from solib.c in a native configuration.
7586 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7588 * doublest.c (store_typed_floating): Don't try to return a value.
7591 2002-02-08 Jim Blandy <jimb@redhat.com>
7593 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7594 is prototyped and has no arguments, print its argument list as
7597 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7599 * MAINTAINERS (write-after-approval): Add myself.
7600 (paper-trail): I've escaped!
7602 2002-02-08 Christopher Faylor <cgf@redhat.com>
7604 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7606 (_initialize_check_for_gdb_ini): Ditto.
7608 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7610 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7611 xaprintf -> xasprintf.
7613 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7615 * win32-nat.c: Remove use of printf and sprintf functions.
7617 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7619 * arm-tdep.c (arm_frame_chain_valid): Make static.
7620 (arm_push_arguments): Likewise.
7621 (arm_gdbarch_init): New function.
7622 (_initialize_arm_tdep): Call it.
7623 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7624 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7625 (FRAME_CHAIN_VALID): Delete.
7626 (arm_frame_chain_valid): Delete declaration.
7627 (PUSH_ARGUMENTS): Delete.
7628 (arm_push_arguments): Delete declaration.
7629 (CALL_DUMMY_P): Delete.
7631 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7632 Corinna Vinschen <vinschen@redhat.com>
7634 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7635 on builtin float types.
7637 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7639 * utils.c: Include <curses.h> before "bfd.h".
7640 * tui/tui-hooks.c: Likewise.
7641 * tui/tui.c: Likewise.
7642 * tui/tuiCommand.c: Likewise.
7643 * tui/tuiData.c: Likewise.
7644 * tui/tuiDataWin.c: Likewise.
7645 * tui/tuiDisassem.c: Likewise.
7646 * tui/tuiGeneralWin.c: Likewise.
7647 * tui/tuiIO.c: Likewise.
7648 * tui/tuiLayout.c: Likewise.
7649 * tui/tuiRegs.c: Likewise.
7650 * tui/tuiSource.c: Likewise.
7651 * tui/tuiSourceWin.c: Likewise.
7652 * tui/tuiStack.c: Likewise.
7653 * tui/tuiWin.c: Likewise.
7655 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7657 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7658 to include space for pseudoregs as well. Update loops accordingly.
7659 (sh_fp_frame_init_saved_regs): Ditto.
7660 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7662 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7664 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7665 Add Richard Earnshaw to Arm maintainers.
7667 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7669 * defs.h (warning_begin): Delete declaration.
7671 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7674 2002-02-07 Michael Snyder <msnyder@redhat.com>
7676 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7677 Logic bug, remove misplaced else.
7679 2002-02-07 Klee Dienes <klee@apple.com>
7681 * fork-inferior.c (fork_inferior): Add '!' to the list of
7682 characters that need to be quoted when building a string for the
7683 shell. Quote '!' specifically with a backslash, since CSH chokes
7684 when trying to evaluate "str!str".
7686 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7688 * rdi-share/host.h: Only provide a typedef for bool if it is not
7691 2002-02-04 Michael Snyder <msnyder@redhat.com>
7693 * breakpoint.h (enum bptype): Add new overlay event bp type.
7694 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7696 * breakpoint.c (create_internal_breakpoint): New function.
7697 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7698 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7699 (create_thread_event_breakpoint): Ditto.
7700 (create_solib_event_breakpoint): Ditto.
7701 (create_overlay_event_breakpoint): New function.
7702 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7703 (update_breakpoints_after_exec): Delete and re-initialize
7704 overlay event breakpoints after an exec. Add FIXME comment
7705 about longjmp breakpoint.
7706 (print_it_typical): Ignore overlay event breakpoints.
7707 (print_one_breakpoint): Ditto.
7709 (bpstat_what): Do not stop for overlay event breakpoints.
7710 (delete_breakpoint): Don't delete overlay event breakpoints.
7711 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7712 (breakpoint_re_set): Re-create overlay event breakpoint.
7714 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7715 (overlay_manual_command): Disable overlay breakpoints.
7716 (overlay_off_command): Disable overlay breakpoints.
7718 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7720 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7721 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7722 to here from config/tm-arm.h.
7723 (coff_sym_is_thumb): Make static.
7724 (arm_elf_make_msymbol_special): New function.
7725 (arm_coff_make_msymbol_special): New function.
7726 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7727 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7728 (coff_sym_is_thumb): Delete declaration.
7729 (arm_elf_make_msymbol_special): Declare.
7730 (arm_coff_make_msymbol_special): Declare.
7731 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7732 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7734 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7736 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7738 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7740 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7741 * gdbarch.c gdbarch.h: Regenerate.
7742 * arch-utils.c (default_print_float_info): New function.
7743 * arch-utils.h (default_print_float_info): Prototype it.
7744 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7745 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7746 (PRINT_FLOAT_INFO): Document it.
7748 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7749 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7750 (PRINT_FLOAT_INFO): Define.
7752 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7754 * win32-nat.c (_initialize_check_for_gdb_ini):
7755 Add typecast to sprintf argument to suppress a warning.
7757 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7759 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7760 to allow easier handling of pass state.
7761 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7762 that gives exception name and address.
7763 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7764 and set last_sig value to ourstatus->value.sig. Some missing
7766 (child_continue): Correctly report continue_status.
7767 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7768 TARGET_SIGNAL_0 (new default value).
7769 (child_resume): consider sig argument passed to decide if
7770 the exception should be passed to debuggee or not.
7772 2002-02-05 Michael Snyder <msnyder@redhat.com>
7774 * regcache.c (fetch_register): Call target_fetch_register
7775 only if we don't call FETCH_PSEUDO_REGISTER.
7776 (store_register): Call target_store_register only if we
7777 don't call STORE_PSEUDO_REGISTER.
7779 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7781 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7782 ELF_MAKE_MSYMBOL_SPECIAL.
7783 * gdbarch.c, gdbarch.h: Regenerate.
7784 * arch-utils.c (default_make_msymbol_special): New function.
7785 * arch-utils.h (default_make_msymbol_special): Export.
7786 * elfread.c (elf_symtab_read): Compile use of
7787 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7789 * coffread.c (coff_symtab_read): Ditto, for
7790 COFF_MAKE_MSYMBOL_SPECIAL.
7792 2002-02-05 Jim Blandy <jimb@redhat.com>
7794 * solib-svr4.c (svr4_truncate_ptr): New function.
7795 (svr4_relocate_section_addresses): Do the address arithmetic with
7796 the appropriate truncation for target addresses, even when
7797 CORE_ADDR is larger than a target address.
7799 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7801 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7804 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7806 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7809 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7811 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7813 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7815 * gdbserver/linux-low.c: Remove unused include files.
7817 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7819 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7820 (read_inferior_memory): Use it.
7821 (write_inferior_memory): Likewise.
7823 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7825 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7826 grubbing through sys_errlist.
7828 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7830 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7832 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7833 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7835 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7837 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7838 (do_sfunc, set_cmd_sfunc): New functions.
7840 * command.h (struct cmd_list_element): Add field func.
7841 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7842 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7843 * cli/cli-decode.h: Ditto.
7845 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7846 (help_all, help_cmd_list): Ditto.
7847 (find_cmd, complete_on_cmdlist): Ditto.
7848 * top.c (execute_command): Ditto.
7850 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7853 * infcmd.c (notice_args_read): Fix function signature.
7855 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7856 * cli/cli-decode.c (add_set_cmd): Ditto.
7857 * utils.c (initialize_utils): Ditto.
7858 * maint.c (_initialize_maint_cmds): Ditto.
7859 * infrun.c (_initialize_infrun): Ditto.
7860 * demangle.c (_initialize_demangler): Ditto.
7861 * remote.c (add_packet_config_cmd): Ditto.
7862 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7863 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7864 * proc-api.c (_initialize_proc_api): Ditto.
7865 * kod.c (_initialize_kod): Ditto.
7866 * valprint.c (_initialize_valprint): Ditto.
7867 * top.c (init_main): Ditto.
7868 * infcmd.c (_initialize_infcmd): Ditto.
7869 * corefile.c (_initialize_core): Ditto.
7870 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7871 * arch-utils.c (initialize_current_architecture): Ditto.
7872 (_initialize_gdbarch_utils): Ditto.
7873 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7875 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7876 * wince.c (_initialize_inftarg): Ditto.
7877 * symfile.c (_initialize_symfile): Ditto.
7878 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7879 * language.c (_initialize_language): Ditto.
7880 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7882 2002-02-04 Michael Snyder <msnyder@redhat.com>
7884 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7886 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7888 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7889 Add rules for building the register data files.
7891 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7893 * regformats/regdat.sh: Add braces to the definition of
7894 expedite_regs_${arch}.
7896 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7898 * regformats/regdef.h (struct reg): Add comment describing the
7899 requirements for offset and size fields.
7901 2002-02-04 Andreas Schwab <schwab@suse.de>
7903 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7904 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7906 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7908 * gdbarch.sh (copyright): Update years in generated header.
7909 (SMASH_TEXT_ADDRESS): Add rule.
7910 * gdbarch.h, gdbarch.c: Re-generate.
7911 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7912 * dbxread.c: Likewise.
7913 * dwarfread.c: Likewise.
7914 * elfread.c: Likewise.
7915 * somread.c: Likewise.
7917 * arm-tdep.c (arm_smash_text_address): New function.
7918 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7920 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7922 Add support for hardware watchpoints on win32 native.
7923 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7924 CONTEXT_DEBUG_REGISTERS.
7925 (dr variable): New variable. Static array containing a local copy
7927 (debug_registers_changed): New variable. Reflects when debug registers
7928 are changed and need to be written to inferior.
7929 (debug_registers_used): New variable. Reflects when any debug register
7930 was set, used when new threads are created.
7931 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7933 (thread_rec): Set dr array if id is the thread of current_event .
7934 (child_continue, child_resume): Change the debug registers for all
7935 threads if debug_registers_changed.
7936 (child_add_thread): Change the debug registers if debug_registers_used.
7937 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7938 Link nm.h to new nm-cygwin.h file.
7939 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7940 of hardware registers.
7942 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7944 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7945 Restore behavour broken by 2002-01-20 Andrew Cagney
7946 <ac131313@redhat.com> IEEE_FLOAT removal.
7948 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7950 * c-valprint.c (c_val_print): Pass a proper valaddr to
7951 cp_print_class_method.
7952 * valops.c (search_struct_method): If there is only one method
7953 and args is NULL, return that method.
7955 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7957 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7958 accessing tag_name directly.
7960 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7962 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7963 of accessing tag_name directly.
7965 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7968 * gdbtypes.c (replace_type): New function.
7969 * gdbtypes.h (replace_type): Add prototype.
7970 * stabsread.c (read_type): Use replace_type.
7972 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7974 * Makefile.in (memattr.o): Add missing dependencies rule.
7976 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7978 * breakpoint.c (break_at_finish_command): Really export.
7979 (break_at_finish_at_depth_command): Ditto.
7980 (tbreak_at_finish_command): Ditto.
7981 * hppa-tdep.c: Include completer.h.
7982 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7983 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7985 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7987 * utils.c (do_write): New function.
7988 (error_stream): Rewrite combining the code from error_begin and
7990 (verror): Rewrite using error_stream.
7991 (error_begin): Delete function.
7993 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7995 * utils.c (error_begin): Make static.
7996 * defs.h (error_begin): Delete declaration.
7998 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7999 (decode_line_1): Use cplusplus_error instead of error_begin,
8000 cplusplus_hint and return_to_top_level.
8001 * coffread.c (coff_symfile_read): Use error instead of error_begin
8002 and return_to_top_level.
8003 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8005 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8007 * language.h (type_error, range_error): Make string parameter
8009 * language.c (warning_pre_print): Delete extern declaration.
8010 * dwarfread.c (warning_pre_print): Ditto.
8011 * language.c (type_error, range_error): Rewrite to use verror and
8012 vwarning instead of warning_begin.
8014 2002-02-01 Michael Snyder <msnyder@redhat.com>
8016 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8017 (set_ignore_count): Move misplaced comment back where it belongs.
8019 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8021 * command.h (NO_FUNCTION): Delete macro.
8022 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8023 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8024 * tracepoint.c (_initialize_tracepoint): Ditto.
8025 * cli/cli-decode.c (add_set_cmd): Ditto.
8026 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8028 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8030 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8031 Update ``this'' pointer when calling virtual functions.
8033 2002-02-01 Michael Snyder <msnyder@redhat.com>
8035 * breakpoint.c (create_temp_exception_breakpoint): Delete.
8036 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8038 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8040 * regformats/reg-arm.dat: New file.
8041 * regformats/reg-i386.dat: New file.
8042 * regformats/reg-ia64.dat: New file.
8043 * regformats/reg-m68k.dat: New file.
8044 * regformats/reg-mips.dat: New file.
8045 * regformats/reg-ppc.dat: New file.
8046 * regformats/reg-sh.dat: New file.
8047 * regformats/regdef.h: New file.
8048 * regformats/regdat.sh: New file.
8050 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
8052 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8053 (arm_frame_args_address, arm_frame_locals_address): New functions.
8054 (arm_frame_num_args): New function.
8055 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8056 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8057 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8059 2002-01-31 Michael Snyder <msnyder@redhat.com>
8061 * breakpoint.c (break_at_finish_command): Export.
8062 (break_at_finish_at_depth_command): Export.
8063 (tbreak_at_finish_command): Export.
8064 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8065 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8066 "tbreak" commands, which are HPPA specific.
8068 * printcmd.c (disassemble_command): Remove an ancient
8069 artifact of an old merge.
8071 * symfile.h (enum overlay_debugging_state):
8072 Define enum constant values for overlay mode.
8073 * symfile.c (overlay_debugging): Use enums instead of literals.
8074 (overlay_is_mapped, overlay_auto_command,
8075 overlay_manual_command): Ditto.
8077 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8078 breakpoint_here_p, breakpoint_inserted_here_p,
8079 breakpoint_thread_match, bpstat_stop_status,
8080 describe_other_breakpoints, check_duplicates, clear_command):
8081 Coding standard fixes.
8083 * target.c (target_xfer_memory): Add spaces, coding standard.
8084 (do_xfer_memory): Add missing line to trust-readonly
8085 code: check bfd SEC_READONLY flag for section.
8087 2002-01-31 Andrew Cagney <ac131313@redhat.com>
8089 * PROBLEMS: Fix typo, 5.1->5.1.1.
8091 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
8093 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8094 data symbols, since we search based on textlow and texthigh.
8095 (find_pc_sect_symtab): Likewise.
8097 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8099 * defs.h (vwarning): Declare.
8100 * utils.c (vwarning): New function.
8101 (warning): Call vwarning.
8102 (warning_begin): Delete function.
8104 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8105 the warning message.
8106 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8109 2002-01-30 Michael Snyder <msnyder@redhat.com>
8111 * NEWS: Mention "set trust-readonly-sections" command.
8112 Mention generate-core-file command.
8114 2002-01-15 Michael Snyder <msnyder@redhat.com>
8116 * target.c: New command, "set trust-readonly-sections on".
8117 (do_xfer_memory): Honor the suggestion to trust readonly sections
8118 by reading them from the object file instead of from the target.
8119 (initialize_targets): Register command "set trust-readonly-sections".
8121 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8123 * parse.c (target_map_name_to_register): Simplify, search regs and
8124 pseudo-regs using a single loop.
8126 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8128 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8130 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
8132 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8133 * config/i386/i386v42mp.mh: Add i387-nat.o .
8134 * i386v4-nat.c: Include i387-nat.h.
8135 (supply_fpregset): Use i387_supply_fsave.
8136 (fill_fpregset): Use i387_fill_fsave.
8138 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
8140 * arm-tdep.c (arm_call_dummy_words): Define.
8141 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8142 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8143 (CALL_DUMMY_WORDS): Define.
8144 (arm_call_dummy_words): Declare.
8145 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8146 (arm_linux_call_dummy_words): Declare.
8148 2002-01-30 Andreas Schwab <schwab@suse.de>
8150 * m68klinux-nat.c: Fix last change to use regcache_collect
8151 instead of referencing registers[] directly.
8153 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8155 * parse.c (target_map_name_to_register): Delete code wrapped in
8156 #ifdef REGISTER_NAME_ALIAS_HOOK.
8158 2002-01-28 Michael Snyder <msnyder@redhat.com>
8160 * regcache.c (legacy_read_register_gen): Need to be able to
8161 read pseudo-register as well as real register.
8162 (legacy_write_register_gen): Ditto.
8164 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8166 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8167 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8168 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8169 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8170 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8171 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8172 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8173 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8174 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8175 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8176 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8177 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8178 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8179 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8180 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8181 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8182 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8183 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8184 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8185 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8187 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8189 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8190 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8191 (initialize_current_architecture): Update target_byte_order using
8192 information from BFD.
8193 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
8194 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8196 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8198 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8199 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8201 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8202 #ifdef INVALID_FLOAT.
8203 * infcmd.c (do_registers_info): Ditto.
8204 * values.c (unpack_double): Ditto. Add comment.
8206 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8207 already commented out.
8209 2002-01-26 Andreas Schwab <schwab@suse.de>
8211 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8212 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8213 registers and add support for PTRACE_GETREGS.
8215 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8217 GDB 5.1.1 released from 5.1 branch.
8218 * NEWS: Add 5.1.1 news.
8219 * README: Sync with 5.1 branch.
8221 2002-01-23 Fred Fish <fnf@redhat.com>
8223 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8224 stabstring on initial malloc. Reallocing will copy it for us,
8227 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8229 * Makefile.in (hpread_h): Delete.
8230 (HFILES_NO_SRCDIR): Remove hpread.h.
8231 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8232 (hpread.o): Update dependencies.
8233 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8235 * hp-psymtab-read.c: Remove file.
8236 * hp-symtab-read.c: Remove file.
8237 * hpread.h: Remove file.
8239 * hpread.c: Merge all contents of hp-psymtab-read.c,
8240 hp-symtab-read.c and hpread.h into this file, as it was prior to
8243 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8244 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8245 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8246 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8248 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8250 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8251 fill_gregset): Call gdbarch_tdep() just once, assign result to
8252 variable and use that, instead of calling the function several
8255 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8257 * configure.host: Accept sparcv9 as alias for sparc64.
8258 * configure.tgt: Likewise.
8260 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8262 * solib-aix5.c (build_so_list_from_mapfile)
8263 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8264 arguments is not reversed.
8265 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8266 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8268 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8270 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8271 modified version of obsolete sh_fetch_pseudo_register.
8272 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8273 (sh4_register_read): New function.
8274 (sh_pseudo_register_write): New function. Renamed and modified
8275 version of obsolete sh_store_pseudo_register.
8276 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8277 (sh4_register_write): New function.
8278 (sh_gdbarch_init): Remove setting of gdbarch function
8279 fetch_pseudo_register and store_pseudo_register. Remove setting of
8280 register_convert_to_raw, register_convert_to_virtual,
8281 register_convertible.
8282 (sh_sh4_register_convertible): Delete. No longer needed. All is
8283 taken care by architecture specific functions
8284 register_read/register_write.
8285 (sh_sh4_register_convert_to_virtual): Make static.
8286 (sh_sh4_register_convert_to_raw): Ditto.
8288 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8290 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8291 (floatformat_is_nan, floatformat_mantissa): Ditto.
8293 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8294 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8295 builtin_type_ieee_double_little,
8296 builtin_type_ieee_double_littlebyte_bigword,
8297 builtin_type_m68881_ext, builtin_type_i960_ext,
8298 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8299 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8300 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8301 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8303 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8305 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8306 parameter. Set frameless flag if it exists and depended of
8307 whether the scanned function is frameless or not.
8308 (xstormy16_skip_prologue): If function is frameless, return
8309 result of xstormy16_scan_prologue().
8310 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8313 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8315 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8316 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8317 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8318 sh_sh4_register_byte, sh_sh4_register_raw_size,
8319 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8320 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8321 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8322 sh_store_pseudo_register, sh_do_pseudo_register): Call
8323 gdbarch_tdep() just once, assign result to variable and use that,
8324 instead of calling the function several times.
8326 2002-01-20 Mark Kettenis <kettenis@gnu.org>
8328 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8329 macros instead of LAST_FPU_CTRL_REGNUM.
8330 (store_register): Likewise.
8332 2002-01-21 Jim Blandy <jimb@redhat.com>
8334 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8335 is up-to-date before running the program, not just when a program
8338 2002-01-21 Fred Fish <fnf@redhat.com>
8340 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8341 when we have found all instructions we are looking for.
8343 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8345 * arm-tdep.c (arm_register_name): New function.
8346 (arm_registers_names): Make static.
8347 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8348 (arm_register_name): Declare.
8349 (REGISTER_NAME): Use it.
8351 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8352 Kevin Buettner <kevinb@redhat.com>
8354 Convert arm targets to new FRAME interface.
8355 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8356 (arm_frame_find_save_regs): Delete.
8357 (arm_frame_init_saved_regs): New.
8358 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8359 Allocate extra_info as required. Convert all uses of fsr.regs
8360 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8362 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8363 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8364 (check_prologue_cache, save_prologue_cache): Likewise.
8365 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8366 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8367 (FRAME_FIND_SAVED_REGS): Delete.
8368 (arm_frame_find_saved_regs): Delete prototype.
8369 (arm_frame_init_saved_regs): New prototype.
8370 (FRAME_INIT_SAVED_REGS): Define.
8372 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8374 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8376 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8378 From Jeff Law <law@redhat.com>:
8379 * infttrace.c: Include <sys/pstat.h>.
8380 (child_pid_to_exec_file): Revamp. Use pstat call to get the
8381 exec file if the ttrace equivalent fails.
8383 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8385 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
8386 (closeLogFile): Ditto.
8388 2002-01-20 Michael Chastain <mec@shout.net>
8390 * top.c (print_gdb_version): Bump copyright year to 2002.
8392 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8394 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
8395 Zannoni and Eli Zaretskii.
8397 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8399 * buildsym.c: Update copyright years.
8400 * c-typeprint.c: Likewise.
8401 * dwarf2read.c: Likewise.
8402 * f-typeprint.c: Likewise.
8403 * gdbtypes.c: Likewise.
8404 * gdbtypes.h: Likewise.
8405 * hp-symtab-read.c: Likewise.
8406 * hpread.c: Likewise.
8407 * mdebugread.c: Likewise.
8408 * p-typeprint.c: Likewise.
8410 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8412 * remote-sim.c (gdbsim_open): Simplify code testing the macro
8413 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
8414 byte-order selectable.
8415 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
8416 * arch-utils.c: Ditto.
8417 (set_endian): Ditto.
8418 (set_endian_from_file): Ditto.
8419 * gdbserver/low-sim.c (create_inferior): Ditto.
8420 * gdbarch.sh: Ditto.
8421 * gdbarch.h: Re-generate.
8422 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8423 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
8424 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
8425 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8426 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8427 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8428 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
8429 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
8431 * config/mips/tm-wince.h: Remove #undef of macro
8432 TARGET_BYTE_ORDER_SELECTABLE.
8433 * config/sh/tm-wince.h: Ditto.
8435 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8437 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
8438 member function fields. Add accessor macro
8439 TYPE_FN_FIELD_ARTIFICIAL.
8440 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
8441 * c-typeprint.c (c_type_print_base): Skip artificial member
8444 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8446 * f-typeprint.c: Delete unused function f_type_print_args.
8447 * p-typeprint.c: Delete unused function pascal_type_print_args.
8449 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8451 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
8452 comment. Add ``artificial'' to ``union field_location''.
8454 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
8456 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
8457 * mdebugread.c (parse_symbol): Likewise.
8458 * stabsread.c (define_symbol): Likewise.
8459 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
8460 initializing TYPE_FIELD_BITPOS to n (obsolete).
8461 (hpread_doc_function_type): Likewise.
8462 * hpread.c (hpread_function_type): Likewise.
8464 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8466 * configure.in (host_makefile_frag): Only require a host makefile
8467 fragment when a native build.
8468 * configure: Re-generate.
8470 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8472 * doublest.h (floatformat_from_type): Declare.
8473 * doublest.c (floatformat_from_type): New function.
8474 (convert_typed_floating): Use.
8476 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8477 call to function floatformat_from_type.
8479 * gdbarch.sh (IEEE_FLOAT): Delete.
8480 * gdbarch.h, gdbarch.c: Re-generate.
8481 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8482 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8483 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8484 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8485 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8486 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8487 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8488 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8489 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8490 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8491 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8492 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8494 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8495 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8496 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8497 * sh-tdep.c (sh_gdbarch_init): Ditto.
8498 * mips-tdep.c (mips_gdbarch_init): Ditto.
8499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8500 * cris-tdep.c (cris_gdbarch_init): Ditto.
8502 2002-01-20 Jiri Smid <smid@suse.cz>
8504 * configure.host, configure.tgt: Support x86-64.
8505 * NEWS: Note new target x86-64.
8507 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8508 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8509 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8510 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8511 x86-64-linux-nat.o): Fix dependencies.
8513 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8515 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8516 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8517 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8518 * config/sparc/xm-sun4os4.h: Delete file.
8519 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8521 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8523 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8524 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8525 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8526 * config/i386/i386lynx.mh (XM_FILE): Delete.
8527 * config/rs6000/xm-rs6000ly.h: Delete file.
8528 * config/sparc/xm-sparclynx.h: Delete file.
8529 * config/m68k/xm-m68klynx.h: Delete file.
8530 * config/i386/xm-i386lynx.h: Delete file.
8531 * config/xm-lynx.h: Delete file.
8532 * config/djgpp/fnchange.lst: Update.
8534 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8536 * alpha-tdep.c (alpha_register_byte): New function.
8537 (alpha_register_raw_size): Ditto.
8538 (alpha_register_virtual_size): Ditto.
8539 (alpha_skip_prologue_internal): Renamed from
8540 alpha_skip_prologue.
8541 (alpha_skip_prologue): New version that calls
8542 alpha_skip_prologue_internal.
8543 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8544 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8545 second argument from alpha_skip_prologue.
8546 (REGISTER_BYTE): Use alpha_register_byte.
8547 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8548 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8549 (FRAMELESS_FUNCTION_INVOCATION): Use
8550 generic_frameless_function_invocation_not.
8551 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8552 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8554 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8556 * config/mips/xm-news-mips.h: Delete file.
8557 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8559 * config/m88k/xm-m88k.h: Delete file.
8560 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8561 * config/m88k/xm-delta88v4.h: Ditto.
8562 * config/m88k/xm-delta88.h: Ditto.
8564 * config/alpha/xm-fbsd.h: Delete file.
8565 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8567 * config/sparc/xm-sparc.h: Delete file.
8568 * Makefile.in (xm-sun4os4.h): Delete dependency.
8569 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8570 * config/sparc/xm-sun4os4.h: Ditto.
8571 * config/sparc/xm-linux.h: Ditto.
8573 * config/i386/xm-windows.h: Delete file.
8575 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8577 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8578 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8580 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8582 * alpha-tdep.c (alpha_call_dummy_words): New.
8583 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8584 (CALL_DUMMY_P): Define.
8585 (CALL_DUMMY_WORDS): Define.
8586 (SIZEOF_CALL_DUMMY_WORDS): Define.
8588 2002-01-19 Per Bothner <per@bothner.com>
8590 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8591 isn't NULL, which can happen with some gcj-3.x-produced code.
8593 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8595 * alpha-tdep.c (alpha_register_virtual_type): New function.
8596 (alpha_init_frame_pc_first): Ditto.
8597 (alpha_fix_call_dummy): Ditto.
8598 (alpha_store_struct_return): Ditto.
8599 (alpha_extract_struct_value_address): Ditto.
8600 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8601 alpha_register_virtual_type.
8602 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8603 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8604 alpha_extract_struct_value_address.
8605 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8606 (INIT_FRAME_PC): Use init_frame_pc_noop.
8607 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8609 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8611 * i386gnu-nat.c: Include "i386-tdep.h".
8612 (fetch_fpregs): Simplify code dealing with uninitialized floating
8613 point states such that it doesn't require FP7_REGNUM.
8615 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8617 * alpha-tdep.c (frame_extra_info): New.
8618 (alpha_find_saved_regs): Make static. Use
8620 (alpha_frame_init_saved_regs): New function.
8621 (alpha_frame_saved_pc): Use frame->extra_info.
8622 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8623 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8624 (init_extra_frame_info): Rename to...
8625 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8626 (alpha_print_extra_frame_info): New function.
8627 (alpha_frame_locals_address): Ditto.
8628 (alpha_frame_args_address): Ditto.
8629 (alpha_pop_frame): Use frame->extra_info.
8630 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8631 alpha_frame_args_address.
8632 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8633 (alpha_find_saved_regs): Remove prototype.
8634 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8635 (EXTRA_FRAME_INFO): Remove.
8636 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8637 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8639 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8641 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8642 (alpha_cannot_fetch_register): Ditto.
8643 (alpha_cannot_store_register): Ditto.
8644 (alpha_register_convertible): Ditto.
8645 (alpha_use_struct_convention): Ditto.
8646 * config/alpha/tm-alpha.h: Update copyright years.
8647 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8648 (INNER_THAN): Use core_addr_lessthan.
8649 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8650 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8651 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8652 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8653 (FRAME_CHAIN): Remove unnecessary cast.
8655 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8657 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8660 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8662 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8663 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8664 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8665 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8666 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8667 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8668 * x86-64-linux-nat.c: Ditto.
8670 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8672 * alpha-tdep.c (alpha_register_name): New function.
8673 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8674 (REGISTER_NAME): Define.
8676 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8678 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8680 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8682 * alpha-tdep.c: Update copyright years.
8683 (alpha_next_pc): New function.
8684 (alpha_software_single_step): Ditto.
8685 * config/alpha/tm-alpha.h: Add prototype for
8686 alpha_software_single_step.
8688 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8690 * alphabsd-nat.c: Update copyright years.
8691 (fill_gregset): Use regcache_collect.
8692 (fill_fpregset): Likewise.
8693 (fetch_inferior_registers): Only fetch integer registers
8694 if requested to do so.
8695 (store_inferior_registers): Only store integer registers
8696 if requested to do so.
8698 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8700 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8701 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8702 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8703 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8704 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8705 * config/arm/linux.mh (XDEPFILES): Delete.
8706 * config/arm/nbsd.mh (XDEPFILES): Delete.
8707 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8708 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8709 * config/i386/i386m3.mh (XDEPFILES): Delete.
8710 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8711 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8712 * config/i386/fbsd.mh (XDEPFILES): Delete.
8713 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8714 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8715 * config/i386/i386v4.mh (XDEPFILES): Delete.
8716 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8717 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8718 * config/i386/i386aix.mh (XDEPFILES): Delete.
8719 * config/i386/go32.mh (XDEPFILES): Delete.
8720 * config/i386/cygwin.mh (XDEPFILES): Delete.
8721 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8722 * config/i386/i386mach.mh (XDEPFILES): Delete.
8723 * config/i386/i386v32.mh (XDEPFILES): Delete.
8724 * config/i386/linux.mh (XDEPFILES): Delete.
8725 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8726 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8727 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8728 * config/i386/i386sco.mh (XDEPFILES): Delete.
8729 * config/i386/i386v.mh (XDEPFILES): Delete.
8730 * config/i386/nbsd.mh (XDEPFILES): Delete.
8731 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8732 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8733 * config/i386/symmetry.mh (XDEPFILES): Delete.
8734 * config/i386/obsd.mh (XDEPFILES): Delete.
8735 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8736 * config/ia64/linux.mh (XDEPFILES): Delete.
8737 * config/ia64/aix.mh (XDEPFILES): Delete.
8738 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8739 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8740 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8741 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8742 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8743 * config/m68k/linux.mh (XDEPFILES): Delete.
8744 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8745 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8746 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8747 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8748 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8749 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8750 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8751 * config/m88k/delta88.mh (XDEPFILES): Delete.
8752 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8753 * config/m88k/m88k.mh (XDEPFILES): Delete.
8754 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8755 * config/mips/linux.mh (XDEPFILES): Delete.
8756 * config/mips/irix6.mh (XDEPFILES): Delete.
8757 * config/mips/irix5.mh (XDEPFILES): Delete.
8758 * config/mips/irix4.mh (XDEPFILES): Delete.
8759 * config/mips/irix3.mh (XDEPFILES): Delete.
8760 * config/mips/decstation.mh (XDEPFILES): Delete.
8761 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8762 (NATDEPFILES): Move core-aout.o to here.
8763 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8764 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8765 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8766 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8767 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8768 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8769 * config/pa/hpux11.mh (XDEPFILES): Delete.
8770 * config/powerpc/aix.mh (XDEPFILES): Delete.
8771 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8772 * config/powerpc/linux.mh (XDEPFILES): Delete.
8773 * config/romp/rtbsd.mh: Rename XDEPFILES.
8774 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8775 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8776 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8777 * config/s390/s390.mh (XDEPFILES): Delete.
8778 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8779 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8780 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8781 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8782 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8783 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8784 * config/sparc/linux.mh (XDEPFILES): Delete.
8785 * config/vax/vaxult.mh (XDEPFILES): Delete.
8786 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8787 * Makefile.in (DEPFILES): Remove XDEPFILES.
8789 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8791 * utils.c (internal_verror): Fix comments, default is yes not no.
8792 Update queries to match. Default to quit and dump core.
8794 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8796 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8798 * defs.h, event-top.c, gdbcmd.h: Ditto.
8799 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8800 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8801 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8802 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8803 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8804 * mi/mi-main.c:Ditto.
8806 * stack.c, symfile.c: Update copyright.
8808 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8810 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8811 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8812 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8813 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8815 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8817 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8818 * gdbserver/low-lynx.c (myattach): Likewise.
8819 * gdbserver/low-nbsd.c (myattach): Likewise.
8820 * gdbserver/low-sim.c (myattach): Likewise.
8821 * gdbserver/low-sparc.c (myattach): Likewise.
8822 * gdbserver/low-sun3.c (myattach): Likewise.
8824 * gdbserver/low-linux.c (myattach): New function.
8826 * gdbserver/server.c (attach_inferior): New function.
8827 (main): Handle "--attach".
8829 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8831 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8834 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8836 * c-typeprint.c (is_type_conversion_operator): Add additional
8837 check for non-conversion operators.
8839 2002-01-15 Michael Snyder <msnyder@redhat.com>
8841 * linux-proc.c: Add "info proc" command, a la procfs.c.
8842 (read_mapping): New function, abstract and re-use code.
8843 (linux_find_memory_regions): Use new func read_mapping.
8844 (linux_info_proc_cmd): New function, implement "info proc".
8845 (_initialize_linux_proc): Add new command "info proc".
8847 2002-01-15 Michael Snyder <msnyder@redhat.com>
8849 * symfile.c (generic_load): Use bfd_map_over_sections method
8850 instead of manipulating bfd structure members directly.
8851 (add_section_size_callback): New function, bfd sections callback
8852 used by generic_load.
8853 (load_sections_callback): New function, bfd sections callback
8854 used by generic_load.
8856 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8858 [Based on work by Jim Blandy]
8859 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8860 (builtin_type_vec128): Export.
8861 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8863 (builtin_type_vec128): New builtin type for 128 bit vector
8865 (build_gdbtypes): Initialize builtin_type_v16qi and
8866 builtin_type_v8hi. Create the vec128 register builtin type
8868 (build_builtin_type_vec128): New function.
8869 (_initialize_gdbtypes): Register builtin_type_v16qi and
8870 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8871 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8872 AltiVec register to new builtin type.
8874 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8876 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8879 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8881 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8882 CLEAN_UP_REGISTER_VALUE.
8883 * regcache.c (supply_register): Update only call.
8885 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8887 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8888 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8889 a29k-*-vxworks* targets as obsolete.
8891 2002-01-14 Michael Snyder <msnyder@redhat.com>
8893 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8894 until we can resolve portability issues.
8895 * gregset.h: Remove references to fpxregs.
8896 * gcore.c (gcore_command): Initialize note_sec to NULL.
8898 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8900 * signals.c (target_signal_to_name): Rewrite. Only use
8901 signals[].name when in bounds and non-NULL.
8903 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8905 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8906 * signals.c (target_signal_to_name): Verify that SIG is within the
8907 bounds of the signals array.
8909 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8911 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8913 2002-01-13 Keith Seitz <keiths@redhat.com>
8915 * stack.c (print_frame_info_base): Print the frame's pc
8916 only if when print_frame_info_listing_hook is not defined.
8918 2002-01-13 Keith Seitz <keiths@redhat.com>
8920 * varobj.c (varobj_set_value): Make sure that there were no
8921 errors evaluating the object before attempting to set its
8923 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8924 so this offset adjustment is no longer necessary.
8925 (create_child): Don't set the error flag if the child is
8927 (value_of_child): If value_fetch_lazy fails, return NULL
8928 so that callers will be notified that an error occurred.
8929 (c_value_of_variable): Delay check of variable's validity
8930 until later. We actually want all structs and unions to have
8932 Do not return "???" for variables which could not be evaluated.
8933 This error condition must be returned to the caller so that it
8934 can get the error condition from gdb.
8935 (cplus_name_of_child): Adjust index for vptr before figuring
8936 out the name of the child.
8937 (cplus_value_of_child): If a child's (real) parent is not valid,
8938 don't even bother trying to give a value for it. Just return
8939 an error. Change all instances in this function.
8940 (cplus_type_of_child): If our parent is one of the "fake"
8941 parents, we need to get at the type of the real parent, and
8942 derive the child's true type using this information.
8944 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8946 From 2002-01-09 John Marshall <johnm@falch.net>:
8947 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8948 sources.redhat.com, and tweak some related URLs which had
8949 suffered from linkrot.
8951 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8954 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8955 structures passed in registers.
8957 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8959 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8960 white space which prevented compilation. Reported by DSK
8961 <dsk@student.unsw.edu.au>.
8963 2002-01-11 Michael Snyder <msnyder@redhat.com>
8965 * symfile.c (build_section_addr_info_from_section_tab):
8966 Use bfd access method instead of manipulating bfd directly.
8967 (syms_from_objfile): Ditto.
8968 (simple_overlay_update_1): Ditto.
8969 (simple_overlay_update): Ditto.
8970 (generic_load): Ditto.
8971 (overlay_unmapped_address): FIXME comment, bfd access methods.
8972 (sections_overlap): FIXME comment, bfd access methods.
8973 (pc_in_mapped_range): FIXME comment, bfd access methods.
8974 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8975 (section_is_mapped): FIXME comment, bfd access methods.
8976 (section_is_overlay): FIXME comment, bfd access methods.
8978 * symfile.c (generic_load): Whitespace and long line cleanups.
8979 Remove duplicate variable, change several local variables to
8980 more appropriate data types.
8981 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8983 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8986 * language.c (longest_local_hex_string_custom): Use phex_nz to
8987 convert NUM to a hex string.
8989 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8991 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8993 Update Copyright year.
8995 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8997 * language.c (longest_raw_hex_string): Delete unused function.
8999 2002-01-11 Petr Sorfa <petrs@caldera.com>
9001 * MAINTAINERS (write-after-approval): Add myself.
9002 * dwarf2read.c (read_tag_string_type): Handling of
9004 (read_tag_string_type): FORTRAN fix to prevent propagation of
9006 (set_cu_language): Handling of DW_LANG_Fortran95
9008 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
9010 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9011 GETPID(inferior_ptid).
9012 (store_inferior_registers): Likewise.
9014 2002-01-10 Jason Merrill <jason@redhat.com>
9016 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9019 2002-01-10 Andrew Cagney <ac131313@redhat.com>
9021 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9022 and bfd/elf32-sh-nbsd.c.
9024 2002-01-10 Michael Snyder <msnyder@redhat.com>
9026 * NEWS: Mention --pid and corefile/proc-id behavior change.
9028 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9029 * gcore.c: Include cli/cli-decode.h instead of command.h.
9031 * main.c (captured_main): Add new command line option "--pid".
9032 If the second command line argument (following the symbol-file)
9033 begins with a digit, try to attach to it before trying to open
9035 (print_gdb_help): Document the "--pid" argument.
9037 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9039 * completer.c (command_completer): New function.
9041 * completer.h <command_completer>: Add prototype.
9043 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9044 completer for the "help" command.
9046 2002-01-09 Jason Merrill <jason@redhat.com>
9048 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9050 2002-01-09 Michael Snyder <msnyder@redhat.com>
9052 * i386-linux-nat.c (fill_fpxregset): Make global.
9053 (store_fpxregset): Ditto.
9055 * gregset.h (gdb_fpxregset_t): Define.
9056 (supply_fpxregset): Prototype.
9057 (fill_fpxregset): Prototype.
9059 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9061 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9063 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9064 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9065 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9067 2002-01-09 Andrew Cagney <ac131313@redhat.com>
9069 * MAINTAINERS: Update target maintainer rules so that any
9070 Maintainer can approve a tested patch for a maintenance-only
9073 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9075 * MAINTAINERS (write-after-approval): Add myself.
9077 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
9080 2002-01-08 Michael Snyder <msnyder@redhat.com>
9082 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9083 real name of the executable, rather than the /proc name.
9085 2002-01-03 Michael Snyder <msnyder@redhat.com>
9087 Implement a "generate-core-file" command in gdb, save target state.
9088 * gcore.c: New file. Implement new command 'generate-core-file'.
9089 Save a corefile image of the current state of the inferior.
9090 * linux-proc.c: Add linux-specific code for saving corefiles.
9091 * target.h (struct target_ops): Add new target vectors for saving
9092 corefiles; to_find_memory_regions and to_make_corefile_notes.
9093 (target_find_memory_regions): New macro.
9094 (target_make_corefile_notes): New macro.
9095 * target.c (update_current_target): Inherit new target methods.
9096 (dummy_find_memory_regions): New place-holder method.
9097 (dummy_make_corefile_notes): New place-holder method.
9098 (init_dummy_target): Initialize new dummy target vectors.
9099 * exec.c (exec_set_find_memory_regions): New function.
9100 Allow the exec_ops vector for memory regions to be taken over.
9101 (exec_make_note_section): New function, target vector method.
9102 * defs.h (exec_set_find_memory_regions): Export prototype.
9103 * procfs.c (proc_find_memory_regions): New function, corefile method.
9104 (procfs_make_note_section): New function, corefile method.
9105 (init_procfs_ops): Set new target vector pointers.
9106 (find_memory_regions_callback): New function.
9107 (procfs_do_thread_registers): New function.
9108 (procfs_corefile_thread_callback): New function.
9109 * sol-thread.c (sol_find_memory_regions): New function.
9110 (sol_make_note_section): New function.
9111 (init_sol_thread_ops): Initialize new target vectors.
9112 * inftarg.c (inftarg_set_find_memory_regions): New function.
9113 Allow to_find_memory_regions vector to be taken over.
9114 (inftarg_set_make_corefile_notes): New function.
9115 Allow to_make_corefile_notes vector to be taken over.
9116 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9117 interface layer if not target_has_execution (may be a corefile).
9118 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9119 * config/sparc/sun4sol2.mh: Ditto.
9120 * config/alpha/alpha-linux.mh: Ditto.
9121 * config/arm/linux.mh: Ditto.
9122 * config/i386/x86-64linux.mh: Ditto.
9123 * config/ia64/linux.mh: Ditto.
9124 * config/m68k/linux.mh: Ditto.
9125 * config/mips/linux.mh: Ditto.
9126 * config/powerpc/linux.mh: Ditto.
9127 * config/sparc/linux.mh: Ditto.
9129 2002-01-07 Michael Snyder <msnyder@redhat.com>
9131 * arm-linux-nat.c: Remove references to regcache.c internal data
9132 (registers[] and register_valid[]).
9134 2002-01-07 Michael Snyder <msnyder@redhat.com>
9136 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9137 so that attaching to a pid will automatically read the process's
9138 symbol file and shlibs.
9139 * Makefile.in: Add rule for linux-proc.o.
9140 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9141 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9142 * config/arm/linux.mh: Ditto.
9143 * config/i386/linux.mh: Ditto.
9144 * config/i386/x86-64linux.mh: Ditto.
9145 * config/ia64/linux.mh: Ditto.
9146 * config/m68k/linux.mh: Ditto.
9147 * config/mips/linux.mh: Ditto.
9148 * config/powerpc/linux.mh: Ditto.
9149 * config/sparc/linux.mh: Ditto.
9151 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9153 * win32-nat.c: Add i386-tdep.h dependency.
9155 2002-01-07 Michael Snyder <msnyder@redhat.com>
9157 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9158 instead of bfd_get_arch_size. Don't bail out just because
9159 there's no exec_bfd.
9161 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9162 * p-valprint.c (pascal_object_print_value): Ditto.
9163 * somread.c (som_symtab_read): Ditto.
9164 * symfile.c (simple_free_overlay_region_table): Ditto.
9165 * valops.c (value_assign): Ditto.
9167 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9168 use tilde_expand and strerror for opening save-tracepoints file.
9170 * thread-db.c (thread_db_new_objfile): Indendation fix.
9172 * infptrace.c (GDB_MAX_ALLOCA): New define.
9173 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
9174 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
9175 can be overridden with whatever value is appropriate to the host).
9176 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9177 alloca to allocate potentially large buffer.
9178 * rs6000-nat.c (child_xfer_memory): Ditto.
9179 * symm-nat.c (child_xfer_memory): Ditto.
9180 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9182 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9184 From Nick Clifton <nickc@redhat.com>
9185 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9187 2002-01-07 Michael Snyder <msnyder@redhat.com>
9189 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9190 Don't use exec_bfd if it's NULL.
9192 2002-01-06 Mark Kettenis <kettenis@gnu.org>
9194 * valops.c (value_arg_coerce): Fix formatting.
9196 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9198 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9201 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9203 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9204 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9205 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9206 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9207 z8k-coff have not been multi-arched. Update z8k-coff build
9210 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9212 * MAINTAINERS: Mark a29k target as obsolete.
9213 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9214 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9216 * NEWS: Note that a29k targets are obsolete.
9217 * a29k-tdep.c: Mark as obsolete.
9218 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9219 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9220 a29k-*-vxworks* targets as obsolete.
9221 * remote-adapt.c: Obsolete.
9222 * remote-eb.c: Obsolete.
9223 * remote-mm.c: Obsolete.
9224 * remote-udi.c: Obsolete.
9225 * config/a29k/a29k-udi.mt: Obsolete.
9226 * config/a29k/a29k.mt: Obsolete.
9227 * config/a29k/tm-a29k.h: Obsolete.
9228 * config/a29k/tm-vx29k.h: Obsolete.
9229 * config/a29k/vx29k.mt: Obsolete.
9231 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9233 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9234 with BFD_ENDIAN_BIG.
9236 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9238 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9239 * configure, config.in: Re-generate.
9240 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9241 * defs.h: Do not include <endian.h>.
9243 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9245 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9246 * config.in: Regenerate.
9247 * configure.in: Update copyright years.
9248 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9249 * configure: Regenerate.
9250 * i386bsd-nat.c: Update copyright years.
9251 (fill_gregset): Use regcache_collect.
9252 (fetch_inferior_registers): Only fetch integer registers
9253 if requested to do so. Add support for XMM registers
9254 using PT_GETXMMREGS.
9255 (store_inferior_registers): Only store integer registers
9256 if requested to do so. Add support for XMM registers
9257 using PT_SETXMMREGS.
9258 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9259 (store_inferior_registers): Remove.
9260 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9261 (fetch_elfcore_registers): New function.
9262 (i386nbsd_elfcore_fns): New.
9263 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9264 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9266 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9267 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9268 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9269 * config/i386/tm-nbsd.h: Update copyright years.
9270 (HAVE_SSE_REGS): Define.
9271 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9272 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9273 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9274 (SIGCONTEXT_PC_OFFSET): Remove.
9275 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9277 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9279 * configure.tgt: Remove powerpc-*-macos* target.
9280 * config/m68k/xm-mpw.h: Delete file.
9281 * config/xm-mpw.h: Delete file.
9282 * ser-mac.c: Delete file.
9283 * mpw-make.sed: Delete file.
9284 * mpw-config.in: Delete file.
9285 * mac-xdep.c: Delete file.
9286 * mac-gdb.r: Delete file.
9287 * mac-defs.h: Delete file.
9288 * mac-nat.c: Delete file.
9289 * config/powerpc/macos.mh: Delete file.
9290 * config/powerpc/macos.mt: Delete file.
9291 * config/powerpc/nm-macos.h: Delete file.
9292 * config/powerpc/tm-macos.h: Delete file.
9293 * source.c (openp, open_source_file): Remove obsolete code.
9294 * top.c (gdb_readline): Ditto.
9295 * utils.c (query): Ditto.
9296 * event-top.c (display_gdb_prompt): Ditto.
9297 * Makefile.in (ser-mac.o): Delete obsolete target.
9300 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9302 * defs.h (BIG_ENDIAN): Delete macro definition.
9303 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9304 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9305 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9306 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9307 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9308 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9309 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9310 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9311 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9312 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9313 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9314 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9315 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9316 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9317 * gdbarch.c: Re-generate.
9319 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9321 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9324 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9326 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9328 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9330 * value.h (value_ptr): Delete typedef.
9332 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9334 * i386nbsd-nat.c: Update copyright years.
9335 Include i386-tdep.h.
9337 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
9339 * stabsread.c: Update copyright years.
9341 From Debashis Mahata <debashis.mahata@wipro.com>:
9342 (read_struct_fields): Deal with Sun C compiler erroneous stab
9343 output for structs and unions.
9346 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9348 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9351 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9353 * cp-abi.c: Fix whitespace.
9354 (baseclass_offset): New wrapper function.
9355 * cp-abi.h (baseclass_offset): Add prototype.
9356 (struct cp_abi_ops): Add baseclass_offset pointer.
9358 * valops.c (vb_match): Move to...
9359 * gnu-v2-abi.c (vb_match): here.
9360 * valops.c (baseclass_offset): Move to...
9361 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9363 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9365 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9366 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9367 * hpacc-abi.c (init_hpacc_ops): Likewise.
9369 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9371 * valops.c (find_overload_match): Accept obj as a
9372 reference parameter. Update it before returning.
9373 * value.h (find_overload_match): Update prototype.
9374 * eval.c (evaluate_subexp_standard): Pass object to
9375 find_overload_match by reference.
9377 2002-01-03 Andrew Cagney <ac131313@redhat.com>
9379 * valarith.c: Replace value_ptr with struct value pointer. Remove
9380 register attribute from value declarations.
9383 * scm-lang.c (scm_lookup_name): Ditto.
9385 2002-01-03 Michael Snyder <msnyder@redhat.com>
9387 Abstract the functionality of iterating over mapped memory
9388 regions into a general purpose iterator function.
9389 * procfs.c (iterate_over_mappings): New function, general purpose
9390 iterator for memory sections.
9391 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
9392 (solib_mappings_callback): New function, callback for above.
9393 (info_proc_mappings): Reimpliment using iterate_over_mappings.
9394 (info_mappings_callback): New function, callback for above.
9396 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
9398 2002-01-01 Mark Kettenis <kettenis@gnu.org>
9400 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
9401 * i386-tdep.c: Include "elf-bfd.h".
9402 (process_note_abi_tag_sections): New function.
9403 (i386_gdbarch_init): Add code to recognize various OS/ABI
9406 * maint.c (_initialize_maint_cmds): Add missing \ in
9409 For older changes see ChangeLog-2001
9415 version-control: never