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