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