1 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4 This does not change anything at the moment, but will be helpful
5 later when full Ada support is integrated.
7 2002-07-31 Kevin Buettner <kevinb@redhat.com>
9 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
12 2002-07-31 Kevin Buettner <kevinb@redhat.com>
14 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
15 and save it in a local variable. Use variable in later test.
17 2002-07-31 Kevin Buettner <kevinb@redhat.com>
19 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
20 test. (Thanks to Daniel Jacobowitz.)
22 2002-07-31 Kevin Buettner <kevinb@redhat.com>
24 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
25 (mips_abi_strings): Add "n64".
26 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
28 2002-07-31 Kevin Buettner <kevinb@redhat.com>
30 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
31 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
33 2002-07-31 Kevin Buettner <kevinb@redhat.com>
35 * utils.c (host_pointer_to_address, address_to_host_pointer):
36 Use gdb_assert() instead of explicit call to internal_error().
38 2002-07-30 Kevin Buettner <kevinb@redhat.com>
40 * Makefile.in (rs6000-nat.o): Update dependencies.
43 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
44 (aix-thread.o): New rule.
45 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
46 * config/powerpc/aix432.mh: New file.
48 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
50 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
51 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
52 (fetch_core_registers, ppc_linux_supply_gregset)
53 (ppc_linux_supply_fpregset): New functions.
54 (ppc_linux_regset_core_fns): New.
55 (_initialize_ppc_linux_tdep): Call add_core_fns.
56 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
57 and ppc_linux_supply_gregset.
58 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
59 (supply_fpregset): Call ppc_linux_supply_fpregset.
60 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
62 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
64 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
66 * symtab.c (lookup_symbol): Demangle before lowercasing.
68 2002-07-30 Andrew Cagney <ac131313@redhat.com>
70 * symtab.h: Replace #include "gdb_obstack.h" with opaque
72 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
73 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
74 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
75 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
77 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
78 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
79 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
80 (avr-tdep.o, mon960-rom.o): Ditto.
81 (aout_stabs_gnu_h): Define.
82 (symtab_h): Remove $(gdb_obstack_h).
84 2002-07-30 Jim Blandy <jimb@redhat.com>
86 Patch from David Carlton <carlton@math.stanford.edu>:
87 * gdbinit.in: Move the `dir' commands that add GDB's own source
88 directory to the search path to the end, so that the `gdb' source
89 directory will be searched first.
91 2002-07-29 Andrew Cagney <ac131313@redhat.com>
93 * gdb_obstack.h: New file.
94 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
95 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
96 * objfiles.h: Include "gdb_obstack.h".
97 * Makefile.in (gdb_obstack_h): Define.
98 (symtab_h): Add $(gdb_obstack_h).
99 (objfiles_h): Add $(gdb_obstack_h).
101 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
102 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
103 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
104 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
105 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
106 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
107 * symfile.c, coffread.c, c-typeprint.c: Ditto.
108 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
110 * Makefile.in (bcache.o): Update dependencies.
111 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
112 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
113 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
114 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
115 (stabsread.o, symfile.o, symmisc.o): Ditto.
116 (symtab.o, typeprint.o, macroexp.o): Ditto.
117 (macrotab.o, mdebugread.o): Ditto.
118 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
119 (coff_ecoff_h, aout_aout64_h): Define.
120 (aout_stabs_gnu_h, libaout_h): Define.
122 2002-07-29 Andrew Cagney <cagney@redhat.com>
124 * regcache.c (struct regcache_descr): Rename nr_registers to
125 nr_cooked_registers. Revise comments describing the structure
127 (init_regcache_descr): Update.
128 (init_legacy_regcache_descr): Update.
129 (read_register_gen, write_register_gen): When a cooked register in
130 the raw register range, directly access the value from the raw
133 2002-07-29 Andrew Cagney <ac131313@redhat.com>
135 * z8k-tdep.c: Do not include "obstack.h".
136 * h8300-tdep.c, h8500-tdep.c: Ditto.
137 * m68hc11-tdep.c, sh-tdep.c: Ditto.
138 * valprint.c, v850-tdep.c: Ditto.
139 * d10v-tdep.c, mn10300-tdep.c: Ditto.
140 * mn10200-tdep.c: Ditto.
142 * Makefile.in (z8k-tdep.o): Update dependencies.
143 (m68hc11-tdep.o, valprint.o): Ditto.
144 (v850-tdep.o, d10v-tdep.o): Ditto.
145 (mn10300-tdep.o, sparc-tdep.o): Ditto.
146 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
147 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
148 (sh_opc_h, gdb_sim_sh_h): Define.
149 (elf_sh_h, elf_bfd_h): Define.
150 (opcode_m68hc11_h): Define.
151 (OPCODES_SRC, OPCODES_DIR): define.
152 (OPCODES): Use $(OPCODES_DIR).
153 (gdb_sim_d10v_h): Rename sim_d10v_h.
154 (gdb_sim_arm_h): Rename sim_arm_h.
156 2002-07-26 Kevin Buettner <kevinb@redhat.com>
158 * utils.c (host_pointer_to_address, address_to_host_pointer):
159 Change internal_error() message to indicate function responsible
162 2002-07-26 Kevin Buettner <kevinb@redhat.com>
164 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
165 calls to local_hex_string_custom().
167 2002-07-26 Kevin Buettner <kevinb@redhat.com>
169 * irix5-nat.c: Move IRIX shared library support from here...
170 * solib-irix.c: ...to here. Revised substantially to work with
171 generic solib framework.
173 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
174 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
175 * mips-irix-tdep.c: New file.
177 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
178 (mips-irix-tdep.o, solib-irix.o): New rules.
179 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
181 * config/mips/irix6.mt (TDEPFILES): Likewise.
182 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
184 2002-07-26 Kevin Buettner <kevinb@redhat.com>
186 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
187 disabled (via ``#if 0'') includes.
189 2002-07-26 Kevin Buettner <kevinb@redhat.com>
191 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
192 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
193 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
194 Add support for the fpscr register.
195 * rs6000-nat.c (regmap, fetch_inferior_registers)
196 (store_inferior_registers, fetch_core_registers): Likewise.
198 2002-07-26 Kevin Buettner <kevinb@redhat.com>
200 * rs6000-nat.c (language.h): Include.
201 (special_regs): Delete this array.
202 (regmap): New function.
203 (fetch_register, store_register): Use regmap() to map gdb
204 register numbers to ptrace register numbers. Also, use
205 outputs from regmap() to make decisions regarding type of
206 ptrace() call to make. In particular, don't compare against
207 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
208 (fetch_inferior_registers, store_inferior_registers): Where
209 possible, obtain register numbers from tdep struct. Don't
210 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
211 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
212 (LAST_UISA_SP_REGNUM): Delete.
214 2002-07-25 Kevin Buettner <kevinb@redhat.com>
216 * rs6000-nat.c (ppc-tdep.h): Include.
217 (fetch_registers, store_register, fetch_core_registers): Don't
218 access registers[] directly. Instead, use supply_register() or
219 regcache_collect() as appropriate.
220 (find_toc_address): Format hex address with local_hex_string().
222 2002-07-25 Andrew Cagney <ac131313@redhat.com>
224 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
227 2002-07-24 Tom Tromey <tromey@redhat.com>
229 * jv-exp.y: Marked all strings with _().
230 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
232 (MethodInvocation, CastExpression, parse_number, yyerror,
233 java_type_from_name, push_expression_name, yylex): Typo fixes.
235 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
237 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
238 (tee_file_flush, tee_file_write, tee_file_fputs)
239 (tee_file_isatty): New.
240 * ui-file.h (tee_file_new): Add prototype.
242 2002-07-24 Aidan Skinner <aidan@velvet.net>
244 * ada-lang.c: Change k&r style function definitions to prototyped
246 * ada-typeprint.c: Change k&r style function definitions to prototyped
248 * ada-valprint.c: Change k&r style function definitions to prototyped
251 2002-07-24 Andrew Cagney <cagney@redhat.com>
253 * README: Remove reference to remote-bug.
254 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
256 (m88k-nat.o): Delete rule.
257 (m88k-tdep.o): Delete rule.
258 (remote-bug.o): Delete rule.
259 * MAINTAINERS: Mark as obsolete.
260 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
261 * m88k-tdep.c: Make file obsolete.
262 * config/m88k/m88k.mh: Ditto.
263 * config/m88k/delta88v4.mh: Ditto.
264 * config/m88k/delta88v4.mt: Ditto.
265 * config/m88k/delta88.mt: Ditto.
266 * config/m88k/delta88.mh: Ditto.
267 * remote-bug.c: Ditto.
268 * config/m88k/tm-delta88.h: Ditto.
269 * config/m88k/nm-delta88v4.h: Ditto.
270 * config/m88k/xm-delta88.h: Ditto.
271 * config/m88k/xm-dgux.h: Ditto.
272 * config/m88k/tm-m88k.h: Ditto.
273 * config/m88k/nm-m88k.h: Ditto.
274 * config/m88k/tm-delta88v4.h: Ditto.
277 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
278 and m88*-*-* obsolete.
279 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
282 2002-07-24 Andrew Cagney <cagney@redhat.com>
284 * findvar.c (extract_unsigned_integer): Make `addr' parameter
285 constant. Same for local pointer variables.
286 (extract_signed_integer): Ditto.
287 * defs.h (extract_unsigned_integer): Update.
288 (extract_signed_integer): Update.
290 2002-07-24 Kevin Buettner <kevinb@redhat.com>
292 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
293 * gdbserver/configure: Regenerate.
294 * gdbserver/config.in: Regenerate.
296 2002-07-24 Andrew Cagney <cagney@redhat.com>
298 * regcache.c (regcache_raw_write): Change buf parameter to a
299 constant void pointer.
300 (regcache_raw_read): Change buf parameter to a void pointer.
301 (legacy_write_register_gen): Change myaddr parameter a constant
303 (supply_register): Change val parameter to a const void pointer.
304 * regcache.h (regcache_raw_write): Update declaration.
305 (regcache_raw_read): Update declaration.
306 (supply_register): Update declaration.
308 2002-07-24 Tom Tromey <tromey@redhat.com>
310 * defs.h (gdb_readline_wrapper): Declare.
311 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
312 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
313 * top.c (gdb_readline_wrapper): New function.
314 (command_line_input): Use it.
316 2002-07-24 Andrew Cagney <cagney@redhat.com>
318 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
319 regcache_read and regcache_write.
320 (regcache_raw_read_as_address): Replace regcache_read_as_address.
321 * regcache.c: Update.
322 * sh-tdep.c (sh64_push_arguments): Update comment.
323 (sh_pseudo_register_read): Update.
324 (sh_pseudo_register_write): Update.
325 (sh4_register_read): Update.
326 (sh4_register_write): Update.
327 (sh64_pseudo_register_read): Update.
328 (sh64_pseudo_register_write): Update.
329 (sh64_register_read): Update.
330 (sh64_register_write): Update.
331 * i386-tdep.c (i386_extract_return_value): Update.
332 (i386_extract_struct_value_address): Update.
333 (i386_extract_return_value): Update.
334 * blockframe.c (generic_read_register_dummy): Update.
335 (generic_call_dummy_register_unwind): Update
336 * infrun.c (write_inferior_status_register): Update.
338 2002-07-23 Jim Blandy <jimb@redhat.com>
340 * parser-defs.h (expression_context_pc): Make this extern.
341 (Thanks to Michael Snyder.)
343 2002-07-23 Andrew Cagney <ac131313@redhat.com>
345 GDB 5.2.1 released from 5.2 branch.
346 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
347 * README: Update to mention 5.2.1.
349 2002-07-23 Mark Salter <msalter@redhat.com>
351 * remote.c (remote_read_bytes): Fix check for error.
353 2002-07-22 Kevin Buettner <kevinb@redhat.com>
355 * aix-thread.c (language.h): Include.
356 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
357 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
358 Print newlines at end of debug messages.
359 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
360 (pdc_write_data): Use local_hex_string() instead of %llx formats.
362 2002-07-22 Kevin Buettner <kevinb@redhat.com>
364 * aix-thread.c (ppc-tdep.h): Include.
365 (special_register_p): New function.
366 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
367 (store_regs_user_thread): Use register number information from
368 gdbarch_tdep struct instead of hardcoded offsets relative to
369 FIRST_UISA_SP_REGNUM.
370 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
371 special_register_p() instead of using FPLAST_REGNUM and
372 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
373 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
374 will be MQ's register number.
376 2002-07-22 Michael Snyder <msnyder@redhat.com>
378 * aix-thread.c (ops): Rename to aix_thread_ops.
379 (base_ops): Rename to base_target.
380 (ops_attach): Rename to aix_thread_attach.
381 (ops_detach): Rename to aix_thread_detach.
382 (ops_resume): Rename to aix_thread_detach.
383 (ops_wait): Rename to aix_thread_wait.
384 (ops_kill): Rename to aix_thread_kill.
385 (init_ops): Rename to init_aix_thread_ops.
386 (ops_fetch_register): Rename to aix_thread_fetch_register.
387 (ops_store_register): Rename to aix_thread_store_register.
388 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
389 (ops_thread_alive): Rename to aix_thread_thread_alive.
390 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
391 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
392 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
393 (fetch_regs_lib): Rename to fetch_regs_user_thread.
394 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
395 (store_regs_lib): Rename to store_regs_user_thread.
396 (store_regs_kern): Rename to store_regs_kernel_thread.
398 2002-07-22 Michael Snyder <msnyder@redhat.com>
400 * aix-thread.c (ops_prepare_to_store): Eliminate.
401 (init_ops): Don't initialize ops.prepare_to_store.
402 (store_regs_kern): Pre-fetch register buffers from child,
403 because some registers may not be in the cache. Copy
404 regs from register cache only if they are cached.
405 (store_regs_lib): Copy regs from register cache only
407 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
410 2002-07-22 Kevin Buettner <kevinb@redhat.com>
412 * aix-thread.c (gdb_assert.h): Include.
413 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
414 register sizes (from register cache) match size of buffer holding
416 (fill_sprs32): Change parameter types to match those in the ptrace()
418 (store_regs_lib): Likewise, but for 32-bit temporary variables.
419 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
421 2002-07-22 Michael Snyder <msnyder@redhat.com>
423 * aix-thread.c (supply_sprs64): Cosmetic change.
424 (supply_sprs32): Cosmetic change.
425 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
426 (fill_sprs64): Use regcache_collect instead of read_register.
427 (store_regs_lib): Use regcache_collect instead of
428 read_register. Use fill_sprs32 instead of fill_sprs64,
429 if debugging a 32-bit architecture.
430 (store_regs_kern): Use fill_gprs64 etc. to pull the values
431 out of the register cache, instead of passing a pointer into
432 the register cache directly to ptrace. Use regcache_collect
433 insteaad of read_register.
434 (ops_prepare_to_store): Use target_read_registers instead
435 of read_register_bytes.
437 2002-07-20 Aidan Skinner <aidan@velvet.net>
439 * MAINTAINERS: Add self under write after approval.
441 2002-07-20 Aidan Skinner <aidan@velvet.net>
443 * ada-tasks.c: Change k&r style function definitions to prototyped
446 2002-07-19 Andrew Cagney <ac131313@redhat.com>
448 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
449 * x86-64-tdep.c: Include "objfiles.h".
450 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
451 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
453 2002-07-17 Michal Ludvig <michal@suse.cz>
455 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
456 (update_context): Initialise cfa variable.
458 2002-07-17 Michael Snyder <msnyder@redhat.com>
460 * aix-thread.c: Shorten some long lines.
461 Bring comments into line with code spec.
463 2002-07-18 Joel Brobecker <brobecker@gnat.com>
465 * infrun.c: Re-indent using gdb_indent.sh.
467 2002-07-18 Joel Brobecker <brobecker@gnat.com>
469 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
470 Leave the indentation temporarily untouched, to minimize the diffs.
472 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
474 * stabsread.c: Make os9k sections of the code obsolete,
476 * stabsread.h: Make os9k sections of the code obsolete.
478 2002-07-18 Michal Ludvig <mludvig@suse.cz>
480 * linux-low.c (regsets_store_inferior_registers): Add free()
481 at the end of a loop to prevent memory leak.
482 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
483 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
484 * config/sparc/tm-sp64linux.h: Make the rest of #endif
486 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
488 2002-07-17 Jim Blandy <jimb@redhat.com>
490 * macrocmd.c (info_macro_command): Remove newline from error
493 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
495 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
496 (sh_gdbarch_init): Use it for sh-dsp.
498 2002-07-16 Kevin Buettner <kevinb@redhat.com>
500 * dwarf2read.c (read_initial_length): Handle older, non-standard,
501 64-bit DWARF2 format.
503 2002-07-16 Joel Brobecker <brobecker@gnat.com>
505 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
506 <sys/proc.h> when not available.
508 2002-07-16 Andrew Cagney <ac131313@redhat.com>
510 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
511 * stabsread.c: Make os9k sections of the code obsolete.
512 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
513 * config/i386/i386os9k.mt: Make file obsolete.
514 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
515 (COMMON_OBS): Remove os9kread.o
516 (SFILES): Remove os9kread.c.
517 (os9kread.o, remote-os9k.o): Make target obsolete.
518 * remote-os9k.c: Make file obsolete.
519 * os9kread.c: Make file obsolete.
522 2002-07-16 Andrew Cagney <ac131313@redhat.com>
524 * NEWS: Mention that the FR30 has been made obsolete.
525 * fr30-tdep.c: Make file obsolete.
526 * config/fr30/tm-fr30.h: Ditto.
527 * config/fr30/fr30.mt: Ditto.
528 * configure.tgt: Make fr30-*-elf obsolete.
529 * MAINTAINERS: Make fr30-elf obsolete.
531 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
533 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
534 found is not inside a section.
536 2002-07-15 Kevin Buettner <kevinb@redhat.com>
538 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
540 (pdc_realloc): Use xrealloc() instead of realloc().
542 2002-07-15 Kevin Buettner <kevinb@redhat.com>
544 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
545 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
546 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
549 2002-07-15 Kevin Buettner <kevinb@redhat.com>
551 * aix-thread.c (ptrace_check): Eliminate goto.
552 (sync_threadlists): Eliminate gotos. Also, fix array overrun
555 2002-07-15 Kevin Buettner <kevinb@redhat.com>
557 * aix-thread.c (gdbcmd.h): Include.
558 (DEBUG, DBG, DBG2, dbg): Eliminate.
559 (debug_aix_thread): New static global.
560 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
561 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
562 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
563 invocations to DBG and DBG2 macros to test against
564 ``debug_aix_thread'' and call fprintf_unfiltered().
565 (_initialize_aix_thread): Add new command "set debug aix-thread".
567 2002-07-15 Andrew Cagney <ac131313@redhat.com>
569 From Gerhard Tonn <TON@de.ibm.com>:
570 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
571 instead of supply_register.
573 2002-07-15 Andrew Cagney <ac131313@redhat.com>
575 * dwarf2cfi.c: Include "gdb_assert.h".
576 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
578 (update_context): Do not use __func__. Add missing ``break''.
579 (update_context): Do not use __func__.
581 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
583 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
584 and its setting. Set gdbarch instruction printing functions
585 directly. For non-rs6000 case use new function
586 gdb_print_insn_powerpc.
587 (gdb_print_insn_powerpc): New function.
589 2002-07-13 Andrew Cagney <ac131313@redhat.com>
591 * NEWS: Mention that the d30v has been marked obsolete.
592 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
593 * configure.tgt: Mark d30v-*-* as obsolete.
594 * d30v-tdep.c: Mark file as obsolete.
595 * config/d30v/d30v.mt: Ditto.
596 * config/d30v/tm-d30v.h: Ditto.
598 2002-07-13 Aidan Skinner <aidan@velvet.net>
600 * ada-tasks.c (add_task_entry): replace calls to
601 malloc() with xmalloc
602 * ada-tasks.c (init_task_list): replace calls to free with xfree()
604 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
605 ada_finish_decode_line_1, all_sals_for_line
606 ada_breakpoint_rewrite): replace calls to free() with xfree()
608 2002-07-12 Kevin Buettner <kevinb@redhat.com>
610 From Nicholas Duffek (with minor changes by Martin Hunt,
611 Louis Hamilton, and Kevin Buettner):
612 * aix-thread.c: New file.
614 2002-07-12 Petr Sorfa <petrs@caldera.com>
616 * dwarf2read.c (dwarf2_invalid_attrib_class): New
617 complaint for invalid attribute class or form.
618 (read_func_scope): DW_AT_frame_base
619 better handling of DW_AT_block*.
620 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
621 better handling of DW_AT_block*.
622 (read_common_block): DW_AT_location
623 better handling of DW_AT_block*.
624 (read_partial_die): DW_AT_location better handling
626 (new_symbol): DW_AT_external better handling of
627 DW_AT_block*. Proper initialization of variable
629 (attr_form_is_block): New function that returns true
630 if the attribute's form is of DW_FORM_block*.
632 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
634 * valops.c (find_method_list): Remove comment about
635 removed STATIC_MEMFUNCP argument.
636 (value_find_oload_method_list): Likewise.
638 2002-07-12 Kevin Buettner <kevinb@redhat.com>
640 From Nicholas Duffek:
641 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
642 target_new_objfile_hook.
644 2002-07-12 Kevin Buettner <kevinb@redhat.com>
646 From Nicholas Duffek:
647 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
650 2002-07-12 Andrew Cagney <cagney@redhat.com>
652 * MAINTAINERS: Mention --enable-sim-build-warnings.
653 (m68hc11-elf): Disable sim build warnings.
654 (m32r-elf): Mark as broken obsolete candidate.
655 (x86_64-linux-gnu): Mark as buildable with -Werror.
656 (arm-elf): Change -w to ``,'' which enables warnings but not
659 2002-07-12 Andrew Cagney <ac131313@redhat.com>
661 * bcache.h: Update copyright.
662 (struct bstring, struct bcache): Move definition to "bcache.c".
663 Replaced by opaque declaration.
664 (bcache_xfree): Replace free_bcache.
665 (bcache_xmalloc, bcache_memory_used): Declare.
667 * bcache.c: Update copyright.
668 (struct bstring, struct bcache): Moved to here from "bcache.h".
670 (bcache_xmalloc, bcache_memory_used): New functions.
671 (bcache_xfree): Replace function free_bcache.
673 * Makefile.in (objfiles.o): Add $(bcache_h).
674 (objfiles_h): Remove $(bcache_h).
675 (symfile.o): Add $(bcache_h).
677 * symmisc.c: Update copyright.
678 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
679 (print_objfile_statistics): Use bcache_memory_used.
681 * symfile.c: Include "bcache.h".
682 (reread_symbols): Use bcache_xfree.
683 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
684 (add_psymbol_to_list): Pass psymbol_cache by value.
685 (add_psymbol_with_dem_name_to_list): Ditto.
687 * objfiles.h: Update copyright.
688 (struct bcache): Declare opaque. Do not include "bcache.h".
689 (struct objfile): Change psymbol_cache and macro_cache to ``struct
691 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
693 * objfiles.c: Include "bcache.h". Update copyright.
694 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
696 (free_objfile): Use bcache_xfree.
698 2002-07-11 Grace Sainsbury <graces@redhat.com>
700 * monitor.c (monitor_fetch_register): Make name a constant.
701 (monitor_store_register): Same.
703 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
705 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
706 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
707 (finish_block) For non-function blocks, hash the symbol table. For
708 function blocks, mark the symbol table as unhashed.
709 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
710 (msymbol_hash_iw): Likewise.
711 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
713 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
714 (lookup_minimal_symbol): Likewise for both.
715 * symtab.h (struct block): Add `hashtable' flag. Comment the
717 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
718 (ALL_BLOCK_SYMBOLS): Update.
719 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
720 (struct symbol): Add `hash_next' pointer.
721 * symtab.c (lookup_block_symbol): Search using the hash table when
723 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
724 (search_symbols, find_addr_symbol): Likewise.
726 * dstread.c (process_dst_block): Clear hashtable bit for new block.
727 (read_dst_symtab): Likewise.
728 * jv-lang.c (get_java_class_symtab): Likewise.
729 * mdebugread.c: Include "gdb_assert.h".
730 (shrink_block): Assert that the block being modified is not hashed.
731 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
732 * symmisc.c (free_symtab_block): Walk the hash table when freeing
734 (dump_symtab): Recognize hashed blocks.
735 * printcmd.c (print_frame_args): Assert that function blocks do not
736 have hashed symbol tables.
737 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
738 (fill_in_ada_prototype, debug_print_block): Likewise.
739 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
741 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
743 * stack.c (print_frame): Use result of frame_address_in_block()
744 instead of fi->pc when evaluating symbols.
745 (backtrace_command_1): Ditto.
747 2002-07-11 Andrew Cagney <cagney@redhat.com>
749 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
752 * arm-tdep.c (arm_register_name): Make return type constant.
754 2002-07-10 Andrew Cagney <ac131313@redhat.com>
756 * win32-nat.c (has_detach_ability): Convert to strict ISO C
758 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
759 * s390-tdep.c (s390_fp_regnum): Ditto.
760 (s390_read_fp): Ditto.
761 (s390_pop_frame): Ditto.
762 (_initialize_s390_tdep): Ditto.
763 * remote.c (get_remote_state): Ditto.
764 * procfs.c (mappingflags): Ditto.
765 * memattr.c (_initialize_mem): Ditto.
766 * mcore-tdep.c (mcore_pop_frame): Ditto.
767 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
768 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
769 * language.c (set_case_str): Ditto.
770 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
771 * frv-tdep.c (new_variant): Ditto.
772 (frv_stopped_data_address): Ditto.
773 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
774 (context_alloc): Ditto.
775 (frame_state_alloc): Ditto.
776 (unwind_tmp_obstack_init): Ditto.
777 (unwind_tmp_obstack_free): Ditto.
778 (cfi_read_fp): Ditto.
779 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
780 (cris_pop_frame): Ditto.
781 * c-lang.c (scanning_macro_expansion): Ditto.
782 (finished_macro_expansion): Ditto.
783 (c_preprocess_and_parse): Ditto.
785 * gdbarch.h, gdbarch.c: Regenerate.
786 * config/mn10200/tm-mn10200.h: Adjust indentation.
787 * target.c: Adjust indentation.
788 * symtab.h: Adjust indentation.
789 * stabsread.h: Adjust indentation.
790 * remote-es.c: Adjust indentation.
791 * os9kread.c: Adjust indentation.
793 2002-07-10 Andrew Cagney <ac131313@redhat.com>
795 * wince.c (_initialize_wince): Rename _initialize_inftarg.
796 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
798 2002-07-10 Grace Sainsbury <graces@redhat.com>
800 * NEWS: Mention m68k, mcore multi-arching.
801 * MAINTAINERS: Change status of m68k, mcore to reflect
804 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
806 * valops.c (find_overload_match): Free oload_syms.
808 2002-07-09 Joel Brobecker <brobecker@gnat.com>
810 Define HAVE_SYS_PROC_H if sys/proc.h exists
811 * configure.in: Add check for sys/proc.h
812 * config.in: Regenerate.
813 * configure: Regenerate.
815 2002-07-09 Grace Sainsbury <graces@redhat.com>
817 * config/m68k/tm-m68k.h: Remove macros wrapped in
820 2002-07-09 David O'Brien <obrien@FreeBSD.org>
822 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
823 (perror_with_name, remote_close, remote_open, expect, play): Static.
825 2002-07-08 Andrew Cagney <ac131313@redhat.com>
827 * config.in, configure: Regenerate.
829 2002-07-08 Mark Kettenis <kettenis@gnu.org>
831 * dwarf2cfi.c: Include "gcore.h".
832 (execute_stack_op): Fix implementation of the
833 DW_OP_deref and DW_OP_deref_size operators by letting do their
834 lookup in the target.
836 2002-07-07 Mark Kettenis <kettenis@gnu.org>
838 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
839 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
842 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
844 Fix PR gdb/595, gdb/602
845 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
846 Don't call value_cast, just read the vtable pointer; update comments
849 2002-07-05 Grace Sainsbury <graces@redhat.com>
851 * config/mcore/tm-mcore.h: Remove file.
852 * config/mcore/mcore.mt: Remove definition of TM_FILE
853 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
855 2002-07-05 Mark Kettenis <kettenis@gnu.org>
857 * i386bsd-tdep.c: Include "gdb_string.h".
859 2002-07-04 Grace Sainsbury <graces@redhat.com>
861 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
862 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
864 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
865 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
866 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
867 (RETVAL_REGNUM): Move macros from tm-mcore.h
868 (mcore_reg_struct_has_addr): New function.
869 (mcore_gdbarch_init): Added initializations for the macros removed
872 2002-07-04 Mark Kettenis <kettenis@gnu.org>
874 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
875 traditonal string branding within the ELF header.
877 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
879 * symtab.c (remove_params): New function.
880 (make_symbol_overload_list): Use it instead of cplus_demangle.
881 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
883 2002-07-04 Mark Kettenis <kettenis@gnu.org>
885 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
887 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
889 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
890 and tdep->sigtramp_end.
891 * i386obsd-nat.c: New file.
892 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
894 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
895 Don't call get_current_frame().
897 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
899 * i386-nat.c (child_post_startup_inferior): New function
900 calling i386_cleanup_dregs if
901 I386_USE_GENERIC_WATCHPOINTS is defined.
902 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
903 conditional to acknowledge that i386-nat.c has its
904 own child_post_startup_inferior function.
906 2002-07-04 Mark Kettenis <kettenis@gnu.org>
908 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
909 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
910 instead of MAX_REGISTER_RAW_SIZE.
911 (i386_extract_return_value, i386_extract_struct_value_address):
912 Convert to use regcache.
913 (i386_gdbarch_init): Set max_register_raw_size and
914 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
915 Set extract_return_value and extract_struct_value_address instead
916 of their deprecated variants.
918 Convert i386 target to generic dummy frames.
919 * i386-tdep.c: Include "symfile.h".
920 (i386_frameless_signal_p): Consider a function to be frameless if
921 the pc points at the first instruction of the function.
922 (i386_frame_chain): Handle (generic) call dummies.
923 (i386_frame_saved_pc): Likewise.
924 (i386_frame_init_saved_regs): Remove code dealing with call
925 dummies on the stack.
926 (i386_push_dummy_frame): Removed.
927 (i386_call_dummy_words): Removed.
928 (i386_fix_call_dummy): Removed.
929 (i386_push_return_address): New function.
930 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
931 parameter, and don't call get_current_frame.
932 (i386_pop_frame): New function.
933 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
934 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
935 entry_point_address, set call_dummy_breakpoint_offset to 0, set
936 call_dummy_length to 0, set call_dummy_words to NULL, set
937 sizeof_call_dummy_words to 0, set fix_call_dummy to
938 generic_fix_call_dummy, set pc_in_call_dummy to
939 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
940 generic_push_dummy_frame, set push_return_address to
941 i386_push_return_address and set frame_chain_valid to
942 generic_file_frame_chain_valid.
944 2002-07-04 Michal Ludvig <mludvig@suse.cz>
946 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
947 byte offsets instead of an array of indexes.
948 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
950 2002-07-03 Andrew Cagney <ac131313@redhat.com>
952 * gdbarch.sh (struct regcache): Add opaque declaration.
953 (EXTRACT_RETURN_VALUE): New architecture method.
954 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
955 * gdbarch.h, gdbarch.c: Regenerate.
956 * arch-utils.c (legacy_extract_return_value): New function.
957 * arch-utils.h (legacy_extract_return_value): Declare.
958 * values.c (value_being_returned): Re-enable code handling
959 EXTRACT_STRUCT_VALUE_ADDRESS. Move
960 deprecated_grub_regcache_for_registers call to block handling
961 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
962 (EXTRACT_RETURN_VALUE): Do not define.
964 2002-07-03 Grace Sainsbury <graces@redhat.com>
966 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
967 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
968 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
969 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
970 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
971 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
972 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
973 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
974 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
975 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
976 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
977 argument so the function fits the prototype in the architecture
979 (mcore_pop_frame): Remove argument so the function fits the
980 prototype. Use get_current_frame instead of the argument.
981 (mcore_push_arguments): Change type of struct_return so the
982 function can be used in the architecture vector.
983 (mcore_store_struct_return): Add.
984 (mcore_frame_init_saved_regs): Add.
985 (mcore_gdbarch_init): Add function calls to replace the macros
986 removed from tm-mcore.h
988 2002-07-03 Andrew Cagney <ac131313@redhat.com>
990 * infcmd.c (print_return_value): Remove compatibility code calling
991 deprecated_grub_regcache_for_registers.
993 * values.c: Include "regcache.h".
994 (value_being_returned): Update. Use
995 deprecated_grub_regcache_for_registers to extract the register
997 * value.h (value_being_returned): Change ``retbuf'' parameter to a
999 * Makefile.in (values.o): Add dependency on $(regcache_h).
1001 * inferior.h (run_stack_dummy): Change type of second parameter to
1002 a ``struct regcache''.
1003 * valops.c (hand_function_call): Change type of retbuf to ``struct
1004 regcache''. Allocate using regcache_xmalloc, clean using
1005 make_cleanup_regcache_xfree.
1006 * infcmd.c (run_stack_dummy): Update. Use
1007 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1009 * regcache.c (do_regcache_xfree): New function.
1010 (make_cleanup_regcache_xfree): New function.
1011 * regcache.h (make_cleanup_regcache_xfree): Declare.
1013 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1015 * event-top.c (command_line_handler): Don't read past
1016 beginning of buffer.
1018 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1020 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1022 (varobj_create): Store frame_id for root.
1023 (varobj_gen_name): Use xasprintf.
1024 (varobj_update): Save and restore frame using get_frame_id() and
1026 (create_child): Use xasprintf.
1027 (new_root_variable): Initialize frame_id.
1028 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1029 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1030 to prevent memory leak.
1032 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1034 * valops.c (hand_function_call): Move declaration of retbuf to
1035 start of function, allocate using malloc, add a cleanup but before
1036 the inf_status cleanup, cleanup the buffer. Rename local variable
1037 old_chain to inf_status_cleanup.
1039 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1041 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1043 * cli/cli-decode.c (cmd_func_p): New function.
1044 (cmd_func): New function.
1046 * command.h: Add cmd_func() and cmd_func_p().
1048 2002-07-03 Grace Sainsbury <graces@redhat.com>
1050 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1051 (REGISTER_SIZE): Remove.
1052 (MAX_REGISTER_RAW_SIZE): Remove.
1053 (REGISTER_VIRTUAL_TYPE): Remove.
1054 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1055 (REGISTER_NAME): Remove.
1056 (USE_GENERIC_DUMMY_FRAMES): Remove.
1057 (CALL_DUMMY): Remove.
1058 (CALL_DUMMY_START_OFFSET): Remove.
1059 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1060 (CALL_DUMMY_LOCATION): Remove.
1061 (FIX_CALL_DUMMY): Remove.
1062 (CALL_DUMMY_ADDRESS): Remove.
1063 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1064 (SAVE_DUMMY_FRAME_TOS): Remove.
1065 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1066 (mcore_register_virtual_type): New function.
1067 (mcore_register_byte): New function.
1068 (mcore_register_size): New function.
1069 (mcore_register_name): New function.
1070 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1071 macros removed from tm-mcore.h.
1072 (mcore_dump_tdep): Add.
1073 (_initialize_mcore_tdep): Add gdbarch_register call.
1075 2002-07-03 Mark Kettenis <kettenis@gnu.org>
1077 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1078 frameless_look_for_prologue, such that we actually call this
1081 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1083 * frame.h (frame_address_in_block): New function.
1085 * blockframe.c (frame_address_in_block): New function extracted
1086 from get_frame_block().
1087 (get_frame_block): Use frame_address_in_block().
1088 (block_innermost_frame): Use frame_address_in_block() to match
1089 the frame pc address against the block boundaries rather than
1090 the frame pc directly. This prevents a failure when a frame pc
1091 is actually a return-address pointing immediately after the end
1094 2002-07-02 Grace Sainsbury <graces@redhat.com>
1096 * MAINTAINERS: Add self under write after approval.
1098 2002-07-02 Grace Sainsbury <graces@redhat.com>
1100 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1101 used in architecture vector. The default is
1102 m68k_local_breakpoint_from_pc.
1103 (m68k_local_breakpoint_from_pc): Add.
1104 (enum): Add register numbers from tm-m68k.h.
1105 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1107 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1108 GDB_MULTI_ARCH_PARTIAL.
1109 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1110 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1112 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1113 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1114 to enum in m68k-tdep.c
1116 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1118 * solib-osf.c (open_map): Compute the list of shared libraries
1119 loaded by the inferior, rather than the list of libraries loaded
1120 by GDB itself. Otherwise, GDB ends up reading the symbols from
1121 the wrong shared libraries...
1123 2002-07-02 Mark Kettenis <kettenis@gnu.org>
1125 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1126 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1128 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1130 (FRAMELESS_SIGNAL): Remove function.
1131 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1132 i386_linux_saved_pc_after_call): Removed.
1133 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1134 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1135 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1137 * i386-tdep.c (i386_frameless_signal_p): New function.
1138 (i386_frame_chain): Deal with frameless signals.
1139 (i386_sigtramp_saved_sp): New function.
1140 (i386_frame_saved_pc): Deal with frameless signals.
1141 (i386_saved_pc_after_call): Make sure the correct value is
1142 returned just after entry into a sigtramp.
1143 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1144 i386fbsd4_sc_sp_offset): New variables.
1145 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1146 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1147 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1148 similiar to what we already did for sc_pc_offset.
1149 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1152 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1154 2002-07-02 Michal Ludvig <mludvig@suse.cz>
1156 * config/i386/tm-x86-64linux.h: New.
1157 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1159 * config/i386/nm-x86-64.h: Rename to ...
1160 * config/i386/nm-x86-64linux.h: ... this one.
1161 * config/i386/x86-64linux.mh: Reflect the above change.
1163 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1165 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1166 with sigcontext_addr. Add sc_sp_offset.
1167 (i386bsd_sigtramp_saved_pc): Remove prototype.
1168 (i386bsd_sicontext_addr): Add prototype.
1169 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1170 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1171 (i386_svr4_sigtramp_saved_pc): Removed.
1172 (i386_svr4_sigcontext_addr): New function.
1173 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1174 Initialize tdep->sigcontext_addr instead. Initialize
1175 tdep->sc_pc_offset and tdep->sc_sp_offset.
1176 (i386_gdbarch_init): Likewise.
1177 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1179 (i386bsd_sigtramp_saved_pc): Remove function.
1180 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1181 Initialize tdep->sigcontext_addr instead. Initialize
1183 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1184 of tdep->sigtramp_saved_pc.
1185 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1186 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1189 * i386-tdep.c (i386_frameless_function_invocation,
1190 i386_frame_num_args, i386_frame_init_saved_regs,
1191 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1192 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1193 i386_extract_return_value, i386_store_return_value,
1194 i386_extract_struct_value_address, i386_register_virtual_type,
1195 i386_register_convertible, i386_register_convert_to_virtual,
1196 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1197 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1200 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1202 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1204 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1205 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1206 this macro. Include "value.h".
1208 2002-06-30 Aidan Skinner <aidan@velvet.net>
1210 * ada-exp.tab.c: remove as it's a generated file
1211 * ada-lex.c: remove as it's a generated file
1213 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1215 * config/i386/tm-i386.h (struct frame_info, struct
1216 frame_saved_regs, struct value, struct type): Remove forward
1219 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1220 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1221 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1222 (FILL_FPXREGSET): Define.
1224 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1226 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1227 i[3456]86-*-netbsd* case.
1228 * config/i386/tm-obsd.h: Removed.
1229 * config/i386/obsd.mt: Removed.
1230 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1232 (MH_CFLAGS): Add -DYYDEBUG=0.
1234 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1235 i386nbsd_sc_pc_offset on OpenBSD too.
1237 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1238 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1239 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1241 * i386bsd-tdep.c: Include "arch-utils.h".
1242 (i386bsd_aout_in_solib_call_trampoline): New function.
1243 (i386bsd_init_abi): Set in_solib_call_trampoline to
1244 i386bsd_aout_in_solib_call_trampoline.
1245 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1246 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1248 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1250 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1251 (struct obstack, struct bcache): Add opaque declarations.
1252 * Makefile.in (macrotab_h): Update
1254 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1256 * blockframe.c (generic_find_dummy_frame): Change return type to
1257 ``struct regcache''.
1258 (struct dummy_frame): Replace field ``registers'' with regcache, a
1259 struct regcache object.
1260 (generic_find_dummy_frame): Update.
1261 (generic_push_dummy_frame): Update. Use regcache_xfree,
1262 regcache_xmalloc and regcache_cpy.
1263 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1265 (deprecated_generic_find_dummy_frame): Update.
1266 (generic_read_register_dummy): Update. Use
1267 regcache_read_as_address.
1268 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1269 (generic_get_saved_register): Update. Use regcache_read.
1271 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1273 * Makefile.in (objfiles_h): Add $(bcache_h).
1274 * objfiles.h: Include "bcache.h".
1276 * Makefile.in (symtab_h): Remove $(bcache_h).
1277 * symtab.h: Do not include "bcache.h".
1279 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1281 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1282 generic_func_frame_chain_valid.
1284 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1286 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1287 * config/i386/tm-fbsd.h: Likewise.
1289 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1291 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1292 generic_unwind_get_saved_register.
1294 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1296 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1297 * regcache.c (supply_register): Add missing argument to
1298 register_buffer call.
1300 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1302 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1303 Solaris /bin/grep does not not like it. From Peter Schauer.
1305 2002-06-26 Tom Tromey <tromey@redhat.com>
1307 * command.h (add_setshow_cmd): Declare.
1308 (add_setshow_cmd_full): Declare.
1309 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1310 returns void. Use add_setshow_cmd_full.
1311 (add_setshow_cmd_full): New function.
1312 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1313 (add_setshow_boolean_cmd): Likewise.
1315 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1317 * config/vax/tm-vax.h: Protect from multiple inclusion.
1318 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1319 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1320 * config/vax/tm-vaxbsd.h: ...here. New file.
1321 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1323 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1325 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1326 (BELIEVE_PCC_PROMOTION): Remove.
1327 (AP_REGNUM): Move to...
1328 * config/vax/nm-vax.h: ...here.
1329 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1330 (vax_breakpoint_from_pc): New function.
1331 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1332 and gdbarch_believe_pcc_promotion.
1334 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1336 * Makefile.in (vax_tdep_h): Define.
1337 (vax-tdep.o): Use $(vax_tdep_h).
1338 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
1339 (vax_dump_tdep): New function.
1340 (_initialize_vax_tdep): Register vax_dump_tdep.
1341 * vax-tdep.h: Include osabi.h.
1342 (struct gdbarch_tdep): New.
1344 2002-06-26 Andrew Cagney <cagney@redhat.com>
1346 * frame.h (deprecated_generic_find_dummy_frame): Rename
1347 generic_find_dummy_frame.
1348 * blockframe.c (generic_find_dummy_frame): Make static.
1349 (deprecated_generic_find_dummy_frame): New function.
1350 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
1351 generic_find_dummy_frame with deprecated_find_dummy_frame.
1352 (sh64_nofp_frame_init_saved_regs): Ditto.
1353 (sh_fp_frame_init_saved_regs): Ditto.
1354 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
1355 (s390_frame_chain): Ditto.
1356 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1358 2002-06-26 Grace Sainsbury <graces@redhat.com>
1360 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
1361 gdbarch vector are at the top.
1363 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
1364 (FRAME_ARGS_ADDRESS): Remove.
1365 (FRAME_LOCALS_ADDRESS): Remove.
1366 (FRAME_NUM_ARGS): Remove.
1367 (FRAME_ARGS_SKIP): Remove.
1368 * m68k-tdep.c (enum): Add eumeration of special register numbers.
1369 (m68k_gdbarch_init): Add gdbarch initializations for macros
1370 undefined in tm-m68k.h
1372 2002-06-26 Grace Sainsbury <graces@redhat.com>
1374 * monitor.h: Add the function regname to monitor_ops
1375 structure. This way NUM_REGS does not have to be a constant.
1376 * monitor.c (monitor_fetch_register): Added support for regname
1377 function. The function is called if the array regnames is NULL.
1378 (monitor_store_register): Same.
1379 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
1381 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
1382 cpu32bug_cmds.regname to point to new function.
1383 * abug-rom.c (abug_regname): Same as above.
1384 (init_abug_cmds): Same.
1385 * dbug-rom.c (dbug_regname): Same as above.
1386 (init_dbug_cmds): Same.
1387 * remote-est.c (est_regname): Same.
1388 (init_est_cmds): Same.
1389 * rom68k-rom.c (rom68k_regname): Same.
1390 (init_rom68k_cmds): Same.
1392 2002-06-25 Tom Tromey <tromey@redhat.com>
1394 * breakpoint.c (delete_command): Don't repeat `delete' commands.
1396 2002-06-25 Andrew Cagney <cagney@redhat.com>
1398 * infrun.c (stop_registers): Change variable's type to ``struct
1400 (xmalloc_inferior_status): Delete function.
1401 (free_inferior_status): Delete function.
1402 (normal_stop): Use regcache_cpy.
1403 (struct inferior_status): Change type of fields ``stop_registers''
1404 and ``registers'' to ``struct regcache''.
1405 (write_inferior_status_register): Use regcache_write.
1406 (save_inferior_status): Instead of calling
1407 xmalloc_inferior_status, allocate the inf_status buffer directly.
1408 Use regcache_dup_no_passthrough and regcache_dup to save the
1410 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
1411 Replace the stop_registers regcache instead of overriding it. Use
1412 regcache_xfree. Instead of calling free_inferior_status, xfree
1413 the buffer directly.
1414 (discard_inferior_status): Use regcache_xfree. Instead of calling
1415 free_inferior_status, xfree the buffer directly.
1416 (build_infrun): Use regcache_xmalloc.
1417 (_initialize_infrun): Delete redundant call to build_infrun.
1419 * Makefile.in (infcmd.o): Add $(regcache_h).
1421 * infcmd.c: Include "regcache.h".
1422 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
1423 obtain the address of `stop_registers' register buffer.
1424 (print_return_value): Ditto.
1426 * inferior.h (struct regcache): Add opaque declaration.
1427 (stop_registers): Change variable's declared type to ``struct
1430 2002-06-24 Tom Tromey <tromey@redhat.com>
1432 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
1433 * target.c (initialize_targets): Fixed typo in
1434 trust-readonly-sections `show' documentation.
1436 * main.c: Marked all strings with _().
1438 2002-06-24 Don Howard <dhoward@redhat.com>
1440 * memattr.c (create_mem_region): Treat hi == 0 as a special case
1441 that means max CORE_ADDR+1.
1442 (lookup_mem_region): Ditto.
1443 (mem_info_command): Ditto.
1445 2002-06-24 Grace Sainsbury <graces@redhat.com>
1447 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
1448 (REGISTER_BYTES_OK): Remove.
1449 (REGISTER_BYTES): Remove.
1450 (STORE_STRUCT_RETURN): Remove.
1451 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
1452 (STORE_RETURN_VALUE): Remove.
1453 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1454 (FRAME_CHAIN): Remove.
1455 (FRAMELESS_FUNCTION_INVOCATION): Remove.
1456 (FRAME_SAVED_PC): Remove.
1457 * m68k-tdep.c (m68k_register_bytes_ok):Add.
1458 (m68k_store_struct_return): Add.
1459 (m68k_deprecated_extract_return_value): Add.
1460 (m68k_deprecated_extract_struct_value_address): Add.
1461 (m68k_store_return_value): Add.
1462 (m68k_frame_chain): Add.
1463 (m68k_frameless_function_invocation): Add.
1464 (m68k_frame_saved_pc): Add.
1465 (m68k_gdbarch_init): added set_gdbarch calls for new
1466 functions and deleted macros.
1468 2002-06-23 Tom Tromey <tromey@redhat.com>
1470 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
1471 (ALLDEPFILES): Likewise.
1472 (udiheaders): Removed.
1473 (udip2soc.o): Likewise.
1474 (udi2go32.o): Likewise.
1476 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
1478 2002-06-22 Andrew Cagney <ac131313@redhat.com>
1480 * infrun.c (_initialize_infrun): Delete unnecessary call to
1483 * regcache.h: Update comments describing the regcache_cpy family
1485 (regcache_save, regcache_restore): Delete declaration.
1486 (regcache_save_no_passthrough): Delete declaration.
1487 (regcache_restore_no_passthrough): Delete declaration.
1488 * regcache.c (regcache_save): Delete function.
1489 (regcache_save_no_passthrough): Delete function.
1490 (regcache_restore): Delete function.
1491 (regcache_restore_no_passthrough): Delete function.
1493 2002-06-21 Andrew Cagney <ac131313@redhat.com>
1495 * config/m68k/tm-m68k.h: Fix typo.
1496 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
1497 (m68k_frame_init_saved_regs): Declare.
1499 2002-06-21 Jim Blandy <jimb@redhat.com>
1501 Remove some vestiges of Harris 88k support.
1502 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
1503 register numbering quirk.
1504 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
1505 odd symbols occurring in Harris 88k ELF targets.
1507 2002-06-21 Tom Tromey <tromey@redhat.com>
1509 * gdb_locale.h: New file.
1510 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
1511 (defs_h): Added gdb_locale.h.
1512 * configure, config.in: Rebuilt.
1513 * configure.in (PACKAGE): Define.
1514 * defs.h: Include gdb_locale.h.
1515 * main.c (captured_main): Call setlocale, bindtextdomain,
1518 2002-06-21 Dave Brolley <brolley@redhat.com>
1520 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
1521 * config/frv/frv.mt: New file.
1522 * config/frv/tm-frv.h: New file.
1523 * configure.tgt: Support frv-*-*.
1524 * Makefile.in (frv-tdep.o): New target.
1525 * frv-tdep.c: New file.
1526 * NEWS: Mention frv.
1528 2002-06-21 Dave Brolley <brolley@redhat.com>
1530 * MAINTAINERS: Add self to "Write After Approval" list.
1532 2002-06-21 Grace Sainsbury <graces@redhat.com>
1534 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
1535 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1536 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
1537 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
1538 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
1540 * m68k-tdep.c: Include arch-utils.h
1541 (m68k_register_raw_size): Add.
1542 (m68k_register_virtual_size): Add.
1543 (m68k_register_virtual_type): Add.
1544 (m68k_register_name): Add.
1545 (m68k_stack_align): Add.
1546 (m68k_register_byte): Add.
1547 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
1550 2002-06-21 Grace Sainsbury <graces@redhat.com>
1552 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
1553 m68k_find_saved_regs.
1554 (m68k_pop_frame): Removed saved_regs structure, and replaced
1555 references to it with frame->saved_regs.
1556 (m68k_gdbarch_init): Added function calls to initialize the
1558 (m68k_fix_call_dummy): Add.
1559 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
1560 (CALL_DUMMY): Remove.
1561 (CALL_DUMMY_LENGTH): Remove.
1562 (CALL_DUMMY_START_OFFSET): Remove.
1563 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1564 (FIX_CALL_DUMMY): Remove.
1565 (PUSH_DUMMY_FRAME): Remove.
1566 (POP_FRAME): Remove.
1568 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1570 * parse.c (parse_fprintf): New function used to avoid calls to
1571 fprintf in bison parser generated debug code.
1572 * parser-defs.h: Declaration of new parse_fprintf function.
1573 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
1574 Set YYDEBUG to 1 by default.
1575 Set YYFPRINTF as parse_fprintf.
1577 2002-06-21 Michal Ludvig <mludvig@suse.cz>
1579 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
1581 (pointer_encoding, enum ptr_encoding): New.
1582 (execute_cfa_program): Take care about pointer encoding.
1583 (dwarf2_build_frame_info): Only call parse_frame_info for
1584 .debug_frame and .eh_frame.
1585 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
1586 fixed augmentation handling, added relative addressing,
1587 ignore duplicate FDEs. Added comments.
1588 * dwarf2cfi.c: Reindented.
1590 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
1592 * event-top.c (command_handler): Don't use space_at_cmd_start
1593 unless there is sbrk() on the host. Assign time and space data
1594 to union fields of the appropriate length.
1596 2002-06-20 Michal Ludvig <mludvig@suse.cz>
1598 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
1599 x86_64_register_name. Return type changed to 'const char *'.
1600 (x86_64_register_name2nr): Rename to x86_64_register_number.
1601 (x86_64_gdbarch_init): Update to reflect the change.
1602 * x86-64-tdep.h: Ditto.
1603 * x86-64-linux-nat.c (x86_64_fxsave_offset)
1604 (supply_fpregset): Ditto.
1606 2002-06-19 Andrew Cagney <cagney@redhat.com>
1608 * regcache.h: Update copyright.
1609 (struct regcache, struct gdbarch): Add opaque declarations.
1610 (current_regcache): Declare global variable.
1611 (regcache_read, regcache_write): Add gdbarch parameter.
1612 (regcache_save, regcache_save_no_passthrough)
1613 (regcache_restore, regcache_restore_no_passthrough)
1614 (regcache_dup, regcache_dup_no_passthrough)
1615 (regcache_cpy, regcache_cpy_no_passthrough)
1616 (deprecated_grub_regcache_for_registers)
1617 (deprecated_grub_regcache_for_register_valid)
1618 (regcache_valid_p): Add function declarations.
1620 * regcache.c: Update copyright.
1621 (regcache_descr_handle): New global variable.
1622 (struct regcache_descr): Define.
1623 (init_legacy_regcache_descr, init_regcache_descr): New functions.
1624 (regcache_descr, xfree_regcache_descr): New functions.
1625 (struct regcache): Define.
1626 (regcache_xmalloc, regcache_xfree): New functions.
1627 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
1628 (regcache_dup, regcache_dup_no_passthrough): New functions.
1629 (regcache_valid_p, regcache_read_as_address): New functions.
1630 (deprecated_grub_regcache_for_registers): New function.
1631 (deprecated_grub_regcache_for_register_valid): New function.
1632 (current_regcache): New global variable.
1633 (register_buffer): Add regcache parameter. Update calls.
1634 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
1635 (read_register_gen, write_register_gen): Update register_buffer
1636 call. Test for legacy_p instead of gdbarch_register_read_p or
1637 gdbarch_register_write_p.
1638 (regcache_collect): Update register_buffer call.
1639 (build_regcache): Rewrite. Use deprecated grub functions.
1640 (regcache_save, regcache_save_no_passthrough): New functions.
1641 (regcache_restore, regcache_restore_no_passthrough): New
1643 (_initialize_regcache): Create the regcache_data_handle. Swap
1644 current_regcache global variable.
1646 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
1647 parameter to regcache_read and regcache_write calls.
1648 (sh4_register_read): Ditto.
1649 (sh64_pseudo_register_read): Ditto.
1650 (sh64_register_read): Ditto.
1651 (sh_pseudo_register_write): Ditto.
1652 (sh4_register_write): Ditto.
1653 (sh64_pseudo_register_write): Ditto.
1654 (sh64_register_write): Ditto.
1656 * defs.h (XCALLOC): Define.
1658 2002-06-19 Grace Sainsbury <graces@redhat.com>
1660 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
1661 * m68k-tdep.c (m68k_gdbarch_init): Added.
1662 (m68k_dump_tdep): Added.
1664 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1666 * ada-lang.c (fill_in_ada_prototype): Update comment.
1668 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
1670 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
1672 (mips_abi_string, mips_abi_strings): New.
1673 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
1674 (mips_gdbarch_init): Set tdep->found_abi. Don't set
1675 tdep->mips_abi_string. Honor mips_abi_string. Default to
1676 O32 if no ABI is found.
1677 (mips_dump_tdep): Use mips_abi_strings.
1678 (mips_abi_update): New function.
1679 (_initialize_mips_tdep): Initialize mips_abi_string. Add
1680 ``set mips abi'' and ``show mips abi''. Check the size of
1683 2002-06-19 Andrew Cagney <cagney@redhat.com>
1685 * i386-linux-tdep.c (i386_linux_register_name): Make return type
1688 2002-06-18 Joel Brobecker <brobecker@gnat.com>
1690 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
1691 current frame using only the first stack size adjustment. All
1692 subsequent size adjustments are not considered to be part of
1693 the "static" part of the current frame.
1694 Compute the address of the saved registers relative to the
1695 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
1696 in use in this frame.
1698 2002-06-18 Don Howard <dhoward@redhat.com>
1700 * valops.c (value_ind): Use value_at_lazy() when dereferencing
1701 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
1702 suggesting this solution.
1704 2002-06-18 Andrew Cagney <ac131313@redhat.com>
1706 * config/romp/xm-rtbsd.h: Delete file.
1707 * config/romp/rtbsd.mh: Delete file.
1709 2002-06-18 Keith Seitz <keiths@redhat.com>
1711 * breakpoint.c (condition_command): Post breakpoint_modify
1712 when a condition is added to an existing breakpoint.
1713 (commands_command): Likewise for commands.
1714 (set_ignore_count): Likewise for ignore counts.
1715 If no tty, do not simply return, still need to send event
1717 (ignore_command): Only print a newline if the command came
1719 Don't call breakpoints_changed, since this is now properly
1720 handled by set_ignore_count.
1722 2002-06-18 Andrew Cagney <cagney@redhat.com>
1724 * MAINTAINERS: Note that cris-elf target can be compiled with
1726 * cris-tdep.c (cris_register_name): Make return type constant.
1727 (cris_breakpoint_from_pc): Ditto.
1729 2002-06-18 Michal Ludvig <mludvig@suse.cz>
1731 * frame.h (struct frame_info): Change type of context to
1734 2002-06-17 Andrew Cagney <cagney@redhat.com>
1736 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
1738 * gdbarch.h, gdbarch.c: Regenerate.
1739 * config/mips/tm-mips.h (mips_register_name): Update.
1740 * i386-tdep.h (i386_register_name): Update.
1741 * mips-tdep.c (mips_register_name): Update
1742 * alpha-tdep.c (alpha_register_name): Update.
1743 * arch-utils.c (legacy_register_name): Update.
1744 * arch-utils.h (legacy_register_name): Update.
1745 * avr-tdep.c (avr_register_name): Update.
1746 * ia64-tdep.c (ia64_register_name): Update.
1747 * i386-tdep.c (i386_register_name): Update.
1748 * sparc-tdep.c (sparc32_register_name): Update.
1749 (sparc64_register_name): Update.
1750 (sparclite_register_name): Update.
1751 (sparclet_register_name): Update.
1752 * sh-tdep.c (sh_generic_register_name): Update.
1753 (sh_sh_register_name): Update.
1754 (sh_sh3_register_name): Update.
1755 (sh_sh3e_register_name): Update.
1756 (sh_sh_dsp_register_name): Update.
1757 (sh_sh3_dsp_register_name): Update.
1758 (sh_sh4_register_name): Update.
1759 (sh_sh64_register_name): Update.
1760 * s390-tdep.c (s390_register_name): Update.
1761 * rs6000-tdep.c (rs6000_register_name): Update.
1762 * ns32k-tdep.c (ns32k_register_name_32082): Update.
1763 (ns32k_register_name_32382): Update.
1764 * d10v-tdep.c (d10v_ts2_register_name): Update.
1765 (d10v_ts3_register_name): Update.
1766 * xstormy16-tdep.c (xstormy16_register_name): Update.
1767 * vax-tdep.c (vax_register_name): Update.
1768 * v850-tdep.c (v850_register_name): Update.
1769 * m68hc11-tdep.c (m68hc11_register_name): Update.
1770 * mn10300-tdep.c (mn10300_generic_register_name): Update.
1771 (am33_register_name): Update.
1773 2002-06-17 Grace Sainsbury <graces@redhat.com>
1775 * m68k-tdep.c: Reindented.
1777 2002-06-17 Andrew Cagney <ac131313@redhat.com>
1779 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
1780 list of predefined types.
1782 2002-06-16 Mark Kettenis <kettenis@gnu.org>
1784 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
1785 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1786 REGISTER_CONVERT_TO_RAW): Remove defines.
1787 (i386_register_virtual_type, i386_register_convertible,
1788 i386_register_convert_to_virtual, i386_register_convert_to_raw):
1790 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1791 macros mentioned above.
1793 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
1794 (i386lynx_saved_pc_after_call): Remove prototype.
1795 * i386ly-tdep.c: Include "i386-tdep.h".
1796 (i386lynx_saved_pc_after_call): Make static. Use
1797 read_memory_nobpt instead of read_memory. Use
1798 read_memory_unsigned_integer instead of read_memory_integer.
1799 (i386lynx_init_abi): New function.
1800 (i386lynx_coff_osabi_sniffer): New function.
1801 (_initialize_i386bsd_tdep): New function.
1803 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
1804 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
1805 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
1806 (i386_fix_call_dummy): Remove prototype.
1807 * i386-tdep.c (i386_call_dummy_words): New variable.
1808 (i386_gdbarch_init): Adjust for removal of the
1809 macros mentioned above.
1811 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1813 * command.h (add_setshow_auto_boolean_cmd): Replace
1814 add_set_auto_boolean_cmd.
1815 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
1816 add_set_auto_boolean_cmd.
1817 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
1818 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
1819 mask-address'' command.
1820 (show_mask_address): Add cmd parameter.
1821 * remote.c (add_packet_config_cmd): Update. Change type of
1822 set_func and show_func to cmd_sfunc_ftype.
1823 (_initialize_remote): Update `set remote Z-packet'
1824 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
1825 (show_remote_protocol_e_packet_cmd): Ditto.
1826 (show_remote_protocol_E_packet_cmd): Ditto.
1827 (show_remote_protocol_P_packet_cmd): Ditto.
1828 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
1829 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
1830 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
1831 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
1832 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
1833 (show_remote_protocol_Z_packet_cmd): Ditto.
1834 (show_remote_protocol_binary_download_cmd): Ditto.
1835 (show_remote_cmd): Pass NULL to all of above.
1837 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1839 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
1840 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1841 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
1842 POP_FRAME): Remove defines.
1843 (i386_push_arguments, i386_store_struct_return,
1844 i386_extract_return_value, i386_store_return_value,
1845 i386_extract_struct_value_address, i386_push_dummy_frame,
1846 i386_pop_frame): Renove prototypes.
1847 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1848 macros mentioned above.
1850 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1852 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
1853 add_set_boolean_cmd.
1854 (add_setshow_cmd): New function.
1855 * command.h (add_setshow_boolean_cmd): Replace
1856 add_set_boolean_cmd.
1857 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
1858 and ``set rdiromatzero''.
1859 * maint.c (_initialize_maint_cmds): Update commented out code.
1860 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
1861 * target.c (initialize_targets): Update `set
1862 trust-readonly-sections'.
1863 * remote.c (_initialize_remote): Update `set remotebreak'.
1865 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1867 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
1868 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
1869 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
1870 fit into multi-arch framework.
1871 (i386_breakpoint_from_pc): New function.
1872 (i386_gdbarch_init): Adjust for removal of the macros mentioned
1875 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
1876 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
1877 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
1878 (i386_frameless_function_invocation, i386_frame_num_args,
1879 i386_frame_init_saved_regs): Remove prototypes.
1880 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
1881 macros mentioned above.
1883 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1885 * cli/cli-decode.c (set_cmd_cfunc): Update.
1886 (set_cmd_sfunc): Update.
1887 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
1888 (set_cmd_sfunc, set_cmd_cfunc): Update.
1889 * cli/cli-decode.h: Update.
1891 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1893 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
1894 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
1896 2002-06-15 Andrew Cagney <ac131313@redhat.com>
1898 * defs.h (auto_boolean): Declare enum.
1899 * command.h (cmd_auto_boolean): Delete enum.
1900 * mips-tdep.c (mask_address_var): Update.
1901 (mips_mask_address_p): Update.
1902 (show_mask_address): Update.
1903 * remote.c (struct packet_config): Update.
1904 (update_packet_config): Update.
1905 (show_packet_config_cmd): Update.
1906 (packet_ok): Update.
1907 (add_packet_config_cmd): Update.
1908 (_initialize_remote):
1909 * command.h: Update.
1910 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
1911 (do_setshow_command): Update.
1912 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
1913 * cli/cli-decode.h: Update.
1915 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1917 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
1918 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
1919 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
1920 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
1921 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
1922 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
1924 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
1925 list of DJGPP COFF targets.
1927 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
1928 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
1929 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
1930 (FP0_REGNUM): Remove define.
1931 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1932 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
1933 (i386_register_virtual_size): Remove protoype.
1934 * i386-tdep.c (i386_register_virtual_size): Removed.
1935 (i386_extract_return_value, i386_store_return_value): Use
1936 FP0_REGNUM instead of NUM_FREGS to determine whether the
1937 floating-point registers are available.
1938 (i386_gdbarch_init): Tweak FIXME about FPU registers.
1939 Adjust for removal of macros mentioned above.
1941 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1943 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
1945 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
1947 (supply_gregset, fill_gregset): Remove use of register keyword and
1948 remove declaration for regmap. Use I386_NUM_GREGS instead of
1949 NUM_REGS and NUM_FREGS.
1950 (FPREGSET_FSAVE_OFFSET): Remove.
1951 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
1952 NUM_FREGS to determine whether the floating-point registers are
1955 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
1956 gnu_store_registers): Replace usage of NUM_GREGS with
1959 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1960 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
1961 usage of NUM_GREGS with I386_NUM_GREGS.
1963 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
1965 * i386bsd-nat.c: Include "i386-tdep.h".
1966 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
1969 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
1970 and associated comment. They no longer make any sense, since we
1971 don't use this file anymore on Linux.
1973 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
1974 * i386-tdep.c (i386_register_offset, i386_register_size): Use
1975 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
1976 elements in these arrays.
1977 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
1980 2002-06-15 Mark Kettenis <kettenis@gnu.org>
1982 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
1983 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
1985 2002-06-14 Andrew Cagney <cagney@redhat.com>
1987 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1988 EXTRACT_RETURN_VALUE.
1989 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1990 EXTRACT_STRUCT_VALUE_ADDRESS.
1991 * gdbarch.h, gdbarch.c: Regenerate.
1993 * values.c (value_being_returned): Handle
1994 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1995 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1997 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1998 * arm-tdep.c (arm_gdbarch_init): Update.
1999 * avr-tdep.c (avr_gdbarch_init): Update.
2000 * cris-tdep.c (cris_gdbarch_init): Update.
2001 * d10v-tdep.c (d10v_gdbarch_init): Update.
2002 * ia64-tdep.c (ia64_gdbarch_init): Update.
2003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2004 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2005 * s390-tdep.c (s390_gdbarch_init): Update.
2006 * sh-tdep.c (sh_gdbarch_init): Update.
2007 * s390-tdep.c (s390_gdbarch_init): Update.
2008 * sparc-tdep.c (sparc_gdbarch_init): Update.
2009 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2010 * v850-tdep.c (v850_gdbarch_init): Update.
2011 * vax-tdep.c (vax_gdbarch_init): Update.
2012 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2015 * config/arc/tm-arc.h: Update.
2016 * config/d30v/tm-d30v.h: Update.
2017 * config/fr30/tm-fr30.h: Update.
2018 * config/h8300/tm-h8300.h: Update.
2019 * config/h8500/tm-h8500.h: Update.
2020 * config/i386/tm-i386.h: Update.
2021 * config/i386/tm-ptx.h: Update.
2022 * config/i386/tm-symmetry.h: Update.
2023 * config/i960/tm-i960.h: Update.
2024 * config/m32r/tm-m32r.h: Update.
2025 * config/m68k/tm-delta68.h: Update.
2026 * config/m68k/tm-linux.h: Update.
2027 * config/m68k/tm-m68k.h: Update.
2028 * config/m88k/tm-m88k.h: Update.
2029 * config/mcore/tm-mcore.h: Update.
2030 * config/mips/tm-mips.h: Update.
2031 * config/mn10200/tm-mn10200.h: Update.
2032 * config/pa/tm-hppa.h: Update.
2033 * config/pa/tm-hppa64.h: Update.
2034 * config/sparc/tm-sp64.h: Update.
2035 * config/sparc/tm-sparc.h: Update.
2036 * config/sparc/tm-sparclet.h: Update.
2037 * config/z8k/tm-z8k.h: Update.
2039 2002-06-14 Andrew Cagney <cagney@redhat.com>
2041 * Makefile.in (i386_linux_tdep_h): Define.
2042 (i386_tdep_h, i387_tdep_h): Define.
2043 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2044 $(i386_tdep_h) and $(i387_tdep_h).
2045 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2047 2002-06-14 Mark Kettenis <kettenis@gnu.org>
2049 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2050 Already covered by the default.
2052 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2053 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2054 (i386_gdbarch_init): Initialize long_double_format and long_double
2057 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2058 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2060 * config/i386/i386sol2.mh: ... here.
2061 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2062 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2063 (SIGCONTEXT_PC_OFFSET): Remove define.
2064 (IN_SIGTRAMP): Remove define.
2065 * i386-sol2-tdep.c: New file.
2067 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2068 * config/i386/tm-i386nw.h: Removed.
2070 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2071 USE_STRUCT_CONVENTION): Remove defines.
2072 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2073 (get_longjmp_target): Remove prototype.
2074 (IN_SIGTRAMP): Remove define.
2075 (i386bsd_in_sigtramp): Remove prototype.
2076 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2077 function. Update comment accordingly
2078 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2079 (FRAME_SAVED_PC): Remove define.
2080 (i386bsd_frame_saved_pc): Remove prototype.
2081 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2082 GET_LONGJMP_TARGET): Remove defines.
2083 (get_longjmp_target): Remove prototype.
2084 (IN_SIGTRAMP): Remove define.
2085 (i386bsd_in_sigtramp): Remove prototype.
2086 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2087 function. Update comment accordingly
2088 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2089 (FRAME_SAVED_PC): Remove define.
2090 (i386bsd_frame_saved_pc): Remove prototype.
2091 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2093 (USE_STRUCT_CONVENTION): Remove prototype.
2094 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2096 (_initialize_i386bsd_nat): Revise logic to determine some
2097 constants at compile time when compiling a native GDB. Warn if
2098 things don't match up with what we expect.
2099 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2101 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2102 to use date stored in `struct gdbarch_tdep'.
2103 (i386bsd_sigcontext_offset): Remove varaible.
2104 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2105 stored in `struct gdbarch_tdep'.
2106 (i386bsd_frame_saved_pc): Make static.
2107 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2108 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2109 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2110 i386fbsd4_sc_pc_offset): New variables.
2111 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2112 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2114 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2116 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2117 Modify the value of i386fbsd_sigtramp_start and
2118 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2119 i386fbsd_sigtramp_end.
2120 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2123 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2124 define to i386-linux-tdep.h.
2125 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2126 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2128 (i386_linux_register_name, i386_linux_register_byte,
2129 i386_linux_register_raw_size): Remove prototypes.
2130 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2131 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2132 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2133 TARGET_WRITE_PC): Remove defines.
2134 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2135 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2136 i386_linux_write_pc): Remove prototypes.
2137 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2138 (get_longjmp_target): Remove prototype.
2139 * i386-linux-tdep.h: New file.
2140 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2141 * i386-linux-tdep.c: Include "i386-tdep.h" and
2142 "i386-linux-tdep.h".
2143 (i386_linux_register_name, i386_linux_register_byte,
2144 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2145 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2147 (i386_linux_init_abi): New function.
2148 (_initialize_i386_linux_tdep): New function.
2150 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2151 (i386_saved_pc_after_call): Remove prototype.
2152 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2153 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2154 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2155 (i386_register_name, i386_stab_reg_to_regnum,
2156 i386_dwarf_reg_to_regnum): Remove prototypes.
2157 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2158 SIZEOF_SSE_REGS): Remove defines.
2159 (REGISTER_BYTES): Remove define.
2160 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2161 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2162 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2163 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2164 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2165 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2166 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2167 (get_longjmp_target): Remove prototype.
2168 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2169 (sigtramp_saved_pc): Remove define.
2170 (i386v4_sigtramp_saved_pc): Remove prototype.
2171 * config/i386/tm-go32.h (FRAME_CHAIN,
2172 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2173 (i386go32_frame_saved_pc): Remove prototype.
2174 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2175 (get_longjmp_target): Remove prototype.
2176 * i386-tdep.h: Include "osabi.h".
2177 (enum i386_abi): Removed.
2178 (enum struct_return): New enum.
2179 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2180 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2181 sc_pc_offset members.
2182 (i386_gdbarch_register_os_abi): Remove prototype.
2183 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2184 I386_SSE_NUM_REGS): New defines.
2185 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2186 I386_SSE_SIZEOF_REGS): New defines.
2187 (i386_register_name, i386_register_byte, i386_register_raw_size):
2189 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2190 (i386bsd_sigtramp_saved_pc): New prototype.
2191 * i386-tdep.c: Don't include "elf-bfd.h".
2192 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2193 i386_frame_chain, i386_saved_pc_after_call): Make static.
2194 (i386_frame_saved_pc): Rewrite to call architecture dependent
2195 function to deal with signal handlers. Make static.
2196 (i386go32_frame_saved_pc): Removed.
2197 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2199 (i386_get_longjmp_target): New function.
2200 (default_struct_convention, pcc_struct_convention,
2201 reg_struct_convention, valid_conventions, struct_convention): New
2203 (i386_use_struct_convention): New function.
2204 (i386v4_sigtramp_saved_pc): Renamed to
2205 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2206 (i386_pc_in_sigtramp): New function.
2207 (i386_abi_names): Removed.
2208 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2209 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2211 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2212 i386_gdbarch_register_os_abi): Removed.
2213 (struct i386_abi_handler): Removed.
2214 (i386_abi_handler_list): Removed.
2215 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2217 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2218 i386_nw_init_abi): New functions.
2219 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2220 Use set_gdbarch_xxx() calls instead of relying on macros for a
2222 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2223 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2224 Register the various architecture variants defined in this file.
2226 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2228 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2229 (struct main_type): Remove arg_types member. Update comments for
2231 (TYPE_ARG_TYPES): Remove.
2232 (TYPE_FN_FIELD_ARGS): Update.
2233 (smash_to_method_type): Update prototype.
2235 * c-typeprint.c (cp_type_print_method_args): Take method type
2236 instead of argument list. Use new argument layout. Simplify.
2237 (c_type_print_args): Use new argument layout. Simplify.
2238 (c_type_print_base): Update call to cp_type_print_method_args.
2239 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2240 argument; use die->type instead. Update call to
2241 smash_to_method_type.
2242 (read_structure_scope): Update call to dwarf2_add_member_fn.
2243 * gdbtypes.c (allocate_stub_method): Update comment.
2244 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2245 Use new argument layout.
2246 (check_stub_method): Use new argument layout. Don't count
2247 void as an argument.
2248 (print_arg_types): Update comments. Use new argument layout.
2249 (recursive_dump_type): Don't print arg_types member.
2250 * hpread.c (hpread_read_struct_type): Use new argument layout.
2251 (fixup_class_method_type): Likewise.
2252 (hpread_type_lookup): Likewise.
2253 * stabsread.c (read_type): Update calls to read_args and
2254 smash_to_method_type.
2255 (read_args): Use new argument layout. Simplify.
2256 * valops.c (typecmp): Use new argument layout. Update parameters
2257 and comments. Simplify.
2258 (hand_function_call): Use new argument layout.
2259 (search_struct_method): Update call to typecmp.
2260 (find_overload_match): Use new argument layout.
2262 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2264 * NEWS: Mention multithreaded debug support for gdbserver.
2266 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2268 * MAINTAINERS: Mention NEWS.
2270 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2272 * gdbserver/regcache.c: Add comment.
2274 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2276 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2277 (struct mips_objfile_private, compare_pdr_entries): New.
2278 (non_heuristic_proc_desc): Read the ".pdr" section if it
2281 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2283 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2284 (arm_debug): New static variable.
2285 (_initialize_arm_tdep): Add ``set debug arm'' command.
2287 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2289 * Makefile.in (sim_arm_h): Define.
2290 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2291 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2292 (arm_register_sim_regno): New function, map an internal REGNUM
2293 onto a simulator register number.
2294 (arm_gdbarch_init): Set register_sim_regno.
2296 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2298 * MAINTAINERS: Add self.
2300 2002-06-11 Jim Blandy <jimb@redhat.com>
2302 * source.c (source_info): Mention whether the symtab has
2303 information about preprocessor macros.
2305 Call the command `info macro', not `show macro'.
2306 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2308 (_initialize_macrocmd): Register `info_macro_command' in
2309 `infolist', not `showlist'.
2311 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2313 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2314 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2315 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2316 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2317 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2319 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2320 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2321 (_initialize_mips_tdep): Remove dead code.
2322 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2323 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2324 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2325 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2326 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2327 MIPS_LAST_FP_ARG_REGNUM): Remove.
2329 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2331 * gdbserver/thread-db.c: New file.
2332 * gdbserver/proc-service.c: New file.
2333 * gdbserver/acinclude.m4: New file.
2334 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2335 proc-service.o, and thread-db.o.
2336 (linux-low.o): Add USE_THREAD_DB.
2337 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
2338 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
2339 * gdbserver/aclocal.m4: Regenerated.
2340 * gdbserver/config.in: Regenerated.
2341 * gdbserver/configure: Regenerated.
2342 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
2343 thread_db.h, and linux/elf.h headrs.
2344 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
2345 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
2346 Check for -lthread_db and thread support.
2347 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
2348 PowerPC, and SuperH.
2349 * gdbserver/i387-fp.c: Constify arguments.
2350 * gdbserver/i387-fp.h: Likewise.
2351 * gdbserver/inferiors.c: (struct thread_info): Renamed from
2352 `struct inferior_info'. Remove PID member. Use generic inferior
2353 list header. All uses updated.
2354 (inferiors, signal_pid): Removed.
2355 (all_threads): New variable.
2356 (get_thread): Define.
2357 (add_inferior_to_list): New function.
2358 (for_each_inferior): New function.
2359 (change_inferior_id): New function.
2360 (add_inferior): Removed.
2361 (remove_inferior): New function.
2362 (add_thread): New function.
2363 (free_one_thread): New function.
2364 (remove_thread): New function.
2365 (clear_inferiors): Use for_each_inferior and free_one_thread.
2366 (find_inferior): New function.
2367 (find_inferior_id): New function.
2368 (inferior_target_data): Update argument type.
2369 (set_inferior_target_data): Likewise.
2370 (inferior_regcache_data): Likewise.
2371 (set_inferior_regcache_data): Likewise.
2372 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
2373 (all_processes, stopping_threads, using_thrads)
2374 (struct pending_signals, debug_threads, pid_of): New.
2375 (inferior_pid): Replace with macro.
2376 (struct inferior_linux_data): Remove.
2377 (get_stop_pc, add_process): New functions.
2378 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
2379 Use add_process and add_thread.
2380 (linux_attach_lwp): New function, based on old linux_attach. Use
2381 add_process and add_thread. Set stop_expected for new threads.
2382 (linux_attach): New function.
2383 (linux_kill_one_process): New function.
2384 (linux_kill): Kill all LWPs.
2385 (linux_thread_alive): Use find_inferior_id.
2386 (check_removed_breakpoints, status_pending_p): New functions.
2387 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
2388 Update. Use WNOHANG. Wait for cloned processes also. Update process
2389 struct for the found process.
2390 (linux_wait_for_event): New function.
2391 (linux_wait): Use it. Support LWPs.
2392 (send_sigstop, wait_for_sigstop, stop_all_processes)
2393 (linux_resume_one_process, linux_continue_one_process): New functions.
2394 (linux_resume): Support LWPs.
2395 (REGISTER_RAW_SIZE): Remove.
2396 (fetch_register): Use register_size instead. Call supply_register.
2397 (usr_store_inferior_registers): Likewise. Call collect_register.
2399 (regsets_fetch_inferior_registers): Improve error message.
2400 (regsets_store_inferior_registers): Add debugging.
2401 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
2402 (unstopped_p, linux_signal_pid): New functions.
2403 (linux_target_ops): Add linux_signal_pid.
2404 (linux_init_signals): New function.
2405 (initialize_low): Call it. Initialize using_threads.
2406 * gdbserver/regcache.c (inferior_regcache_data): Add valid
2408 (get_regcache): Fetch registers lazily. Add fetch argument
2409 and update all callers.
2410 (regcache_invalidate_one, regcache_invalidate): New
2412 (new_register_cache): Renamed from create_register_cache.
2413 Return the new regcache.
2414 (free_register_cache): Change argument to a void *.
2415 (registers_to_string, registers_from_string): Call get_regcache
2416 with fetch flag set.
2417 (register_data): Make static. Pass fetch flag to get_regcache.
2418 (supply_register): Call get_regcache with fetch flag clear.
2419 (collect_register): Call get_regcache with fetch flag set.
2420 (collect_register_as_string): New function.
2421 * gdbserver/regcache.h: Update.
2422 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
2424 Handle input interrupts while waiting for an ACK.
2425 (input_interrupt): Use signal_pid method.
2426 (getpkt): Flush after debug output and use stderr.
2427 (outreg): Use collect_register_as_string.
2428 (new_thread_notify, dead_thread_notify): New functions.
2429 (prepare_resume_reply): Check using_threads. Set thread_from_wait
2431 (look_up_one_symbol): Flush after debug output.
2432 * gdbserver/server.c (step_thread, server_waiting): New variables.
2433 (start_inferior): Don't use signal_pid. Update call to mywait.
2434 (attach_inferior): Update call to mywait.
2435 (handle_query): Handle qfThreadInfo and qsThreadInfo.
2436 (main): Don't fetch/store registers explicitly. Use
2437 set_desired_inferior. Support proposed ``Hs'' packet. Update
2439 * gdbserver/server.h: Update.
2440 (struct inferior_list, struct_inferior_list_entry): New.
2441 * gdbserver/target.c (set_desired_inferior): New.
2442 (write_inferior_memory): Constify.
2443 (mywait): New function.
2444 * gdbserver/target.h: Update.
2445 (struct target_ops): New signal_pid method.
2446 (mywait): Removed macro, added prototype.
2448 * gdbserver/linux-low.h (regset_func): Removed.
2449 (regset_fill_func, regset_store_func): New.
2450 (enum regset_type): New.
2451 (struct regset_info): Add type field. Use new operation types.
2452 (struct linux_target_ops): stop_pc renamed to get_pc.
2453 Add decr_pc_after_break and breakpoint_at.
2454 (get_process, get_thread_proess, get_process_thread)
2455 (strut process_info, all_processes, linux_attach_lwp)
2456 (thread_db_init): New.
2458 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
2459 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
2460 (the_low_target): Add new members.
2461 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
2462 (i386_store_fpxregset): Constify.
2463 (target_regsets): Add new kind identifier.
2464 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
2465 (i386_set_pc): Add debugging.
2466 (i386_breakpoint_at): New function.
2467 (the_low_target): Add new members.
2468 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
2469 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
2470 (mips_breakpoint_at): New.
2471 (the_low_target): Add new members.
2472 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
2473 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
2474 (the_low_target): Add new members.
2475 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
2476 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
2477 (the_low_target): Add new members.
2478 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
2481 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2483 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
2484 (unwind_tmp_obstack_free, parse_frame_info)
2485 (update_context, cfi_read_fp, cfi_write_fp)
2486 (cfi_frame_chain, cfi_init_extra_frame_info)
2487 (cfi_virtual_frame_pointer): Use the above function.
2488 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
2490 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
2492 * v850-tdep.c (v850_type_is_scalar): New function.
2493 (v850_use_struct_convention): Match current gcc implementation
2494 as close as possible.
2495 (v850_push_arguments): Fix stack_offset handling. Don't write
2496 struct_addr into register. This is done by v850_store_struct_return.
2497 (v850_extract_return_value): Care for structs.
2498 (v850_store_return_value): Ditto.
2499 (v850_store_struct_return): Actually write address.
2501 2002-06-11 Michal Ludvig <mludvig@suse.cz>
2503 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
2504 without debug information too.
2506 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2508 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
2509 Make multi-arch pure.
2510 * gdbarch.h, gdbarch.c: Re-generate.
2511 * arm-tdep.c (arm_print_float_info): Update.
2512 * arch-utils.h (default_print_float_info): Update.
2513 * arch-utils.c (default_print_float_info): Update.
2514 * infcmd.c (float_info): Update call.
2516 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2518 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
2519 the front of the initialize list.
2521 2002-06-10 Andrew Cagney <ac131313@redhat.com>
2523 * infrun.c (struct inferior_status): Replace fields
2524 selected_frame_address and selected_level with field
2526 (save_inferior_status): Update. Use get_frame_id.
2527 (struct restore_selected_frame_args): Delete.
2528 (restore_selected_frame): Update. Use frame_find_by_id.
2529 (restore_inferior_status): Update.
2531 * breakpoint.h (struct breakpoint): Change type of
2532 watchpoint_frame to frame_id.
2533 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
2534 call to get_current_frame.
2535 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
2537 (watchpoint_check): Use frame_find_by_id.
2539 * frame.h (record_selected_frame): Delete declaration.
2540 * stack.c (record_selected_frame): Delete function.
2542 * frame.h (struct frame_id): Define.
2543 (get_frame_id): Declare.
2544 (frame_find_by_id): Declare.
2545 * frame.c (frame_find_by_id): New function.
2546 (get_frame_id): New function.
2548 2002-06-10 Andrey Volkov <avolkov@transas.com>
2550 * ser-e7kpc.c: Fix duplicated define and call of
2551 _initialize_ser_e7000pc
2553 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2555 * signals/signals.c (target_signal_from_host): Fix #ifdef
2557 (do_target_signal_to_host): Likewise.
2559 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
2561 * mips-tdep.c (mips_find_abi_section): New function.
2562 (mips_gdbarch_init): Call it.
2564 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2566 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
2567 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
2568 after Andrew's 2002-06-08 gdbarch change.
2570 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2572 * i386-linux-nat.c (suppy_gregset): Don't supply
2573 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
2575 (fill_gregset): Don't fetch it under the same circumstances.
2577 2002-06-09 Andrew Cagney <cagney@redhat.com>
2579 * Makefile.in (callback_h): Define.
2580 (remote_sim_h): Update path to remote-sim.h.
2581 (remote-rdp.o): Add $(callback_h).
2582 (remote-sim.o): Use $(callback_h).
2583 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
2584 * remote-rdp.c: Include "gdb/callback.h".
2586 2002-06-09 Mark Kettenis <kettenis@gnu.org>
2588 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
2589 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
2591 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2593 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
2594 * rdi-share/serpardr.c: Ditto.
2595 * rdi-share/unixcomm.c: Ditto.
2596 * rdi-share/serdrv.c: Ditto.
2597 * rdi-share/hostchan.h: Ditto.
2598 * rdi-share/hostchan.c: Ditto.
2599 * rdi-share/host.h: Ditto.
2600 * rdi-share/devsw.c: Ditto.
2602 * objfiles.h: Change type of obj_private to void pointer.
2603 * pa64solib.c: Update copyright. Don't include "assert.h", use
2604 strcmp instead of STREQ, use LONGEST, do not use PTR
2605 * somsolib.c: Ditto.
2607 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
2608 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
2609 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
2611 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2613 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
2614 (default_get_saved_register): Delete function.
2615 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
2616 generic_unwind_get_saved_register.
2617 * gdbarch.h, gdbarch.c: Re-generate.
2619 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2621 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
2622 generic_func_frame_chain_valid.
2623 * gdbarch.h, gdbarch.c: Re-generate.
2624 * blockframe.c (generic_func_frame_chain_valid): Only check
2625 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
2626 passing FP to PC_IN_CALL_DUMMY.
2629 2002-06-08 Andrew Cagney <ac131313@redhat.com>
2631 * gdbarch.sh (struct gdbarch_data): Add field init_p.
2632 (register_gdbarch_data): Initialize init_p.
2633 (gdbarch_data): Initialize data pointer using the init function.
2634 (init_gdbarch_data): Delete function.
2635 (gdbarch_update_p): Update.
2636 (initialize_non_multiarch): Update.
2637 (struct gdbarch): Add field initialized_p.
2638 * gdbarch.h, gdbarch.c: Re-generate.
2640 2002-06-07 Michal Ludvig <mludvig@suse.cz>
2642 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
2643 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
2644 better do the things actually here.
2645 * x86-64-tdep.c (x86_64_register_name2nr): New.
2646 (x86_64_register_name): Renamed to x86_64_register_nr2name.
2647 (x86_64_gdbarch_init): Respect the above change.
2648 * x86-64-tdep.h (x86_64_register_name2nr)
2649 (x86_64_register_nr2name): Add prototypes.
2650 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
2652 2002-06-06 Michael Snyder <msnyder@redhat.com>
2654 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
2655 Delete extra braces and re-indent.
2656 (d10v_store_return_value): Char return values
2657 must be shifted over by one byte in R0.
2658 (d10v_extract_return_value): Delete extra braces, re-indent.
2660 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2662 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
2663 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
2664 (d10v_integer_to_address): Rewrite.
2665 (d10v_frame_init_saved_regs): When reading fp and sp registers use
2666 the d10v specific functions which take care of converting to the
2669 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
2671 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
2672 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
2674 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2676 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
2678 * config/tm-linux.h: Ditto.
2679 * config/alpha/tm-alphalinux.h: Ditto.
2680 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
2681 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
2682 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
2683 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
2684 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
2685 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
2686 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
2687 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
2688 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
2689 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
2690 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
2691 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2692 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
2693 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
2694 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
2695 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
2696 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
2697 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
2698 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
2699 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
2700 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
2701 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
2702 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
2703 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
2704 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
2705 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
2706 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
2707 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
2708 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
2709 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
2710 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
2711 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
2712 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
2713 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
2714 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
2715 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
2716 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
2718 2002-05-04 Aidan Skinner <aidan@velvet.net>
2720 * ada-exp.tab.c: New file
2721 * ada-exp.y: New file
2722 * ada-lang.c: New file
2723 * ada-lang.h: New file
2724 * ada-lex.c: New file
2725 * ada-lex.l: New file
2726 * ada-tasks.c: New file
2727 * ada-typeprint.c: New file
2728 * ada-valprint.c: New file
2730 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2732 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
2733 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
2735 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
2737 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
2738 insetead of ppc-linux-tdep.o.
2739 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
2740 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
2742 2002-06-02 Andrew Cagney <ac131313@redhat.com>
2744 2002-05-07 Christian Groessler <chris@groessler.org>
2745 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
2746 bit register contents for little endian hosts.
2748 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2750 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
2753 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2755 * gdbarch.h: Regenerate.
2757 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2759 * MAINTAINERS: Add everyone to write-after-approval list.
2761 2002-06-01 Andrew Cagney <ac131313@redhat.com>
2763 * stack.c (frame_info): Use frame_register_unwind instead of
2764 saved_regs. Mention when the SP is on the stack or in a register.
2766 * frame.h (frame_register_unwind_ftype): Define. Document.
2767 (struct frame_info): Add field register_unwind and
2768 register_unwind_cache.
2769 (frame_register_unwind): Declare.
2770 (generic_unwind_get_saved_register): Declare.
2772 * frame.c (frame_register_unwind): New function.
2773 (generic_unwind_get_saved_register): New function.
2775 * blockframe.c (generic_call_dummy_register_unwind): New function.
2776 (frame_saved_regs_register_unwind): New function.
2777 (set_unwind_by_pc): New function.
2778 (create_new_frame): New function.
2779 (get_prev_frame): New function.
2781 2002-05-30 Andrew Cagney <ac131313@redhat.com>
2783 * a29k-share/: Delete directory.
2784 * remote-vx29k.c: Delete file.
2786 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2788 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
2789 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2791 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2793 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
2794 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
2797 (sparcnbsd-tdep.o): New dependency lists.
2798 * NEWS: Note new UltraSPARC NetBSD native configuration.
2799 * configure.host (sparc64-*-netbsd*): New host.
2800 * configure.tgt (sparc-*-netbsdelf*)
2801 (sparc-*-netbsd*): Set gdb_target to nbsd.
2802 (sparc64-*-netbsd*): New target.
2803 * sparc64nbsd-nat.c: New file.
2804 * sparcnbsd-nat.c: New file.
2805 * sparcnbsd-tdep.c: New file.
2806 * sparcnbsd-tdep.h: New file.
2807 * config/sparc/nbsd.mt: New file.
2808 * config/sparc/nbsd64.mh: New file.
2809 * config/sparc/nbsd64.mt: New file.
2810 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
2811 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2813 * config/sparc/nbsdaout.mt: Remove.
2814 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
2815 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
2817 * config/sparc/nbsdelf.mt: Remove.
2818 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
2819 sparc-nat.c compatiblity defines.
2820 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
2821 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
2822 * config/sparc/tm-nbsd64.h: New file.
2823 * config/sparc/tm-nbsdaout.h: Remove.
2824 * config/sparc/xm-nbsd.h: Remove.
2826 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2828 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
2829 * sparc-tdep.c: Include osabi.h.
2830 (gdbarch_tdep): Add osabi member.
2831 (_initialize_sparc_tdep): Use gdbarch_register.
2832 (sparc_gdbarch_init): Use generic OS ABI framework.
2833 (sparc_dump_tdep): New function.
2835 2002-05-30 Kevin Buettner <kevinb@redhat.com>
2837 * corefile.c (do_captured_read_memory_integer): Return non-zero
2839 (safe_read_memory_integer): Copy result of memory read when
2840 status is non-zero. Also, add comments.
2842 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
2844 * Makefile.in (ppc_tdep_h): Define.
2847 (rs6000-tdep.o): Use $(ppc_tdep_h).
2850 (ppcnbsd-tdep.o): New dependency lists.
2851 * ppc-tdep.h: Use generic OS ABI framework.
2852 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
2853 (ppc_linux_init_abi): New functions.
2854 (ppc_sysv_abi_broken_use_struct_convention)
2855 (ppc_sysv_abi_use_struct_convention)
2856 (ppc_sysv_abi_push_arguments): Move to...
2857 * ppc-sysv-tdep.c: ...here.
2858 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
2859 * rs6000-tdep.c (process_note_abi_tag_sections)
2860 (get_elfosabi): Remove.
2861 (rs6000_gdbarch_init): Use generic OS ABI framework.
2862 (rs6000_dump_tdep): New function.
2863 (_initialize_rs6000_tdep): Use gdbarch_register.
2864 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
2865 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2866 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
2867 of ppc-linux-tdep.o.
2868 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
2869 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
2870 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
2871 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
2872 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
2873 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2875 2002-05-29 Jim Blandy <jimb@redhat.com>
2877 * macroscope.c (default_macro_scope): Put `void' in empty argument
2880 2002-05-29 Andrew Cagney <ac131313@redhat.com>
2882 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
2883 * arch-utils.c: Include "sim-regno.h".
2884 * gdbarch.sh: Don't include "sim-regno.h".
2885 * gdbarch.h, gdbarch.c: Regenerate.
2886 * sim-regno.h (legacy_register_sim_regno): Move declaration from
2888 * arch-utils.h (legacy_register_sim_regno): To here.
2889 * remote-sim.c (legacy_register_sim_regno): Move function from
2891 * arch-utils.c (legacy_register_sim_regno): To here.
2893 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2895 * sim-regno.h: New file.
2896 * Makefile.in (sim_regno_h): Define.
2897 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
2898 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
2899 (legacy_register_sim_regno): New function.
2900 (one2one_register_sim_regno): New function.
2901 (gdbsim_fetch_register): Rewrite.
2902 (gdbsim_store_register): Only store a register when
2903 REGISTER_SIM_REGNO is valid.
2904 * d10v-tdep.c: Include "sim-regno.h".
2905 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
2906 (d10v_ts3_register_sim_regno): Ditto.
2907 * gdbarch.sh: Include "sim-regno.h".
2908 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
2909 * gdbarch.h, gdbarch.c: Regenerate.
2910 * arch-utils.h (default_register_sim_regno): Delete declaration.
2911 * arch-utils.c (default_register_sim_regno): Delete function.
2913 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2915 * ppcnbsd-nat.c: Rewrite.
2916 * ppcnbsd-tdep.c: New file.
2917 * ppcnbsd-tdep.h: New file.
2918 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
2919 solib.o, and solib-svr4.o.
2920 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
2921 nbsd-tdep.o, and corelow.o.
2923 2002-05-28 Andrew Cagney <ac131313@redhat.com>
2925 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
2926 `tr' and `sed'. Mention that `broken' targets are not expected to
2929 2002-05-27 Michal Ludvig <mludvig@suse.cz>
2931 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
2932 Let PC point right after the prologue before looking up symbols.
2934 2002-05-27 Martin M. Hunt <hunt@redhat.com>
2936 * i386-tdep.c (i386_register_virtual_type): Return
2937 builtin_type_vec128i for SSE registers.
2939 * gdbtypes.h (builtin_type_vec128i): Declare.
2941 * gdbtypes.c (build_builtin_type_vec128i): New function.
2942 (builtin_type_v2_double, builtin_type_v4_int64): New types.
2943 (builtin_type_vec128i): New type for SSE2 128-bit registers.
2944 (build_gdbtypes): Initialize new builtin vector types.
2945 (_initialize_gdbtypes): Register new vector types with gdbarch.
2947 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2949 * MAINTAINERS: ns32k is not longer an obsolete candidate,
2950 since it has been multi-arch'd.
2951 * NEWS: Note that ns32k-*-* is now partial multi-arch.
2952 Move Alpha and VAX multi-arch news entries to same section
2953 as other multi-arch news.
2955 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2957 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
2958 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
2959 static. Rename some register numbers to put them in ns32k-tdep
2961 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
2962 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
2964 (_initialize_ns32k_tdep): Use gdbarch_register.
2965 * ns32k-tdep.h: New file.
2966 * ns32knbsd-tdep.c: New file.
2967 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
2968 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
2969 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
2970 REGISTER_BYTES, REGISTER_BYTE): Remove.
2971 * config/ns32k/tm-ns32k.h: New file.
2972 * config/ns32k/tm-umax.h: Remove.
2974 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2976 * ns32k-tdep.c (ns32k_saved_pc_after_call,
2977 ns32k_store_struct_return, ns32k_extract_return_value,
2978 ns32k_store_return_value, ns32k_extract_struct_value_address): New
2980 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
2981 ns32k_saved_pc_after_call.
2982 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
2983 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
2984 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
2985 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2986 ns32k_extract_struct_value_address.
2988 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2990 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2991 ns32k_fix_call_dummy): New.
2992 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2993 ns32k_call_dummy_words.
2994 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2995 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2996 CALL_DUMMY_NARGS): Remove.
2997 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2999 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3001 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3002 ns32k_frame_saved_pc, ns32k_frame_args_address,
3003 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3004 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3005 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3006 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3007 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3008 (BREAKPOINT): Remove..
3009 (FRAME_CHAIN): Define as ns32k_frame_chain.
3010 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3011 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3012 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3013 (FRAME_FIND_SAVED_REGS): Remove.
3014 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3015 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3016 (POP_FRAME): Define as ns32k_pop_frame.
3018 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3020 * ns32k-tdep.c (ns32k_register_byte_32082,
3021 ns32k_register_byte_32382, ns32k_register_raw_size,
3022 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3024 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3025 ns32k_register_byte_32382.
3026 * config/ns32k/tm-umax.h: Update copyright years.
3027 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3028 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3029 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3030 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3031 (ns32k_get_enter_addr): Fix prototype.
3033 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3035 * ns32k-tdep.c: Update copyright years.
3036 (ns32k_register_name_32082): New function.
3037 (ns32k_register_name_32382): Ditto.
3038 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3039 (REGISTER_NAME): Define as ns32k_register_name_32382.
3040 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3041 (REGISTER_NAME): Define as ns32k_register_name_32082.
3043 2002-05-24 Jim Blandy <jimb@redhat.com>
3045 * dwarf2read.c (free_line_header): Use xfree, not free.
3047 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3049 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3050 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3052 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3054 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3056 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3058 From Ross Alexander at NEC Europe:
3059 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3061 2002-05-23 Michael Snyder <msnyder@redhat.com>
3063 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3064 for input, rather than parse_and_eval_address.
3066 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3068 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3069 * Makefile.in (sim_d10v_h): Update definition.
3071 2002-05-24 Andrew Cagney <cagney@redhat.com>
3073 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3074 change `2002-05-22 Michael Snyder' below.
3075 (d10v_push_arguments): Ditto.
3076 (d10v_extract_return_value): Ditto.
3078 2002-05-23 Jim Blandy <jimb@redhat.com>
3080 * macrotab.c (check_for_redefinition): Don't complain if the new
3081 definition is the same as the previous one. Take more arguments
3082 to allow the comparison.
3083 (macro_define_object, macro_define_function): Pass more arguments
3084 to check_for_redefinition.
3086 2002-05-22 Michael Snyder <msnyder@redhat.com>
3088 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3089 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3090 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3091 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3092 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3093 Add a temp variable to save a call (and a memory read).
3094 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3095 if possible (so that PC_IN_CALL_DUMMY will work).
3097 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
3099 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3101 2002-05-22 Michal Ludvig <mludvig@suse.cz>
3103 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3105 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3106 (dwarf2_build_frame_info): Add offset to fde->initial_location
3107 so that frames of shared libraries are mapped correctly.
3108 (execute_stack_op): Change type of 'result' from ULONGEST to
3111 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3113 * config/alpha/tm-nbsd.h: Include solib.h.
3115 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3117 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3118 assumptions about the host's byte order.
3120 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3122 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3124 * alphanbsd-tdep.c: Include solib-svr4.h.
3125 * shnbsd-tdep.c: Ditto.
3127 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3129 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3130 nbsd-tdep.h to dependency list.
3131 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3132 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3133 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3134 nbsdaout.mh and nbsdelf.mh consistently.
3135 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3136 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3137 nbsdaout.mt and nbsdelf.mh consistently.
3138 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3139 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3140 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3141 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3142 a.out shared library stuff from here...
3143 * config/nm-nbsdaout.h: ...to here.
3144 * config/tm-nbsd.h: Remove.
3145 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3146 * config/arm/nbsd.mh: Remove.
3147 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3149 * config/arm/nbsdaout.mh: New file.
3150 * config/arm/nbsdelf.mh: New file.
3151 * config/arm/nm-nbsdaout.h: New file.
3152 * config/i386/nbsd.mh: Remove.
3153 * config/i386/nbsd.mt: Remove.
3154 * config/i386/nbsdaout.mh: New file.
3155 * config/i386/nbsdaout.mt: New file.
3156 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3157 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3158 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3159 i386_register_u_addr): Remove.
3160 * config/i386/nm-nbsdaout.h: New file.
3161 * config/i386/nm-nbsdelf.h: Remove.
3162 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3163 (USE_STRUCT_CONVENTION): Remove.
3164 * config/i386/tm-nbsdaout.h: New file.
3165 * config/i386/tm-nbsdelf.h: Remove.
3166 * config/m68k/nbsd.mh: Remove.
3167 * config/m68k/nbsd.mt: Remove.
3168 * config/m68k/nbsdaout.mh: New file.
3169 * config/m68k/nbsdaout.mt: New file.
3170 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3171 * config/m68k/nm-nbsdaout.h: New file.
3172 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3173 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3174 * config/ns32k/nbsd.mh: Remove.
3175 * config/ns32k/nbsd.mt: Remove.
3176 * config/ns32k/nbsdaout.mh: New file.
3177 * config/ns32k/nbsdaout.mt: New file.
3178 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3179 * config/ns32k/nm-nbsdaout.h: New file.
3180 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3181 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3182 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3183 (SVR4_SHARED_LIBS): Remove.
3184 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3185 * config/sparc/nbsd.mh: Remove.
3186 * config/sparc/nbsd.mt: Remove.
3187 * config/sparc/nbsdaout.mh: New file.
3188 * config/sparc/nbsdaout.mt: New file.
3189 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3190 * config/sparc/nbsdelf.mt: New file.
3191 * config/sparc/nm-nbsdaout.h: New file.
3192 * config/sparc/nm-nbsdelf.h: Remove.
3193 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3194 * config/sparc/tm-nbsdaout.h: New file.
3196 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3198 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3200 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3202 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3204 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3206 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3208 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3210 * NEWS: Note new MIPS NetBSD native configuration.
3211 * configure.host (mips*-*-netbsd*): New host.
3212 * configure.tgt (mips*-*-netbsd*): New target.
3213 * mipsnbsd-nat.c: New file.
3214 * mipsnbsd-tdep.c: New file.
3215 * mipsnbsd-tdep.h: New file.
3216 * config/mips/nbsd.mh: New file.
3217 * config/mips/nbsd.mt: New file.
3218 * config/mips/nm-nbsd.h: New file.
3219 * config/mips/tm-nbsd.h: New file.
3221 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3223 * Makefile.in (SFILES): Add osabi.c.
3224 (COMMON_OBS): Add osabi.o.
3225 (osabi.o): New dependency list.
3226 * osabi.c: New file.
3227 * osabi.h: New file.
3228 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3230 * Makefile.in (alpha_tdep_h): Define and use instead of
3232 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3233 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3235 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3236 * alpha-tdep.h: Include osabi.h.
3237 (alpha_abi): Remove.
3238 (gdbarch_tdep): Use generic OS ABI framework.
3239 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3240 gdbarch_register_osabi.
3241 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3242 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3243 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3245 * Makefile.in (sh_tdep_h): Add osabi.h.
3246 * sh-tdep.h (sh_osabi): Remove.
3247 (gdbarch_tdep): Use generic OS ABI framework.
3248 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3249 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3250 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3251 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3253 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3254 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3255 gdbarch_register_osabi.
3256 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3257 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3258 (get_elfosabi): Rename to...
3259 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3260 ABI framework support routines.
3261 (arm_gdbarch_init): Use generic OS ABI framework.
3262 (arm_dump_tdep): Likewise.
3263 (_initialize_arm_tdep): Likewise.
3264 * arm-tdep.h: Include osabi.h.
3266 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3268 (arm_gdbarch_register_os_abi): Remove prototype.
3269 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3270 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3272 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3273 * mips-tdep.c: Include osabi.h.
3274 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3277 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3279 * h8300-tdep.c: Fix formatting.
3281 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3283 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3284 printing vector registers.
3286 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3288 From Fernando Nasser:
3289 * remote.c (remote_async_open_1): Re-throw the exception when the
3291 (remote_cisco_open): Ditto.
3292 (remote_open_1): Ditto.
3294 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3296 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3297 (remote_start_remote): Add uiout parameter. Pass through to
3298 remote_start_remote_dummy.
3299 (remote_open_1): Use catch_exception instead of catch_errors.
3300 (remote_async_open_1): Ditto.
3301 (remote_cisco_open): Ditto.
3303 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3305 * remote.c (remote_start_remote): Replace PTR with void pointer.
3306 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3309 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3311 * gdb_indent.sh: Allow the script to be run in the sim directory.
3313 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3315 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3316 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3318 * corelow.c (core_open): Only call set_gdbarch_from_file if
3321 2002-05-17 Andrey Volkov <avolkov@transas.com>
3323 * h8300-tdep.c: Add support of EXR register
3324 * config/h8300/tm-h8300.h: Ditto.
3326 2002-05-17 Andrey Volkov <avolkov@transas.com>
3328 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3330 2002-05-17 Andrey Volkov <avolkov@transas.com>
3332 * h8300-tdep.c: Change literal regnums to REGNO.
3334 2002-05-17 Jim Blandy <jimb@redhat.com>
3336 * NEWS: Note addition of macro support.
3338 Expand preprocessor macros in C expressions.
3339 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
3340 (scan_macro_expansion, scanning_macro_expansion,
3341 finished_macro_expansion): New function declarations.
3342 (expression_macro_lookup_func, expression_macro_lookup_baton): New
3343 variable declarations.
3344 * parser-defs.h (expression_context_pc): New declaration.
3345 * parse.c (expression_context_pc): New variable.
3346 (parse_exp_1): Set expression_context_pc, as well as
3347 expression_context_block.
3348 * c-exp.y (yylex): If we're not already reading the result of a
3349 macro expansion, try to macro-expand the next token. When we're
3350 done scanning a macro expansion, switch back to the mainline text.
3351 Commas and `if's in a macro's expansion don't terminate the input.
3352 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
3353 (macro_original_text, macro_expanded_text,
3354 expression_macro_lookup_func, expression_macro_lookup_baton): New
3356 (scan_macro_expansion, scanning_macro_expansion,
3357 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
3358 c_preprocess_and_parse): New functions.
3359 (c_language_defn, cplus_language_defn, asm_language_defn): Call
3360 c_preprocess_and_parse, instead of c_parse.
3361 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
3362 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
3364 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
3366 * sh-tdep.c (gdb_print_insn_sh64): Delete.
3367 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
3368 (sh_gdbarch_init): Always use gdb_print_insn_sh.
3370 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
3372 * NEWS: Add section for multi-arched targets. Add v850 to that section.
3374 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
3376 * Makefile.in (sh_tdep_h): Define and use.
3377 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
3378 register enum): Move to...
3379 * * sh-tdep.h: ...here.
3380 * sh-tdep.c: Include sh-tdep.h.
3381 * sh3-rom.c: Likewise.
3382 * shnbsd-tdep.c: Likewise.
3384 2002-05-16 Michael Snyder <msnyder@redhat.com>
3386 * arm-tdep.c: Spelling fix in comment.
3388 2002-05-16 Jim Blandy <jimb@redhat.com>
3390 Add commands for manually expanding macros and showing their
3392 * macrocmd.c, macroscope.c, macroscope.h: New files.
3393 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
3394 (macroscope_h): New variable.
3395 (HFILES_NO_SRCDIR): Add macroscope.h.
3396 (COMMON_OBS): Add macrocmd.o, macroscope.o.
3397 (macroscope.o, macrocmd.o): New rules.
3399 Teach the Dwarf 2 reader to read macro information.
3400 * dwarf2read.c: #include "macrotab.h".
3401 (dwarf_macinfo_buffer): New variable.
3402 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
3404 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
3405 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
3406 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
3407 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
3408 dwarf2_macro_spaces_in_definition): New complaints.
3409 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
3410 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
3411 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
3412 the partial symbol table.
3413 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
3414 from what's recorded in the partial symbol table.
3415 (read_file_scope): If the compilation unit has a
3416 `DW_AT_macro_info' attribute, read its macro information.
3417 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
3419 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3422 * ser-tcp.c: Don't include <netinet/udp.h>.
3424 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
3426 * MAINTAINERS: Update my email address.
3428 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
3430 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
3431 include file of the same name.
3433 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3435 * configure.tgt: Mark v850 as multi-arched.
3436 * config/v850/tm-v850.h: Remove file.
3437 * config/v850/v850.mt: Eliminate TM_FILE.
3439 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3441 * v850-tdep.c: Full multi-arch.
3442 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
3443 Define GDB_MULTI_ARCH to 2.
3445 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
3447 * p-exp.y (current_type): New static variable.
3448 Carries the type of the expression at the position that is parsed.
3449 (push_current_type, pop_current_type): Two new functions. Used
3450 to store/restore current_type in expression on specific tokens.
3451 (search_field): New static variable. Set to one after parsing a point
3452 as at that point only a FIELDNAME token should be searched.
3453 (FIELDNAME): New token. After a point only a token belonging to
3454 current_type type definition is allowed.
3455 (all over token rules): reset and change current_type according
3457 (exp '[' rule): insert implicit array index field if
3458 exp is a pascal string type.
3460 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3462 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
3463 frame info. Use frame_info's saved_regs instead of matching member
3464 in extra_frame_info throughout.
3465 (v850_frame_init_saved_regs): New function.
3466 (v850_init_extra_frame_info): Move most functionality into
3467 v850_frame_init_saved_regs().
3468 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
3469 (v850_frame_find_saved_regs): Remove declaration.
3470 (FRAME_FIND_SAVED_REGS): Remove definition.
3471 (v850_frame_init_saved_regs): Add declaration.
3472 (FRAME_INIT_SAVED_REGS): Add definition.
3474 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
3476 * v850-tdep.c: Begin multi-arch'ing v850.
3477 (v850_target_architecture_hook): Remove function.
3478 (v850_gdbarch_init): New function. Add code previously in
3479 v850_target_architecture_hook().
3480 (_initialize_v850_tdep): Don't set target_architecture_hook.
3481 Call register_gdbarch_init() instead.
3483 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
3485 * gdbtypes.h (struct cplus_struct_type): Remove args field.
3486 * hpread.c (hpread_read_struct_type): Remove assignments to args.
3487 (fixup_class_method_type): Likewise.
3489 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
3491 From Martin Pool <mbp@samba.org>:
3492 * gdbserver/server.c (gdbserver_usage): New function.
3495 2002-05-15 Jim Blandy <jimb@redhat.com>
3497 Add macro structures to GDB's symbol tables. Nobody puts anything
3499 * symtab.h (struct symtab): New member: `macro_table'.
3500 * buildsym.h (pending_macros): New global variable.
3501 * buildsym.c: #include "macrotab.h".
3502 (buildsym_init): Initialize `pending_macros'.
3503 (end_symtab): If we found macro information while reading a CU's
3504 debugging info, do build a symtab structure for it. Make the
3505 symtab point to the macro information, and clear the
3506 `pending_macros' pointer which held it while we were reading the
3508 (really_free_pendings): Free any pending macro table.
3509 * objfiles.h (struct objfile): New member: `macro_cache'.
3510 * objfiles.c (allocate_objfile): Set allocate and free functions
3511 for the macro cache's objstack.
3512 (free_objfile): Empty the macro cache's obstack.
3513 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
3514 set new allocate and free functions for it.
3515 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
3516 free functions for the macro cache's objstack. (Why is this
3517 function building its own objfile?)
3518 * symmisc.c (print_objfile_statistics): Print statistics on the
3520 * Makefile.in: Note that buildsym.o depends on macrotab.h.
3522 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3524 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
3525 (REGISTER_U_ADDR): Delete definition.
3526 (arm_register_u_addr): Delete declaration.
3528 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
3530 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
3531 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
3533 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3535 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
3538 2002-05-14 Andrew Cagney <ac131313@redhat.com>
3540 * regcache.c (register_valid): Revise comments refering to "Not
3541 available" and "unavailable".
3542 * frame.c (frame_register_read): Ditto.
3543 * findvar.c (value_of_register): Ditto.
3545 2002-05-15 Andrew Cagney <cagney@redhat.com>
3547 * Makefile.in (remote_sim_h): Replace remote-sim_h.
3548 (remote-sim.o): Update dependencies.
3549 (d10v-tdep.o): Specify dependencies.
3550 (sim_d10v_h): Define.
3552 2002-05-14 Jim Blandy <jimb@redhat.com>
3554 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
3555 * macrotab.c (macro_lookup_inclusion, find_definition,
3556 new_macro_table): Same.
3558 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
3559 not `! strcmp ()'. This is a dubious improvement.
3560 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
3562 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
3563 although it's not necessary, to avoid a warning.
3565 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3567 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
3568 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
3569 TYPE_INSTANCE_FLAGS.
3570 (struct main_type): New.
3571 (struct type): Move most members to struct main_type. Change
3572 cv_type and as_type to new type_chain member. Add instance_flags.
3573 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
3574 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
3575 (finish_cv_type): Remove prototype.
3576 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
3578 (alloc_type_instance): New function.
3579 (smash_type): New function.
3580 (make_pointer_type, make_reference_type, make_function_type)
3581 (smash_to_member_type, smash_to_method_type): Call smash_type.
3582 (make_qualified_type): New function.
3583 (make_type_with_address_space): Call make_qualified_type.
3584 (make_cv_type): Likewise.
3585 (finish_cv_type): Remove unnecessary function.
3586 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
3587 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
3588 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
3589 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
3590 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
3591 * hpread.c (hpread_read_struct_type): Likewise.
3592 * stabsread.c (read_struct_type): Likewise.
3594 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
3596 * configure.tgt: Add a catch all sh* target, for cases like
3597 sh[2,3,4]-elf and sh-hms.
3599 2002-05-14 Keith Seitz <keiths@redhat.com>
3601 * event-loop.c (create_file_handler): Don't do anything but
3602 update data when we are given a fd which we are already
3605 2002-05-14 Michal Ludvig <mludvig@suse.cz>
3607 * dwarf2cfi.c (context_cpy): Copy registers correctly.
3608 (update_context): Use __func__ in warnings.
3610 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
3612 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
3613 and tcp_close to net_open and net_close.
3614 (net_open): Accept "udp:" and "tcp:" specifications. Connect
3615 using UDP if requested. Don't try to disable Nagle on UDP
3617 * remote.c (remote_serial_open): New function. Warn about UDP.
3618 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
3620 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3622 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
3624 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
3626 * configure.tgt: Remove sh-hms target.
3627 * MAINTAINERS: Don't list sh-hms as a separate target.
3629 2002-05-13 Jim Blandy <jimb@redhat.com>
3631 Add first preprocessor macro-expansion files.
3632 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3633 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3634 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3635 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3636 (COMMON_OBS): Add macrotab.o, macroexp.o.
3637 (macroexp.o, macrotab.o): New rules.
3639 2002-05-13 Andrew Cagney <ac131313@redhat.com>
3641 * config/m88k/tm-m88k.h: Update copyright.
3642 (m88k_target_write_pc): Declare
3643 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
3644 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
3645 (SHIFT_INST_REGS): Update definition.
3646 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
3647 using old definition of TARGET_WRITE_PC.
3648 * regcache.c (generic_target_write_pc): Delete code handling
3650 * gdbarch.sh (NNPC_REGNUM): Delete.
3651 * gdbarch.h, gdbarch.c: Regenerate.
3653 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
3655 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
3658 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
3660 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
3661 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
3662 (gen_address_of, gen_struct_ref, gen_repeat): Use type
3664 * c-typeprint.c (cp_type_print_method_args): Likewise.
3665 (c_type_print_args): Likewise.
3666 * d10v-tdep.c (d10v_push_arguments): Likewise.
3667 (d10v_extract_return_value): Likewise.
3668 * expprint.c (print_subexp): Likewise.
3669 * gdbtypes.c (lookup_primitive_typename): Likewise.
3670 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
3671 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
3672 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
3673 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
3674 (TYPE_VECTOR): Likewise.
3675 * hpread.c (hpread_read_struct_type)
3676 (fix_static_member_physnames, fixup_class_method_type)
3677 (hpread_type_lookup): Likewise.
3678 * mdebugread.c (parse_symbol, parse_type): Likewise.
3679 * p-lang.c (is_pascal_string_type): Likewise.
3680 * valops.c (hand_function_call): Likewise.
3681 * x86-64-tdep.c (classify_argument): Likewise.
3683 * hpread.c (hpread_read_function_type)
3684 (hpread_read_doc_function_type): Call replace_type.
3685 * dstread.c (create_new_type): Delete.
3686 (decode_dst_structure, process_dst_function): Call alloc_type.
3687 Use type access macros.
3689 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3691 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
3692 the're not supported by the current architecture.
3693 (i387_fill_fxsave): Likewise.
3695 2002-05-12 Fred Fish <fnf@redhat.com>
3697 * symfile.c (default_symfile_offsets): Arrange for uninitialized
3698 sect_index_xxx members to index the first slot in section_offsets
3699 if all of the section_offsets are zero.
3701 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3703 * configure.tgt (sparc-*openbsd): Remove entry accidentially
3704 checked in with last change.
3706 2002-05-12 Mark Kettenis <kettenis@gnu.org>
3708 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
3709 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
3712 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
3714 * Makefile.in: Update dependencies.
3716 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3718 * language.c (local_hex_string_custom): Simplify. Do not depend
3719 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
3721 * memattr.c (mem_info_command): Replace calls to
3722 longest_local_hex_string and longest_local_hex_string_custom.
3723 * buildsym.c (make_blockvector): Ditto.
3724 * solib.c (info_sharedlibrary_command): Ditto.
3725 * tracepoint.c (tracepoints_info): Ditto.
3726 * symtab.c (print_msymbol_info): Ditto.
3728 * language.c (local_hex_string): Delete.
3729 (local_hex_string_custom): Delete.
3730 (longest_local_hex_string): Rename to local_hex_string.
3731 (longest_local_hex_string_custom): Rename to
3732 local_hex_string_custom.
3733 * language.h (local_hex_string): Change parameter type to LONGEST.
3734 (local_hex_string_custom): Ditto.
3735 (longest_local_hex_string): Delete declaration.
3736 (longest_local_hex_string_custom): Ditto.
3738 * solib.c: Update copyright.
3739 * memattr.c: Update copyright.
3741 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3743 * arch-utils.h (legacy_register_to_value): Declare.
3744 (legacy_value_to_register): Declare.
3745 (legacy_convert_register_p): Declare.
3746 * arch-utils.c (legacy_register_to_value): New function.
3747 (legacy_value_to_register): New function.
3748 (legacy_convert_register_p): New function.
3750 * gdbarch.sh (REGISTER_TO_VALUE): Define.
3751 (VALUE_TO_REGISTER): Define.
3752 (CONVERT_REGISTER_P): Define.
3753 * gdbarch.h, gdbarch.c: Regenerate.
3755 * valops.c (value_assign): Use CONVERT_REGISTER_P and
3757 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
3760 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
3761 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3763 * Makefile.in: Update dependencies for valops.c.
3764 * valops.c: Include "gdb_assert.h".
3765 (typecmp): Skip THIS parameter to methods.
3766 (find_method_list): Remove static_memfuncp argument,
3767 update callers. Check for stub methods.
3768 (find_value_oload_method_list): Don't set *static_memfuncp.
3769 (find_overload_match): Don't check for stub methods. Assert
3770 that methods are not stubbed. Handle static methods.
3771 (value_find_oload_method_list): Remove static_memfuncp argument.
3772 * gdbtypes.c (check_stub_method): Do not add THIS pointer
3773 to the argument list for static stub methods.
3774 * value.h (value_find_oload_method_list): Update prototype.
3776 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3778 * arch-utils.h (generic_register_size): Declare.
3779 (generic_register_raw_size, generic_register_virtual_size): Delete
3781 * arch-utils.c (generic_register_raw_size): Delete.
3782 (generic_register_size): New function.
3783 (generic_register_virtual_size): Delete.
3785 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
3786 default generic_register_size.
3787 * gdbarch.h, gdbarch.c: Re-generate.
3789 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
3790 register_virtual_size.
3791 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
3792 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3794 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3796 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
3797 * gdbarch.h, gdbarch.c: Regenerate.
3798 * gnu-v3-abi.c: Update copyright.
3799 (vtable_address_point_offset): Update.
3800 (gnuv3_rtti_type): Update.
3801 (gnuv3_baseclass_offset): Update.
3802 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
3803 (init_fetch_link_map_offsets): Update.
3804 * remote.c (get_remote_state): Update.
3806 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3808 * TODO: Remove value_headof/value_from_vtable_info comment.
3809 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
3810 * values.c (value_headof, value_from_vtable_info): Delete.
3811 * value.h (value_from_vtable_info): Delete prototype.
3813 2002-05-11 Andrew Cagney <ac131313@redhat.com>
3815 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
3816 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
3818 (gdb_assert_h): Define.
3819 (gdb_wait_h): Define.
3820 (gdb_regex_h): Define.
3822 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
3824 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3825 * linespec.c (find_methods): Handle GCC 3.x template constructors.
3827 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3829 * nbsd-tdep.c: Fix comment.
3831 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3833 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
3834 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
3835 (nbsd-tdep.o): New dependency list.
3836 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
3838 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
3839 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
3840 * nbsd-tdep.c: New file.
3841 * nbsd-tdep.h: New file.
3842 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
3844 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
3845 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3846 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3847 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3849 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3851 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
3852 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
3853 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
3854 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
3855 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
3856 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
3858 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3860 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
3861 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3862 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3863 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3864 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3865 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3866 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3870 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
3871 fetch_elfcore_registers to...
3872 * i386nbsd-tdep.c: ...here.
3873 (i386nbsd_use_struct_convention): Rename to...
3874 (i386nbsd_aout_use_struct_convention): ...this.
3875 (i386nbsd_supply_reg): New function.
3876 (i386nbsd_fill_reg): New function.
3877 (fetch_core_registers): Use i386nbsd_supply_reg.
3878 (fetch_elfcore_registers): Likewise.
3879 (_initialize_i386nbsd_tdep): New function.
3880 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
3881 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3882 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
3883 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
3884 (i386nbsd_aout_use_struct_convention): ...this.
3886 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3888 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
3889 (store_inferior_registers): Use shnbsd_fill_reg.
3890 * shnbsd-tdep.c (sh_nbsd_supply_registers,
3891 sh_nbsd_supply_register): Collapse into...
3892 (shnbsd_supply_reg): ...this.
3893 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
3894 (shnbsd_fill_reg): ...this.
3895 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
3896 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
3897 (fetch_core_registers): Use shnbsd_supply_reg.
3898 (fetch_elfcore_registers): Use shnbsd_supply_reg.
3899 (sh_nbsd_core_fns): Rename to...
3900 (shnbsd_core_fns): ...this.
3901 (sh_nbsd_elfcore_fns): Rename to...
3902 (shnbsd_elfcore_fns): ...this.
3903 (sh_nbsd_init_abi): Rename to...
3904 (shnbsd_init_abi): ...this.
3905 (_initialize_sh_nbsd_tdep): Rename to...
3906 (_initialize_shnbsd_tdep): ...this.
3907 * shnbsd-tdep.h (sh_nbsd_supply_registers,
3908 sh_nbsd_supply_register, sh_nbsd_fill_registers,
3909 sh_nbsd_fill_register): Remove prototypes.
3910 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
3912 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3914 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
3915 (i387-nat.o): Delete dependency list.
3916 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
3917 (x86-64-linux-nat.o): Likewise.
3918 * i387-nat.c: Delete file, moving contents to...
3919 * i387-tdep.c: ...here.
3920 * i387-nat.h: Rename...
3921 * i387-tdep.h: ...to this.
3922 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
3923 * i386-linux-nat.c: Likewise.
3924 * i386bsd-nat.c: Likewise.
3925 * i386gnu-nat.c: Likewise.
3926 * i386nbsd-nat.c: Likewise.
3927 * i386v4-nat.c: Likewise.
3928 * x86-64-linux-nat.c: Likewise.
3929 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
3930 * config/i386/go32.mh (NATDEPFILES): Likewise.
3931 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3932 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
3933 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3934 * config/i386/linux.mh (NATDEPFILES): Likewise.
3935 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3936 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3937 * config/i386/obsd.mh (NATDEPFILES): Likewise.
3938 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3940 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3942 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
3943 (alphanbsd-nat.o): Remove dependency list.
3944 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
3945 * alphanbsd-nat.c: Delete. Contents moved to...
3946 * alphanbsd-tdep.c: ...here.
3947 (_initialize_alphanbsd_tdep): Register core functions.
3948 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
3950 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3952 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
3953 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
3954 (alphanbsd-nat.o): Likewise.
3955 (alphabsd-tdep.o): New dependency list.
3956 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
3957 (fill_gregset): Use alphabsd_fill_reg.
3958 (supply_fpregset): Use alphabsd_supply_fpreg.
3959 (fill_fpregset): Use alphabsd_fill_fpreg.
3960 (fetch_inferior_registers): Use struct reg and struct fpreg
3961 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
3962 and alphabsd_supply_fpreg.
3963 (store_inferior_registers): Use struct reg and struct fpreg
3964 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
3965 and alphabsd_fill_fpreg.
3966 * alphabsd-tdep.c: New file.
3967 * alphabsd-tdep.h: New file.
3968 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
3969 (fetch_elfcore_registers): Use alphabsd_supply_reg and
3970 alphabsd_supply_fpreg.
3971 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
3972 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3974 2002-05-11 Eric Christopher <echristo@redhat.com>
3976 * mips-tdep.c (mips_double_register_type): Fix thinko.
3977 (mips_single_register_type): Ditto.
3978 * MAINTAINERS: Add self.
3980 2002-05-11 Mark Kettenis <kettenis@gnu.org>
3982 * i387-nat.c (i387_supply_register, i387_fill_fsave,
3983 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
3984 right thing on architectures with different endianness and/or
3987 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3989 From Christian Limpach <chris@Pin.LU>
3990 * configure.in: Change sed expression which comments out
3991 NATDEPFILES to also comment out continuation lines.
3992 * configure: Regenerate.
3994 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3996 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3999 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4001 * sh-tdep.c: Include correct file.
4003 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4005 New support for sh64-elf (sh5) target.
4007 * configure.tgt: For sh64-elf target, default to sh-elf.
4009 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4010 (struct gdbarch_tdep): Add new fields for new registers and ABI
4013 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4014 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4015 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4016 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4017 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4018 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4019 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4020 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4021 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4022 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4023 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4024 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4025 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4026 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4027 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4028 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4029 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4030 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4031 sign_extend, sh64_nofp_frame_init_saved_regs,
4032 sh64_init_extra_frame_info, sh64_get_saved_register,
4033 sh64_extract_struct_value_address, sh64_pop_frame,
4034 sh64_push_arguments, sh64_extract_return_value,
4035 sh64_store_return_value, sh64_show_media_regs,
4036 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4037 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4038 sh_sh64_register_virtual_type,
4039 sh_sh64_register_convert_to_virtual,
4040 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4041 sh64_register_read, sh64_pseudo_register_write,
4042 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4043 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4044 sh64_do_pseudo_register, sh_compact_do_registers_info,
4045 sh64_do_registers_info, sh_gdbarch_init): New functions.
4047 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4049 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4051 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
4053 * linespec.c (decode_line_1): Check for a double quote after
4054 a filename correctly.
4056 2002-05-10 Jim Blandy <jimb@redhat.com>
4058 Properly track the size of the current objfile's .debug_line section.
4059 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4060 (DWARF_LINE_SIZE): New macro.
4061 (dwarf2_build_psymtabs_hard): Record the line section's size in
4062 the partial symbol table.
4063 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4066 2002-05-10 Petr Sorfa <petrs@caldera.com>
4068 * ia64-tdep.c: Handle breakpoints on L instruction type
4069 in MLX instruction bundle by moving the breakpoint to
4070 the third slot (X instruction type) as L holds only data.
4072 2002-05-10 Kevin Buettner <kevinb@redhat.com>
4074 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4075 (process_one_symbol): Complain about discarding local symbols
4076 due to a misplaced N_LBRAC entry.
4078 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
4080 From Daniel Berlin <dan@cgsoftware.com>
4081 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4082 decrease the depth we are at, in the case of templates.
4084 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4086 * mips-tdep.c (mips_float_register_type): New function.
4087 (mips_double_register_type): New function.
4088 (mips_print_register): Use them.
4089 (do_fp_register_row): Likewise.
4091 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4093 * signals/signals.c (signals): Remove conditional compilation around
4094 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
4095 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
4097 2002-05-09 Michael Snyder <msnyder@redhat.com>
4099 * remote-rdp.c (remote_rdp_can_run): Remove.
4101 2002-05-09 Tom Tromey <tromey@redhat.com>
4103 * jv-valprint.c (java_val_print): Handle `char' as a special case
4106 2002-05-09 Michael Snyder <msnyder@redhat.com>
4108 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4109 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
4110 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
4111 str r(0123),[sp,#nn].
4112 (arm_skip_prologue): Ditto. Also make disassembly
4113 order-independent by placing it in a loop.
4115 2002-05-06 Michael Snyder <msnyder@redhat.com>
4117 * stabsread.c (read_type): Add recognition for new attribute:
4118 "@V;" means that an array type is actually a vector.
4119 This is analogous to the vector flag that's been added to dwarf2.
4121 2002-05-09 Mark Kettenis <kettenis@gnu.org>
4123 * i386-tdep.h (i386_abi): New enum.
4124 (struct gdbarch_tdep): Replace os_ident member with abi.
4125 (i386_gdbarch_register_os_abi): New prototype.
4126 * i386-tdep.c (i386_abi_names): New array.
4127 (process_note_abi_tag_sections): Removed.
4128 (process_note_sections): New function.
4129 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4130 (struct i386_abi_handler): New struct.
4131 (i386_abi_handler_list): New variable.
4132 (i386_gdbarch_register_os_abi): New function.
4133 (i386_gdbarch_init): Adapt for the changes given above.
4135 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
4137 * gregset.h: Say "GNU/Linux".
4139 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
4141 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4142 (build_gdbtypes): Build builtin_type_v2_float.
4143 (_initialize_gdbtypes): Register new builtin type.
4145 2002-05-08 Andrew Cagney <ac131313@redhat.com>
4147 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4148 (clear_gdbarch_swap): New function.
4149 (initialize_non_multiarch): Call.
4150 (gdbarch_update_p): Before calling init(), swap out and clear the
4151 existing architecture.
4152 * gdbarch.c: Regenerate.
4154 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4156 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4159 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4161 * sh-nbsd-nat.c: Rename to...
4162 * shnbsd-nat.c: ...this.
4163 * sh-nbsd-tdep.c: Rename to...
4164 * shnbsd-tdep.c: ...this.
4165 * sh-nbsd-tdep.h: Rename to...
4166 * shnbsd-tdep.h: ...this.
4167 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4168 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4170 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
4172 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4173 concatenation for command help messages.
4175 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4177 * NEWS: Note new sh*-*-netbsdelf* configuration.
4178 * configure.host: Set gdb_host_cpu to sh for all sh*.
4179 (sh*-*-netbsdelf*): New host.
4180 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4181 (sh*-*-netbsdelf*): New target.
4182 * sh-nbsd-nat.c: New file.
4183 * sh-nbsd-tdep.c: New file.
4184 * sh-nbsd-tdep.h: New file.
4185 * config/sh/nbsd.mh: New file.
4186 * config/sh/nbsd.mt: New file.
4187 * config/sh/nm-nbsd.h: New file.
4188 * config/sh/tm-nbsd.h: New file.
4190 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4192 * sh-tdep.c (sh_osabi_names): Declare.
4193 (process_note_abi_tag_sections): New function.
4194 (get_elfosabi): Ditto.
4195 (sh_gdbarch_register_os_abi): Ditto.
4196 (sh_dump_tdep): Ditto.
4197 _initialize_sh_tdep): Use gdbarch_register to register
4198 sh_gdbarch_init and sh_dump_tdep.
4199 * config/sh/tm-sh.h (sh_osabi): Declare.
4200 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4202 2002-05-07 Andrew Cagney <ac131313@redhat.com>
4204 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4205 (thumb_scan_prologue): Ditto.
4206 (arm_find_callers_reg): Ditto.
4207 (arm_frame_chain): Ditto.
4208 (arm_init_extra_frame_info): Ditto.
4209 (arm_frame_saved_pc): Ditto.
4210 (arm_pop_frame): Ditto.
4211 (arm_push_return_address): New function.
4212 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4213 call_dummy_location, call_dummy_breakpoint_offset_p,
4214 call_dummy_breakpoint_offset, call_dummy_p,
4215 call_dummy_stack_adjust_p, call_dummy_words,
4216 sizeof_call_dummy_words, call_dummy_start_offset,
4217 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4218 call_dummy_address, push_return_address and push_dummy_frame for
4219 generic dummy frames.
4221 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4223 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4224 size computation for alloca.
4225 (sh_fp_frame_init_saved_regs): Likewise.
4227 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4229 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4230 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4231 * arm-tdep.c (arm_store_return_value): Use them.
4232 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4233 * remote-rdp.c (remote_rdp_fetch_register): Use
4234 ARM_MAX_REGISTER_RAW_SIZE.
4235 (remote_rdp_store_register): Likewise.
4237 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4239 * dwarf2cfi.c: Code cleanup, removed unused variables,
4240 added default labels to switch {} statements.
4241 * x86-64-tdep.c: Ditto.
4242 * x86-64-linux-nat.c: Ditto.
4244 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4246 * solib.h: Protect against multiple inclusion.
4248 2002-05-06 Jim Blandy <jimb@redhat.com>
4250 Add first preprocessor macro-expansion files.
4251 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4252 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4253 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4254 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4255 (COMMON_OBS): Add macrotab.o, macroexp.o.
4256 (macroexp.o, macrotab.o): New rules.
4258 Separate the job of reading the line number info statement program
4259 header (...expialidocious) out into its own function.
4260 * dwarf2read.c (struct line_head, struct filenames, struct
4261 directories): Replace with...
4262 (struct line_header): New structure, containing the full
4263 contents of the statement program header, including the
4264 include directory and file name tables.
4265 (read_file_scope): If we have line number info, instead of just
4266 calling dwarf_decode_lines to do all the work, call
4267 dwarf_decode_line_header first to get a `struct line_header'
4268 containing the data in the statement program header, and then
4269 pass that to dwarf_decode_lines, which will pick up where that
4270 left off. Be sure to clean up the `struct line_header' object.
4271 (dwarf_decode_line_header, free_line_header, add_include_dir,
4272 add_file_name): New functions.
4273 (dwarf_decode_lines): Move all the code to read the statement
4274 program header into dwarf_decode_line_header. Take the line
4275 header it built as the first argument, instead of the offset to
4276 the compilation unit's line number info. Use the new `struct
4277 line_header' type instead of the old structures. No need to do
4278 cleanups here now, since we don't allocate anything.
4279 (dwarf2_statement_list_fits_in_line_number_section,
4280 dwarf2_line_header_too_long): New complaints.
4282 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4284 * gdbtypes.c (init_vector_type): New function.
4285 (build_builtin_type_vec128): Simplify the representation of SIMD
4287 (build_gdbtypes): Initialize new builtin vector types.
4288 (_initialize_gdbtypes): Register new vector types with gdbarch.
4289 (builtin_type_v4_float, builtin_type_v4_int32,
4290 builtin_type_v8_int16, builtin_type_v16_int8,
4291 builtin_type_v2_int32, builtin_type_v4_int16,
4292 builtin_type_v8_int8): New (renamed) SIMD types.
4294 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4296 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4297 (i387_fill_fxsave): Likewise.
4299 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4301 * alpha-tdep.c (alpha_extract_return_value): Don't use
4302 non-constant array size in prototype.
4304 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4306 From Brian Taylor <briant at model dot com>:
4307 * ui-out.c (ui_out_field_core_addr): Use the function
4308 longest_local_hex_string_custom'to format addresses > 32 bits
4311 * ui-out.c (ui_out_field_core_addr): Update comment.
4313 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4315 * stack.c (select_and_print_frame): Make static. Delete the
4317 (func_command): Update call.
4318 (select_frame_command): Delete code computing the frame level.
4319 * frame.h (select_and_print_frame): Delete declaration.
4321 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4323 * sparc-tdep.c (sparc_get_saved_register): Comment why
4324 get_prev_frame call is safe.
4326 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4328 * frame.h (select_frame): Delete level parameter.
4329 * stack.c (select_frame): Update. Use frame_relative_level to
4330 obtain the frame's level.
4331 (select_and_print_frame): Update call.
4332 (select_frame_command): Ditto.
4333 (up_silently_base): Ditto.
4334 (down_silently_base): Ditto.
4335 * ocd.c (ocd_start_remote): Ditto.
4336 * remote-rdp.c (remote_rdp_open): Ditto.
4337 * remote-mips.c (mips_initialize): Ditto.
4338 (common_open): Ditto.
4339 * remote-e7000.c (e7000_start_remote): Ditto.
4340 * m3-nat.c (select_thread): Ditto.
4341 * hppa-tdep.c (child_get_current_exception_event): Ditto.
4342 (child_get_current_exception_event): Ditto.
4343 * varobj.c (varobj_create): Ditto.
4344 (varobj_update): Ditto.
4345 (c_value_of_root): Ditto.
4346 * tracepoint.c (finish_tfind_command): Ditto.
4347 * corelow.c (core_open): Ditto.
4348 * arch-utils.c (generic_prepare_to_proceed): Ditto.
4349 * thread.c (info_threads_command): Ditto.
4350 (switch_to_thread): Ditto.
4351 * infrun.c (normal_stop): Ditto.
4352 (restore_selected_frame): Ditto.
4353 (restore_inferior_status): Ditto.
4354 * breakpoint.c (insert_breakpoints): Ditto.
4355 (watchpoint_check): Ditto.
4356 (bpstat_stop_status): Ditto.
4357 (do_enable_breakpoint): Ditto.
4358 * blockframe.c (flush_cached_frames): Ditto.
4359 (reinit_frame_cache): Ditto.
4361 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4363 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
4366 2002-05-04 Jim Blandy <jimb@redhat.com>
4368 * gdbtypes.c (replace_type): Doc fix.
4370 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4372 * valprint.c (strcat_longest): Delete commented out function.
4375 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4377 * MAINTAINERS: Mark a29k as deleted.
4378 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
4379 Move new configurations to the top.
4380 * configure.tgt: Remove a29k.
4381 * config/a29k/tm-vx29k.h: Delete.
4382 * config/a29k/vx29k.mt: Delete.
4383 * config/a29k/tm-a29k.h: Delete.
4384 * config/a29k/a29k-udi.mt: Delete.
4385 * config/a29k/a29k.mt: Delete.
4386 * a29k-tdep.c: Delete.
4387 * remote-udi.c: Delete.
4388 * remote-mm.c: Delete.
4389 * remote-eb.c: Delete.
4390 * remote-adapt.c: Delete.
4391 * Makefile.in: Remove obsolete code.
4392 * gdbserver/Makefile.in: Ditto.
4393 * config/s390/s390x.mt: Ditto.
4394 * config/s390/s390.mt: Ditto.
4395 * config/sparc/sparclynx.mh: Ditto.
4396 * config/sparc/linux.mh: Ditto.
4397 * config/pa/hppaosf.mh: Ditto.
4398 * config/pa/hppabsd.mh: Ditto.
4399 * config/ns32k/nbsd.mt: Ditto.
4400 * config/mips/vr5000.mt: Ditto.
4401 * config/m68k/sun3os4.mh: Ditto.
4402 * config/m68k/nbsd.mt: Ditto.
4403 * config/m68k/m68klynx.mh: Ditto.
4404 * config/m32r/m32r.mt: Ditto.
4405 * config/i386/x86-64linux.mt: Ditto.
4406 * config/i386/nbsdelf.mt: Ditto.
4407 * config/i386/nbsd.mt: Ditto.
4408 * config/i386/i386lynx.mh: Ditto.
4410 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4412 * target.c (debug_print_register): New function. Handle oversize
4414 (debug_to_fetch_registers): Call.
4415 (debug_to_store_registers): Call.
4417 2002-05-03 Jim Blandy <jimb@redhat.com>
4419 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
4420 (read_type): Doc fix.
4421 * gdbtypes.c (replace_type): Doc fix.
4423 * stabsread.c (multiply_defined_struct): New complaint.
4424 (read_struct_type): If the type we were passed isn't empty, or
4425 incomplete, don't read the new struct type into it; complain,
4426 and return the original type unchanged. Take a new `type_code'
4427 argument, which is the type code for the new type.
4428 (read_type): Rather than storing the type's type code here, pass
4429 it as an argument to read_struct_type, and let that take care of
4430 storing it. That way, we don't overwrite the original type code,
4431 so read_struct_type can use it to decide whether we're overwriting
4432 something we shouldn't.
4433 (complain_about_struct_wipeout): New function.
4435 2002-05-03 Andrew Cagney <ac131313@redhat.com>
4437 * gdbarch.sh: Assert that gdbarch is non-NULL.
4438 * gdbarch.c: Regenerate.
4440 2002-05-03 Jason Merrill <jason@redhat.com>
4442 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
4445 2002-05-03 Michal Ludvig <mludvig@suse.cz>
4447 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4448 (x86_64_dwarf2gdb_regno_map_length),
4449 (x86_64_dwarf2_reg_to_regnum): Added.
4450 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
4451 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
4452 (_initialize_x86_64_tdep): Synced with the change above.
4453 (x86_64_skip_prologue): Reformulated message.
4455 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4457 * f-exp.y: Also use new prev_lexptr variable
4458 to improve error reporting. Based on Michael Snyder
4459 2002-04-24 dated patch to c-exp.y.
4460 * jv-exp.y: Likewise.
4461 * m2-exp.y: Likewise.
4463 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
4465 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
4466 we are dealing with vectors.
4468 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4470 * config/m68k/tm-nbsd.h: Obvious fix,
4471 correct machine name.
4473 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4475 * p-typeprint.c (pascal_type_print_base): Add support
4476 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
4478 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4480 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
4481 for fondamental pascal 'char' type.
4483 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
4485 * p-lang.h (is_pascal_string_type): Declaration changed,
4486 new sixth argument of type char ** added.
4487 * p-lang.c (is_pascal_string_type): Implementation
4488 changed. Args length_pos, length_size, string_pos, char_size
4489 can now be NULL. New argument arrayname set to the field
4490 name of the char array. Return value set to char array
4491 field index plus one.
4492 * p-valprint.c (pascal_val_print): Adapt to new declaration of
4493 is_pascal_string_type function.
4495 2002-05-02 Andrew Cagney <cagney@redhat.com>
4497 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
4498 <cagney@redhat.com> change.
4499 * gdbarch.c: Regenerate.
4501 2002-05-02 Andrew Cagney <cagney@redhat.com>
4503 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
4504 before probing for a new one. Detect errorenous gdbarch_init
4506 * gdbarch.c: Regenerate.
4508 2002-05-01 Andrew Cagney <cagney@redhat.com>
4510 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
4511 * config/mcore/tm-mcore.h: Ditto. Update copyright.
4512 * config/v850/tm-v850.h: Ditto. Update copyright.
4514 2002-04-30 Andrew Cagney <ac131313@redhat.com>
4516 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
4519 2002-04-30 Michael Snyder <msnyder@redhat.com>
4521 * arm-tdep.c: Whitespace clean-ups.
4522 (arm_skip_prologue): Fix thinko; two lines
4523 should have been removed as part of 4/24 change.
4525 2002-04-30 Kevin Buettner <kevinb@redhat.com>
4527 * rs6000-tdep.c: Added comment describing how fpscr register
4528 numbers were chosen.
4530 2002-04-30 Michael Snyder <msnyder@redhat.com>
4532 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
4534 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4536 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
4537 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
4538 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
4540 2002-04-29 Kevin Buettner <kevinb@redhat.com>
4542 From Louis Hamilton <hamilton@redhat.com>:
4543 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
4544 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
4545 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
4546 not bfd-private xcoff data, to determine wordsize.
4547 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
4549 2002-04-29 Andrew Cagney <ac131313@redhat.com>
4551 GDB 5.2 released from 5.2 branch.
4553 2002-04-29 Michal Ludvig <mludvig@suse.cz>
4555 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
4556 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4557 (x86_64_register_info_table): Added comments with register numbers.
4559 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
4561 * rs6000-tdep.c (rs6000_extract_return_value,
4562 rs6000_store_return_value): Handle returning vectors.
4563 (rs6000_gdbarch_init): Use
4564 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
4565 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
4567 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
4569 (ppc_sysv_abi_push_arguments): Handle vector parameters.
4570 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
4572 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4574 * hpread.c (hpread_psymtab_to_symtab_1,
4575 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
4576 with fprintf_unfiltered (gdb_stderr,...).
4578 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4580 * remote-array.c (printf_monitor, write_monitor,
4581 array_insert_breakpoint, array_remove_breakpoint ):
4582 Replace fprintf (stderr,...
4583 with fprintf_unfiltered (gdb_stderr,....
4584 * remote-es.c: Likewise.
4585 * remote-os9k.c: Likewise.
4586 * remote-st.c: Likewise.
4588 2002-04-28 Andreas Schwab <schwab@suse.de>
4590 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
4591 linux-proc.o and gcore.o.
4593 2002-04-26 Michal Ludvig <mludvig@suse.cz>
4595 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4596 code without frame pointers.
4598 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4600 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
4603 2002-04-26 Ben Elliston <bje@redhat.com>
4605 * target.c (do_xfer_memory): Correct reference to the new option
4606 "trust-readonly-sections".
4608 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
4610 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
4611 * gdbtypes.c (recursive_dump_type): Output the vector flag.
4612 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
4614 (read_array_type): Record the fact that this array type is really a
4615 vector (i.e. are passed in by value).
4617 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
4619 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
4620 * alpha-tdep.c (alpha_sigcontext_addr): New function.
4621 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
4622 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
4623 * alpha-linux-tdep.c: Include frame.h.
4624 (alpha_linux_sigcontext_addr): New function.
4625 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
4626 alpha_linux_sigcontext_addr.
4627 * alpha-osf1-tdep.c: Include gdbcore.h.
4628 (alpha_osf1_sigcontext_addr): New function.
4629 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
4630 alpha_osf1_sigcontext_addr.
4631 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
4632 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
4634 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4636 * stack.c (selected_frame_level):
4637 (select_frame): Do not set selected_frame_level.
4638 * frame.h (selected_frame_level): Delete declaration.
4640 2002-04-26 Andrew Cagney <ac131313@redhat.com>
4642 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
4643 convert_from_func_ptr-addr when AIX / PowerOpen.
4645 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4647 * valops.c (hand_function_call): Call
4648 generic_save_call_dummy_addr.
4649 * frame.h (generic_save_call_dummy_addr): Declare.
4650 * blockframe.c (struct dummy_frame): Add fields call_lo and
4652 (generic_find_dummy_frame): Check for PC in range call_lo to
4653 call_hi instead of entry_point_address.
4654 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
4655 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
4656 (generic_save_call_dummy_addr): New function.
4658 2002-04-24 David S. Miller <davem@redhat.com>
4660 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
4661 sparc_skip_prologue.
4662 (sparc_skip_prologue): Kill frameless_p arg, and use line number
4663 information to find prologue when possible.
4664 (sparc_prologue_frameless_p): Call examine_prologue directly.
4665 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
4666 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
4668 (SKIP_PROLOGUE): Likewise.
4670 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4672 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
4673 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
4674 indicate that the condition it was testing is always true.
4675 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
4676 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4677 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
4679 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4681 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
4682 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
4683 tdep->jb_pc and tdep->jb_elt_size.
4684 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
4685 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
4686 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4687 * alpha-nat.c (get_longjmp_target): Remove.
4688 (JB_ELEMENT_SIZE): Ditto.
4690 * alpha-tdep.c (alpha_get_longjmp_target): New function.
4691 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
4692 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
4693 to alpha_get_longjmp_target.
4694 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
4695 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
4696 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
4698 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4700 * README: Update to GDB 5.2.
4702 2002-04-25 Andrew Cagney <ac131313@redhat.com>
4704 * gdbarch.sh (LC_ALL): Set to `c'.
4706 2002-04-25 Theodore A. Roth <troth@verinet.com>
4708 * avr-tdep.c: Ran through gdb_indent.sh.
4710 2002-04-25 Theodore A. Roth <troth@verinet.com>
4712 * MAINTAINERS: Add myself as AVR maintainer.
4713 * NEWS: Note new target avr.
4715 2002-04-25 Theodore A. Roth <troth@verinet.com>
4717 * Makefile.in: Add support for AVR target.
4718 * configure.tgt: Add support for AVR target.
4719 * avr-tdep.c: New file
4720 * config/avr/avr.mt: New file.
4722 2002-04-25 Theodore A. Roth <troth@verinet.com>
4724 * MAINTAINERS: Add myself to write-after-approval.
4726 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
4728 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
4729 with fprintf_unfiltered (gdb_stderr,....
4731 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4734 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
4736 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4738 * p-exp.y: Also use new prev_lexptr variable
4739 to improve error reporting. Based on Michael Snyder
4740 2002-04-24 dated patch to c-exp.y.
4742 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4744 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4745 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
4746 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
4748 * config/alpha/tm-alpha.h: Remove forward decls of struct type
4750 (FUNCTION_START_OFFSET): Remove.
4751 (BREAKPOINT): Ditto.
4753 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
4755 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
4758 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4760 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
4761 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
4762 alpha_linux_pc_in_sigtramp.
4763 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
4764 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
4765 alpha_osf1_pc_in_sigtramp.
4766 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
4767 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
4768 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4769 alphafbsd_pc_in_sigtramp.
4770 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
4771 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4772 alphanbsd_pc_in_sigtramp.
4773 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
4774 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
4776 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4778 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4780 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4782 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
4784 (alphanbsd-nat.o): New dependency list.
4785 (alphanbsd-tdep.o): Ditto.
4786 * NEWS: Note new native NetBSD/alpha configuration.
4787 * alphanbsd-nat.c: New file.
4788 * alphanbsd-tdep.c: Ditto.
4789 * configure.host (alpha*-*-netbsd*): New host.
4790 * configure.tgt (alpha*-*-netbsd*): New target.
4791 * config/alpha/nbsd.mh: New file.
4792 * config/alpha/nbsd.mt: Ditto.
4793 * config/alpha/nm-nbsd.h: Ditto.
4794 * config/alpha/tm-nbsd.h: Ditto.
4796 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4798 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
4799 (alpha-osf1-tdep.o): New dependency list.
4800 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
4801 and skip_sigtramp_frame members.
4802 * alpha-linux-tdep.c: Include gdbcore.h.
4803 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
4804 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
4805 * alpha-osf1-tdep.c: New file.
4806 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
4808 (alpha_frame_past_sigtramp_frame): New function.
4809 (alpha_dynamic_sigtramp_offset): Ditto.
4810 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
4811 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
4812 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
4813 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
4814 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
4815 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
4816 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
4817 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
4818 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
4819 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
4820 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
4821 to find_solib_trampoline_target.
4822 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
4823 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
4824 (SKIP_TRAMPOLINE_CODE): Remove.
4825 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4826 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4827 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4828 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4829 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
4830 (PROC_SIGTRAMP_MAGIC): Ditto.
4831 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4832 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4833 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
4834 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
4835 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
4837 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
4839 * NEWS: Note that Alpha targets are now multi-arch.
4841 2002-04-24 Michael Snyder <msnyder@redhat.com>
4843 * parser-defs.h (prev_lexptr): New external variable.
4844 * parse.c (parse_exp_1): Set prev_lexptr to null before
4845 calling the language-specific parser.
4846 * c-exp.y (yylex): Set prev_lexptr to start of current token.
4847 (yyerror): Use prev_lexptr in error reporting.
4849 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
4851 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
4852 * gregset.h: If FILL_FPXREGSET is defined, provide
4853 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
4854 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
4855 is defined, call fill_fpxregset.
4857 2002-04-24 Roland McGrath <roland@frob.com>
4859 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
4860 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
4861 (supply_gregset, supply_fpregset): New functions.
4863 * gnu-nat.c (gnu_find_memory_regions): New function.
4864 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
4865 (gnu_xfer_memory): Add a cast.
4867 2002-04-24 Michael Snyder <msnyder@redhat.com>
4869 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
4870 loop. Add handling for "str lr, [sp, #-4]!" and for saves
4871 of argument regs ("str r(0123), [r11, #-nn"]).
4872 (arm_skip_prologue): Better handling for frameless functions.
4873 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
4874 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
4876 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
4878 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
4879 NUM_PSEUDO_REGS can be used.
4881 2002-04-24 Andrew Cagney <ac131313@redhat.com>
4883 * arch-utils.h: Update copyright.
4885 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
4886 * gdbarch.h, gdbarch.c: Re-generate.
4888 * inferior.h (IN_SIGTRAMP): Delete definition.
4889 * arch-utils.c (legacy_pc_in_sigtramp): New function.
4890 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
4892 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
4893 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
4894 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
4895 (find_proc_framesize): Ditto.
4896 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
4897 (alpha_init_extra_frame_info): Ditto.
4898 * infrun.c (handle_inferior_event): Ditto.
4899 (handle_inferior_event): Ditto.
4900 (check_sigtramp2): Ditto.
4901 * blockframe.c (create_new_frame): Ditto.
4902 (get_prev_frame): Ditto.
4903 * ppc-linux-tdep.c: Update comments.
4904 * i386-linux-tdep.c: Update comments.
4905 * breakpoint.c (bpstat_what): Update comment.
4907 2002-04-24 Michal Ludvig <mludvig@suse.cz>
4909 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
4910 (regsets_store_inferior_registers): Removed cast to int from
4912 * gdbserver/regcache.h: Added declaration of struct inferior_info.
4914 2002-04-24 David S. Miller <davem@redhat.com>
4916 * i960-tdep.c (register_in_window_p): New function.
4917 (i960_find_saved_register): Use it instead of
4918 REGISTER_IN_WINDOW_P.
4919 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
4921 * symtab.h (find_stab_function_addr): Kill extern.
4922 * minsyms.c (find_stab_function_addr): Remove from here...
4923 * dbxread.c: ... to here, and mark it static.
4925 2002-04-20 David S. Miller <davem@redhat.com>
4927 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
4928 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
4930 2002-04-21 David S. Miller <davem@redhat.com>
4932 * remote-vxsparc.c (vx_read_register): Fix typo, we want
4933 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
4934 (vx_write_register): Likewise.
4936 2002-04-23 J. Brobecker <brobecker@gnat.com>
4938 * source.c (is_regular_file): New function.
4939 (openp): Check wether file to open is a regular file
4940 to avoid opening directories.
4942 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4944 * findvar.c (extract_signed_integer): Cast printf argument
4945 to suppress format warning.
4946 (extract_unsigned_integer): Likewise.
4947 * infcmd.c (registers_info): Likewise.
4948 * top.c (get_prompt_1): Likewise.
4949 * valops.c (value_assign): Likewise.
4950 * valprint.c (print_decimal): Likewise.
4952 2002-04-22 H.J. Lu (hjl@gnu.org)
4954 * c-exp.y (typebase): Support
4956 [long|long long|short] [signed|unsigned] [int|]
4960 signed [long|long long|short] int
4962 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4964 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
4966 * vax-tdep.h: New file.
4967 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
4968 Make several routines static.
4969 (vax_get_saved_register): New function.
4970 (vax_gdbarch_init): New function.
4971 (_initialize_vax_tdep): Register vax_gdbarch_init.
4972 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
4973 Remove macros now under the control of gdbarch.
4975 2002-04-22 Michael Snyder <msnyder@redhat.com>
4977 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
4978 Some whitespace and coding standards tweaks.
4980 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4982 * vax-tdep.c: Include regcache.h.
4983 (vax_call_dummy_words): New.
4984 (sizeof_vax_call_dummy_words): New.
4985 (vax_fix_call_dummy): New function.
4986 (vax_saved_pc_after_call): Ditto.
4987 * config/vax/tm-vax.h: Don't include regcache.h.
4988 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4989 (CALL_DUMMY): Remove.
4990 (CALL_DUMMY_WORDS): Define.
4991 (SIZEOF_CALL_DUMMY_WORDS): Define.
4992 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4994 2002-04-18 Michael Snyder <msnyder@redhat.com>
4996 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4998 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5000 * vax-tdep.c (vax_frame_chain): New function.
5001 (vax_push_dummy_frame): Ditto.
5002 (vax_pop_frame): Ditto.
5003 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5004 (FRAMELESS_FUNCTION_INVOCATION): Use
5005 generic_frameless_function_invocation_not.
5006 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5007 (POP_FRAME): Use vax_pop_frame.
5009 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5011 * vax-tdep.c (vax_store_struct_return): New function.
5012 (vax_extract_return_value): Ditto.
5013 (vax_store_return_value): Ditto.
5014 (vax_extract_struct_value_address): Ditto.
5015 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5016 vax_store_struct_return.
5017 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5018 (STORE_RETURN_VALUE): Use vax_store_return_value.
5019 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5021 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5023 * vax-tdep.c (vax_frame_saved_pc): New function.
5024 (vax_frame_args_address_correct): Ditto.
5025 (vax_frame_args_address): Ditto.
5026 (vax_frame_locals_address): Ditto.
5027 (vax_frame_num_args): Move code to be in proximity to
5028 other frame-related functions.
5029 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5030 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5031 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5032 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5033 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5035 2002-04-22 H.J. Lu (hjl@gnu.org)
5037 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5040 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5042 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5043 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5044 (FRAME_INIT_SAVED_REGS): New macro.
5046 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5048 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5050 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5052 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5054 (fetch_osf_core_registers): Likewise.
5055 (supply_gregset): Likewise.
5057 2002-04-22 J. Brobecker <brobecker@gnat.com>
5059 * symfile.h (get_section_index): Define.
5060 * symfile.c (get_section_index): New function.
5061 * mdebugread.c (SC_IS_SBSS): New macro.
5062 (SC_IS_BSS): Return true for the scBss storage class only, as
5063 the scSBss storage class refers to the .sbss section.
5064 (parse_partial_symbols): Discard the symbols which associated
5065 section does not exist.
5066 Make sure to use the .sbss section index for symbols which
5067 storage class is scBss, rather than using the .bss section index.
5069 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5071 * vax-tdep.c: Update copyright years.
5072 (vax_register_name): New function.
5073 (vax_register_byte): Ditto.
5074 (vax_register_raw_size): Ditto.
5075 (vax_register_virtual_size): Ditto.
5076 (vax_register_virtual_type): Ditto.
5077 * config/vax/tm-vax.h: Update copyright years.
5078 (REGISTER_NAMES): Remove.
5079 (REGISTER_NAME): Define.
5080 (REGISTER_BYTE): Use vax_register_byte.
5081 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5082 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5083 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5085 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5087 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5089 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5091 2002-04-21 David S. Miller <davem@redhat.com>
5093 * arch-utils.c (generic_prologue_frameless_p): Kill
5094 SKIP_PROLOGUE_FRAMELESS_P code.
5095 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5097 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5098 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5099 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5101 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5102 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5103 (sparc_gdbarch_init): Pass it to
5104 set_gdbarch_prologue_frameless_p.
5106 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5108 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5109 (alphabsd-nat.o): New dependency list.
5111 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5113 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5115 (alpha-linux-tdep.o): New dependency list.
5116 (alphafbsd-tdep.o): Likewise.
5118 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5120 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5122 * alpha-tdep.c: ...from here.
5123 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5125 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5127 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5128 prototype from here...
5129 * alpha-tdep.h: ...to here.
5131 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5133 * frame.h (selected_frame_level): Document as deprecated.
5134 (frame_relative_level): Declare.
5135 * stack.c (frame_relative_level): New function.
5136 (selected_frame_level): Document as deprecated.
5137 (select_frame): Do not set the selected_frame_level.
5139 * stack.c (frame_info, record_selected_frame): Update.
5140 (frame_command, current_frame_command): Update.
5141 (up_silently_base, up_command, down_silently_base): Update.
5142 (down_command): Update.
5143 * inflow.c (kill_command): Update.
5144 * tracepoint.c (finish_tfind_command): Update.
5145 * corelow.c (core_open): Update.
5146 * thread.c (info_threads_command): Update.
5147 (do_captured_thread_select): Update.
5148 * infcmd.c (finish_command): Update.
5149 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5151 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5153 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5155 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5157 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5160 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5162 * alphafbsd-tdep.c: Update copyright years. Include
5164 (alphafbsd_use_struct_convention): Make static.
5165 (alphafbsd_init_abi): New function.
5166 (_initialize_alphafbsd_tdep): New function.
5167 * config/alpha/tm-fbsd.h: Update copyright years.
5168 (USE_STRUCT_CONVENTION): Remove.
5170 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5172 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5173 an Alpha ABI variant.
5174 (alpha_abi_handler_list): Declare.
5175 (alpha_gdbarch_register_os_abi): New function.
5176 (alpha_gdbarch_init): Give registered ABI variant handlers a
5177 chance to tweak the gdbarch once we have set up defaults.
5178 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5180 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5182 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5183 to standard_coerce_float_to_double.
5184 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5186 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5188 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5189 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5190 from gdbarch_tdep rather than a constant.
5191 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5192 the default text address for all Alpha Unix ABIs.
5193 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5194 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5196 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5198 * alpha-tdep.h: New file. Includes several Alpha target constants
5200 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5201 let gdbarch deal with.
5202 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5203 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5205 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5206 Alpha target register names.
5207 * alphabsd-nat.c: Likewise.
5208 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5209 Alpha target register names. Make serveral routines static.
5210 (alpha_get_saved_register): New function.
5211 (alpha_abi_names): New.
5212 (process_note_abi_tag_sections): New function.
5213 (get_elfosabi): New function.
5214 (alpha_gdbarch_init): New function.
5215 (alpha_dump_tdep): New function.
5216 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5218 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5220 * frame.c (find_saved_register): Delete #ifdef
5221 HAVE_REGISTER_WINDOWS code.
5222 * config/sparc/tm-sparc.h: Update comments.
5223 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5225 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5227 * i960-tdep.c (i960_find_saved_register): New function.
5228 (i960_get_saved_register): New function.
5229 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5230 (i960_get_saved_register): Declare.
5231 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5233 2002-04-20 David S. Miller <davem@redhat.com>
5235 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5237 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5239 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5240 instead of NUM_PSEUDO_REGS.
5242 2002-04-20 David S. Miller <davem@redhat.com>
5244 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5245 GDB_MULTI_ARCH_PARTIAL
5246 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5247 define, let tm-sp64.h do it.
5249 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5251 * frame.c (find_saved_register): Avoid a NULL pointer
5252 dereference and actually walk the frame list.
5254 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5256 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5257 sorted in most most-recent-used order. Document.
5258 * gdbarch.h, gdbarch.c: Regenerate.
5260 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5262 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5263 (add_inferior): Call create_register_cache.
5264 (clear_inferiors): Call free_register_cache.
5265 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5266 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5267 (registers): Remove.
5268 (get_regcache): New function.
5269 (create_register_cache, free_register_cache): New functions.
5270 (set_register_cache): Don't initialize the register cache here.
5271 (registers_to_string, registers_from_string, register_data): Call
5273 * gdbserver/regcache.h: Add prototypes.
5274 * gdbserver/server.h: Likewise.
5276 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5278 * gdbserver/mem-break.c: New file.
5279 * gdbserver/mem-break.h: New file.
5280 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5282 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5284 (clear_inferiors): Free target_data member if set.
5285 (inferior_target_data, set_inferior_target_data): New functions.
5286 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5287 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5288 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5289 (struct inferior_linux_data): New.
5290 (linux_create_inferior): Use set_inferior_target_data.
5291 (linux_attach): Likewise. Call add_inferior.
5292 (linux_wait_for_one_inferior): New function.
5293 (linux_wait): Call it.
5294 (linux_write_memory): Add const.
5295 (initialize_low): Call set_breakpoint_data.
5296 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5298 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5300 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5302 * gdbserver/target.c (read_inferior_memory)
5303 (write_inferior_memory): New functions.
5304 * gdbserver/target.h (read_inferior_memory)
5305 (write_inferior_memory): Change macros to prototypes.
5306 (struct target_ops): Update comments. Add const to write_memory
5309 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5311 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5313 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5314 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5315 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5318 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5321 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5322 (build_builtin_type_vec128): Ditto.
5323 (append_composite_type_field): Fix calculation of type length in
5326 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5328 * config/djgpp/README: Update.
5330 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5333 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5335 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5336 (alpha_setup_arbitrary_frame): ...to this.
5337 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
5338 for alpha_setup_arbitrary_frame.
5340 2002-04-18 Andrew Cagney <cagney@redhat.com>
5342 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
5343 * gdbarch.h, gdbarch.c: Regenerate.
5345 * defs.h (breakpoint_from_pc_fn): Delete type definition.
5346 * target.h (memory_breakpoint_from_pc): Update declaration.
5347 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
5349 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
5350 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
5351 * mem-break.c (memory_breakpoint_from_pc): Ditto.
5352 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
5353 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
5354 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
5355 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
5356 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
5357 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
5358 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
5359 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
5360 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
5362 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
5364 * monitor.c (monitor_insert_breakpoint): Ditto.
5365 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
5367 * config/mcore/tm-mcore.h: Update copyright.
5368 * mem-break.c: Ditto.
5369 * xstormy16-tdep.c: Ditto.
5371 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
5373 * p-exp.y: Add precedence rule for '^' token.
5374 This removes the shift/reduce conflicts.
5375 Remove the comment concerning these shift/reduce conflicts.
5377 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
5379 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
5380 (registers_powerpc_nofp): New register set for processors
5381 without floating point unit.
5383 2002-04-18 David S. Miller <davem@redhat.com>
5385 * MAINTAINERS: Add myself to write-after-approval.
5387 2002-04-17 Michael Snyder <msnyder@redhat.com>
5389 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
5391 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5393 * rs6000-tdep.c (frame_initial_stack_address): Use
5394 frame_register_read to read the alloca_reg.
5396 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5398 * frame.c (find_saved_register): Find saved registers in the next
5402 2002-04-17 Andrew Cagney <ac131313@redhat.com>
5404 * gdbarch.sh (LANG): Set to ``c''.
5406 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5408 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
5410 2002-04-15 Andrew Cagney <ac131313@redhat.com>
5412 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
5415 * hpread.c (hpread_get_lntt): Add declaration.
5416 Also fix PR gdb/391.
5418 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5420 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
5421 * aclocal.m4, configure: Re-generate.
5424 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5426 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
5427 instead of tm_print_insn.
5429 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
5431 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
5433 2002-04-14 Andrew Cagney <ac131313@redhat.com>
5435 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
5436 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
5437 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
5439 2002-04-12 Don Howard <dhoward@redhat.com>
5441 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
5442 max_user_call_depth.
5443 (init_cmd_lists): Initialize the new value;
5444 * cli/cli-script.c (execute_user_command): Limit the call depth of
5445 user defined commands. This avoids a core-dump when user commands
5446 are infinitly recursive.
5448 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5450 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
5451 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
5452 from tdep struct instead of DEFAULT_LR_SAVE.
5453 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
5454 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
5455 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
5457 2002-04-12 Michael Snyder <msnyder@redhat.com>
5459 * Remote.c: Spelling fix.
5460 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
5461 If no symbol found for "sbrk", try "_sbrk".
5462 (make_output_phdrs): Use bfd_section_name.
5463 (gcore_copy_callback): Use bfd_section_name.
5464 * eval.c: Indentation fix-ups.
5465 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
5466 in case it gets applied to an address that is already
5467 in the instruction space.
5468 * cli/cli-decode.c (help_list): Allow long lines to wrap.
5469 * symfile.c: Fix indentation, long lines.
5470 * source.c: White space fix-up.
5472 2002-04-12 Andrew Cagney <cagney@redhat.com>
5474 * defs.h (read_relative_register_raw_bytes): Delete declaration.
5475 * frame.c (frame_register_read): New function. Return non-zero on
5477 (read_relative_register_raw_bytes_for_frame): Delete.
5478 (read_relative_register_raw_bytes): Delete.
5479 * frame.h (frame_register_read): Declare.
5480 * d30v-tdep.c: Update Copyright. Use frame_register_read.
5482 * infcmd.c (do_registers_info): Ditto.
5483 * hppa-tdep.c: Ditto.
5484 * rs6000-tdep.c: Ditto.
5485 * h8500-tdep.c: Ditto.
5486 * mips-tdep.c: Ditto.
5487 * h8300-tdep.c: Ditto.
5488 * z8k-tdep.c: Ditto.
5490 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5492 From Jimi X <jimix@watson.ibm.com>:
5493 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
5496 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5498 From Jimi X <jimix@watson.ibm.com>:
5499 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
5502 2002-04-12 Kevin Buettner <kevinb@redhat.com>
5504 From Jimi X <jimix@watson.ibm.com>:
5505 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
5506 register sets for these processor variants.
5508 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
5510 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
5511 registers which are allowed to fail to store.
5512 * gdbserver/linux-low.h (linux_target_ops): Likewise.
5513 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
5514 (ppc_cannot_store_register): FPSCR may not be storable.
5515 * regformats/reg-ppc.dat: Support FPSCR.
5517 2002-04-11 Kevin Buettner <kevinb@redhat.com>
5519 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
5520 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5521 Add fpscr as an invalid/unfetchable register.
5522 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
5523 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
5524 (fill_fpregset): Add support for register fpscr.
5525 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
5526 (fill_gregset): Account for the fact that register ``mq'' might
5528 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
5529 (registers_power): Add fpscr to register set at slot 71.
5530 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
5531 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
5533 2002-04-11 Michael Snyder <msnyder@redhat.com>
5535 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
5536 * configure: Regenerate.
5537 * config.in: Regenerate.
5538 * acconfig.h: Add define for _SYSCALL32.
5539 * core-sol2.c: Remove #define _SYSCALL32.
5540 * solib-legacy.c: Remove #define _SYSCALL32.
5542 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5544 * stack.c (select_frame): Cleanup internal error message, do not
5547 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5549 * stack.c (select_frame): Check that selected_frame and the
5550 specified level are as expected.
5551 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
5553 * frame.h (struct frame_info): Add field `level'. Update
5555 Work-in-progress PR gdb/464.
5557 2002-04-10 Andrew Cagney <ac131313@redhat.com>
5559 * maint.c (maint_print_section_info): Rename print_section_info.
5560 (print_bfd_section_info, print_objfile_section_info): Update.
5561 * inferior.h (struct gdbarch): Add opaque declaration.
5562 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
5563 * gdbarch.h: Regenerate.
5565 2002-04-10 Michal Ludvig <mludvig@suse.cz>
5567 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
5568 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
5569 (kernel_u_size): Added.
5570 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
5571 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
5573 2002-04-04 Jim Ingham <jingham@apple.com>
5575 * valarith.c (find_size_for_pointer_math): New function, either returns
5576 the size for a pointer's target, returns 1 for void *, or errors for
5578 (value_add, value_sub): use find_size_for_pointer_math.
5580 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5582 * linux-low.c (linux_look_up_symbols): New hook.
5583 (linux_target_ops): Add linux_look_up_symbols.
5584 * remote-utils.c (decode_address): New function.
5585 (look_up_one_symbol): New function.
5586 * server.c (handle_query): Call target look_up_symbols hook.
5587 * server.h (look_up_one_symbol): Add prototype.
5588 * target.h (struct target_ops): Add look_up_symbols hook.
5590 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5592 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
5593 * ChangeLog: Correct paths in last ChangeLog entry.
5595 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5597 * gdbserver/linux-low.h: Remove obsolete prototypes.
5598 (struct linux_target_ops): New.
5599 (extern the_low_target): New.
5600 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
5601 (register_addr): Use the_low_target explicitly.
5602 (fetch_register): Likewise.
5603 (usr_fetch_inferior_registers): Likewise.
5604 (usr_store_inferior_registers): Likewise.
5605 * gdbserver/linux-arm-low.c (num_regs): Remove.
5606 (arm_num_regs): Define.
5607 (arm_regmap): Renamed from regmap, made static.
5608 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
5610 (arm_cannot_store_register): Renamed from cannot_store_register,
5612 (the_low_target): New.
5613 * gdbserver/linux-i386-low.c (num_regs): Remove.
5614 (i386_num_regs): Define.
5615 (i386_regmap): Renamed from regmap, made static.
5616 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
5618 (i386_cannot_store_register): Renamed from cannot_store_register,
5620 (the_low_target): New.
5621 * gdbserver/linux-ia64-low.c (num_regs): Remove.
5622 (ia64_num_regs): Define.
5623 (ia64_regmap): Renamed from regmap, made static.
5624 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
5626 (ia64_cannot_store_register): Renamed from cannot_store_register,
5628 (the_low_target): New.
5629 * gdbserver/linux-m68k-low.c (num_regs): Remove.
5630 (m68k_num_regs): Define.
5631 (m68k_regmap): Renamed from regmap, made static.
5632 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
5634 (m68k_cannot_store_register): Renamed from cannot_store_register,
5636 (the_low_target): New.
5637 * gdbserver/linux-mips-low.c (num_regs): Remove.
5638 (mips_num_regs): Define.
5639 (mips_regmap): Renamed from regmap, made static.
5640 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
5642 (mips_cannot_store_register): Renamed from cannot_store_register,
5644 (the_low_target): New.
5645 * gdbserver/linux-ppc-low.c (num_regs): Remove.
5646 (ppc_num_regs): Define.
5647 (ppc_regmap): Renamed from regmap, made static.
5648 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
5650 (ppc_cannot_store_register): Renamed from cannot_store_register,
5652 (the_low_target): New.
5653 * gdbserver/linux-s390-low.c (num_regs): Remove.
5654 (s390_num_regs): Define.
5655 (s390_regmap): Renamed from regmap, made static.
5656 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
5658 (s390_cannot_store_register): Renamed from cannot_store_register,
5660 (the_low_target): New.
5661 * gdbserver/linux-sh-low.c (num_regs): Remove.
5662 (sh_num_regs): Define.
5663 (sh_regmap): Renamed from regmap, made static.
5664 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
5666 (sh_cannot_store_register): Renamed from cannot_store_register,
5668 (the_low_target): New.
5669 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
5670 (the_low_target): New.
5672 2002-04-09 Andrew Cagney <ac131313@redhat.com>
5674 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
5675 override FP_REGNUM with frame->fp. Update copyright.
5676 * parse.c (num_std_regs, std_regs): Delete.
5677 (target_map_name_to_register): Do not search std_regs. Update
5678 function description.
5679 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
5680 declarations. Update copyright.
5683 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5685 * gdbserver/Makefile.in: Add stamp-h target.
5686 * gdbserver/configure.in: Create stamp-h.
5687 * gdbserver/configure: Regenerated.
5689 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5691 * gdbserver/inferiors.c: New file.
5692 * gdbserver/target.c: New file.
5693 * gdbserver/target.h: New file.
5694 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
5696 * gdbserver/linux-low.c (inferior_pid): New static variable,
5697 moved from server.c.
5698 (linux_create_inferior): Renamed from create_inferior.
5699 Call add_inferior. Return 0 on success instead of a PID.
5700 (linux_attach): Renamed from myattach.
5701 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
5702 (linux_thread_alive): Renamed from mythread_alive.
5703 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
5705 (linux_resume): Renamed from myresume. Add missing ``return 0''.
5706 (regsets_store_inferior_registers): Correct error message.
5707 Add missing ``return 0''.
5708 (linux_fetch_registers): Renamed from fetch_inferior_registers.
5709 (linux_store_registers): Renamed from store_inferior_registers.
5710 (linux_read_memory): Renamed from read_inferior_memory.
5711 (linux_write_memory): Renamed from write_inferior_memory.
5712 (linux_target_ops): New structure.
5713 (initialize_low): Call set_target_ops ().
5714 * gdbserver/remote-utils.c (unhexify): New function.
5715 (hexify): New function.
5716 (input_interrupt): Send signals to ``signal_pid''.
5717 * gdbserver/server.c (inferior_pid): Remove.
5718 (start_inferior): Update create_inferior call.
5719 (attach_inferior): Call add_inferior.
5720 (handle_query): New function.
5721 (main): Call handle_query for `q' packets.
5722 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
5723 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
5725 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5727 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
5729 * gdbserver/configure.in: Check for <string.h>
5730 * gdbserver/configure: Regenerate.
5731 * gdbserver/config.in: Regenerate.
5732 * gdbserver/gdbreplay.c: Include needed system headers.
5733 (remote_open): Remove strchr prototype.
5734 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
5735 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
5736 (supply_register_by_name): Likewise.
5737 (collect_register): Change buf argument to void *.
5738 (collect_register_by_name): Likewise.
5739 * gdbserver/regcache.h: Add missing prototypes.
5740 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
5741 * gdbserver/server.c (handle_query): New function.
5742 (attached): New static variable, moved out of main.
5743 (main): Quiet longjmp clobber warnings.
5744 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
5745 * gdbserver/utils.c (error): Remove NORETURN.
5748 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
5750 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
5751 after the last symbol in a block.
5753 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
5755 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
5756 is non zero as a found symbol.
5758 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5760 * findvar.c: Include "builtin-regs.h".
5761 (value_of_register): Call value_of_builtin_reg when applicable.
5762 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
5763 (target_map_name_to_register): Call
5764 builtin_reg_map_name_to_regnum.
5765 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
5766 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
5767 (builtin_regs_h): Define.
5768 (builtin-regs.o): New target.
5769 (findvar.o): Add $(builtin_regs_h).
5770 * builtin-regs.c, builtin-regs.h: New files.
5771 * std-regs.c: New file.
5772 Partial fix for PR gdb/251.
5774 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5776 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
5777 it's no longer required.
5779 2002-04-08 Andrew Cagney <ac131313@redhat.com>
5781 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
5783 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5785 From Jimi X <jimix@watson.ibm.com>:
5786 * rs6000-tdep.c (rs6000_software_single_step): Use
5787 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
5788 and size. Use target_insert_breakpoint() and
5789 target_remove_breakpoint() to insert and remove breakpoints
5790 instead of explicit memory reads and writes.
5792 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5794 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
5795 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
5796 ELF_OBJECT_FORMAT ifdef.
5798 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5800 From Jimi X <jimix@watson.ibm.com>:
5801 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
5803 2002-04-08 Kevin Buettner <kevinb@redhat.com>
5805 From Jimi X <jimix@watson.ibm.com>:
5806 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
5807 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
5809 2002-04-07 Mark Kettenis <kettenis@gnu.org>
5811 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
5812 s/asprintf/xasprintf/.
5813 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
5815 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5817 I believe Jeff Law denies responsability for this one:
5818 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
5819 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
5820 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
5821 Work-around for PR gdb/366.
5823 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5825 * remote-e7000.c (write_small, e7000_read_inferior_memory,
5826 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
5827 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
5829 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
5831 * sh-tdep.c (sh_fp_frame_init_saved_regs,
5832 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
5835 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5837 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
5840 2002-04-07 Andrew Cagney <ac131313@redhat.com>
5842 * README (Reporting Bugs in GDB): Document the bug web page as the
5843 prefered way of submitting bugs.
5846 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5848 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
5850 * gdbarch.h, gdbarch.c: Re-generate.
5852 2002-04-07 Andreas Schwab <schwab@suse.de>
5854 * m68klinux-nat.c (fill_fpregset): Properly pass address of
5855 buffer to regcache_collect.
5857 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5859 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
5860 * gdbarch.c, gdbarch.h: Re-generate.
5862 2002-04-06 Andrew Cagney <ac131313@redhat.com>
5864 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
5865 declaration. Fix -Werror.
5867 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
5869 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
5870 * gdbarch.c: Regenerate.
5872 2002-04-05 Michael Snyder <msnyder@redhat.com>
5874 * breakpoint.c (clear_command): Rewrite middle section to
5875 combine two loops with identical control conditions.
5876 Add a cleanup to eliminate a memory leak.
5877 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
5879 2002-04-05 H.J. Lu (hjl@gnu.org)
5881 * solib-svr4.c (bkpt_names): Add "__start".
5883 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5885 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
5886 as test for 64 bit target.
5888 2002-04-05 Andrew Cagney <ac131313@redhat.com>
5890 * h8500-tdep.c (h8500_write_fp): Delete function.
5891 * dwarf2cfi.c (cfi_write_fp): Document as not used.
5892 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
5893 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
5894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
5895 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
5896 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
5898 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
5899 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
5900 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
5901 (d10v_write_fp): Delete function.
5902 * inferior.h (write_fp, generic_target_write_fp): Delete
5904 * regcache.c (generic_target_write_fp): Delete function.
5905 (write_fp): Delete function.
5906 * gdbarch.sh (TARGET_WRITE_FP): Delete.
5907 * gdbarch.h, gdbarch.c: Regenerate.
5908 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
5909 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
5910 (sparc64_write_fp): Delete declaration.
5911 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
5912 (h8500_write_fp): Delete declaration.
5914 2002-04-04 Andrew Cagney <ac131313@redhat.com>
5916 * sparc-tdep.c (sparc64_write_fp): Delete.
5917 (sparc_push_dummy_frame): Replace write_fp call with code to store
5919 (sparc_gdbarch_init): Do not initialize write_fp.
5921 2002-04-05 Kevin Buettner <kevinb@redhat.com>
5923 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
5926 2002-03-29 Jim Blandy <jimb@redhat.com>
5928 * stack.c (get_selected_block): Add new argument `addr_in_block',
5929 used to return the exact code address we used to select the block,
5931 * blockframe.c (get_frame_block, get_current_block): Same.
5932 * frame.h (get_frame_block, get_current_block,
5933 get_selected_block): Update declarations.
5934 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
5935 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
5937 2002-04-05 Michael Snyder <msnyder@redhat.com>
5939 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
5942 2002-04-05 J. Brobecker <brobecker@gnat.com>
5944 * utils.c (xfullpath): New function.
5945 * defs.h (xfullpath): Add declaration.
5946 * source.c (openp): Use xfullpath in place of gdb_realpath to
5947 avoid resolving the basename part of filenames when the
5948 associated file is a symbolic link. This fixes a potential
5949 inconsistency between the filenames known to GDB and the
5950 filenames it prints in the annotations.
5951 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
5952 to be able to match a filename with either the real filename, or
5953 the name of any symbolic link to this file.
5954 (lookup_partial_symtab): Ditto.
5956 2002-04-04 Michael Snyder <msnyder@redhat.com>
5958 * breakpoint.c: Add support for hardware breakpoints in overlays.
5959 (overlay_events_enabled): New state variable.
5960 (insert_breakpoints): Use overlay_events_enabled to decide
5961 whether to attempt to set a breakpoint at the overlay load addr.
5962 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5963 (remove_breakpoint): Use overlay_events_enabled to decide
5964 whether breakpoints need to be removed from overlay load addr.
5965 Handle bp_hardware_breakpoint as well as bp_breakpoint.
5966 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
5967 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
5968 disable_overlay_breakpoints): Update overlay_events_enabled.
5970 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
5972 * dwarf2read.c (struct function_range): New.
5973 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
5974 (check_cu_functions): New.
5975 (read_file_scope): Initialize global function lists.
5976 Call dwarf_decode_line after processing children.
5977 (read_func_scope): Add to global function list.
5978 (dwarf_decode_lines): Call check_cu_functions everywhere
5979 record_line is called. Call record_line with a linenumber
5980 of 0 to mark sequence ends.
5982 2002-04-04 Michal Ludvig <mludvig@suse.cz>
5984 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
5985 change sync with glibc.
5987 2002-04-03 Jim Blandy <jimb@redhat.com>
5989 * configure.in: Call AC_C_INLINE.
5990 * configure: Regenerated.
5992 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5994 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5995 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5997 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5999 * NEWS: Mention gcore support on FreeBSD/i386.
6001 * fbsd-proc.c: New file.
6002 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6003 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6005 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6008 2002-03-29 Jim Blandy <jimb@redhat.com>
6010 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6011 unescaped newlines in string literals, but newer ones don't. So
6014 2002-03-26 Michael Snyder <msnyder@redhat.com>
6015 Andrew Cagney <cagney@redhat.com>
6017 * cli/cli-dump.c: New file. Dump memory to file,
6018 restore file to memory.
6019 * cli/cli-dump.h: New file.
6020 * Makefile.in: Add rules, dependencies for cli-dump.o.
6021 * NEWS: Mention new commands.
6023 2002-03-28 Michael Snyder <msnyder@redhat.com>
6025 * symfile.c (symbol_file_add): Move test for null symbols to later.
6027 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6029 From veksler at il.ibm.com:
6030 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6031 the xstrduped original path.
6034 2002-03-27 Michael Snyder <msnyder@redhat.com>
6036 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6037 * infcmd.c (_initialize_infcmd): Ditto.
6038 * language.c (_initialize_language): Ditto.
6039 * symfile.c (_initialize_symfile): Ditto.
6040 * top.c (_init_main): Ditto.
6041 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6043 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
6045 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6046 vector registers handling.
6047 (skip_prologue): Handle new AltiVec instructions. Fill in new
6048 fields of frame data.
6049 (frame_get_saved_regs): Fill in information for AltiVec registers.
6051 2002-03-27 Jim Blandy <jimb@redhat.com>
6053 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6054 a function; leave this macro here to invoke that function.
6055 (symbol_init_mangled_name): Declaration for that function.
6056 * symtab.c (symbol_init_mangled_name): New function.
6058 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6060 * valarith.c: Replace strerror with safe_strerror.
6061 * tracepoint.c: Ditto.
6063 * go32-nat.c: Ditto.
6067 2002-03-27 Andreas Schwab <schwab@suse.de>
6069 * event-top.c (command_line_handler): Remove useless if.
6071 2002-03-27 Andreas Jaeger <aj@suse.de>
6073 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6076 2002-03-27 Michal Ludvig <mludvig@suse.cz>
6078 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6079 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6080 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6081 (x86_64_linux_dr_get_status, supply_gregset),
6082 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6083 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6084 (x86_64_register_info_table): Add.
6085 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6086 (x86_64_register_raw_size, x86_64_register_virtual_type),
6087 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6088 general x86_64_register_info_table.
6089 (i386_gdbarch_init): gdbarch_register_bytes is now set
6090 dynamicaly during initialization.
6091 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6092 * gdbserver/linux-x86-64-low.c: Ditto.
6094 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6096 * gdbserver/server.c (main): Call target_signal_to_host_p
6097 and target_signal_to_host on signals received from the remote.
6098 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6099 target_signal_from_host on signals sent to the remote.
6100 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6101 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6103 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6105 * signals/signals.c: Include "server.h" in gdbserver build.
6106 (target_signal_from_name): Don't use STREQ.
6107 (_initialize_signals): Likewise. Don't include function in
6110 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6112 * signals.c: Moved to...
6113 * signals/signals.c: Here.
6114 * Makefile (signals.o): Update.
6116 2002-03-26 Jeff Law (law@redhat.com)
6118 * somread.c (som_symtab_read): Remove some commented out code and
6119 updated related comments. Do not set the minimal symbol table to
6120 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6121 in a dynamic executable.
6122 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6123 where we are unable to find the minimal symbol for the given
6126 2002-03-25 Jeff Law (law@redhat.com)
6128 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6130 2002-03-25 Michal Ludvig <mludvig@suse.cz>
6132 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6134 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6136 * command.h: Update copyright.
6137 (struct cmd_list_element): Replace definition with opaque
6139 (enum cmd_types): Document that it will eventually be moved to
6141 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6142 (MALLOCED_REPLACEMENT): Delete macro.
6143 * Makefile.in (cli_decode_h): Add $(command_h).
6144 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
6145 * top.c: Include "cli/cli-decode.h".
6146 * completer.c: Include "cli/cli-decode.h".
6147 * maint.c: Include "cli/cli-decode.h".
6148 * cli/cli-decode.h: Include "command.h".
6149 (enum command_class): Delete.
6150 (enum cmd_types): Comment out.
6151 (enum cmd_auto_boolean): Delete.
6152 (enum var_types): Delete.
6154 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6156 * cli/cli-decode.c: Include "gdb_assert.h".
6157 (add_set_or_show_cmd): New static function.
6158 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6159 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6160 all fields, such as func, from the set command.
6162 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6164 * MAINTAINERS (sh-elf): Change warning flag to -w.
6166 2002-03-23 Andrew Cagney <cagney@redhat.com>
6168 * defs.h (error): Add printf format attribute.
6169 * thread-db.c (thread_from_lwp): Fix error format string.
6170 * stack.c (parse_frame_specification): Ditto.
6171 * cli/cli-decode.c (undef_cmd_error): Ditto.
6172 * scm-lang.c (scm_lookup_name): Ditto.
6173 * tracepoint.c (trace_error): Ditto.
6174 * remote-utils.c (usage): Ditto.
6175 * remote.c (compare_sections_command): Ditto.
6178 2002-03-22 Andrew Cagney <ac131313@redhat.com>
6180 * gdbtypes.c (append_composite_type_field): New function.
6181 (init_composite_type): New function.
6182 * gdbtypes.h (append_composite_type_field): Declare.
6183 (init_composite_type): Ditto.
6185 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
6187 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
6189 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6190 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6191 structure returning convention for SYSV ABI case, but not
6192 for GNU/Linux, FreeBSD, or NetBSD.
6194 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
6196 * symtab.h (lookup_block_symbol): Add mangled_name argument
6199 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6200 with new mangled_name argument.
6201 * linespec.c (decode_line_1): Likewise.
6202 * valops (value_of_this): Likewise.
6203 * symtab.c (lookup_transparent_type): Likewise.
6204 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6205 (lookup_symbol): If we are given a mangled name, pass it down
6206 to lookup_symbol_aux.
6207 (lookup_block_symbol): If we are given a mangled name to check
6208 against, only return symbols which match it.
6210 2002-03-22 Christopher Faylor <cgf@redhat.com>
6212 * win32-nat.c (child_create_inferior): Check for proper shell to use
6213 here, in case the user changes it on the fly.
6214 (_initialize_inftarg): Remove shell path considerations.
6216 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6218 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6219 for gdbarch_max_register_raw_size and max_register_virtual_size.
6220 Adjust copyright year.
6222 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6224 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6225 in a function to cover the entire beginning of the function
6226 as well if it does not already.
6228 2002-03-21 Tom Rix <trix@redhat.com>
6230 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6231 (rs6000_ptrace64): Renamed from ptrace64.
6233 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6235 * gdbserver/remote-utils.c (remote_open): Don't call
6236 getprotobyname, we're all using TCP here so just use
6238 * gdbserver/gdbreplay.c (remote_open): Ditto.
6240 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6242 * regcache.c (_initialize_regcache): No need to call
6243 build_regcache() at this time; it gets called whenever
6244 the gdbarch changes.
6246 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6248 * sparc-nat.c: Include sys/param.h where possible.
6250 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6253 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6254 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6255 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6257 * stabsread.c (rs6000_builtin_type): Likewise.
6258 (read_sun_floating_type): Likewise.
6260 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6262 * stabsread.c (read_member_functions): Remove skip code for duplicate
6263 constructor/destructor methods. Use standard parsing for these
6264 methods and just do not chain them to the list of methods after
6267 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6269 * coffread.c: Remove redundant static declarations. Replace
6270 occurrences of `PTR' with `void *'.
6271 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6272 * top.h (quit_cover): Likewise.
6273 * defs.h (catch_errors): Likewise.
6275 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6277 * defs.h (XMALLOC): Define.
6278 * gdb-events.sh (XMALLOC): Delete macro.
6279 * gdb-events.c, gdb-events.h: Regenerate.
6280 * gdbarch.sh (XMALLOC): Delete macro.
6281 * gdbarch.c: Regenerate.
6282 * serial.c (XMALLOC): Delete macro.
6283 * ui-file.c (XMALLOC): Ditto.
6284 * ser-unix.h (XMALLOC): Ditto.
6285 * sh-tdep.c (XMALLOC): Ditto.
6286 * ui-out.c (XMALLOC): Ditto.
6287 * utils.c (XMALLOC): Ditto.
6288 * i386-tdep.c (XMALLOC): Ditto.
6289 * gdb-events.c (XMALLOC): Ditto.
6290 * d10v-tdep.c (XMALLOC): Ditto.
6291 * cli-out.c (XMALLOC): Ditto.
6293 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6294 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6295 * ui-file.c, ui-out.c: Ditto.
6297 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6299 * command.h (struct cmd_list_element): Add field context.
6300 (set_cmd_context, get_cmd_context): Declare.
6301 * cli/cli-decode.h: Ditto.
6302 * cli/cli-decode.c (get_cmd_context): New function.
6303 (set_cmd_context): New function.
6304 (add_cmd): Initialize context.
6305 Part of fixing PR gdb/145 and PR gdb/146.
6307 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6309 * cli/cli-decode.c (cmd_type): New function.
6310 * command.h (cmd_type): Declare.
6311 * infrun.c (set_schedlock_func): Call function cmd_type.
6312 * kod.c (kod_set_os): Call cmd_type.
6313 * cris-tdep.c (cris_version_update): Use function cmd_type.
6314 (cris_mode_update, cris_abi_update): Ditto.
6316 * command.h: (execute_cmd_post_hook): Declare.
6317 (execute_cmd_pre_hook): Declare.
6318 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6319 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6320 functions. Execute pre/post hook while ensuring that afterwords
6322 * top.c (execute_command): Use execute_cmd_post_hook, and
6323 execute_cmd_pre_hook to execute pre/post commands.
6324 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6326 (hook_stop_stub): Call execute_cmd_pre_hook.
6328 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6330 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6331 set'' and this leads to a core dump. Move xstrdup of
6332 operating_system to after check that it is not NULL.
6334 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6336 * kod.c (kod_set_os): Remove unnecessary check that
6337 ``command->type'' is set_cmd.
6339 * valprint.c (set_input_radix): Use input_radix.
6340 (set_output_radix): Use output_radix.
6341 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
6344 2002-03-16 Andrew Cagney <ac131313@redhat.com>
6346 * value.h (struct value): Delete field ``substring_addr''. Change
6347 aligner fields to force_doublest_align, force_longest_align,
6348 force_core_addr_align and force_pointer_aligh.
6350 * value.h (struct value): Fix typo in above change.
6352 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6354 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
6355 to fix internal_error from ``maintenance print architecture''.
6357 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6359 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
6360 for gcc versions after gcc-2.8.1.
6362 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6364 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
6365 for method resolution. Restore adjustment of ``this'' pointer after
6366 calling value_struct_elt, which was accidentally removed during the
6369 2002-03-15 Andrew Cagney <ac131313@redhat.com>
6371 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
6373 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
6375 * value.h (value_of_register): Update.
6377 2002-03-14 Richard Henderson <rth@redhat.com>
6379 * configure.in: Detect declaration for canonicalize_file_name.
6380 * utils.c (canonicalize_file_name): Declare, if needed.
6381 (gdb_realpath): Prefer realpath if available and usable.
6382 * config.in, configure: Rebuild.
6384 2002-03-14 Richard Henderson <rth@redhat.com>
6386 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
6387 a constant array bound.
6389 * MAINTAINERS: Add myself to write-after-approval.
6391 2002-03-14 Michael Snyder <msnyder@redhat.com>
6393 * symfile.c (syms_from_objfile): Return immediately if no syms.
6394 (symbol_file_add): Return immediately if no syms.
6395 (find_sym_fns): Return immediately if no syms.
6397 2002-03-13 Michal Ludvig <mludvig@suse.cz>
6399 * gdbserver/remote-util.c (remote_open): Print remote-side's
6400 IP address when remote debugging over the network.
6402 2002-03-12 David O'Brien <obrien@FreeBSD.org>
6404 * config/sparc/fbsd.mh: Fix copyright.
6405 * config/sparc/fbsd.mt: Likewise.
6407 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
6409 * MAINTAINERS: Fix typo in name of gdb warnings option.
6410 (x86-64): Fix formating so that this can be parsed by awk.
6412 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6414 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
6415 * defs.h: Include "gdb/signals.h".
6416 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6418 2002-03-10 Michal Ludvig <mludvig@suse.cz>
6420 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
6421 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
6424 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
6425 Don Howard <dhoward@redhat.com>
6427 * mips-tdep.c (ST0_FR): Define.
6428 (mips2_fp_compat): New function, temporarily disabled.
6429 (mips_read_fp_register_single): New function.
6430 (mips_read_fp_register_double): New function.
6431 (mips_print_register): Use them.
6432 (do_fp_register_row): Likewise.
6434 2002-03-09 Andrew Cagney <ac131313@redhat.com>
6436 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
6439 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6441 * stabsread.c (read_member_functions): Fix is_stub test for
6442 static member functions, improve comment.
6444 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6446 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
6447 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
6448 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
6449 commands that set boolean values.
6450 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
6451 (arm_rdi_resume): Always initialize PC.
6452 (arm_rdi_open): Don't use rslt as a boolean.
6453 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
6454 (arm_rdi_fetch_registers, arm_rdi_store_registers)
6455 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
6456 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
6458 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
6460 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
6461 * configure: Rebuilt.
6463 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6465 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
6466 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
6468 2002-03-06 Andrew Cagney <ac131313@redhat.com>
6470 * cli/cli-decode.c (set_cmd_completer): New function.
6471 * command.h (set_cmd_completer): Declare.
6472 * cli/cli-decode.h (set_cmd_completer): Ditto.
6474 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
6475 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6476 * win32-nat.c (_initialize_inftarg): Ditto.
6477 * remote-rdi.c (_initialize_remote_rdi): Ditto.
6478 * proc-api.c (_initialize_proc_api): Ditto.
6479 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
6480 * source.c (_initialize_source): Ditto.
6481 * exec.c (_initialize_exec): Ditto.
6482 * solib.c (_initialize_solib): Ditto.
6483 * top.c (init_main): Ditto.
6484 * tracepoint.c (_initialize_tracepoint): Ditto.
6485 * symfile.c (_initialize_symfile): Ditto.
6486 * printcmd.c (_initialize_printcmd): Ditto.
6487 * infcmd.c (_initialize_infcmd): Ditto.
6488 * corefile.c (_initialize_core): Ditto.
6490 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6492 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
6494 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6496 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
6498 2002-03-05 Andrew Cagney <ac131313@redhat.com>
6500 * NEWS: Update headings, 5.2 has branched.
6502 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
6504 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
6505 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
6506 (register_addr, REGISTER_RAW_SIZE): Likewise.
6507 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
6508 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
6510 2002-03-03 Michal Ludvig <mludvig@suse.cz>
6512 * MAINTAINERS (x86-64): Add myself.
6513 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
6514 changed value_ptr -> struct value *
6516 2002-03-01 David O'Brien <obrien@FreeBSD.org>
6518 * configure.host (sparc64-*-freebsd): Add.
6519 * configure.tgt: Likewise.
6520 * config/sparc/fbsd.mh: New file.
6521 * config/sparc/fbsd.mt: Likewise.
6522 * config/sparc/nm-fbsd.h: Likewise.
6523 * config/sparc/tm-fbsd.h: Likewise.
6525 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
6527 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
6528 regformats/reg-s390x.dat.
6530 2002-03-01 Andrew Cagney <ac131313@redhat.com>
6532 * utils.c: Add FIXME explaining true/false problem.
6534 2002-02-28 Andrew Cagney <ac131313@redhat.com>
6536 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
6538 2002-02-28 Michael Chastain <mec@shout.net>
6540 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
6542 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
6544 * gdbserver/linux-s390-low.c: New file.
6545 * regformats/reg-s390.dat: New file.
6546 * regformats/reg-s390x.dat: New file.
6547 * gdbserver/configure.srv: Add S/390.
6548 * gdbserver/Makefile.in: Add S/390.
6549 * configure.tgt: Enable gdbserver for S/390.
6551 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
6553 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
6554 first line of the doc string for "info dos", except at the end of
6555 the sentence, since the short help stops at the first period.
6557 2002-02-28 Jason Merrill <jason@redhat.com>
6559 * dwarf2read.c (dwarf_cfi_name): Add new codes.
6561 2002-02-27 Fred Fish <fnf@redhat.com>
6563 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
6564 comment (dumy -> dummy).
6566 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6568 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
6570 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
6572 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
6574 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6576 * gdbserver/acconfig.h: New file.
6577 * gdbserver/i387-fp.c: New file.
6578 * gdbserver/i387-fp.h: New file.
6579 * gdbserver/linux-x86-64.c: New file.
6580 * regformats/reg-x86-64.dat: New file.
6581 * configure.tgt: Add x86_64-*-linux* gdbserver support.
6582 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
6583 * gdbserver/configure.in: Add support for regsets.
6584 * gdbserver/config.in: Regenerate.
6585 * gdbserver/configure: Regenerate.
6586 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
6587 * gdbserver/linux-low.h: New file.
6588 * gdbserver/linux-low.c: Include "linux-low.h". Add support
6590 * gdbserver/linux-arm-low.c: Include "linux-low.h".
6591 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
6592 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
6593 * gdbserver/linux-mips-low.c: Include "linux-low.h".
6594 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
6595 * gdbserver/linux-sh-low.c: Include "linux-low.h".
6596 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
6597 "i387-fp.h". Add PTRACE_GETREGS and friends.
6598 * gdbserver/regcache.c (supply_register): New function.
6599 (supply_register_by_name): New function.
6600 (collect_register): New function.
6601 (collect_register_by_name): New function.
6603 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6605 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
6606 (config.status): Add configure.srv dependency.
6607 (server_h): Add config.h dependency.
6609 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
6611 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
6612 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
6613 * gdbserver/configure.srv: Change i386-*-linux* to use
6616 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6618 * x86-64-tdep.c: Re-indent. Update copyright date.
6620 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6622 From Michal Ludvig <mludvig@suse.cz>:
6623 * x86-64-tdep.c (value.h): Delete.
6624 (gdb_assert.h): Include.
6625 (x86_64_register_convert_to_virtual,
6626 x86_64_register_convert_to_raw ): Add check which lets only
6627 floating-point values to be converted.
6628 (value_push): Delete.
6629 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
6630 (i386_gdbarch_init): Number of register_bytes fixed.
6632 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6634 * MAINTAINERS: Add x86-64 target.
6636 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6638 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
6639 * osfsolib.c (solib_map_sections): Ditto.
6640 * irix5-nat.c (solib_map_sections): Ditto.
6641 * corelow.c (gdb_check_format): Ditto.
6642 * symfile.c (symfile_bfd_open): Ditto.
6643 * solib.c (solib_map_sections): Ditto.
6646 2002-02-26 Andrew Cagney <ac131313@redhat.com>
6648 * remote.c (_initialize_remote): By default, disable ``e'' and
6649 ``E'' step out-of-range packets.
6651 2002-02-26 Andreas Schwab <schwab@suse.de>
6653 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
6654 m68k_linux_frame_saved_pc.
6655 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
6657 (SIGCONTEXT_PC_OFFSET): Remove.
6658 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
6659 m68k_linux_sigtramp_saved_pc): New functions.
6660 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
6661 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
6662 (UCONTEXT_PC_OFFSET): Define.
6663 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
6664 non-RT and RT signal trampolines.
6666 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
6668 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
6669 (TARGET_NBPG, STACK_END_ADDR): Delete
6670 (VARIABLES_INSIDE_BLOCK): Delete.
6672 2002-02-25 Andrew Cagney <ac131313@redhat.com>
6674 * utils.c (perror_with_name): Make string parameter constant.
6675 (print_sys_errmsg): Ditto.
6677 * defs.h (perror_with_name): Update.
6678 (print_sys_errmsg): Update.
6681 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
6683 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
6684 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
6686 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6688 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
6689 if it already matches the current architecture from the exec file.
6690 Include arch-utils.h for gdbarch_info_init prototype.
6691 * Makefile.in (rs6000-nat.o): Update dependencies.
6693 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
6695 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
6696 list of exported variables.
6698 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
6700 * gdbserver/configure.srv: New file.
6701 * gdbserver/configure.in: Use configure.srv instead
6702 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
6704 * gdbserver/configure: Regenerated.
6705 * gdbserver/terminal.h: New file.
6706 * gdbserver/Makefile.in: Update for configure changes. Remove
6707 more unneeded include paths.
6709 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6711 From wiz at danbala:
6712 * config/sparc/tm-sp64.h: Fix grammar and typos.
6715 2002-02-24 Andrew Cagney <ac131313@redhat.com>
6717 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
6718 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
6719 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
6720 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
6721 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
6722 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
6723 * s390-tdep.c: Ditto.
6724 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
6725 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
6726 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
6727 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
6728 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
6729 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
6730 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
6731 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
6732 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
6733 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
6736 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6738 * lin-thread.c: Delete file.
6739 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
6740 to gdb_proc_service.h.
6741 * configure: Re-generate.
6743 * ocd.c (ocd_open): Do not try to open the "ocd" device.
6744 * serial.c (serial_open): Delete check for "ocd".
6747 * Makefile.in (linux-thread.o): Delete target.
6748 * linux-thread.c: Delete file.
6750 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
6751 renamed SH files to be consistent.
6753 * symtab.c (sort_search_symbols): Use xfree.
6755 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6757 * arm-linux-tdep.c (arm_linux_init_abi): Register
6758 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
6759 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
6760 definition with undef, since we don't want the sysvr4 definition.
6761 (SKIP_TRAMPOLINE_CODE): Likewise.
6763 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6765 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
6767 * configure.in: (AC_CHECK_FUNCS) Added test for
6768 canonicalize_file_name Regenerated.
6769 * config.in, configure: Regenerated.
6770 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
6771 defined use canonicalize_file_name.
6773 2002-02-23 Michael Chastain <mec@shout.net>
6775 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
6777 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6779 * README: Remove references to cygnus.com.
6780 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
6781 dot com'' form. Remove references to cygnus.com and sourceware.
6783 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6785 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
6786 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
6787 1003.1-2001 no longer allows "head -1".
6788 * gdb/Makefile.in (version.c): Likewise.
6789 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
6790 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
6791 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
6793 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6795 * cli/cli-decode.c (cmd_cfunc_eq): New function.
6796 * command.h (cmd_cfunc_eq): Declare.
6797 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
6799 * cli/cli-cmds.h (is_complete_command): Change parameter to a
6800 ``struct cmd_list_element *''.
6801 * cli/cli-cmds.c (is_complete_command): Update. Use
6803 * top.c (execute_command): Pass the command to
6804 is_complete_command.
6805 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
6807 2002-02-23 Andrew Cagney <ac131313@redhat.com>
6809 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
6810 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
6811 architecture defines.
6812 * s390-tdep.c (s390_gdbarch_init): Likewise.
6814 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6816 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
6817 (arm_linux_push_arguments): Likewise.
6818 (arm_linux_init_abi): Register them. Also register linux-specific
6820 (find_minsym_and_objfile): Use strcmp, not STREQ.
6821 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
6822 (arm_linux_call_dummy_words): Delete declaration.
6823 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
6824 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
6826 (LOWEST_PC): Delete.
6828 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6830 * maint.c (print_section_info): Do not prepend `0x' to filepos
6831 output, it will be handled by local_hex_string_custom.
6833 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
6835 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
6836 (store_newfpe_double, store_newfpe_extended, store_fpregister)
6837 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
6839 2002-02-22 Jim Blandy <jimb@redhat.com>
6841 Indicate that the bcache functions don't change the strings
6843 * bcache.h (bcache, hash): Add `const' keywords to declarations.
6844 * bcache.c (bcache, hash): Add `const' keywords to definitions.
6846 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
6848 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
6850 2002-02-21 Christopher Faylor <cgf@redhat.com>
6852 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
6853 find the complete path to a loaded DLL.
6855 2002-02-21 Fred Fish <fnf@redhat.com>
6857 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
6858 that marks the end of the range of a function, enter a line number
6859 entry that has a line number of zero and a PC offset that matches
6860 the end of the function. This starts a range of PC's for which no
6861 line number information is known.
6862 * symtab.c (find_pc_sect_line): If our best fit is in a range of
6863 PC's for which no line number info is found (line number is zero)
6864 then we didn't find any valid line information.
6865 * symtab.h: Document use of zero line number entry.
6867 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
6869 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
6870 (have_ptrace_getvrregs): Define for run time checks.
6871 (gdb_vrregset_t): New type for Altivec register handling.
6872 (fetch_register, store_register): Fetch/store altivec register
6874 (fetch_altivec_register, store_altivec_register): New functions.
6875 (supply_vrregset, fill_vrregset): New functions.
6876 (fetch_altivec_registers, store_altivec_registers): New functions.
6877 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
6880 2002-02-21 Jiri Smid <smid@suse.cz>
6882 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
6884 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6886 * Makefile.in (armnbsd-nat.o): Update dependencies.
6887 * armnbsd-nat.c (supply_gregset): New function. Common code to
6888 supply the integer register set.
6889 (supply_fparegset): New function. Similar for FPA registers.
6890 (fetch_regs, fetch_fp_regs): Use them.
6891 (fetch_core_registers): Likewise.
6892 (fetch_elfcore_registers): New function.
6893 (arm_netbsd_elfcore_fns): New core-file type specification.
6894 (_initialize_arm_netbsd_nat): Register it.
6896 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
6898 * armnbsd-nat.c: Include gdbcore.h.
6899 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
6900 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
6901 'void' to declaration, to shut up ARI.
6902 (fetch_core_registers): Make static. Rewrite using supply_register.
6903 (arm_netbsd_core_fns): New core-file type specification.
6904 (_initialize_arm_netbsd_nat): New function.
6906 2002-02-21 Christopher Faylor <cgf@redhat.com>
6908 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
6911 2002-02-20 Christopher Faylor <cgf@redhat.com>
6913 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
6916 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6918 * jv-exp.y (parse_number): Change type of implicit longs
6919 to builtin_type_uint64.
6921 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6923 * gdbserver/linux-low.c (mywait): Change argument to waitpid
6924 to be an integer instead of a `union wait'.
6926 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6928 * mips-linux-nat.c: Call the operating system GNU/Linux.
6929 * mips-linux-tdep.c: Likewise.
6930 * mips-tdep.c: Likewise.
6932 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6935 * jv-exp.y (parse_number): Handle 64-bit integers.
6937 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6939 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
6940 AC_STDC_HEADERS to AC_HEADER_STDC.
6941 * gdbserver/configure: Regenerated.
6943 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6945 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
6947 * sparc-tdep.c (get_longjmp_target): Likewise.
6949 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
6951 * News: Add news about ARM and Multi-arch. Mention the new target
6954 2002-02-19 Jim Blandy <jimb@redhat.com>
6956 * stabsread.c (error_type_complaint): Improve error message.
6958 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
6960 * gdbserver/README: Update documentation.
6961 * gdbserver/configure.in: Update configury to match documentation.
6962 * gdbserver/Makefile.in: Likewise.
6963 * gdbserver/configure: Regenerated.
6964 * gdbserver/aclocal.m4: New file, generated by aclocal.
6965 * gdbserver/config.in: New file, generated by autoheader.
6967 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6969 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
6972 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6974 * arm-tdep.h (enum arm_float_model): New enum.
6975 (struct gdbarch_tdep): Add fp_model.
6976 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
6977 up floating-point conversions until we know the floating-point model
6978 in use by the inferior. Don't complain about being unable to
6979 determine the ABI of the inferior when we don't have one.
6980 (arm_extract_return_value): Support different floating-point models.
6981 (arm_store_return_value): Likewise.
6982 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
6984 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
6986 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6988 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6989 of ``current_gdbarch''.
6991 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6993 * armnbsd-nat.c : ANSIfy all function declarations.
6994 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6995 (fetch_inferior_registers): Re-implement in terms of above.
6996 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6997 (store_inferior_registers): Re-implement in terms of above.
6999 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7001 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
7003 * arm-linux-tdep.c: Likewise.
7004 * config/arm/tm-linux.h: Likewise.
7006 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7008 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7009 * config/arm/nbsd.mt (TM_FILE): Delete.
7010 * config/arm/tm-nbsd.h: Delete.
7012 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7014 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7015 Initialize CALL_DUMMY_LENGTH.
7017 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7019 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7021 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
7022 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
7023 defines one thing and that is incorrect for this port.
7024 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7026 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7028 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7030 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7032 * win32-nat.c (display_selector): New function. Displays information
7033 about the information returned by GetThreadSelectorEntry API function.
7034 (display_selectors): New function. Displays the infomation of
7035 the selector given as argument, or of CS, DS ans FS selectors
7036 if no argument is given.
7037 ( _initialize_inftarg): Add "w32" as info prefix command.
7038 Add "info w32 selector" as command calling display_selectors.
7040 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7042 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7043 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7046 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7048 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7050 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7052 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7053 (arm_fix_call_dummy): Call it.
7054 (arm_call_dummy_breakpoint_offset): Delete.
7055 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7056 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7058 2002-02-18 Andrew Cagney <ac131313@redhat.com>
7060 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7061 Default to func_frame_chain_valid.
7062 * gdbarch.h, gdbarch.c: Re-generate.
7063 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7065 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
7067 * ppc-linux-nat.c: Update copyright.
7068 (fetch_register, store_register): Add tid parameter, don't compute
7070 (fetch_ppc_registers, store_ppc_registers): Add tid
7071 parameter. Pass it along to callees.
7072 (fetch_inferior_registers, store_inferior_registers): Compute tid
7073 here, and pass it to calleed functions.
7074 (fill_gregset, supply_fpregset): Clean up formatting.
7076 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7078 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7079 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7081 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7083 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7084 * gdbarch.c gdbarch.h: Regenerate.
7085 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7087 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7088 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7089 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7091 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7092 * arm-tdep.c (arm_get_longjmp_target): New function.
7093 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7094 this to a positive value register arm_get_longjmp_target as the
7096 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7097 (arm_linux_init_abi): Set up longjmp description in tdep.
7098 * armnbsd-nat.c (get_longjmp_target): Delete.
7099 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7100 description in tdep.
7101 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7102 (get_longjmp_target): Delete declaration.
7103 (GET_LONGJMP_TARGET): Delete.
7104 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7105 (GET_LONGJMP_TARGET): Delete.
7107 2002-02-17 Kevin Buettner <kevinb@redhat.com>
7109 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7110 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7111 of ``current_gdbarch''.
7113 2002-02-17 Tom Tromey <tromey@redhat.com>
7115 * cli/cli-cmds.c (compare_strings): New function.
7116 (complete_command): Only print each unique item once.
7117 * completer.h (complete_line): Declare.
7118 * completer.c (complete_line): New function.
7119 (line_completion_function): Use it.
7121 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7123 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7124 * gdbarch.h, gdbarch.c: Re-generate.
7126 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7128 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7130 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7132 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7133 * valops.c (value_arg_coerce): Don't take the address of a reference
7134 to convert an argument to a reference.
7136 2002-02-15 Christopher Faylor <cgf@redhat.com>
7138 * win32-nat.c (get_image_name): New function.
7139 (handle_load_dll): Use get_image_name function.
7140 (get_child_debug_event): Avoid registering debug events until possibly
7141 execed process is started.
7142 (child_create_inferior): Allow invocation via shell so that command
7143 line redirection, etc. works ok.
7144 (_initialize_inftarg): Add new command: "set shell" to control whether
7145 a shell is used to start a process.
7147 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7149 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7150 instead of find_register_by_number.
7151 (cannot_store_register): Likewise.
7153 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7155 * dwarf2read.c: Replace fprintf (stderr, ...) by
7156 fprintf_unfiltered (gdb_stderr, ...).
7158 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7160 * gdbserver/gdbserver.1: Document --attach.
7162 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7164 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7166 * arm-tdep.c (arm_default_arm_le_breakpoint)
7167 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7168 (arm_default_thumb_be_breakpoint): New. Initialize them from
7169 traditional breakpoint defines.
7170 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7171 (arm_gdbarch_init): Initialize new breakpoint variables.
7172 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7173 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7174 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7175 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7177 (arm_netbsd_init_abi_common): ... here; new function.
7178 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7179 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7180 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7181 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7183 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7185 * arm-tdep.h (enum arm_abi): New enum.
7186 (struct gdbarch_tdep): New structure.
7187 (LOWEST_PC): Provide a default.
7188 (arm_gdbarch_register_os_abi): Declare new function.
7189 * arm-tdep.c (arm_abi_names): New array.
7190 (process_note_abi_tag_sections): New function.
7191 (get_elfosabi): New function.
7192 (arm_gdbarch_register_os_abi): New function.
7193 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7194 support for that ABI has been built in, then call the appropriate
7195 configuration routine. Use gdbarch_num_regs() to get the number
7197 (arm_dump_tdep): New function.
7198 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7199 place-holder functions.
7200 (_initialize_arm_tdep): Register them.
7201 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7203 * armnbsd-tdep.c: New file.
7204 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7205 * config/arm/nbsd.mt (TDEPFILES): Add it.
7206 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7208 * armnbsd-nat.c: Include regcache.h.
7209 * Makefile.in (armnbsd-nat.o): Update dependency list.
7211 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7213 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7215 * gdbserver/Makefile.in: Fix typos in target rules.
7217 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7219 Fix part of PR gdb/267.
7220 * linespec.c (find_methods): Handle constructors specially for now.
7222 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7224 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7226 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7227 standard_coerce_float_to_double().
7229 2002-02-14 Christopher Faylor <cgf@redhat.com>
7231 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7234 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7236 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7237 find_variant_by_name, because it confuses the multiarch
7238 framework. Return NULL if there isn't an architecture with the
7239 user supplied name, instead of forcing a different one without
7240 recording the change with the multiarch machinery.
7241 (find_variant_by_name): Delete.
7243 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7245 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7246 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7248 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7250 * stack.c (print_frame_info_base): When calling
7251 print_frame_info_listing_hook, set current_source_symtab.
7253 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7255 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7256 and remove unused $(INCLUDE_DIR).
7257 Add regcache.c to OBS.
7258 Add generated register protocol files to clean target.
7259 Update dependencies for new objects, obsolete old target code.
7261 * gdbserver/linux-low.c: Remove all platform-specific code to
7262 new files. Remove various dead code. Update to use regcache
7264 * gdbserver/remote-utils.c (fromhex): Add return statement
7266 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7268 (input_interrupt): Add integer parameter to match prototype
7269 of a signal handler.
7270 (outreg): Use register_data ().
7271 (prepare_resume_reply): Use gdbserver_expedite_regs.
7272 * gdbserver/server.c (main): Dynamically allocate own_buf because
7273 PBUFSIZ is no longer constant. Use registers_to_string () and
7274 registers_from_string ().
7275 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7276 for error (), fatal (), and warning (). Update definition of
7277 PBUFSIZ to use regcache functionality. Add include guard.
7278 * gdbserver/utils.c (fatal): Add missing ``const''.
7279 (warning): New function.
7281 * regformats/regdat.sh: Include "regcache.h" in generated files.
7282 Provide init_registers () function.
7283 * regformats/regdef.h: Add prototype for set_register_cache ().
7286 * gdbserver/linux-arm-low.c: New file.
7287 * gdbserver/linux-i386-low.c: New file.
7288 * gdbserver/linux-ia64-low.c: New file.
7289 * gdbserver/linux-m68k-low.c: New file.
7290 * gdbserver/linux-mips-low.c: New file.
7291 * gdbserver/linux-ppc-low.c: New file.
7292 * gdbserver/linux-sh-low.c: New file.
7294 * gdbserver/regcache.c: New file.
7295 * gdbserver/regcache.h: New file.
7297 * gdbserver/low-linux.c: Removed obsolete file.
7299 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7301 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7302 * config/i386/linux.mt: Likewise.
7303 * config/ia64/linux.mt: Likewise.
7304 * config/m68k/linux.mh: Likewise.
7305 * config/powerpc/linux.mh: Likewise.
7306 * config/mips/linux.mt: Likewise.
7308 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7310 * config/i386/i386lynx.mh: Mark gdbserver variables
7311 as (currently) obsolete for this target.
7312 * config/i386/nbsd.mt: Likewise.
7313 * config/i386/nbsdelf.mt: Likewise.
7314 * config/m32r/m32r.mt: Likewise.
7315 * config/m68k/m68klynx.mh: Likewise.
7316 * config/m68k/nbsd.mt: Likewise.
7317 * config/m68k/sun3os4.mh: Likewise.
7318 * config/mips/vr5000.mt: Likewise.
7319 * config/ns32k/nbsd.mt: Likewise.
7320 * config/pa/hppabsd.mh: Likewise.
7321 * config/pa/hppaosf.mh: Likewise.
7322 * config/powerpc/nbsd.mt: Likewise.
7323 * config/rs6000/rs6000lynx.mh: Likewise.
7324 * config/s390/s390.mt: Likewise.
7325 * config/s390/s390x.mt: Likewise.
7326 * config/sparc/sparclynx.mh: Likewise.
7327 * config/sparc/sun4os4.mh: Likewise.
7328 * config/i386/x86-64linux.mt: Likewise.
7329 * config/sparc/linux.mh: Likewise.
7331 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7333 * configure.tgt: Configure gdbserver only for known working
7334 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7335 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7336 SUBDIRS if it is configured. Update comment for ${nativefile}.
7337 * configure: Regenerated.
7339 2002-02-13 Michael Snyder <msnyder@redhat.com>
7341 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
7343 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
7344 (default_gcore_mach): Just return 0, work around a problem in bfd.
7345 (default_gcore_target): OK to return NULL if exec_bfd is null.
7346 (make_mem_sec): Use a cast, avoid a warning.
7348 * procfs.c (find_memory_regions_callback): Use a cast instead of
7349 calling host_pointer_to_address (which complains if
7350 sizeof (host pointer) != sizeof (target pointer)).
7351 (procfs_make_note_section): Avoid overflow in psargs string.
7353 * procfs.c (procfs_make_note_section): Make the default
7354 implementation return an error.
7356 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
7358 * procfs.c (procfs_make_note_section): Provide a default definition
7359 (for alpha-dec-osf4.0f). Fix typos.
7361 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
7363 * linux-proc.c: Add include of regcache.h.
7364 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
7366 2002-02-13 Andrew Cagney <ac131313@redhat.com>
7368 From 2002-01-18 Greg McGary <greg@mcgary.org>:
7369 * memattr.c (create_mem_region): Disallow useless empty region.
7370 Regions are half-open intervals, so allow [A..B) [B..C) as
7373 2002-02-13 Michael Chastain <mec@shout.net>
7375 * defs.h: Kill CONST_PTR.
7376 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
7377 * c-lang.c (c_builtin_types): Likewise.
7378 * ch-lang.c (ch_builtin_types): Likewise.
7379 * f-lang.c (f_builtin_types): Likewise.
7380 * language.c (unknown_builtin_types): Likewise.
7381 * m2-lang.c (m2_builtin_types): Likewise.
7382 * p-lang.c (pascal_builtin_types): Likewise.
7383 * scm-lang.c (c_builtin_types): Likewise.
7385 2002-02-13 Keith Seitz <keiths@redhat.com>
7387 * arm-tdep.h (arm_get_next_pc): Add declaration.
7389 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
7391 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
7392 with other related struct-returning functions.
7393 (arm_extract_struct_value_address): New function.
7394 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
7395 initialize float_format, double_format and long_double_format as
7396 appropriate to the endianness of the target.
7397 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
7398 (arm_use_struct_convention): Delete declaration.
7399 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7401 2002-02-13 Keith Seitz <keiths@redhat.com>
7403 * defs.h (core_addr_to_string_nz): New function.
7405 2002-02-13 Mark Kettenis <kettenis@gnu.org>
7407 Apply missing bits of 2002-01-15 patch.
7408 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
7409 (fill_fpregset): Use i387_fill_fsave.
7411 2002-02-12 Keith Seitz <keiths@redhat.com>
7413 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
7414 (core_addr_to_string_nz): New function.
7416 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7418 * arm-linux-nat.c: Really include arm-tdep.h.
7419 * config/arm/tm-linux.h (struct type, struct value): Declare.
7421 2002-02-11 Michael Snyder <msnyder@redhat.com>
7423 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
7424 (gcore section): Ifdef for Solaris and Unixware only.
7425 (procfs_do_thread_registers): Unixware needs one lwpstatus
7426 per thread (not one prstatus or pstatus).
7427 (procfs_make_note_section): Iterate only over kernel threads (lwps),
7428 not over all gdb threads. For unixware, call elfcore_write_pstatus
7429 once before iterating over threads.
7431 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7433 * arm-tdep.h: New file.
7434 * arm-tdep.c: Include arm-tdep.h.
7435 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7436 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7437 (arm_print_float_info, arm_register_type, convert_to_extended)
7438 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7439 (arm_extract_return_value, arm_register_name): Make static.
7440 (arm_software_single_step): Similarly. Fix types in declaration.
7441 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
7442 (arm_store_return_value, arm_store_struct_return): New functions.
7443 (arm_gdbarch_init): Register the above functions. Also register
7444 call_dummy_start_offset, sizeof_call_dummy_words,
7445 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
7446 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
7447 max_register_virtual_size, register_size. Set up
7448 prologue_cache.saved_regs here, rather than ...
7449 (_initialize_arm_tdep): ... here.
7450 * config/arm/tm-arm.h (struct type, struct value): Delete forward
7452 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
7453 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
7454 (arm_print_float_info, arm_register_type, convert_to_extended)
7455 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
7456 (arm_extract_return_value, arm_register_name): Delete declarations.
7457 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
7458 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
7459 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
7460 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
7461 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7462 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
7463 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
7464 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
7465 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
7466 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
7467 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
7468 (arm_get_next_pc): No-longer static -- these are needed by the RDI
7470 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
7471 * remote-rdi.c remote-rdp.c: Likewise.
7472 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
7473 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
7474 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
7477 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
7478 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
7479 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
7480 from non-ARM_ prefixed definitions.
7481 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
7483 * remote-rdi.c remote-rdp.c: Likewise.
7484 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
7486 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
7488 * arm-tdep.c (arm_frameless_function_invocation)
7489 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7490 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7491 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7492 (arm_pop_frame, arm_get_next_pc): Make static.
7493 (arm_gdbarch_init): Register above in gdbarch structure.
7494 (arm_read_fp): Renamed from arm_target_read_fp.
7495 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
7496 * config/arm/tm-arm.h (arm_frameless_function_invocation)
7497 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
7498 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
7499 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
7500 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
7501 (arm_pc_is_thumb_dummy): Delete declarations.
7502 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
7503 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
7504 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
7505 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
7507 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
7509 * symtab.c (compare_search_syms): New function.
7510 (sort_search_symbols): New function.
7511 (search_symbols): Sort symbols after searching rather than
7514 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7516 * NEWS: Linux -> GNU/Linux.
7518 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7520 * gdbarch.sh: For for level one methods, disallow a definition
7521 when partially multi-arched. Add comments explaining rationale.
7522 * gdbarch.h: Re-generate.
7524 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7526 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
7529 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7531 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
7533 * gdbarch.c: Re-generate.
7535 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7537 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
7538 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
7541 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7543 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
7545 (PUSH_ARGUMENTS): Switch to using predefault.
7546 * gdbarch.c: Regenerate.
7548 2002-02-10 Andrew Cagney <ac131313@redhat.com>
7550 * valops.c (PUSH_ARGUMENTS): Delete definition.
7551 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
7552 partial. Default to default_push_arguments.
7553 * gdbarch.h, gdbarch.c: Regenerate.
7555 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7557 * defs.h (throw_exception): Rename return_to_top_level. Update
7559 * utils.c (error_stream, internal_verror, quit): Ditto.
7560 * top.c (throw_exception, catcher): Ditto.
7561 * sparclet-rom.c (sparclet_load): Ditto.
7562 * remote.c (interrupt_query, minitelnet): Ditto.
7563 * remote-sds.c (interrupt_query): Ditto.
7564 * remote-mips.c (mips_error, mips_kill): Ditto.
7565 * ocd.c (interrupt_query): Ditto.
7566 * monitor.c (monitor_interrupt_query): Ditto.
7567 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
7568 * target.h: Update comment.
7570 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
7572 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7574 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
7575 default_double_format.
7576 * gdbarch.h, gdbarch.c: Re-generate.
7577 * findvar.c (floatformat_unknown): Delete variable definition.
7578 * doublest.h (floatformat_unknown): Delete variable declaration.
7580 2002-02-09 Jim Blandy <jimb@redhat.com>
7582 * stabsread.c (read_type): Add code to parse Sun's syntax for
7583 prototyped function types.
7585 2002-02-09 Andrew Cagney <ac131313@redhat.com>
7587 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
7588 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
7590 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7592 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
7593 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
7594 now _initialize_xcoffsolib gets called again and overrides the
7595 commands from solib.c in a native configuration.
7597 2002-02-09 Mark Kettenis <kettenis@gnu.org>
7599 * doublest.c (store_typed_floating): Don't try to return a value.
7602 2002-02-08 Jim Blandy <jimb@redhat.com>
7604 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
7605 is prototyped and has no arguments, print its argument list as
7608 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7610 * MAINTAINERS (write-after-approval): Add myself.
7611 (paper-trail): I've escaped!
7613 2002-02-08 Christopher Faylor <cgf@redhat.com>
7615 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
7617 (_initialize_check_for_gdb_ini): Ditto.
7619 2002-02-08 Martin M. Hunt <hunt@redhat.com>
7621 * win32-nat.c (cygwin_pid_to_str): Fix typo.
7622 xaprintf -> xasprintf.
7624 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
7626 * win32-nat.c: Remove use of printf and sprintf functions.
7628 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
7630 * arm-tdep.c (arm_frame_chain_valid): Make static.
7631 (arm_push_arguments): Likewise.
7632 (arm_gdbarch_init): New function.
7633 (_initialize_arm_tdep): Call it.
7634 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
7635 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
7636 (FRAME_CHAIN_VALID): Delete.
7637 (arm_frame_chain_valid): Delete declaration.
7638 (PUSH_ARGUMENTS): Delete.
7639 (arm_push_arguments): Delete declaration.
7640 (CALL_DUMMY_P): Delete.
7642 2002-02-08 Andrew Cagney <ac131313@redhat.com>
7643 Corinna Vinschen <vinschen@redhat.com>
7645 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
7646 on builtin float types.
7648 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
7650 * utils.c: Include <curses.h> before "bfd.h".
7651 * tui/tui-hooks.c: Likewise.
7652 * tui/tui.c: Likewise.
7653 * tui/tuiCommand.c: Likewise.
7654 * tui/tuiData.c: Likewise.
7655 * tui/tuiDataWin.c: Likewise.
7656 * tui/tuiDisassem.c: Likewise.
7657 * tui/tuiGeneralWin.c: Likewise.
7658 * tui/tuiIO.c: Likewise.
7659 * tui/tuiLayout.c: Likewise.
7660 * tui/tuiRegs.c: Likewise.
7661 * tui/tuiSource.c: Likewise.
7662 * tui/tuiSourceWin.c: Likewise.
7663 * tui/tuiStack.c: Likewise.
7664 * tui/tuiWin.c: Likewise.
7666 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
7668 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
7669 to include space for pseudoregs as well. Update loops accordingly.
7670 (sh_fp_frame_init_saved_regs): Ditto.
7671 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
7673 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7675 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
7676 Add Richard Earnshaw to Arm maintainers.
7678 2002-02-07 Andrew Cagney <ac131313@redhat.com>
7680 * defs.h (warning_begin): Delete declaration.
7682 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
7685 2002-02-07 Michael Snyder <msnyder@redhat.com>
7687 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7688 Logic bug, remove misplaced else.
7690 2002-02-07 Klee Dienes <klee@apple.com>
7692 * fork-inferior.c (fork_inferior): Add '!' to the list of
7693 characters that need to be quoted when building a string for the
7694 shell. Quote '!' specifically with a backslash, since CSH chokes
7695 when trying to evaluate "str!str".
7697 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7699 * rdi-share/host.h: Only provide a typedef for bool if it is not
7702 2002-02-04 Michael Snyder <msnyder@redhat.com>
7704 * breakpoint.h (enum bptype): Add new overlay event bp type.
7705 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
7707 * breakpoint.c (create_internal_breakpoint): New function.
7708 (internal_breakpoint_number): Moved into create_internal_breakpoint.
7709 (create_longjmp_breakpoint): Use create_internal_breakpoint.
7710 (create_thread_event_breakpoint): Ditto.
7711 (create_solib_event_breakpoint): Ditto.
7712 (create_overlay_event_breakpoint): New function.
7713 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
7714 (update_breakpoints_after_exec): Delete and re-initialize
7715 overlay event breakpoints after an exec. Add FIXME comment
7716 about longjmp breakpoint.
7717 (print_it_typical): Ignore overlay event breakpoints.
7718 (print_one_breakpoint): Ditto.
7720 (bpstat_what): Do not stop for overlay event breakpoints.
7721 (delete_breakpoint): Don't delete overlay event breakpoints.
7722 (breakpoint_re_set_one): Delete the overlay event breakpoint.
7723 (breakpoint_re_set): Re-create overlay event breakpoint.
7725 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
7726 (overlay_manual_command): Disable overlay breakpoints.
7727 (overlay_off_command): Disable overlay breakpoints.
7729 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7731 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
7732 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
7733 to here from config/tm-arm.h.
7734 (coff_sym_is_thumb): Make static.
7735 (arm_elf_make_msymbol_special): New function.
7736 (arm_coff_make_msymbol_special): New function.
7737 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
7738 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
7739 (coff_sym_is_thumb): Delete declaration.
7740 (arm_elf_make_msymbol_special): Declare.
7741 (arm_coff_make_msymbol_special): Declare.
7742 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
7743 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
7745 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7747 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
7749 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
7751 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
7752 * gdbarch.c gdbarch.h: Regenerate.
7753 * arch-utils.c (default_print_float_info): New function.
7754 * arch-utils.h (default_print_float_info): Prototype it.
7755 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
7756 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
7757 (PRINT_FLOAT_INFO): Document it.
7759 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
7760 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
7761 (PRINT_FLOAT_INFO): Define.
7763 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7765 * win32-nat.c (_initialize_check_for_gdb_ini):
7766 Add typecast to sprintf argument to suppress a warning.
7768 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
7770 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7771 to allow easier handling of pass state.
7772 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
7773 that gives exception name and address.
7774 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
7775 and set last_sig value to ourstatus->value.sig. Some missing
7777 (child_continue): Correctly report continue_status.
7778 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7779 TARGET_SIGNAL_0 (new default value).
7780 (child_resume): consider sig argument passed to decide if
7781 the exception should be passed to debuggee or not.
7783 2002-02-05 Michael Snyder <msnyder@redhat.com>
7785 * regcache.c (fetch_register): Call target_fetch_register
7786 only if we don't call FETCH_PSEUDO_REGISTER.
7787 (store_register): Call target_store_register only if we
7788 don't call STORE_PSEUDO_REGISTER.
7790 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
7792 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
7793 ELF_MAKE_MSYMBOL_SPECIAL.
7794 * gdbarch.c, gdbarch.h: Regenerate.
7795 * arch-utils.c (default_make_msymbol_special): New function.
7796 * arch-utils.h (default_make_msymbol_special): Export.
7797 * elfread.c (elf_symtab_read): Compile use of
7798 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
7800 * coffread.c (coff_symtab_read): Ditto, for
7801 COFF_MAKE_MSYMBOL_SPECIAL.
7803 2002-02-05 Jim Blandy <jimb@redhat.com>
7805 * solib-svr4.c (svr4_truncate_ptr): New function.
7806 (svr4_relocate_section_addresses): Do the address arithmetic with
7807 the appropriate truncation for target addresses, even when
7808 CORE_ADDR is larger than a target address.
7810 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7812 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
7815 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7817 * gdbserver/linux-low.c (kill_inferior): Remove commented out
7820 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7822 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
7824 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7826 * gdbserver/linux-low.c: Remove unused include files.
7828 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7830 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
7831 (read_inferior_memory): Use it.
7832 (write_inferior_memory): Likewise.
7834 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7836 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
7837 grubbing through sys_errlist.
7839 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
7841 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
7843 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7844 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
7846 2002-02-04 Andrew Cagney <ac131313@redhat.com>
7848 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
7849 (do_sfunc, set_cmd_sfunc): New functions.
7851 * command.h (struct cmd_list_element): Add field func.
7852 * cli/cli-decode.h (struct cmd_list_element): Ditto.
7853 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
7854 * cli/cli-decode.h: Ditto.
7856 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
7857 (help_all, help_cmd_list): Ditto.
7858 (find_cmd, complete_on_cmdlist): Ditto.
7859 * top.c (execute_command): Ditto.
7861 * cli/cli-setshow.c (do_setshow_command): Call func instead of
7864 * infcmd.c (notice_args_read): Fix function signature.
7866 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
7867 * cli/cli-decode.c (add_set_cmd): Ditto.
7868 * utils.c (initialize_utils): Ditto.
7869 * maint.c (_initialize_maint_cmds): Ditto.
7870 * infrun.c (_initialize_infrun): Ditto.
7871 * demangle.c (_initialize_demangler): Ditto.
7872 * remote.c (add_packet_config_cmd): Ditto.
7873 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7874 * cris-tdep.c (_initialize_cris_tdep): Ditto.
7875 * proc-api.c (_initialize_proc_api): Ditto.
7876 * kod.c (_initialize_kod): Ditto.
7877 * valprint.c (_initialize_valprint): Ditto.
7878 * top.c (init_main): Ditto.
7879 * infcmd.c (_initialize_infcmd): Ditto.
7880 * corefile.c (_initialize_core): Ditto.
7881 * arm-tdep.c (_initialize_arm_tdep): Ditto.
7882 * arch-utils.c (initialize_current_architecture): Ditto.
7883 (_initialize_gdbarch_utils): Ditto.
7884 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
7886 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
7887 * wince.c (_initialize_inftarg): Ditto.
7888 * symfile.c (_initialize_symfile): Ditto.
7889 * mips-tdep.c (_initialize_mips_tdep): Ditto.
7890 * language.c (_initialize_language): Ditto.
7891 * arc-tdep.c (_initialize_arc_tdep): Ditto.
7893 2002-02-04 Michael Snyder <msnyder@redhat.com>
7895 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
7897 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7899 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
7900 Add rules for building the register data files.
7902 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7904 * regformats/regdat.sh: Add braces to the definition of
7905 expedite_regs_${arch}.
7907 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
7909 * regformats/regdef.h (struct reg): Add comment describing the
7910 requirements for offset and size fields.
7912 2002-02-04 Andreas Schwab <schwab@suse.de>
7914 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
7915 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
7917 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
7919 * gdbarch.sh (copyright): Update years in generated header.
7920 (SMASH_TEXT_ADDRESS): Add rule.
7921 * gdbarch.h, gdbarch.c: Re-generate.
7922 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
7923 * dbxread.c: Likewise.
7924 * dwarfread.c: Likewise.
7925 * elfread.c: Likewise.
7926 * somread.c: Likewise.
7928 * arm-tdep.c (arm_smash_text_address): New function.
7929 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
7931 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
7933 Add support for hardware watchpoints on win32 native.
7934 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
7935 CONTEXT_DEBUG_REGISTERS.
7936 (dr variable): New variable. Static array containing a local copy
7938 (debug_registers_changed): New variable. Reflects when debug registers
7939 are changed and need to be written to inferior.
7940 (debug_registers_used): New variable. Reflects when any debug register
7941 was set, used when new threads are created.
7942 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
7944 (thread_rec): Set dr array if id is the thread of current_event .
7945 (child_continue, child_resume): Change the debug registers for all
7946 threads if debug_registers_changed.
7947 (child_add_thread): Change the debug registers if debug_registers_used.
7948 * config/i386/cygwin.mh: Add use of i386-nat.o file.
7949 Link nm.h to new nm-cygwin.h file.
7950 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
7951 of hardware registers.
7953 2002-02-03 Andrew Cagney <ac131313@redhat.com>
7955 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
7956 Restore behavour broken by 2002-01-20 Andrew Cagney
7957 <ac131313@redhat.com> IEEE_FLOAT removal.
7959 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7961 * c-valprint.c (c_val_print): Pass a proper valaddr to
7962 cp_print_class_method.
7963 * valops.c (search_struct_method): If there is only one method
7964 and args is NULL, return that method.
7966 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7968 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
7969 accessing tag_name directly.
7971 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7973 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
7974 of accessing tag_name directly.
7976 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
7979 * gdbtypes.c (replace_type): New function.
7980 * gdbtypes.h (replace_type): Add prototype.
7981 * stabsread.c (read_type): Use replace_type.
7983 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
7985 * Makefile.in (memattr.o): Add missing dependencies rule.
7987 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7989 * breakpoint.c (break_at_finish_command): Really export.
7990 (break_at_finish_at_depth_command): Ditto.
7991 (tbreak_at_finish_command): Ditto.
7992 * hppa-tdep.c: Include completer.h.
7993 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7994 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7996 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7998 * utils.c (do_write): New function.
7999 (error_stream): Rewrite combining the code from error_begin and
8001 (verror): Rewrite using error_stream.
8002 (error_begin): Delete function.
8004 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8006 * utils.c (error_begin): Make static.
8007 * defs.h (error_begin): Delete declaration.
8009 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8010 (decode_line_1): Use cplusplus_error instead of error_begin,
8011 cplusplus_hint and return_to_top_level.
8012 * coffread.c (coff_symfile_read): Use error instead of error_begin
8013 and return_to_top_level.
8014 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8016 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8018 * language.h (type_error, range_error): Make string parameter
8020 * language.c (warning_pre_print): Delete extern declaration.
8021 * dwarfread.c (warning_pre_print): Ditto.
8022 * language.c (type_error, range_error): Rewrite to use verror and
8023 vwarning instead of warning_begin.
8025 2002-02-01 Michael Snyder <msnyder@redhat.com>
8027 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8028 (set_ignore_count): Move misplaced comment back where it belongs.
8030 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8032 * command.h (NO_FUNCTION): Delete macro.
8033 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8034 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8035 * tracepoint.c (_initialize_tracepoint): Ditto.
8036 * cli/cli-decode.c (add_set_cmd): Ditto.
8037 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8039 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8041 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8042 Update ``this'' pointer when calling virtual functions.
8044 2002-02-01 Michael Snyder <msnyder@redhat.com>
8046 * breakpoint.c (create_temp_exception_breakpoint): Delete.
8047 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8049 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8051 * regformats/reg-arm.dat: New file.
8052 * regformats/reg-i386.dat: New file.
8053 * regformats/reg-ia64.dat: New file.
8054 * regformats/reg-m68k.dat: New file.
8055 * regformats/reg-mips.dat: New file.
8056 * regformats/reg-ppc.dat: New file.
8057 * regformats/reg-sh.dat: New file.
8058 * regformats/regdef.h: New file.
8059 * regformats/regdat.sh: New file.
8061 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
8063 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8064 (arm_frame_args_address, arm_frame_locals_address): New functions.
8065 (arm_frame_num_args): New function.
8066 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8067 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8068 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8070 2002-01-31 Michael Snyder <msnyder@redhat.com>
8072 * breakpoint.c (break_at_finish_command): Export.
8073 (break_at_finish_at_depth_command): Export.
8074 (tbreak_at_finish_command): Export.
8075 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8076 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8077 "tbreak" commands, which are HPPA specific.
8079 * printcmd.c (disassemble_command): Remove an ancient
8080 artifact of an old merge.
8082 * symfile.h (enum overlay_debugging_state):
8083 Define enum constant values for overlay mode.
8084 * symfile.c (overlay_debugging): Use enums instead of literals.
8085 (overlay_is_mapped, overlay_auto_command,
8086 overlay_manual_command): Ditto.
8088 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8089 breakpoint_here_p, breakpoint_inserted_here_p,
8090 breakpoint_thread_match, bpstat_stop_status,
8091 describe_other_breakpoints, check_duplicates, clear_command):
8092 Coding standard fixes.
8094 * target.c (target_xfer_memory): Add spaces, coding standard.
8095 (do_xfer_memory): Add missing line to trust-readonly
8096 code: check bfd SEC_READONLY flag for section.
8098 2002-01-31 Andrew Cagney <ac131313@redhat.com>
8100 * PROBLEMS: Fix typo, 5.1->5.1.1.
8102 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
8104 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8105 data symbols, since we search based on textlow and texthigh.
8106 (find_pc_sect_symtab): Likewise.
8108 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8110 * defs.h (vwarning): Declare.
8111 * utils.c (vwarning): New function.
8112 (warning): Call vwarning.
8113 (warning_begin): Delete function.
8115 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8116 the warning message.
8117 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8120 2002-01-30 Michael Snyder <msnyder@redhat.com>
8122 * NEWS: Mention "set trust-readonly-sections" command.
8123 Mention generate-core-file command.
8125 2002-01-15 Michael Snyder <msnyder@redhat.com>
8127 * target.c: New command, "set trust-readonly-sections on".
8128 (do_xfer_memory): Honor the suggestion to trust readonly sections
8129 by reading them from the object file instead of from the target.
8130 (initialize_targets): Register command "set trust-readonly-sections".
8132 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8134 * parse.c (target_map_name_to_register): Simplify, search regs and
8135 pseudo-regs using a single loop.
8137 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8139 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8141 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
8143 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8144 * config/i386/i386v42mp.mh: Add i387-nat.o .
8145 * i386v4-nat.c: Include i387-nat.h.
8146 (supply_fpregset): Use i387_supply_fsave.
8147 (fill_fpregset): Use i387_fill_fsave.
8149 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
8151 * arm-tdep.c (arm_call_dummy_words): Define.
8152 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8153 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8154 (CALL_DUMMY_WORDS): Define.
8155 (arm_call_dummy_words): Declare.
8156 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8157 (arm_linux_call_dummy_words): Declare.
8159 2002-01-30 Andreas Schwab <schwab@suse.de>
8161 * m68klinux-nat.c: Fix last change to use regcache_collect
8162 instead of referencing registers[] directly.
8164 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8166 * parse.c (target_map_name_to_register): Delete code wrapped in
8167 #ifdef REGISTER_NAME_ALIAS_HOOK.
8169 2002-01-28 Michael Snyder <msnyder@redhat.com>
8171 * regcache.c (legacy_read_register_gen): Need to be able to
8172 read pseudo-register as well as real register.
8173 (legacy_write_register_gen): Ditto.
8175 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8177 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8178 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8179 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8180 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8181 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8182 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8183 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8184 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8185 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8186 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8187 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8188 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8189 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8190 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8191 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8192 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8193 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8194 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8195 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8196 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8198 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8200 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8201 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8202 (initialize_current_architecture): Update target_byte_order using
8203 information from BFD.
8204 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
8205 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8207 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8209 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8210 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8212 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8213 #ifdef INVALID_FLOAT.
8214 * infcmd.c (do_registers_info): Ditto.
8215 * values.c (unpack_double): Ditto. Add comment.
8217 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8218 already commented out.
8220 2002-01-26 Andreas Schwab <schwab@suse.de>
8222 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8223 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8224 registers and add support for PTRACE_GETREGS.
8226 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8228 GDB 5.1.1 released from 5.1 branch.
8229 * NEWS: Add 5.1.1 news.
8230 * README: Sync with 5.1 branch.
8232 2002-01-23 Fred Fish <fnf@redhat.com>
8234 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8235 stabstring on initial malloc. Reallocing will copy it for us,
8238 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8240 * Makefile.in (hpread_h): Delete.
8241 (HFILES_NO_SRCDIR): Remove hpread.h.
8242 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8243 (hpread.o): Update dependencies.
8244 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8246 * hp-psymtab-read.c: Remove file.
8247 * hp-symtab-read.c: Remove file.
8248 * hpread.h: Remove file.
8250 * hpread.c: Merge all contents of hp-psymtab-read.c,
8251 hp-symtab-read.c and hpread.h into this file, as it was prior to
8254 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8255 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8256 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8257 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8259 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8261 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8262 fill_gregset): Call gdbarch_tdep() just once, assign result to
8263 variable and use that, instead of calling the function several
8266 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8268 * configure.host: Accept sparcv9 as alias for sparc64.
8269 * configure.tgt: Likewise.
8271 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8273 * solib-aix5.c (build_so_list_from_mapfile)
8274 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8275 arguments is not reversed.
8276 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8277 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8279 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8281 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8282 modified version of obsolete sh_fetch_pseudo_register.
8283 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8284 (sh4_register_read): New function.
8285 (sh_pseudo_register_write): New function. Renamed and modified
8286 version of obsolete sh_store_pseudo_register.
8287 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8288 (sh4_register_write): New function.
8289 (sh_gdbarch_init): Remove setting of gdbarch function
8290 fetch_pseudo_register and store_pseudo_register. Remove setting of
8291 register_convert_to_raw, register_convert_to_virtual,
8292 register_convertible.
8293 (sh_sh4_register_convertible): Delete. No longer needed. All is
8294 taken care by architecture specific functions
8295 register_read/register_write.
8296 (sh_sh4_register_convert_to_virtual): Make static.
8297 (sh_sh4_register_convert_to_raw): Ditto.
8299 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8301 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8302 (floatformat_is_nan, floatformat_mantissa): Ditto.
8304 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8305 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8306 builtin_type_ieee_double_little,
8307 builtin_type_ieee_double_littlebyte_bigword,
8308 builtin_type_m68881_ext, builtin_type_i960_ext,
8309 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8310 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8311 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8312 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8314 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8316 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8317 parameter. Set frameless flag if it exists and depended of
8318 whether the scanned function is frameless or not.
8319 (xstormy16_skip_prologue): If function is frameless, return
8320 result of xstormy16_scan_prologue().
8321 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8324 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8326 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8327 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8328 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8329 sh_sh4_register_byte, sh_sh4_register_raw_size,
8330 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8331 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8332 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8333 sh_store_pseudo_register, sh_do_pseudo_register): Call
8334 gdbarch_tdep() just once, assign result to variable and use that,
8335 instead of calling the function several times.
8337 2002-01-20 Mark Kettenis <kettenis@gnu.org>
8339 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
8340 macros instead of LAST_FPU_CTRL_REGNUM.
8341 (store_register): Likewise.
8343 2002-01-21 Jim Blandy <jimb@redhat.com>
8345 * infcmd.c (run_command): Check that the `exec' target layer's BFD
8346 is up-to-date before running the program, not just when a program
8349 2002-01-21 Fred Fish <fnf@redhat.com>
8351 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
8352 when we have found all instructions we are looking for.
8354 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8356 * arm-tdep.c (arm_register_name): New function.
8357 (arm_registers_names): Make static.
8358 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
8359 (arm_register_name): Declare.
8360 (REGISTER_NAME): Use it.
8362 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
8363 Kevin Buettner <kevinb@redhat.com>
8365 Convert arm targets to new FRAME interface.
8366 * arm-tdep.c (struct frame_extra_info): Remove fsr.
8367 (arm_frame_find_save_regs): Delete.
8368 (arm_frame_init_saved_regs): New.
8369 (arm_init_extra_frame_info): Alloacte saved_regs as required.
8370 Allocate extra_info as required. Convert all uses of fsr.regs
8371 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
8373 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
8374 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
8375 (check_prologue_cache, save_prologue_cache): Likewise.
8376 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
8377 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
8378 (FRAME_FIND_SAVED_REGS): Delete.
8379 (arm_frame_find_saved_regs): Delete prototype.
8380 (arm_frame_init_saved_regs): New prototype.
8381 (FRAME_INIT_SAVED_REGS): Define.
8383 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8385 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
8387 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8389 From Jeff Law <law@redhat.com>:
8390 * infttrace.c: Include <sys/pstat.h>.
8391 (child_pid_to_exec_file): Revamp. Use pstat call to get the
8392 exec file if the ttrace equivalent fails.
8394 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8396 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
8397 (closeLogFile): Ditto.
8399 2002-01-20 Michael Chastain <mec@shout.net>
8401 * top.c (print_gdb_version): Bump copyright year to 2002.
8403 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8405 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
8406 Zannoni and Eli Zaretskii.
8408 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8410 * buildsym.c: Update copyright years.
8411 * c-typeprint.c: Likewise.
8412 * dwarf2read.c: Likewise.
8413 * f-typeprint.c: Likewise.
8414 * gdbtypes.c: Likewise.
8415 * gdbtypes.h: Likewise.
8416 * hp-symtab-read.c: Likewise.
8417 * hpread.c: Likewise.
8418 * mdebugread.c: Likewise.
8419 * p-typeprint.c: Likewise.
8421 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8423 * remote-sim.c (gdbsim_open): Simplify code testing the macro
8424 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
8425 byte-order selectable.
8426 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
8427 * arch-utils.c: Ditto.
8428 (set_endian): Ditto.
8429 (set_endian_from_file): Ditto.
8430 * gdbserver/low-sim.c (create_inferior): Ditto.
8431 * gdbarch.sh: Ditto.
8432 * gdbarch.h: Re-generate.
8433 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8434 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
8435 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
8436 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8437 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8438 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
8439 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
8440 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
8442 * config/mips/tm-wince.h: Remove #undef of macro
8443 TARGET_BYTE_ORDER_SELECTABLE.
8444 * config/sh/tm-wince.h: Ditto.
8446 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8448 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
8449 member function fields. Add accessor macro
8450 TYPE_FN_FIELD_ARTIFICIAL.
8451 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
8452 * c-typeprint.c (c_type_print_base): Skip artificial member
8455 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8457 * f-typeprint.c: Delete unused function f_type_print_args.
8458 * p-typeprint.c: Delete unused function pascal_type_print_args.
8460 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8462 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
8463 comment. Add ``artificial'' to ``union field_location''.
8465 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
8467 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
8468 * mdebugread.c (parse_symbol): Likewise.
8469 * stabsread.c (define_symbol): Likewise.
8470 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
8471 initializing TYPE_FIELD_BITPOS to n (obsolete).
8472 (hpread_doc_function_type): Likewise.
8473 * hpread.c (hpread_function_type): Likewise.
8475 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8477 * configure.in (host_makefile_frag): Only require a host makefile
8478 fragment when a native build.
8479 * configure: Re-generate.
8481 2002-01-20 Andrew Cagney <ac131313@redhat.com>
8483 * doublest.h (floatformat_from_type): Declare.
8484 * doublest.c (floatformat_from_type): New function.
8485 (convert_typed_floating): Use.
8487 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
8488 call to function floatformat_from_type.
8490 * gdbarch.sh (IEEE_FLOAT): Delete.
8491 * gdbarch.h, gdbarch.c: Re-generate.
8492 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
8493 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
8494 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
8495 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
8496 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
8497 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
8498 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
8499 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
8500 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
8501 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
8502 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
8503 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
8505 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
8506 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8507 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8508 * sh-tdep.c (sh_gdbarch_init): Ditto.
8509 * mips-tdep.c (mips_gdbarch_init): Ditto.
8510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8511 * cris-tdep.c (cris_gdbarch_init): Ditto.
8513 2002-01-20 Jiri Smid <smid@suse.cz>
8515 * configure.host, configure.tgt: Support x86-64.
8516 * NEWS: Note new target x86-64.
8518 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
8519 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8520 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
8521 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
8522 x86-64-linux-nat.o): Fix dependencies.
8524 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8526 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
8527 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
8528 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
8529 * config/sparc/xm-sun4os4.h: Delete file.
8530 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
8532 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8534 * config/sparc/sparclynx.mh (XM_FILE): Delete.
8535 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
8536 * config/m68k/m68klynx.mh (XM_FILE): Delete.
8537 * config/i386/i386lynx.mh (XM_FILE): Delete.
8538 * config/rs6000/xm-rs6000ly.h: Delete file.
8539 * config/sparc/xm-sparclynx.h: Delete file.
8540 * config/m68k/xm-m68klynx.h: Delete file.
8541 * config/i386/xm-i386lynx.h: Delete file.
8542 * config/xm-lynx.h: Delete file.
8543 * config/djgpp/fnchange.lst: Update.
8545 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8547 * alpha-tdep.c (alpha_register_byte): New function.
8548 (alpha_register_raw_size): Ditto.
8549 (alpha_register_virtual_size): Ditto.
8550 (alpha_skip_prologue_internal): Renamed from
8551 alpha_skip_prologue.
8552 (alpha_skip_prologue): New version that calls
8553 alpha_skip_prologue_internal.
8554 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
8555 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
8556 second argument from alpha_skip_prologue.
8557 (REGISTER_BYTE): Use alpha_register_byte.
8558 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
8559 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
8560 (FRAMELESS_FUNCTION_INVOCATION): Use
8561 generic_frameless_function_invocation_not.
8562 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
8563 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
8565 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8567 * config/mips/xm-news-mips.h: Delete file.
8568 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
8570 * config/m88k/xm-m88k.h: Delete file.
8571 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
8572 * config/m88k/xm-delta88v4.h: Ditto.
8573 * config/m88k/xm-delta88.h: Ditto.
8575 * config/alpha/xm-fbsd.h: Delete file.
8576 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
8578 * config/sparc/xm-sparc.h: Delete file.
8579 * Makefile.in (xm-sun4os4.h): Delete dependency.
8580 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
8581 * config/sparc/xm-sun4os4.h: Ditto.
8582 * config/sparc/xm-linux.h: Ditto.
8584 * config/i386/xm-windows.h: Delete file.
8586 2002-01-19 Andrew Cagney <ac131313@redhat.com>
8588 * utils.c: Include <sys/param.h> for MAXPATHLEN.
8589 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
8591 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8593 * alpha-tdep.c (alpha_call_dummy_words): New.
8594 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
8595 (CALL_DUMMY_P): Define.
8596 (CALL_DUMMY_WORDS): Define.
8597 (SIZEOF_CALL_DUMMY_WORDS): Define.
8599 2002-01-19 Per Bothner <per@bothner.com>
8601 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
8602 isn't NULL, which can happen with some gcj-3.x-produced code.
8604 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8606 * alpha-tdep.c (alpha_register_virtual_type): New function.
8607 (alpha_init_frame_pc_first): Ditto.
8608 (alpha_fix_call_dummy): Ditto.
8609 (alpha_store_struct_return): Ditto.
8610 (alpha_extract_struct_value_address): Ditto.
8611 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
8612 alpha_register_virtual_type.
8613 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
8614 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
8615 alpha_extract_struct_value_address.
8616 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
8617 (INIT_FRAME_PC): Use init_frame_pc_noop.
8618 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
8620 2002-01-19 Mark Kettenis <kettenis@gnu.org>
8622 * i386gnu-nat.c: Include "i386-tdep.h".
8623 (fetch_fpregs): Simplify code dealing with uninitialized floating
8624 point states such that it doesn't require FP7_REGNUM.
8626 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8628 * alpha-tdep.c (frame_extra_info): New.
8629 (alpha_find_saved_regs): Make static. Use
8631 (alpha_frame_init_saved_regs): New function.
8632 (alpha_frame_saved_pc): Use frame->extra_info.
8633 (temp_saved_regs): Don't declare as struct frame_saved_regs.
8634 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
8635 (init_extra_frame_info): Rename to...
8636 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
8637 (alpha_print_extra_frame_info): New function.
8638 (alpha_frame_locals_address): Ditto.
8639 (alpha_frame_args_address): Ditto.
8640 (alpha_pop_frame): Use frame->extra_info.
8641 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
8642 alpha_frame_args_address.
8643 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
8644 (alpha_find_saved_regs): Remove prototype.
8645 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
8646 (EXTRA_FRAME_INFO): Remove.
8647 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
8648 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
8650 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8652 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
8653 (alpha_cannot_fetch_register): Ditto.
8654 (alpha_cannot_store_register): Ditto.
8655 (alpha_register_convertible): Ditto.
8656 (alpha_use_struct_convention): Ditto.
8657 * config/alpha/tm-alpha.h: Update copyright years.
8658 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
8659 (INNER_THAN): Use core_addr_lessthan.
8660 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
8661 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
8662 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
8663 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
8664 (FRAME_CHAIN): Remove unnecessary cast.
8666 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8668 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
8671 2002-01-18 Andrew Cagney <ac131313@redhat.com>
8673 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
8674 * monitor.c, remote-array.c, remote-bug.c: Ditto.
8675 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
8676 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
8677 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
8678 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
8679 * x86-64-linux-nat.c: Ditto.
8681 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8683 * alpha-tdep.c (alpha_register_name): New function.
8684 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
8685 (REGISTER_NAME): Define.
8687 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8689 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
8691 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8693 * alpha-tdep.c: Update copyright years.
8694 (alpha_next_pc): New function.
8695 (alpha_software_single_step): Ditto.
8696 * config/alpha/tm-alpha.h: Add prototype for
8697 alpha_software_single_step.
8699 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
8701 * alphabsd-nat.c: Update copyright years.
8702 (fill_gregset): Use regcache_collect.
8703 (fill_fpregset): Likewise.
8704 (fetch_inferior_registers): Only fetch integer registers
8705 if requested to do so.
8706 (store_inferior_registers): Only store integer registers
8707 if requested to do so.
8709 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8711 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
8712 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
8713 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
8714 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
8715 * config/alpha/fbsd.mh (XDEPFILES): Delete.
8716 * config/arm/linux.mh (XDEPFILES): Delete.
8717 * config/arm/nbsd.mh (XDEPFILES): Delete.
8718 * config/i386/i386dgux.mh (XDEPFILES): Delete.
8719 * config/i386/i386sol2.mh (XDEPFILES): Delete.
8720 * config/i386/i386m3.mh (XDEPFILES): Delete.
8721 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
8722 * config/i386/i386gnu.mh (XDEPFILES): Delete.
8723 * config/i386/fbsd.mh (XDEPFILES): Delete.
8724 * config/i386/i386bsd.mh (XDEPFILES): Delete.
8725 * config/i386/i386sco5.mh (XDEPFILES): Delete.
8726 * config/i386/i386v4.mh (XDEPFILES): Delete.
8727 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
8728 * config/i386/i386sco4.mh (XDEPFILES): Delete.
8729 * config/i386/i386aix.mh (XDEPFILES): Delete.
8730 * config/i386/go32.mh (XDEPFILES): Delete.
8731 * config/i386/cygwin.mh (XDEPFILES): Delete.
8732 * config/i386/i386lynx.mh (XDEPFILES): Delete.
8733 * config/i386/i386mach.mh (XDEPFILES): Delete.
8734 * config/i386/i386v32.mh (XDEPFILES): Delete.
8735 * config/i386/linux.mh (XDEPFILES): Delete.
8736 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
8737 * config/i386/ncr3000.mh (XDEPFILES): Delete.
8738 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
8739 * config/i386/i386sco.mh (XDEPFILES): Delete.
8740 * config/i386/i386v.mh (XDEPFILES): Delete.
8741 * config/i386/nbsd.mh (XDEPFILES): Delete.
8742 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
8743 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
8744 * config/i386/symmetry.mh (XDEPFILES): Delete.
8745 * config/i386/obsd.mh (XDEPFILES): Delete.
8746 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
8747 * config/ia64/linux.mh (XDEPFILES): Delete.
8748 * config/ia64/aix.mh (XDEPFILES): Delete.
8749 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
8750 * config/m68k/dpx2.mh (XDEPFILES): Delete.
8751 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
8752 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
8753 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
8754 * config/m68k/linux.mh (XDEPFILES): Delete.
8755 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
8756 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
8757 * config/m68k/nbsd.mh (XDEPFILES): Delete.
8758 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
8759 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
8760 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
8761 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
8762 * config/m88k/delta88.mh (XDEPFILES): Delete.
8763 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
8764 * config/m88k/m88k.mh (XDEPFILES): Delete.
8765 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
8766 * config/mips/linux.mh (XDEPFILES): Delete.
8767 * config/mips/irix6.mh (XDEPFILES): Delete.
8768 * config/mips/irix5.mh (XDEPFILES): Delete.
8769 * config/mips/irix4.mh (XDEPFILES): Delete.
8770 * config/mips/irix3.mh (XDEPFILES): Delete.
8771 * config/mips/decstation.mh (XDEPFILES): Delete.
8772 * config/mips/mipsm3.mh (XDEPFILES): Delete.
8773 (NATDEPFILES): Move core-aout.o to here.
8774 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
8775 * config/pa/hpux1020.mh (XDEPFILES): Delete.
8776 * config/pa/hppabsd.mh (XDEPFILES): Delete.
8777 * config/pa/hppahpux.mh (XDEPFILES): Delete.
8778 * config/pa/hpux11w.mh (XDEPFILES): Delete.
8779 * config/pa/hppaosf.mh (XDEPFILES): Delete.
8780 * config/pa/hpux11.mh (XDEPFILES): Delete.
8781 * config/powerpc/aix.mh (XDEPFILES): Delete.
8782 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
8783 * config/powerpc/linux.mh (XDEPFILES): Delete.
8784 * config/romp/rtbsd.mh: Rename XDEPFILES.
8785 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
8786 * config/rs6000/aix4.mh (XDEPFILES): Delete.
8787 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
8788 * config/s390/s390.mh (XDEPFILES): Delete.
8789 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
8790 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
8791 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
8792 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
8793 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
8794 * config/sparc/nbsd.mh (XDEPFILES): Delete.
8795 * config/sparc/linux.mh (XDEPFILES): Delete.
8796 * config/vax/vaxult.mh (XDEPFILES): Delete.
8797 * config/vax/vaxult2.mh (XDEPFILES): Delete.
8798 * Makefile.in (DEPFILES): Remove XDEPFILES.
8800 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8802 * utils.c (internal_verror): Fix comments, default is yes not no.
8803 Update queries to match. Default to quit and dump core.
8805 2002-01-17 Andrew Cagney <ac131313@redhat.com>
8807 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
8809 * defs.h, event-top.c, gdbcmd.h: Ditto.
8810 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
8811 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
8812 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
8813 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
8814 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
8815 * mi/mi-main.c:Ditto.
8817 * stack.c, symfile.c: Update copyright.
8819 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8821 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
8822 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
8823 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
8824 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
8826 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
8828 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
8829 * gdbserver/low-lynx.c (myattach): Likewise.
8830 * gdbserver/low-nbsd.c (myattach): Likewise.
8831 * gdbserver/low-sim.c (myattach): Likewise.
8832 * gdbserver/low-sparc.c (myattach): Likewise.
8833 * gdbserver/low-sun3.c (myattach): Likewise.
8835 * gdbserver/low-linux.c (myattach): New function.
8837 * gdbserver/server.c (attach_inferior): New function.
8838 (main): Handle "--attach".
8840 2002-01-16 Andrew Cagney <ac131313@redhat.com>
8842 * MAINTAINERS (language support): Daniel Jacobwitz is C++
8845 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
8847 * c-typeprint.c (is_type_conversion_operator): Add additional
8848 check for non-conversion operators.
8850 2002-01-15 Michael Snyder <msnyder@redhat.com>
8852 * linux-proc.c: Add "info proc" command, a la procfs.c.
8853 (read_mapping): New function, abstract and re-use code.
8854 (linux_find_memory_regions): Use new func read_mapping.
8855 (linux_info_proc_cmd): New function, implement "info proc".
8856 (_initialize_linux_proc): Add new command "info proc".
8858 2002-01-15 Michael Snyder <msnyder@redhat.com>
8860 * symfile.c (generic_load): Use bfd_map_over_sections method
8861 instead of manipulating bfd structure members directly.
8862 (add_section_size_callback): New function, bfd sections callback
8863 used by generic_load.
8864 (load_sections_callback): New function, bfd sections callback
8865 used by generic_load.
8867 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
8869 [Based on work by Jim Blandy]
8870 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
8871 (builtin_type_vec128): Export.
8872 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
8874 (builtin_type_vec128): New builtin type for 128 bit vector
8876 (build_gdbtypes): Initialize builtin_type_v16qi and
8877 builtin_type_v8hi. Create the vec128 register builtin type
8879 (build_builtin_type_vec128): New function.
8880 (_initialize_gdbtypes): Register builtin_type_v16qi and
8881 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
8882 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
8883 AltiVec register to new builtin type.
8885 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
8887 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
8890 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8892 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
8893 CLEAN_UP_REGISTER_VALUE.
8894 * regcache.c (supply_register): Update only call.
8896 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8898 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8899 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8900 a29k-*-vxworks* targets as obsolete.
8902 2002-01-14 Michael Snyder <msnyder@redhat.com>
8904 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
8905 until we can resolve portability issues.
8906 * gregset.h: Remove references to fpxregs.
8907 * gcore.c (gcore_command): Initialize note_sec to NULL.
8909 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8911 * signals.c (target_signal_to_name): Rewrite. Only use
8912 signals[].name when in bounds and non-NULL.
8914 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8916 From Petr Ledvina <ledvinap@kae.zcu.cz>:
8917 * signals.c (target_signal_to_name): Verify that SIG is within the
8918 bounds of the signals array.
8920 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8922 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
8924 2002-01-13 Keith Seitz <keiths@redhat.com>
8926 * stack.c (print_frame_info_base): Print the frame's pc
8927 only if when print_frame_info_listing_hook is not defined.
8929 2002-01-13 Keith Seitz <keiths@redhat.com>
8931 * varobj.c (varobj_set_value): Make sure that there were no
8932 errors evaluating the object before attempting to set its
8934 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
8935 so this offset adjustment is no longer necessary.
8936 (create_child): Don't set the error flag if the child is
8938 (value_of_child): If value_fetch_lazy fails, return NULL
8939 so that callers will be notified that an error occurred.
8940 (c_value_of_variable): Delay check of variable's validity
8941 until later. We actually want all structs and unions to have
8943 Do not return "???" for variables which could not be evaluated.
8944 This error condition must be returned to the caller so that it
8945 can get the error condition from gdb.
8946 (cplus_name_of_child): Adjust index for vptr before figuring
8947 out the name of the child.
8948 (cplus_value_of_child): If a child's (real) parent is not valid,
8949 don't even bother trying to give a value for it. Just return
8950 an error. Change all instances in this function.
8951 (cplus_type_of_child): If our parent is one of the "fake"
8952 parents, we need to get at the type of the real parent, and
8953 derive the child's true type using this information.
8955 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8957 From 2002-01-09 John Marshall <johnm@falch.net>:
8958 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
8959 sources.redhat.com, and tweak some related URLs which had
8960 suffered from linkrot.
8962 2002-01-13 Andrew Cagney <ac131313@redhat.com>
8965 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
8966 structures passed in registers.
8968 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
8970 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
8971 white space which prevented compilation. Reported by DSK
8972 <dsk@student.unsw.edu.au>.
8974 2002-01-11 Michael Snyder <msnyder@redhat.com>
8976 * symfile.c (build_section_addr_info_from_section_tab):
8977 Use bfd access method instead of manipulating bfd directly.
8978 (syms_from_objfile): Ditto.
8979 (simple_overlay_update_1): Ditto.
8980 (simple_overlay_update): Ditto.
8981 (generic_load): Ditto.
8982 (overlay_unmapped_address): FIXME comment, bfd access methods.
8983 (sections_overlap): FIXME comment, bfd access methods.
8984 (pc_in_mapped_range): FIXME comment, bfd access methods.
8985 (pc_in_unmapped_range): FIXME comment, bfd access methods.
8986 (section_is_mapped): FIXME comment, bfd access methods.
8987 (section_is_overlay): FIXME comment, bfd access methods.
8989 * symfile.c (generic_load): Whitespace and long line cleanups.
8990 Remove duplicate variable, change several local variables to
8991 more appropriate data types.
8992 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8994 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8997 * language.c (longest_local_hex_string_custom): Use phex_nz to
8998 convert NUM to a hex string.
9000 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
9002 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9004 Update Copyright year.
9006 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9008 * language.c (longest_raw_hex_string): Delete unused function.
9010 2002-01-11 Petr Sorfa <petrs@caldera.com>
9012 * MAINTAINERS (write-after-approval): Add myself.
9013 * dwarf2read.c (read_tag_string_type): Handling of
9015 (read_tag_string_type): FORTRAN fix to prevent propagation of
9017 (set_cu_language): Handling of DW_LANG_Fortran95
9019 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
9021 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9022 GETPID(inferior_ptid).
9023 (store_inferior_registers): Likewise.
9025 2002-01-10 Jason Merrill <jason@redhat.com>
9027 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9030 2002-01-10 Andrew Cagney <ac131313@redhat.com>
9032 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9033 and bfd/elf32-sh-nbsd.c.
9035 2002-01-10 Michael Snyder <msnyder@redhat.com>
9037 * NEWS: Mention --pid and corefile/proc-id behavior change.
9039 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9040 * gcore.c: Include cli/cli-decode.h instead of command.h.
9042 * main.c (captured_main): Add new command line option "--pid".
9043 If the second command line argument (following the symbol-file)
9044 begins with a digit, try to attach to it before trying to open
9046 (print_gdb_help): Document the "--pid" argument.
9048 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9050 * completer.c (command_completer): New function.
9052 * completer.h <command_completer>: Add prototype.
9054 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9055 completer for the "help" command.
9057 2002-01-09 Jason Merrill <jason@redhat.com>
9059 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9061 2002-01-09 Michael Snyder <msnyder@redhat.com>
9063 * i386-linux-nat.c (fill_fpxregset): Make global.
9064 (store_fpxregset): Ditto.
9066 * gregset.h (gdb_fpxregset_t): Define.
9067 (supply_fpxregset): Prototype.
9068 (fill_fpxregset): Prototype.
9070 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9072 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9074 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9075 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9076 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9078 2002-01-09 Andrew Cagney <ac131313@redhat.com>
9080 * MAINTAINERS: Update target maintainer rules so that any
9081 Maintainer can approve a tested patch for a maintenance-only
9084 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9086 * MAINTAINERS (write-after-approval): Add myself.
9088 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
9091 2002-01-08 Michael Snyder <msnyder@redhat.com>
9093 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9094 real name of the executable, rather than the /proc name.
9096 2002-01-03 Michael Snyder <msnyder@redhat.com>
9098 Implement a "generate-core-file" command in gdb, save target state.
9099 * gcore.c: New file. Implement new command 'generate-core-file'.
9100 Save a corefile image of the current state of the inferior.
9101 * linux-proc.c: Add linux-specific code for saving corefiles.
9102 * target.h (struct target_ops): Add new target vectors for saving
9103 corefiles; to_find_memory_regions and to_make_corefile_notes.
9104 (target_find_memory_regions): New macro.
9105 (target_make_corefile_notes): New macro.
9106 * target.c (update_current_target): Inherit new target methods.
9107 (dummy_find_memory_regions): New place-holder method.
9108 (dummy_make_corefile_notes): New place-holder method.
9109 (init_dummy_target): Initialize new dummy target vectors.
9110 * exec.c (exec_set_find_memory_regions): New function.
9111 Allow the exec_ops vector for memory regions to be taken over.
9112 (exec_make_note_section): New function, target vector method.
9113 * defs.h (exec_set_find_memory_regions): Export prototype.
9114 * procfs.c (proc_find_memory_regions): New function, corefile method.
9115 (procfs_make_note_section): New function, corefile method.
9116 (init_procfs_ops): Set new target vector pointers.
9117 (find_memory_regions_callback): New function.
9118 (procfs_do_thread_registers): New function.
9119 (procfs_corefile_thread_callback): New function.
9120 * sol-thread.c (sol_find_memory_regions): New function.
9121 (sol_make_note_section): New function.
9122 (init_sol_thread_ops): Initialize new target vectors.
9123 * inftarg.c (inftarg_set_find_memory_regions): New function.
9124 Allow to_find_memory_regions vector to be taken over.
9125 (inftarg_set_make_corefile_notes): New function.
9126 Allow to_make_corefile_notes vector to be taken over.
9127 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9128 interface layer if not target_has_execution (may be a corefile).
9129 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9130 * config/sparc/sun4sol2.mh: Ditto.
9131 * config/alpha/alpha-linux.mh: Ditto.
9132 * config/arm/linux.mh: Ditto.
9133 * config/i386/x86-64linux.mh: Ditto.
9134 * config/ia64/linux.mh: Ditto.
9135 * config/m68k/linux.mh: Ditto.
9136 * config/mips/linux.mh: Ditto.
9137 * config/powerpc/linux.mh: Ditto.
9138 * config/sparc/linux.mh: Ditto.
9140 2002-01-07 Michael Snyder <msnyder@redhat.com>
9142 * arm-linux-nat.c: Remove references to regcache.c internal data
9143 (registers[] and register_valid[]).
9145 2002-01-07 Michael Snyder <msnyder@redhat.com>
9147 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9148 so that attaching to a pid will automatically read the process's
9149 symbol file and shlibs.
9150 * Makefile.in: Add rule for linux-proc.o.
9151 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9152 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9153 * config/arm/linux.mh: Ditto.
9154 * config/i386/linux.mh: Ditto.
9155 * config/i386/x86-64linux.mh: Ditto.
9156 * config/ia64/linux.mh: Ditto.
9157 * config/m68k/linux.mh: Ditto.
9158 * config/mips/linux.mh: Ditto.
9159 * config/powerpc/linux.mh: Ditto.
9160 * config/sparc/linux.mh: Ditto.
9162 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9164 * win32-nat.c: Add i386-tdep.h dependency.
9166 2002-01-07 Michael Snyder <msnyder@redhat.com>
9168 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9169 instead of bfd_get_arch_size. Don't bail out just because
9170 there's no exec_bfd.
9172 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9173 * p-valprint.c (pascal_object_print_value): Ditto.
9174 * somread.c (som_symtab_read): Ditto.
9175 * symfile.c (simple_free_overlay_region_table): Ditto.
9176 * valops.c (value_assign): Ditto.
9178 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9179 use tilde_expand and strerror for opening save-tracepoints file.
9181 * thread-db.c (thread_db_new_objfile): Indendation fix.
9183 * infptrace.c (GDB_MAX_ALLOCA): New define.
9184 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
9185 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
9186 can be overridden with whatever value is appropriate to the host).
9187 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9188 alloca to allocate potentially large buffer.
9189 * rs6000-nat.c (child_xfer_memory): Ditto.
9190 * symm-nat.c (child_xfer_memory): Ditto.
9191 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9193 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9195 From Nick Clifton <nickc@redhat.com>
9196 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9198 2002-01-07 Michael Snyder <msnyder@redhat.com>
9200 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9201 Don't use exec_bfd if it's NULL.
9203 2002-01-06 Mark Kettenis <kettenis@gnu.org>
9205 * valops.c (value_arg_coerce): Fix formatting.
9207 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9209 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9212 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9214 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9215 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9216 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9217 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9218 z8k-coff have not been multi-arched. Update z8k-coff build
9221 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9223 * MAINTAINERS: Mark a29k target as obsolete.
9224 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9225 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9227 * NEWS: Note that a29k targets are obsolete.
9228 * a29k-tdep.c: Mark as obsolete.
9229 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9230 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9231 a29k-*-vxworks* targets as obsolete.
9232 * remote-adapt.c: Obsolete.
9233 * remote-eb.c: Obsolete.
9234 * remote-mm.c: Obsolete.
9235 * remote-udi.c: Obsolete.
9236 * config/a29k/a29k-udi.mt: Obsolete.
9237 * config/a29k/a29k.mt: Obsolete.
9238 * config/a29k/tm-a29k.h: Obsolete.
9239 * config/a29k/tm-vx29k.h: Obsolete.
9240 * config/a29k/vx29k.mt: Obsolete.
9242 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9244 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9245 with BFD_ENDIAN_BIG.
9247 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9249 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9250 * configure, config.in: Re-generate.
9251 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9252 * defs.h: Do not include <endian.h>.
9254 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9256 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9257 * config.in: Regenerate.
9258 * configure.in: Update copyright years.
9259 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9260 * configure: Regenerate.
9261 * i386bsd-nat.c: Update copyright years.
9262 (fill_gregset): Use regcache_collect.
9263 (fetch_inferior_registers): Only fetch integer registers
9264 if requested to do so. Add support for XMM registers
9265 using PT_GETXMMREGS.
9266 (store_inferior_registers): Only store integer registers
9267 if requested to do so. Add support for XMM registers
9268 using PT_SETXMMREGS.
9269 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9270 (store_inferior_registers): Remove.
9271 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9272 (fetch_elfcore_registers): New function.
9273 (i386nbsd_elfcore_fns): New.
9274 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9275 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9277 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9278 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9279 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9280 * config/i386/tm-nbsd.h: Update copyright years.
9281 (HAVE_SSE_REGS): Define.
9282 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9283 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9284 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9285 (SIGCONTEXT_PC_OFFSET): Remove.
9286 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9288 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9290 * configure.tgt: Remove powerpc-*-macos* target.
9291 * config/m68k/xm-mpw.h: Delete file.
9292 * config/xm-mpw.h: Delete file.
9293 * ser-mac.c: Delete file.
9294 * mpw-make.sed: Delete file.
9295 * mpw-config.in: Delete file.
9296 * mac-xdep.c: Delete file.
9297 * mac-gdb.r: Delete file.
9298 * mac-defs.h: Delete file.
9299 * mac-nat.c: Delete file.
9300 * config/powerpc/macos.mh: Delete file.
9301 * config/powerpc/macos.mt: Delete file.
9302 * config/powerpc/nm-macos.h: Delete file.
9303 * config/powerpc/tm-macos.h: Delete file.
9304 * source.c (openp, open_source_file): Remove obsolete code.
9305 * top.c (gdb_readline): Ditto.
9306 * utils.c (query): Ditto.
9307 * event-top.c (display_gdb_prompt): Ditto.
9308 * Makefile.in (ser-mac.o): Delete obsolete target.
9311 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9313 * defs.h (BIG_ENDIAN): Delete macro definition.
9314 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9315 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9316 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9317 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9318 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9319 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9320 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9321 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9322 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9323 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9324 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9325 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9326 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9327 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9328 * gdbarch.c: Re-generate.
9330 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9332 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9335 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9337 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
9339 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9341 * value.h (value_ptr): Delete typedef.
9343 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9345 * i386nbsd-nat.c: Update copyright years.
9346 Include i386-tdep.h.
9348 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
9350 * stabsread.c: Update copyright years.
9352 From Debashis Mahata <debashis.mahata@wipro.com>:
9353 (read_struct_fields): Deal with Sun C compiler erroneous stab
9354 output for structs and unions.
9357 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9359 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
9362 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9364 * cp-abi.c: Fix whitespace.
9365 (baseclass_offset): New wrapper function.
9366 * cp-abi.h (baseclass_offset): Add prototype.
9367 (struct cp_abi_ops): Add baseclass_offset pointer.
9369 * valops.c (vb_match): Move to...
9370 * gnu-v2-abi.c (vb_match): here.
9371 * valops.c (baseclass_offset): Move to...
9372 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
9374 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
9376 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
9377 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
9378 * hpacc-abi.c (init_hpacc_ops): Likewise.
9380 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9382 * valops.c (find_overload_match): Accept obj as a
9383 reference parameter. Update it before returning.
9384 * value.h (find_overload_match): Update prototype.
9385 * eval.c (evaluate_subexp_standard): Pass object to
9386 find_overload_match by reference.
9388 2002-01-03 Andrew Cagney <ac131313@redhat.com>
9390 * valarith.c: Replace value_ptr with struct value pointer. Remove
9391 register attribute from value declarations.
9394 * scm-lang.c (scm_lookup_name): Ditto.
9396 2002-01-03 Michael Snyder <msnyder@redhat.com>
9398 Abstract the functionality of iterating over mapped memory
9399 regions into a general purpose iterator function.
9400 * procfs.c (iterate_over_mappings): New function, general purpose
9401 iterator for memory sections.
9402 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
9403 (solib_mappings_callback): New function, callback for above.
9404 (info_proc_mappings): Reimpliment using iterate_over_mappings.
9405 (info_mappings_callback): New function, callback for above.
9407 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
9409 2002-01-01 Mark Kettenis <kettenis@gnu.org>
9411 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
9412 * i386-tdep.c: Include "elf-bfd.h".
9413 (process_note_abi_tag_sections): New function.
9414 (i386_gdbarch_init): Add code to recognize various OS/ABI
9417 * maint.c (_initialize_maint_cmds): Add missing \ in
9420 For older changes see ChangeLog-2001
9426 version-control: never