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