]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* monitor.c (monitor_supply_register): Add REGCACHE parameter, use
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c410a84c
UW
12007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4 it instead of current_regcache.
5 (parse_register_dump): Add REGCACHE parameter, pass it to
6 supply_register callback.
7 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
8 parse_register_dump.
9 (monitor_dump_regs): Add REGCACHE parameter, pass it to
10 parse_register_dump and dumpregs callback.
11 (monitor_wait): Pass current_regcache to parse_register_dump and
12 monitor_dump_regs.
13 (monitor_fetch_register): Pass current_regcache to
14 monitor_supply_register.
15 (monitor_fetch_registers): Pass current_regcache to
16 monitor_dump_regs.
17 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
18 supply_register and dumpregs callbacks.
19 (monitor_supply_register, monitor_dump_reg_block): Update
20 prototypes.
21 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
22 it to monitor_supply_register.
23 * dink32-rom.c (dink32_supply_register): Likewise.
24 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
25 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
26 instead of current_regcache.
27
468e3d51
UW
282007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
29
30 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
31 Add REGCACHE parameter. Use it instead of current_regcache.
32 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
33 i386nto_supply_gregset and i386nto_supply_fpregset.
34 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
35 of current_regcache.
36
37 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
38 nto_supply_ helper functions.
39 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
40
41 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
42
43 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
44 supply_greget, supply_fpregset, supply_altregset, supply_regset,
45 and regset_fill member function pointers.
46 (nto_dummy_supply_regset): Adapt prototype.
47
4e3269e3
UW
482007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
49
50 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
51 instead of current_regcache. Make REGS const.
52 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
53 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
54 prototypes.
55 * shnbsd-nat.c: Include "regcache.h".
56 (shnbsd_fetch_inferior_registers): Pass current_regcache to
57 shnbsd_supply_reg.
58 (shnbsd_store_inferior_registers): Pass current_regcache to
59 shnbsd_fill_reg.
60 * Makefile.in (shbsd-nat.o): Update dependencies.
61
28f5035f
UW
622007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
63
64 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
65 instead of current_regcache.
66 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
67 Make GREGSETP const, remove superfluous casts.
68 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
69 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
70 superfluous casts.
71 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
72 (supply_64bit_reg): Likewise
73 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
74 Make GREGSETP const, adapt casts accordingly.
75 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
76 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
77 casts accordingly.
78 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
79 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
80 helper routines.
81 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
82 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
83 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
84 Adapt prototypes.
85 * mips-linux-nat.c: Include "regcache.h".
86 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
87 current_regcache to mips{64}_(supply|fill)_ helper routines.
88 (mips64_linux_regsets_fetch_registers): Likewise.
89 (mips64_linux_regsets_store_registers): Likewise.
90
91 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
92 REGCACHE argument; replace current_regcache. Make REGS const.
93 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
94 replace current_regcache.
95 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
96 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
97 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
98 mipsnbsd_store_inferior_registers): Pass current_regcache to
99 mipsnbsd_(supply|fill)_... helper routines.
100
101 * Makefile.in (mips-linux-nat.o): Update dependencies.
102
26144df5
UW
1032007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
104
105 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
106 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
107 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
108 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
109 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
110 * i386gnu-nat.c (store_fpregs): Likewise.
111 * i386v4-nat.c (fill_fpregset): Likewise.
112 * go32-nat.c (store_register, go32_store_registers): Likewise.
113
c6b4e5a2
UW
1142007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
115
116 * cris-tdep.c (supply_gregset): Rename to ...
117 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
118 instead of current_regcache.
119 (fetch_core_registers): Update call. Pass current_regcache.
120
d683e2b7
UW
1212007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
122
123 * arnmnbsd-nat.c (supply_gregset): Rename to ...
124 (arm_supply_gregset): ... this. Add REGCACHE parameter.
125 Use it instead of current_regcache.
126 (supply_fparegset): Rename to ...
127 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
128 Use it instead of current_regcache.
129 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
130 (fetch_core_registers, fetch_elfcore_registers): Likewise.
131
390c1522
UW
1322007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
133
134 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
135 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
136 use it instead of current_regcache.
137 * alpha-tdep.h (struct regcache): Add forward declaration.
138 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
139 alpha_fill_fp_regs): Update prototypes.
140
141 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
142 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
143 * alpha-linux-nat.c: Include "regcache.h".
144 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
145 current_regcache to alpha_supply/fill_ routines.
146
147 * alphabsd-tdep.c: Include "regcache.h".
148 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
149 pass it to alpha_supply_ routines. Make REGS const.
150 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
151 pass it to alpha_fill_ routines.
152 * alphabsd-tdep.h (struct regcache): Add forward declaration.
153 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
154 alphabsd_fill_fpreg): Update prototypes.
155
156 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
157 fill_fpregset, alphabsd_fetch_inferior_registers,
158 alphabsd_store_inferior_registers): Pass current_regcache to
159 alphabsd_supply/fill_ routines.
160
161 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
162 dependencies.
163
647478e0
UW
1642007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
165
166 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
167 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
168 instead of current_regcache.
169 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
170 REGCACHE parameter, pass it to supply_ routines.
171 (aix_thread_fetch_registers): Pass current_regcache to
172 fetch_regs_user_thread and fetch_regs_kernel_thread.
173
174 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
175 Add REGCACHE parameter, use it instead of current_regcache.
176 Call regcache_valid_p instead of register_cached.
177 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
178 Also, pass REGCACHE to fill_ routines.
179 (aix_thread_store_registers): Pass current_regcache to
180 store_regs_user_thread and store_regs_kernel_thread.
181
d817e083
UW
1822007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
183
184 * m32r-linux-nat.c (supply_gregset): Do not modify contents
185 pointed to by GREGSETP.
186
6a1872e4
UW
1872007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
188
189 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
190 of regcache_raw_read_signed.
191 (fill_fpregset): Use regcache_raw_collect instead of
192 regcache_raw_read.
193
6da397e0
KB
1942007-05-03 Kevin Buettner <kevinb@redhat.com>
195
196 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
197 point arguments, test explicitly for use of the EABI32 ABI
198 instead of inferring this condition from tests on register
199 sizes.
200
2219d63c
KB
2012007-05-03 Kevin Buettner <kevinb@redhat.com>
202
203 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
204 prior to allocating its location.
205
2afd3f0a
MR
2062007-05-02 Maciej W. Rozycki <macro@mips.com>
207
208 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
209 based on mips_abi_regsize() whose result is known in advance.
210 (mips_o64_push_dummy_call): Likewise.
211
3e00823e
UW
2122007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
213
214 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
215 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
216
217 * mips-linux-nat.c: Include "gregset.h".
218 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
219 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
220 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
221 fill_fpregset): Move to mips-linux-nat.c.
222
223 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
224
81c4a259
UW
2252007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
226
227 * regcache.c (deprecated_read_register_gen): Remove, inline ...
228 (read_register): ... here.
229 (deprecated_write_register_gen): Remove, inline ...
230 (write_register): ... here.
231 * regcache.h (deprecated_read_register_gen): Remove prototype.
232 (deprecated_write_register_gen): Likewise.
233
234 * remote-sim.c (gdbsim_store_register): Replace call to
235 deprecated_read_register_gen with regcache_cooked_read.
236 * target.c (debug_print_register): Replace calls to
237 deprecated_read_register_gen and read_register with
238 regcache_cooked_read.
239
8bb42077
UW
2402007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
241
242 * hpux-thread.c (hpux_thread_store_registers): Use
243 regcache_raw_collect, not regcache_raw_read.
244 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
245 not regcache_raw_write.
246
6ed7ea50
UW
2472007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
248
249 * gdbarch.sh: Remove deprecated_register_byte.
250 * gdbarch.c, gdbarch.h: Regenerate.
251 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
252 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
253
254 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
255 * regcache.c (regcache_valid_p): Allow to query cooked registers in
256 read-only register caches. Make REGCACHE parameter const.
257 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
258
259 * mi/mi-main.c (old_regs): Remove.
260 (mi_setup_architecture_data, _initialize_mi_main): Remove.
261 (register_changed_p): Reimplement to compare two register caches.
262 (mi_cmd_data_list_changed_registers): Update caller.
263 * mi/mi-main.h (mi_setup_architecture_data): Remove.
264 * mi/mi-interp.c (mi_interpreter_init): Do not call
265 mi_setup_architecture_data.
266
efc72ef5
UW
2672007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
268
269 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
270 inline definition at the places the macros are used.
271 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
272
7a61a01c
UW
2732007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
274
275 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
276 "gdb_string.h".
277 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
278 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
279 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
280 (rs6000_aix_regset_from_core_section): New function.
281 (rs6000_aix_init_osabi): Register it.
282 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
283 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
284 * rs6000-nat.c (CoreRegs): Do not define type.
285 (fetch_core_registers, rs6000_core_fns): Remove.
286 (_initialize_core_rs6000): Do not register it. Rename to ...
287 (_initialize_rs6000_nat): ... this.
288 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
289
ace186d4
KB
2902007-04-27 Kevin Buettner <kevinb@redhat.com>
291
292 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
293 (dwarf2_read_address): Sign extend return address as required by
294 target architecture.
295
89a7ee67
KB
2962007-04-27 Kevin Buettner <kevinb@redhat.com>
297
298 * solib-frv.c (lm_base): Bail out if the main executable has
299 not been relocated.
300
6afb1f32
UW
3012007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
302
303 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
304 of FPCR register in fpregset.
305
66a0218a
MR
3062007-04-27 Maciej W. Rozycki <macro@mips.com>
307
308 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
309 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
310
482f7fee
UW
3112007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
312
313 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
314 * rs6000-nat.c (rs6000_wait): New function.
315 (_initialize_core_rs6000): Install it as to_wait target method.
316 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
317
1f480a5e
UW
3182007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
319
320 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
321 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
322 * rs6000-nat.c (super_create_inferior): New variable.
323 (rs6000_create_inferior): Make static. Adapt argument list. Call
324 original version of create_inferior via super_create_inferior.
325 (_initialize_core_rs6000): Install to_create_inferior target method.
326
037a727e
UW
3272007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
328
329 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
330 (aix_thread_xfer_partial): ... this.
331 (init_aix_thread_ops): Install to_xfer_partial instead
332 of deprecated_xfer_memory target method.
333
334 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
335 and inftarg.o, add inf-ptrace.o.
336 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
337 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
338 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
339 (fetch_inferior_registers): Rename to ...
340 (rs6000_fetch_inferior_registers): ... this. Make static.
341 (store_inferior_registers): Rename to ...
342 (rs6000_store_inferior_registers): ... this. Make static.
343 (read_word, child_xfer_memory): Remove.
344 (rs6000_xfer_partial): New function.
345 (kernel_u_size): Remove.
346 (_initialize_core_rs6000): Add inf_ptrace-based target.
347 * Makefile.in (rs6000-nat.o): Update dependencies.
348
f7dd0ed7
UW
3492007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
350
351 * inf-ptrace.c: Include "gdb_stdint.h".
352 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
353 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
354 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
355 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
356 (inf_ptrace_store_register): Likewise.
357 * Makefile.in (inf-ptrace.o): Update dependencies.
358
d9178763
UW
3592007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
360
361 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
362 * configure.tgt (rs6000-*-*): Likewise.
363 * config/rs6000/aix4.mh: Delete file.
364 * config/rs6000/aix4.mt: Delete file.
365 * config/rs6000/rs6000.mh: Delete file.
366 * config/rs6000/rs6000.mt: Delete file.
367
368 * config/powerpc/nm-aix.h: Delete file.
369 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
370
0d16ee5d
UW
3712007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
372
373 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
374 Remove obsolete part of comment.
375 (store_regs_user_thread): Use uint32_t temporaries when calling
376 fill_sprs32.
377 (store_regs_kernel_thread): Likewise. Add assertion to verify
378 correct size of struct ptsprs members.
379 (aix_thread_xfer_memory): Fix type of myaddr.
380 (aix_thread_extra_thread_info): Fix compiler warning.
381 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
382 (fetch_register, store_register): Adapt callers.
383
1e8877aa
UW
3842007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
385
386 * vec.h (vec_free): Rename to vec_free_. Adapt users.
387
b02f9d57
UW
3882007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
389
390 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
391 and "regcache.h".
392 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
393 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
394 (alpha_linux_regset_from_core_section): New function.
395 (alpha_linux_init_abi): Install it.
396 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
397 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
398 <sys/procfs.h>, and "gregset.h".
399 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
400 Move from config/alpha/nm-linux.h.
401 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
402 from alpha-nat.c.
403 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
404 * alpha-nat.c: Remove #ifdef __linux__ section.
405 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
406 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
407 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
408 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
409 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
410 (NATDEPFILES): Remove alpha-nat.o.
411 * config/alpha/nm-linux.h: Delete file.
412 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
413 * Makefile.in (alpha-linux-nat.o): Update dependencies.
414 (alpha-linux-tdep.o): Likewise.
415
dda0c97e
UW
4162007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
417
418 * mips-linux-nat.c: No longer include "gdbcore.h".
419 (mips_linux_register_addr): Move from mips-linux-tdep.c.
420 (mips64_linux_register_addr): Likewise.
421 (mips_linux_register_u_offset): Call mips_linux_register_addr or
422 mips64_linux_register_addr instead of register_addr.
423 * mips-linux-tdep.c (mips_linux_register_addr,
424 mips64_linux_register_addr): Move to mips-linux-nat.c.
425 (register_addr): Remove.
426 (register_addr_data, init_register_addr_data): Remove.
427 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
428 (set_mips_linux_register_addr): Remove.
429 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
430 * Makefile.in (mips-linux-nat.o): Update dependencies.
431
910122bf
UW
4322007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
433
434 * linux-nat.c (linux_register_u_offset): Remove.
435 (linux_target_install_ops): New function.
436 (linux_target): Use it.
437 (linux_trad_target): New function.
438 * linux-nat.h (linux_trad_target): Declare.
439
440 * alpha-linux-nat.c: Include "gdbcore.h".
441 (alpha_linux_register_u_offset): New function.
442 (_initialize_alpha_linux_nat): Use linux_trad_target.
443
444 * mips-linux-nat.c: Include "gdbcore.h".
445 (mips_linux_register_u_offset): New function.
446 (_initialize_mips_linux_nat): Use linux_trad_target.
447
448 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
449 * config/arm/nm-linux.h: Delete file.
450
451 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
452 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
453
454 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
455 * config/ia64/nm-linux.h: Delete file.
456
457 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
458 * config/m32r/nm-linux.h: Delete file.
459
460 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
461 * config/m68k/nm-linux.h: Delete file.
462
463 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
464 * config/pa/nm-linux.h: Delete file.
465
466 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
467 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
468 * config/powerpc/nm-linux.h: Delete file.
469
470 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
471 * config/s390/nm-linux.h: Delete file.
472
473 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
474 * config/sparc/linux64.mh (NAT_FILE): Likewise.
475 * config/sparc/nm-linux.h: Delete file.
476
477 * Makefile.in (alpha-linux-nat.o): Update dependencies.
478 (mips-linux-nat.o): Likewise.
479
de732108
UW
4802007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
481
482 * core-aout.c: Delete file.
483 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
484 (core-aout.o): Delete rule.
485 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
486
487 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
488
489 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
490 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
491 KERNEL_U_ADDR): Remove.
492
493 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
494 (cannot_fetch_register, cannot_store_register): Remove.
495 (fetch_register): Inline cannot_fetch_register and register_addr.
496 (store_register): Inline cannot_store_register and register_addr.
497 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
498 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
499 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
500 Remove.
501
502 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
503 (fetch_register): Inline register_addr.
504 (store_register): Inline register_addr.
505 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
506 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
507 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
508
509 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
510 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
511 REGISTER_U_ADDR): Remove.
512
513 * hppa-linux-nat.c (register_addr): Rename to ...
514 (hppa_linux_register_addr): ... this. Make static.
515 (fetch_register, store_register): Adapt callers.
516 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
517
518 * ppc-linux-nat.c (kernel_u_size): Remove.
519 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
520
521 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
522 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
523 (NAT_FILE): Remove.
524 * config/vax/nm-vax.h: Delete file.
525
1f90c757
MS
5262007-04-20 Mark Shinwell <shinwell@codesourcery.com>
527
528 * MAINTAINERS (Write After Approval): Add myself.
529
bf1242a5
MS
5302007-04-20 Mark Shinwell <shinwell@codesourcery.com>
531
532 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
533 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
534 (m68k_linux_sigcontext_reg_offset): Fix typo.
535 (target_is_uclinux): New.
536 (m68k_linux_inferior_created): New.
537 (m68k_linux_get_sigtramp_info): Check for uClinux or
538 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
539 uClinux.
540 (_initialize_m68k_linux_tdep): Register
541 m68k_linux_inferior_created.
542
96998ce7
PA
5432007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
544
545 * win32-nat.c (win32_detach): Remove delete_command call.
546 Resume inferior with win32_resume instead of win32_continue.
547
7e71daaa
JG
5482007-04-19 Jerome Guitton <guitton@adacore.com>
549
550 * ser-mingw.c (fd_is_file): New function.
551 (file_select_thread): New function.
552 (ser_console_wait_handle): Add special handling for files.
553
3d1f72c2
DP
5542007-04-18 Denis Pilat <denis.pilat@st.com>
555
556 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
557 when missing from DW_TAG_subrange_type. Remove the handling of null
558 return from die_type.
559
9ecf7166
MR
5602007-04-18 Maciej W. Rozycki <macro@mips.com>
561
562 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
563 change to rearrange some brackets.
564 (mips_n32n64_push_dummy_call): Likewise.
565 (mips_o32_push_dummy_call): Likewise.
566 (mips_o64_push_dummy_call): Likewise.
567
b79599ff
DP
5682007-04-18 Denis Pilat <denis.pilat@st.com>
569
570 * infcmd.c (post_create_inferior): Start with a call to
3d1f72c2 571 target_terminal_ours.
b79599ff 572
06f9a1af
MR
5732007-04-17 Maciej W. Rozycki <macro@mips.com>
574
575 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
576 brackets.
577 (mips_n32n64_push_dummy_call): Likewise. Reformat some
578 expressions.
579 (mips_o32_push_dummy_call): Likewise.
580 (mips_o64_push_dummy_call): Likewise.
581
ad018eee
MR
5822007-04-17 Maciej W. Rozycki <macro@mips.com>
583
584 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
585 comment.
586
e914cb17
MR
5872007-04-17 Maciej W. Rozycki <macro@mips.com>
588
589 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
590 comment.
591 (mips_o32_push_dummy_call): Likewise.
592
91934273
AS
5932007-04-17 Andreas Schwab <schwab@suse.de>
594
595 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
596 sal to be bigger than the end of the function.
597
968b5391
MR
5982007-04-17 Maciej W. Rozycki <macro@mips.com>
599 Nigel Stephens <nigel@mips.com>
600
601 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
602 argument alignment requirements when calculating stack space
603 required. When aligning an arg register to eight bytes
604 boundary, align stack_offset too. Write floating-point
605 arguments to the appropriate integer register if need go there.
606 (mips_o64_push_dummy_call): Likewise.
607
e0cd558a
UW
6082007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
609
610 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
611 "sig" arguments, add "regcache" argument.
612 * gdbarch.c, gdbarch.h: Regenerate.
613
614 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
615 (handle_inferior_event): Call remove_single_step_breakpoints directly
616 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
617
618 * alpha-tdep.c (alpha_software_single_step): Update argument list.
619 Remove handling of !insert_breakpoints_p case.
620 * arm-tdep.c (arm_software_single_step): Likewise.
621 * cris-tdep.c (cris_software_single_step): Likewise.
622 * mips-tdep.c (mips_software_single_step): Likewise.
623 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
624 * sparc-tdep.c (sparc_software_single_step): Likewise.
625 * spu-tdep.c (spu_software_single_step): Likewise.
626
627 * alpha-tdep.h (alpha_software_single_step): Update prototype.
628 * mips-tdep.h (mips_software_single_step): Likewise.
629 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
630 * sparc-tdep.h (sparc_software_single_step): Likewise.
631
06a86285
UW
6322007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
633
634 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
635 when removing single-step breakpoints.
636
25d5ea92
VP
6372007-04-14 Vladimir Prus <vladimir@codesourcery.com>
638
639 * varobj.h (varobj_set_frozen): New
640 (varobj_get_frozen): New.
641 (varobj_update): New parameter explicit.
642 * varobj.c (struct varobj): New fields frozen
643 and not_fetched.
644 (varobj_set_frozen, varobj_get_frozen): New.
645 (install_new_value): Don't fetch values for
646 frozen variable object, or children thereof. Allow
647 a frozen variable object to have non-fetched value.
648 (varobj_update): Allow updating child variables.
649 Don't traverse frozen children.
650 (new_variable): Initialize the frozen field.
651 (c_value_of_variable): Return NULL for frozen
652 variable without any value yet.
653 * mi/mi-cmd-var.c (varobj_update_one): New parameter
654 'explicit'.
655 (mi_cmd_var_create): Output the 'frozen' field,
656 as soon as testsuite is adjusted to expect that field.
657 (mi_cmd_var_set_frozen): New.
658 (mi_cmd_var_update): Pass the 'explicit' parameter to
659 varobj_update_one.
660 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
661 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
662
6e3bbd1a
PB
6632007-04-13 Paul Brook <paul@codesourcery.com>
664
665 * target-descriptions.c (tdesc_named_type): Add ieee_single and
666 ieee_double.
667 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
668
ea35711c
DJ
6692007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
670
671 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
672 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
673 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
674 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
675 * Makefile.in: Remove references to deleted files.
676 * README: Do not mention deleted ROM monitor interfaces.
677 * defs.h (enum language): Delete language_scm.
678 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
679 (dump_subexp_body_standard): Likewise.
680 * parse.c (operator_length_standard): Likewise.
681 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
682 * remote-mips.c: Do not include remote-utils.h.
683 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
684 throughout.
685 * value.c: Do not include scm-lang.h.
686 (unpack_long): Delete scm_unpack call.
687 * config/h8300/h8300.mt, config/mips/embed.mt,
688 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
689 config/sh/embed.mt, config/sh/linux.mt: Remove references to
690 deleted files.
691 * NEWS: Mention removed files.
692
058b9c07
DJ
6932007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
694
695 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
696 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
697
54d61198
DJ
6982007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
699
700 * NEWS: Mention removal of HP aCC support.
701
e499d0f1
DJ
7022007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
703
704 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
705 first entry for static executables.
706 (breakpoint_addr): Delete unused variable.
707 (elf_locate_base): Search for _r_debug in static executables.
708 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
709 also.
710
4d5b2cd7
DJ
7112007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
712
713 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
714 (bpstat_what, print_one_breakpoint, allocate_bp_location)
715 (mention): Remove bp_through_sigtramp support.
716 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
717
46d57086
DJ
7182007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
719
720 * breakpoint.c (bpstat_what): Give step-resume higher priority than
721 shlib events.
722
d3169d93
DJ
7232007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
724
725 * infrun.c: Doc fixes.
726 (handle_inferior_event): Clarify debug message.
727 (insert_step_resume_breakpoint_at_sal): Print a debug message.
728
8c9e4384
UW
7292007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
730
731 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
732
9418f048
UW
7332007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
734
735 * config/m68k/tm-monitor.h: Delete file.
736 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
737 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
738 call moved to ...
739 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
740 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
741
e6590a1b
UW
7422007-04-12 Luis Machado <luisgpm@br.ibm.com>
743
744 * gdbarch.sh (software_single_step): Change the return type
745 from void to int and reformatted some comments to <= 80
746 columns.
747 * gdbarch.c, gdbarch.h: Regenerated.
748 * alpha-tdep.c (alpha_software_single_step): Likewise.
749 * alpha-tdep.h (alpha_software_single_step): Likewise.
750 * arm-tdep.c (arm_software_single_step): Likewise.
751 * cris-tdep.c (cris_software_single_step): Likewise.
752 * mips-tdep.c (mips_software_single_step): Likewise.
753 * mips-tdep.h (mips_software_single_step): Likewise.
754 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
755 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
756 * sparc-tdep.c (sparc_software_single_step): Likewise.
757 * sparc-tdep.h (sparc_software_single_step): Likewise.
758 * spu-tdep.c (spu_software_single_step): Likewise.
759 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
760 and act accordingly.
761
58b38ee2
SE
7622007-04-11 Steve Ellcey <sje@cup.hp.com>
763
764 * configure.ac (build_warnings): Add -Wno-char-subscripts.
765 * configure: Regenerate.
766 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
767
70f575cc
JK
7682007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
771
d77b6808
JK
7722007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
773
774 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
775 macros.
776 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
777 distinct on the TYPE_STUB_SUPPORTED debug targets.
778 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
779
b0b92586
JB
7802007-04-11 Joel Brobecker <brobecker@adacore.com>
781
782 * sparc-tdep.c (X_RS2): New macro.
783 (sparc_skip_stack_check): New function.
784 (sparc_analyze_prologue): Adjust PC past stack probing
785 sequence if necessary.
786
a489f789
AS
7872007-04-10 Andreas Schwab <schwab@suse.de>
788
789 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
790 register.
791
b0b13bb4
DJ
7922007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
793
794 * breakpoint.c (gdb_breakpoint_query): Really return an
795 enum gdb_rc.
796 (gdb_breakpoint): Likewise.
3f11755e
DJ
797 * thread.c (gdb_list_thread_ids): Likewise.
798 (gdb_thread_select): Likewise.
b0b13bb4
DJ
799 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
800 (mi_cmd_thread_list_ids): Remove bogus initialization.
801
1a92f856
DJ
8022007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
803
804 * Makefile.in (SFILES): Remove hpacc-abi.c.
805 (COMMON_OBS): Remove hpacc-abi.o.
806 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
807 (hpacc-abi.o, hpread.o): Delete rules.
808 * somread.c: Delete extern declarations from hpread.c.
809 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
810 (som_symfile_finish): Do not call hpread_symfile_finish.
811 (som_symfile_init): Do not call hpread_symfile_init.
812 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
813 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
814 * hpacc-abi.c, hpread.c: Deleted.
815
542c95c2
DJ
8162007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
817
818 * solib-svr4.c (enable_break): Simplify return value.
819 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
820
cfaefc65
AS
8212007-04-10 Andreas Schwab <schwab@suse.de>
822
823 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
824 l_ld_size, l_next_size, l_prev_size, l_name_size.
825
826 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
827 to extract addresses from link map.
828 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
829 (LM_NEXT): Likewise.
830 (LM_NAME): Likewise.
831 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
832 (elf_locate_base): Likewise.
833 (open_symbol_file_object): Likewise.
834 (svr4_fetch_objfile_link_map): Likewise.
835 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
836 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
837 l_ld_size.
838 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
839 (svr4_lp64_fetch_link_map_offsets): Likewise.
840
841 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
842 removed members. Set l_ld_offset to -1 if not present.
843
65cc4390
VP
8442007-04-08 Vladimir Prus <vladimir@codesourcery.com>
845
846 Pass stderr of program run with "target remote |"
847 via gdb_stderr.
848 * serial.c (serial_open): Set error_fd to -1.
849 * serial.h (struct serial): New field error_fd.
850 (struct serial_opts): New field avail.
851 * ser-pipe.c (pipe_open): Create another pair
852 of sockets. Pass stderr to gdb.
853 * ser-mingw.c (pipe_windows_open): Pass
854 PEX_STDERR_TO_PIPE to pex_run. Initialize
855 sd->error_fd.
856 (pipe_avail): New.
857 (_initialize_ser_windows): Hook pipe_avail.
858 * ser-base.c (generic_readchar): Check if there's
859 anything in stderr channel and route that to gdb_stderr.
860
e9112110
PA
8612007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
862
863 * dbxread.c (read_ofile_symtab): Move current_objfile
864 clearing to after end_stabs.
865
7f68ac27
AS
8662007-04-01 Andreas Schwab <schwab@suse.de>
867
868 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
869 gdbarch instead of current_gdbarch.
870
e55dccf0
VP
8712007-04-01 Vladimir Prus <vladimir@codesourcery.com>
872
873 * varobj.c (varobj_create): Keep varobj value
874 NULL when evaluating the type.
875
7c963485
PA
8762007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
877
878 * NEWS: Mention new Windows CE support.
879
ad527d2e
PA
8802007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
881
882 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
883 the obsoletion stanza.
884 * NEWS: Mention deleted targets.
885
886 * config/sh/tm-wince.h: Remove.
887 * config/sh/wince.mt: Remove.
888 * config/mips/tm-wince.h: Remove.
889 * config/mips/wince.mt: Remove.
890
891 * wince.c: Remove.
892 * wince-stub.c: Remove.
893 * wince-stub.h: Remove.
894 * Makefile.in (wince.o): Remove rule.
895 (wince-stub.o): Likewise.
896
897 * mips-tdep.c (mips_next_pc): Make static.
898 * mips-tdep.h (mips_next_pc): Remove declaration.
899 * arm-tdep.c (arm_pc_is_thumb): Make static.
900 (thumb_get_next_pc): Likewise.
901 (arm_get_next_pc): Likewise.
902 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
903 (arm_pc_is_thumb): Likewise.
904 (thumb_get_next_pc): Likewise.
905 (arm_get_next_pc): Likewise.
906
7ce59000
DJ
9072007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
908
909 * MAINTAINERS: Remove d10v entry.
910 * Makefile.in (SFILES): Remove dwarfread.c.
911 (COMMON_OBS): Remove dwarfread.o.
912 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
913 (remote-est.o, rom68k-rom.o): Delete.
914 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
915 target est, target rom68k, and DWARF 1.
916 * configure.tgt: Mark d10v as removed.
917 * dwarf2read.c: Doc update.
918 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
919 and lnsize.
920 (elf_locate_sections): Do not set them.
921 (elf_symfile_read): Do not call dwarf_build_psymtabs.
922 * symfile.h (dwarf_build_psymtabs): Delete prototype.
923 * config/m68k/monitor.mt (TDEPFILES): Prune.
924 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
925 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
926
20389057
DJ
9272007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
928
929 * doublest.c (convert_floatformat_to_doublest): Use
930 floatformat_classify.
931 (floatformat_is_nan): Rename to...
932 (floatformat_classify): ...this. Return more information.
933 * doublest.h (enum float_kind): New.
934 (floatformat_is_nan): Replace prototype...
935 (floatformat_classify): ...with this one.
936 * valprint.c (print_floating): Use floatformat_classify. Handle
937 infinity.
938
30b50213
DJ
9392007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
940
941 * README: Mention ISO C library requirement.
942
8807d78b
DJ
9432007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
944
945 * Makefile.in (SFILES): Remove nlmread.c.
946 (COMMON_OBS): Remove nlmread.o.
947 (nlmread.o): Delete rule.
948 * README: Delete reference to remote-st.c.
949 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
950 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
951 GDB_OSABI_LYNXOS.
952 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
953 (_initialize_i386_tdep): Do not reference them.
954 * nlmread.c: Delete file.
955 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
956 * target.c: Doc update.
957 * thread.c: Delete commented include.
958 * config/alpha/tm-alpha.h: Doc update.
959
ced572fe
MR
9602007-03-30 Chris Dearman <chris@mips.com>
961
962 * utils.c (string_to_core_addr): Comment typo.
963
8a9fc081
MR
9642007-03-30 Chris Dearman <chris@mips.com>
965
966 * mips-tdep.c: Comment typo.
967
5f402660
UW
9682007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
969
970 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
971 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
972 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
973 * config/powerpc/nm-ppc64-linux.h: Remove file.
974 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
975 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
976 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
977 * infptrace.c (call_ptrace): Likewise.
978 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
979 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
980 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
981 (store_register): Likewise.
982
bbf90c81
JB
9832007-03-29 Joel Brobecker <brobecker@adacore.com>
984
985 * Makefile.in (varobj.o): Add missing dependency.
986
243c053b
MS
9872007-03-29 Michael Snyder <msnyder@access-company.com>
988
989 * MAINTAINERS: Update my email address.
990
0259addd
JB
9912007-03-29 Joel Brobecker <brobecker@adacore.com>
992
993 Add support for exception handling with multiple versions of
994 the Ada runtime:
995 * ada-lang.c: Update general comments on how Ada exception catchpoints
996 are implemented.
997 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
998 (__gnat_raise_nodefer_with_msg): Delete.
999 (ada_unhandled_exception_name_addr_ftype): New type.
1000 (exception_support_info): New type.
1001 (ada_unhandled_exception_name_addr): Add forward declaration.
1002 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1003 (default_exception_support_info): New constant.
1004 (exception_support_info_fallback): Likewise.
1005 (exception_info): New global variable.
1006 (ada_exception_support_info_sniffer): New function.
1007 (ada_executable_changed_observer): Likewise.
1008 (ada_unhandled_exception_name_addr_from_raise): Renamed from
1009 ada_unhandled_exception_name_addr.
1010 (ada_unhandled_exception_name_addr): Reimplement to match the
1011 latest Ada runtime implementation.
1012 (error_breakpoint_runtime_sym_not_found): Delete.
1013 (ada_exception_sym_name): Get the exception sym name from
1014 exception_info rather than hardcoding it.
1015 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
1016 Update error handling.
1017 * Makefile.in (ada-lang.o): Add dependency on observer.h.
1018
483367ee
DJ
10192007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1020
1021 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
1022 (remote-st.o, uw-thread.o): Delete.
1023 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
1024 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
1025 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
1026 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
1027 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
1028 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
1029 rs6000-*-lynxos* to an obsoletion stanza.
1030 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
1031 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
1032 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
1033 i[34567]86-*-netware*.
1034 * NEWS: Mention deleted targets.
1035
1036 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
1037 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
1038 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
1039 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
1040 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
1041 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
1042 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
1043 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
1044 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
1045 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
1046 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
1047 config/rs6000/tm-rs6000ly.h: Delete files.
1048
3adda9d8
DJ
10492007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1050
1051 * defs.h (deprecated_registers_changed_hook): Delete declaration.
1052 * interps.c (clear_interpreter_hooks): Do not clear
1053 deprecated_registers_changed_hook.
1054 * regcache.c (registers_changed): Do not call it.
1055 * top.c (deprecated_registers_changed_hook): Do not define it.
1056 * mi/mi-interp.c (mi_command_loop): Do not clear it.
1057 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
1058 (tui_remove_hooks): Do not remove it.
1059 (tui_selected_frame_level_changed_hook): Check for negative level.
1060 Use get_selected_frame.
1061 (tui_registers_changed_hook): Deleted.
1062
bf362611
JB
10632007-03-29 Joel Brobecker <brobecker@adacore.com>
1064
1065 * stabsread.c (add_undefined_type): Add extra parameter.
1066 Now handles nameless types separately.
1067 (struct nat): New type.
1068 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
1069 New static variables.
1070 (read_type): Update calls to add_undefined_type.
1071 (add_undefined_type_noname): New function.
1072 (add_undefined_type_1): Renames from add_undefined_type.
1073 (cleanup_undefined_types_noname): New function.
1074 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
1075 (cleanup_undefined_types): New handles nameless types separately.
1076 (_initialize_stabsread): Initialize our new static constants.
1077
436868fb
DP
10782007-03-29 Denis Pilat <denis.pilat@st.com>
1079
1080 * configure.ac: Test for signal.h.
1081 * configure, config.in: Regenerate.
1082
aaf9e9fd
DP
10832007-03-29 Denis Pilat <denis.pilat@st.com>
1084
1085 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
1086 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
1087
68070c10
PA
10882007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
1089
1090 * arm-wince-tdep.c: New.
1091 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
1092 (MT_CFLAGS): Delete.
1093 (TM_CLIBS): Delete.
1094 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
1095 solib-legacy.o, solib-svr4.o, and remove wince.o.
1096 * configure.tgt (arm*-*-mingw32ce*): Add.
1097 * signals/signals.c [HAVE_SIGNAL_H]: Check.
1098 (do_target_signal_to_host): Silence 'not used' warning.
1099 * config/arm/tm-wince.h: Remove.
1100
74174d2e
UW
11012007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
1102
1103 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
1104 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
1105
1106 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
1107 * config/ia64/tm-linux.h: Remove file.
1108 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
1109 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
1110 legacy_pc_in_sigtramp.
1111 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
1112 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
1113 Remove func_name argument.
1114 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
1115
1116 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
1117 * target.c (update_current_target): Add to_have_steppable_watchpoint.
1118 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
1119 (HAVE_STEPPABLE_WATCHPOINT): Define.
1120
1121 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
1122 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
1123 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
1124 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
1125 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
1126 target_insert_watchpoint, target_remove_watchpoint): Remove.
1127 (FETCH_INFERIOR_REGISTERS): Define.
1128 * ia64-linux-nat.c (ia64_register_addr): Make static.
1129 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1130 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
1131 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
1132 (ia64_linux_stopped_data_address): Make static. Add target_ops.
1133 (ia64_linux_stopped_by_watchpoint): Make static.
1134 (ia64_linux_can_use_hw_breakpoint): New function.
1135 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
1136 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
1137 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
1138
53c5240f
PA
11392007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
1140
1141 * linespec.c: Include language.h.
1142 (find_methods): Add language parameter. Call
1143 lookup_symbol_in_language. Pass language down.
1144 (add_matching_methods): Likewise. Call
1145 lookup_symbol_in_language.
1146 (add_constructors): Likewise.
1147 (find_method): Pass sym_class to collect_methods.
1148 (collect_methods): Add sym_class parameter. Pass language
1149 down.
1150 * symtab.c (lookup_symbol): Rename to ...
1151 (lookup_symbol_in_language): ... this. Add language
1152 parameter. Use passed language instead of current_language.
1153 (lookup_symbol): New as wrapper around
1154 lookup_symbol_in_language.
1155 (lookup_symbol_aux): Add language parameter. Use passed
1156 language instead of current_language.
1157 (search_symbols): Indent.
1158 * symtab.h (enum language): Forward declare.
1159 (lookup_symbol_in_language): Declare.
1160 (lookup_symbol): Update description.
1161 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
1162 * ada-lang.c (restore_language): Remove.
1163 (lookup_symbol_in_language): Remove.
1164
8671a17b
PA
11652007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
1166
1167 * breakpoint.c (bpstat_num): Add int *num parameter.
1168 * breakpoint.h (bpstat_num): Likewise.
1169 * infcmd.c (continue_command): Adjust to new bpstat_num
1170 interface.
1171 (program_info): Likewise.
1172
214197f9
UW
11732007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1174
1175 * config/sh/tm-sh.h: Remove file.
1176 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
1177 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
1178 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1179 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
1180
bac718a6
UW
11812007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1182
1183 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
1184 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
1185 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
1186 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
1187 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
1188 sequence if target_shortname is "remote".
1189
de6a76fd
DJ
11902007-03-27 Anton Blanchard <anton@samba.org>
1191
1192 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
1193 instead of wordsize when looking for the LR in a stack frame.
1194
4fc771b8
DJ
11952007-03-27 Andreas Schwab <schwab@suse.de>
1196 Daniel Jacobowitz <dan@codesourcery.com>
1197
1198 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
1199 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
1200 argument. Update all callers.
1201 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
1202 (dwarf2_frame_set_eh_frame_regnum): Rename to...
1203 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
1204 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
1205 (dwarf2_frame_set_adjust_regnum): ...this.
1206 (dwarf2_frame_eh_frame_regnum): Delete prototype.
1207 * rs6000-tdep.c: Include "dwarf2-frame.h".
1208 (rs6000_adjust_frame_regnum): Define.
1209 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
1210 Register rs6000_adjust_frame_regnum.
1211
1212 * Makefile.in (rs6000-tdep.o): Update dependencies.
1213
9453113a
DJ
12142007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
1215
1216 * Makefile.in: Add support for a "pdf" target.
1217
d2449ee8
DJ
12182007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
1219
1220 * amd64-tdep.c (amd64_init_frame_cache): New function.
1221 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
1222
a72d8a8e
MR
12232007-03-26 Nigel Stephens <nigel@mips.com>
1224 Maciej W. Rozycki <macro@mips.com>
1225
1226 * ui-out.c (ui_out_field_core_addr): Truncate address to
1227 TARGET_ADDR_BIT size before printing.
1228
5200c3f3 12292007-03-22 Nigel Stephens <nigel@mips.com>
a72d8a8e 1230 Maciej W. Rozycki <macro@mips.com>
5200c3f3
L
1231
1232 * remote-mips.c (mips_xfer_memory): Update prototype.
1233
16708cba
JB
12342007-03-22 Joel Brobecker <brobecker@adacore.com>
1235
1236 * symfile.h: #include "symtab.h"
1237
0fe514e3
DP
12382007-03-22 Denis Pilat <denis.pilat@st.com>
1239
1240 * utils.c (pagination_on_command, pagination_off_command):
1241 Remove useless prototypes.
1242
4a52dc15
PM
12432007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
1244
1245 Fix PR pascal/2232.
1246 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
1247 instead of TYPE_NAME for object base class name.
1248
1249
1c86fa97
KB
12502007-03-19 Kevin Buettner <kevinb@redhat.com>
1251
1252 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
1253 Specify frame type in calls to frame_func_unwind().
1254
4e463ff5
DJ
12552007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
1256
1257 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
1258 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
1259 (refine_prologue_limit): Delete.
1260 (skip_prologue): Don't call it. Use extract_unsigned_integer.
1261 Assume lim_pc is set. Correct check for incomplete prologues.
1262 Do not skip clobbers of the frame pointer.
1263 * symtab.c (skip_prologue_using_sal): Fail if there is only one
1264 sal.
1265
348473d5
NF
12662007-03-13 Nathan Froyd <froydnj@codesourcery.com>
1267
1268 * frame.c (frame_pop): Check to see whether there's a frame to
1269 which we can pop first.
1270
a2f9cf0d
NF
12712007-03-13 Nathan Froyd <froydnj@codesourcery.com>
1272
1273 * MAINTAINERS (Write After Approval): Add myself.
1274
569631c6
UW
12752007-03-09 Markus Deuling <deuling@de.ibm.com>
1276
1277 * infrun.c (breakpoints_failed): Remove unnecessary variable.
1278 (handle_inferior_event): Remove unnecessary braces.
1279 * breakpoint.c (bpstat_what): Remove wrong comment.
1280
fe5febed
UW
12812007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
1282
1283 * spu-tdep.c (spu_in_function_epilogue_p): New function.
1284 (spu_gdbarch_init): Install it.
1285
9dea8ca2
UW
12862007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1287
1288 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
1289 object types, not 0.
1290
7b3dc0b7
UW
12912007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1292
1293 * spu-tdep.c (spu_frame_align): New function.
1294 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
1295
118dfbaf
UW
12962007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1297
1298 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
1299 (spu_software_single_step): Likewise.
1300 (spu_read_pc, spu_write_pc): New functions.
1301 (spu_gdbarch_init): Install them.
1302
29e4017d
UW
13032007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1304
1305 * cli/cli-dump.c (struct callback_data): load_offset needs to
1306 have signed long type.
1307
6de5b849
JB
13082007-03-07 Joel Brobecker <brobecker@adacore.com>
1309
1310 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
1311 Revert the previous change that had some unexpected side-effects
1312 on mips32.
1313 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
1314 function to get the address of the calling instruction.
1315
7490ba4f
DP
13162007-03-07 Denis Pilat <denis.pilat@st.com>
1317
1318 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
1319 get_selected_frame by deprecated_safe_get_selected_frame.
1320
861fb77c
MK
13212007-03-02 Mark Kettenis <kettenis@gnu.org>
1322
1323 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
1324 "gdb_string.h". Don't include "nbsd-tdep.h".
1325 (SIZEOF_STRUCT_REG): Remove.
1326 (SHNBSD_SIZEOF_GREGS): New.
1327 (shnbsd_supply_gregset, shnbsd_collect_gregset)
1328 (shnbsd_regset_from_core_section): New functions.
1329 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1330 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
1331 shnbsd_supply_gregset, shnbsd_collect_gregset.
1332 (shnbsd_gregset): New variable.
1333 (shnbsd_init_abi): Set regset_from_core_section.
1334 (GDB_OSABI_NETBSD_CORE): New define.
1335 (shnbsd_core_osabi_sniffer): New function.
1336 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
1337 * Makefile.in (shnbsd-tdep.o): Update dependencies.
1338 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
1339 nbsd-tdep.o.
1340 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1341
787cbe14
JB
13422007-02-28 Joel Brobecker <brobecker@adacore.com>
1343
1344 * gdbtypes.c (replace_type): Fix typo that caused us to not update
1345 length of the types referenced by the new type CV ring.
1346
35f196d9
DJ
13472007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1348
1349 * frame.c (frame_pop, frame_observer_target_changed): Call
1350 reinit_frame_cache.
1351 (flush_cached_frames): Rename to reinit_frame_cache and delete
1352 old implementation.
1353 * frame.h (flush_cached_frames): Delete prototype and update comment.
1354
1355 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
1356 reinit_frame_cache instead of flush_cached_frames. Do not call
1357 select_frame after reinit_frame_cache.
1358 * corelow.c (core_open): Likewise.
1359 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
1360 * infrun.c (prepare_to_proceed, context_switch)
1361 (handle_inferior_event): Likewise.
1362 * linux-fork.c (fork_load_infrun_state): Likewise.
1363 * ocd.c (ocd_start_remote): Likewise.
1364 * remote-e7000.c (e7000_start_remote): Likewise.
1365 * remote-mips.c (device): Likewise.
1366 * thread.c (switch_to_thread): Likewise.
1367 * tracepoint.c (finish_tfind_command): Likewise.
1368 * gdbarch.c: Regenerated.
1369
c26f2453
JB
13702007-02-28 Jerome Guitton <guitton@adacore.com>
1371 Joel Brobecker <brobecker@adacore.com>
1372
1373 * gdbtypes.c (check_typedef): Do not replace stub type if
1374 the resolved type is not defined in the same objfile.
1375
7d900f1a
DJ
13762007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1377
1378 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
1379
76038652 13802007-02-28 Joel Brobecker <brobecker@adacore.com>
52eea4ce
JB
1381
1382 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
1383 symbol for Ada units when the symbol is defined using 't' rather
1384 than 'Tt' as symbol descriptor.
1385
d74fb156 13862007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1344afe0
UW
1387
1388 * config/mips/tm-nbsd.h: Delete file.
1389 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1390 * config/sh/tm-nbsd.h: Delete file.
1391 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
1392
f8d225db
JB
13932007-02-28 Joel Brobecker <brobecker@adacore.com>
1394
1395 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
1396 unused WRONG_PARAM value since it was recently deleted.
1397
1bbfb19a
NR
13982007-02-28 Vladimir Prus <vladimir@codesourcery.com>
1399
1400 * varobj.c (varobj_update): Free temporary vectors.
1401
6f7f3f0d
UW
14022007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1403
1404 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
1405 * config/powerpc/tm-linux.h: Delete file.
1406 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
1407 (PROCESS_LINENUMBER_HOOK): Do not undefine.
1408 (TEXT_SEGMENT_BASE): Do not redefine.
1409 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
1410 from config/rs6000/tm-rs6000.h.
1411 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1412 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
1413 (TEXT_SEGMENT_BASE): Remove.
1414 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
1415 (rs6000_in_solib_return_trampoline): Remove.
1416 (SKIP_TRAMPOLINE_CODE): Remove.
1417 (rs6000_skip_trampoline_code): Remove.
1418 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
1419 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1420 (FP0_REGNUM): Remove.
1421 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
1422 (rs6000_set_host_arch_hook): Remove.
1423 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
1424 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
1425 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
1426 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
1427 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
1428 * rs6000-nat.c: Include "rs6000-tdep.h".
1429 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
1430 (set_host_arch): Rename to ...
1431 (rs6000_create_inferior): ... this. Make public.
1432 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
1433 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
1434 (rs6000_create_inferior): Remove.
1435 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
1436 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
1437 set_gdbarch_in_solib_return_trampoline, and
1438 set_gdbarch_skip_trampoline_code.
1439 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
1440 from config/rs6000/tm-rs6000.h.
1441
63050a44 14422007-02-27 Joel Brobecker <brobecker@adacore.com>
05279ca0
JB
1443
1444 * buildsym.c (record_producer): Do nothing if no producer is provided.
1445
63050a44 14462007-02-27 Nick Roberts <nickrob@snap.net.nz>
e0b75a46
NR
1447
1448 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
1449 to check changelist is non-NULL. Call error if the frontend tries
1450 to update a non-root variable.
1451
1452 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
1453
93d42b30
DJ
14542007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1455
1456 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
1457 (dwarf2_frame_sniffer): Update.
1458 (dwarf2_signal_frame_this_id): New function.
1459 (dwarf2_signal_frame_unwind): Use it.
1460 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
1461 * frame.c (frame_func_unwind): Add this_type argument.
1462 (get_frame_func): Update.
1463 (frame_unwind_address_in_block): Add this_type argument and check it.
1464 Fix a typo.
1465 (get_frame_address_in_block): Update.
1466 * frame.h (enum frame_type): Move higher in the file.
1467 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
1468 argument.
1469
1470 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
1471 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
1472 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
1473 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
1474 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
1475 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
1476 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
1477 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
1478 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
1479 frame_func_unwind and frame_unwind_address_in_block to specify
1480 the frame type. Use frame_unwind_address_in_block instead of
1481 frame_pc_unwind in sniffers.
1482
206415a3
DJ
14832007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1484
1485 * frame.c (deprecated_selected_frame): Rename to...
1486 (selected_frame): ...this. Make static.
1487 (get_selected_frame, select_frame): Update.
1488 * frame.h (deprected_select_frame): Delete.
1489 (deprecated_safe_get_selected_frame): Update comments.
1490
1491 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
1492 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
1493 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
1494 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
1495 tui/tui.c: Replace references to deprecated_selected_frame.
1496
7313566f
FF
14972007-02-27 Fred Fish <fnf@specifix.com>
1498
1499 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
1500 directly decrement the stack pointer, accumulate their operand into
1501 the stack offset, and mark the function as not being frameless.
1502
b6d373df
DJ
15032007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1504
1505 * arch-utils.c (selected_byte_order): New.
1506 * arch-utils.h (selected_byte_order): New prototype.
1507 * remote-sim.c (gdbsim_open): Use selected_byte_order.
1508
2711e456
DJ
15092007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1510
1511 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
1512 (default_symfile_offsets): Check VMA here. Update section VMAs.
1513
baef701f
DJ
15142007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1515
1516 * remote.c (init_remote_state): Add special handling for placeholder
1517 registers.
1518
05a4558a
DJ
15192007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1520
1521 * Makefile.in (XMLFILES): Include $(TDEP_XML).
1522 (filenames_h): New variable.
1523 (clean): Clean up xml-builtin.c and stamp-xml.
1524 (arm-linux-nat.o): Update.
1525 * config/arm/linux.mh (TDEP_XML): Define.
1526 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1527 (arm_linux_has_wmmx_registers): New.
1528 (GET_THREAD_ID): Fix typo.
1529 (IWMMXT_REGS_SIZE): Define.
1530 (fetch_wmmx_regs, store_wmmx_regs): New.
1531 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
1532 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
1533 (super_xfer_partial, arm_linux_xfer_partial): New.
1534 (_initialize_arm_linux_nat): Use them.
1535 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
1536 (xml_builtin_xfer_partial): New function.
1537 * xml-support.h (xml_builtin_xfer_partial): New prototype.
1538 * NEWS: Update mention of iWMMXt support.
1539
ff6f572f
DJ
15402007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1541
1542 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
1543 if there are no FPA registers.
1544 (arm_dwarf_reg_to_regnum): New function.
1545 (arm_register_type, arm_register_name): Return minimal values for
1546 unsupported registers.
1547 (arm_register_sim_regno): Handle iWMMXt registers.
1548 (arm_gdbarch_init): Record missing FPA registers if indicated by
1549 a target description. Recognize iWMMXt registers. Only register
1550 "info float" for FPA. Use ARM_NUM_REGS. Register
1551 arm_dwarf_reg_to_regnum.
1552 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
1553 constants.
1554 (struct gdbarch_tdep): Add have_fpa_registers.
1555 * features/xscale-iwmmxt.xml: Update capitalization.
1556 * regformats/arm-with-iwmmxt.dat: Regenerated.
1557
c077150c
KB
15582007-02-24 Kevin Buettner <kevinb@redhat.com>
1559
1560 * NEWS (New targets): Add entry for the Toshiba Media Processor.
1561
01c996c1
KB
15622007-02-23 Kevin Buettner <kevinb@redhat.com>
1563
1564 * MAINTAINERS (mep): New target.
1565
aeb43123
KB
15662007-02-23 Kevin Buettner <kevinb@redhat.com>
1567
1568 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
1569 Richard Sandiford:
1570 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
1571 (mep-tdep.o): New rule.
1572 * configure.tgt (mep-*-*): New target.
1573 * mep-tdep.c: New file.
1574 * config/mep/mep.mt: New file.
1575
115d86cf
UW
15762007-02-22 Markus Deuling <deuling@de.ibm.com>
1577
1578 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
1579 BREAKPOINT_HIT and STOP_UNKNOWN.
1580
fef862e5
UW
15812007-02-22 Markus Deuling <deuling@de.ibm.com>
1582
1583 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
1584
9a7d5afb
JB
15852007-02-20 Joel Brobecker <brobecker@adacore.com>
1586
1587 * gdb_expat.h (XMLCALL): Define if not already defined.
1588
81de920d
AS
15892007-02-20 Andreas Schwab <schwab@suse.de>
1590
1591 * Makefile.in (symfile.o): Update dependencies.
1592
cb5c8c39
DJ
15932007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1594
1595 * MAINTAINERS: Disable -Werror for cris simulator. Build
1596 sparc64-solaris2.10 instead of the broken sparc-elf.
1597 * solib-frv.c: Include "solib.h".
1598 * Makefile.in (solib-frv.o): Update.
1599 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
1600 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
1601 (xtensa_frame_this_id, xtensa_frame_prev_register)
1602 (xtensa_push_dummy_call): Use %p.
1603
e6bb342a
DJ
16042007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1605
1606 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1607 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
1608 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1609 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
1610 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
1611 (sparc-linux-tdep.o): Update.
1612
ff7a4c00
MG
16132007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
1614
1615 * xtensa-tdep.h (xtensa_reg_mask_t): New.
1616 (xtensa_mask_t): Change mask field to be a separate array.
1617 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
1618 (xtensa_pseudo_register_write, xtensa_unwind_pc)
1619 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1620 (xtensa_breakpoint_from_pc): Remove implicit type casting.
1621 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
1622 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
1623 (mask14, mask15): Rename to
1624 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
1625 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
1626 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
1627 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
1628 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
1629 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
1630 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
1631 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
1632 (xtensa_submask14, xtensa_submask15): New.
1633 (rmap): Follow strict aliasing rules doing static initialization.
1634
d9cc5895
DJ
16352007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
1636
1637 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
1638 handling from here...
1639 (tdesc_register_type): ...to here.
1640 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
1641 * features/arm-core.xml: Use code_ptr and data_ptr.
1642
8756216b
DP
16432007-02-13 Denis Pilat <denis.pilat@st.com>
1644
1645 * varobj.h (enum varobj_update_error): New enum.
1646 * varobj.c (struct varobj_root): Add is_valid member.
1647 (varobj_get_type): Check for invalid varobj.
1648 (varobj_get_attributes): Likewise.
1649 (variable_editable):Likewise.
1650 (varobj_update): Likewise. Use varobj_update_error.
1651 (new_root_variable): Set root varobj as valid by default.
1652 (varobj_invalidate): New function.
1653 * symfile.c (clear_symtab_users): Use varobj_invalidate.
1654 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
1655 Use varobj_update_error.
1656
fe8e67fd
PM
16572007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
1658
1659 Fix PR pascal/2223.
1660 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
1661 Pascal language marker.
1662 * dwarf2read.c (set_cu_language): Likewise.
1663
c44537cf
CV
16642007-02-12 Corinna Vinschen <vinschen@redhat.com>
1665
1666 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1667 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1668 instead of target_terminal_init since inferior_ptid isn't set yet.
1669
20dad8ea
PA
16702007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
1671
1672 * MAINTAINERS (Write After Approval): Add myself.
1673
4ac94eda
FF
16742007-02-09 Fred Fish <fnf@specifix.com>
1675
1676 Based on work by Apple Computer, Inc.
1677 * event-top.c (async_request_quit): Call quit() whenever either
1678 quit_flag is set or immediate_quit is set.
1679
b260b6c1
GDR
16802007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1681
1682 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1683 type to a pointer to const struct block.
1684 (ada_lookup_symbol_list): Don't cast away constness when calling
1685 remove_out_of_scope_renamings.
1686
16872007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1688
1689 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1690 address of 'filename'; it is always non null.
1691
0f5d55d8
JB
16922007-02-09 Joel Brobecker <brobecker@adacore.com>
1693
1694 * exec.c (add_to_section_table): Do not discard empty sections.
1695
fb1e4ffc
DJ
16962007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1697
1698 * features/Makefile, features/arm-with-iwmmxt.xml,
1699 features/gdbserver-regs.xsl, features/number-regs.xsl,
1700 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1701 * regformats/arm-with-iwmmxt.dat: Generate.
1702 * NEWS: Mention iWMMXt.
1703
123dc839
DJ
17042007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1705
1706 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1707 (xml-tdesc.o): Update.
1708 * xml-support.c: Add a comment.
1709 (gdb_xml_enums_boolean): New variable.
1710 (gdb_xml_parse_attr_enum): Use strcasecmp.
1711 * xml-support.h (gdb_xml_enums_boolean): Declare.
1712 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1713 next_regnum, and current_union.
1714 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1715 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1716 (field_attributes, union_children, reg_attributes, union_attributes)
1717 (vector_attributes, feature_attributes, feature_children): New.
1718 (target_children): Make static. Add <feature>.
1719 (tdesc_elements): Make static.
1720 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1721 (struct tdesc_feature, tdesc_feature_p): New types.
1722 (struct target_desc): Add features member.
1723 (struct tdesc_arch_data, tdesc_data): New.
1724 (target_find_description): Clarify error message. Warn about
1725 ignored register descriptions.
1726 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1727 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1728 (tdesc_data_cleanup, tdesc_numbered_register)
1729 (tdesc_numbered_register_choices, tdesc_find_register)
1730 (tdesc_register_name, tdesc_register_type)
1731 (tdesc_remote_register_number, tdesc_register_reggroup_p)
1732 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1733 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1734 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1735 (tdesc_create_feature, tdesc_record_type): New.
1736 (free_target_description): Free features.
1737 (_initialize_target_descriptions): Initialize tdesc_data.
1738 * arch-utils.c (default_remote_register_number): New.
1739 * arch-utils.h (default_remote_register_number): New prototype.
1740 * target-descriptions.h (set_tdesc_pseudo_register_name)
1741 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1742 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1743 (tdesc_numbered_register, tdesc_numbered_register_choices)
1744 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1745 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1746 (tdesc_create_reg): Declare.
1747 * gdbarch.sh (remote_register_number): New entry.
1748 * gdbarch.c, gdbarch.h: Regenerate.
1749 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1750 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1751
1752 * arm-tdep.c (arm_register_aliases): New.
1753 (arm_register_name_strings): Rename to...
1754 (arm_register_names): ...this. Make const. Delete the old version.
1755 (current_option, arm_register_byte): Delete.
1756 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
1757 (value_of_arm_user_reg): New.
1758 (arm_gdbarch_init): Verify any described registers. Call
1759 tdesc_use_registers. Don't use arm_register_byte. Create aliases
1760 for standard register names.
1761 (_initialize_arm_tdep): Do not adjust arm_register_names.
1762 * user-regs.c (struct user_reg): Add baton member.
1763 (append_user_reg, user_reg_add_builtin, user_regs_init)
1764 (user_reg_add, value_of_user_reg): Use a baton for user
1765 register functions.
1766 * std-regs.c: Update.
1767 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1768 (user_reg_add): Add baton argument.
1769 * NEWS: Mention target description register support.
1770 * features/arm-core.xml, features/arm-fpa.xml: New.
1771 * eval.c (evaluate_subexp_standard): Allow ptype $register
1772 when the program is not running.
1773
87604222
NR
17742007-02-09 Nick Roberts <nickrob@snap.net.nz>
1775
1776 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1777
ee4f0f76
DJ
17782007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1779
1780 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1781 info->disassembler_options to "any".
1782
7af9851d
DJ
17832007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1784
1785 * varobj.c (install_new_value): Only call value_get_print_value
1786 if changeable.
1787
8944021f
DJ
17882007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1789
1790 Reported by timeless@gmail.com:
1791 * gdb/target.c (target_flash_erase): Do not return void value.
1792 (target_flash_done): Likewise.
1793 * gdb/cli/cli-cmds.c (source_command): Likewise.
1794
17952007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 1796
4ac94eda 1797 Based on work by Apple Computer, Inc.
5f960e00
FF
1798 * event-top.c (handle_sigint): Set quit_flag.
1799 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1800 if quit_flag has already been reset.
1801
4998c1df
DJ
18022007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1803
1804 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1805 up.
1806
79da184e
FF
18072007-02-08 Fred Fish <fnf@specifix.com>
1808
1809 * defs.h (request_quit): Remove declaration.
1810 * utils.c (request_quit): Remove definition.
1811
3c77c82a
DJ
18122007-02-08 Joel Brobecker <brobecker@gnat.com>
1813 Jan Kratochvil <jan.kratochvil@redhat.com>
1814 Daniel Jacobowitz <dan@codesourcery.com>
1815
1816 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1817 (skip_prologue): Allow bl->blrl used by PIC code.
1818
c1b6e682
DJ
18192007-02-08 Mark Kettenis <kettenis@gnu.org>
1820 Daniel Jacobowitz <dan@codesourcery.com>
1821
1822 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1823 initialize tmp_obstack.
1824 * p-valprint.c (pascal_object_print_value_fields)
1825 (pascal_object_print_value): Likewise.
1826
fe5dedf4
DJ
18272007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1828
1829 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1830
3e461478
MK
18312007-02-08 Mark Kettenis <kettenis@gnu.org>
1832
1833 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1834 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1835
fc6e0168
DJ
18362007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1837
1838 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1839 (xml_cache): New.
1840 (tdesc_parse_xml): Cache expanded descriptions.
1841
108546a0
DJ
18422007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1843
1844 * Makefile.in (XMLFILES): New.
1845 (COMMON_OBS): Add xml-builtin.o.
1846 (xml-builtin.c, stamp-xml): New rules.
1847 (xml-tdesc.o): Update.
1848 * features/feature_to_c.sh: New file.
1849 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1850 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1851 (gdb_xml_start_element): Initialize scope after possibly reallocating
1852 scopes. Move cleanup later. Handle the XInclude description
1853 specially.
1854 (gdb_xml_end_element): Only parse the body if there is a current element.
1855 Call XML_DefaultCurrent if there is no element.
1856 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1857 (struct xinclude_parsing_data, xinclude_start_include)
1858 (xinclude_end_include, xml_xinclude_default)
1859 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1860 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1861 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1862 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1863 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1864 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1865 XInclude directives. Use the compiled in DTD.
1866 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1867 directory name. Do not warn here.
1868 (file_read_description_xml): Update call. Warn here instead. Pass
1869 a dirname as baton.
1870 (fetch_available_features_from_target): New.
1871 (target_read_description_xml): Use it.
1872 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1873 to handle XInclude.
1874 * features/xinclude.dtd: New file.
1875
b5057acd
DJ
18762007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1877
1878 * linux-thread-db.c (check_for_thread_db): Return early if we have
1879 no libthread_db support.
1880
6a089cf2
DJ
18812007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1882
1883 * mi/mi-parse.h: Include <sys/time.h>.
1884
9fbcbb40
NR
18852007-02-05 Nick Roberts <nickrob@snap.net.nz>
1886
1887 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1888 instead of print_variable_value to print values.
1889
b3d2152a
NR
18902007-02-03 Nick Roberts <nickrob@snap.net.nz>
1891
1892 * mi/mi-main.c: Numerous formatting changes.
1893 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1894 removed in my previous change.
1895
79f0a97a
NR
18962007-02-03 Eli Zaretskii <eliz@gnu.org>
1897
1898 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1899 Use 1000000L instead of 1000000.
1900
95a98c01 19012007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
1902
1903 Based on work by Apple Computer, Inc.
1904
1905 * configure.ac: Test for sys/resource.h and getrusage.
1906 * configure, config.in: Regenerate.
1907
1908 * mi/mi-main.c: Include <sys/resource.h> if present.
1909 (rusage): Declare if HAVE_GETRUSAGE.
1910 (current_command_ts, do_timings): New static variables.
1911 (timestamp, print_diff_now, print_diff, timeval_diff):
1912 New static timing functions.
1913 (mi_cmd_enable_timings): New function for new MI command.
1914 (captured_mi_execute_command, mi_execute_async_cli_command):
1915 Call timing functions.
1916
1917 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1918 -enable-timings.
1919
1920 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1921
1922 * mi/mi-parse.h: (mi_timestamp): New structure.
1923 (mi_parse): Add mi_timestamp* member.
1924
99b3d574
DP
19252007-02-02 Denis Pilat <denis.pilat@st.com>
1926
1927 * thread.c (make_cleanup_restore_current_thread): New function.
1928 (info_threads_command): Use of make_cleanup_restore_current_thread
1929 to restore the current thread and the selected frame.
1930 (restore_selected_frame): New function.
1931 (struct current_thread_cleanup): Add frame_id field.
1932 (do_restore_current_thread_cleanup): Add restoring of the selected
1933 frame.
1934 (make_cleanup_restore_current_thread): Likewise.
1935 (thread_apply_all_command): backup the selected frame while
1936 entering the function and restore it at exit.
1937 (thread_apply_command): Likewise.
1938
d3c598de
DP
19392007-02-02 Denis Pilat <denis.pilat@st.com>
1940
1941 * MAINTAINERS (Write After Approval): Add myself to the list.
1942
b69733ab 19432007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
1944
1945 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1946 (m32r_store_register): Ditto.
1947
b69733ab 19482007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
1949
1950 * ser-mingw.c (pipe_windows_open)
1951 (pipe_windows_read, pipe_windows_write): Declare
1952 variables at the top of the function.
1953
8da61cc4
DJ
19542007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1955
1956 * doublest.c (floatformat_from_length): Use the right element from
1957 gdbarch floatformats.
1958 (floatformat_from_type, extract_typed_floating)
1959 (store_typed_floating): Likewise.
1960 * doublest.h: Remove declarations for undefined floatformat arrays.
1961 * gdbarch.sh (float_format, double_format, long_double_format): Change
1962 to pairs.
1963 (pformat): Update for pairs.
1964 * gdbarch.c, gdbarch.h: Regenerated.
1965 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1966 (floatformats_ieee_double_littlebyte_bigword)
1967 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1968 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1969 (floatformats_vax_d): New variables.
1970 (builtin_type_ieee_single, builtin_type_ieee_double)
1971 (builtin_type_arm_ext, builtin_type_ia64_spill)
1972 (builtin_type_ia64_quad): Replace arrays with individual types.
1973 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1974 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1975 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1976 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1977 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1978 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1979 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1980 unused and endian-specific types.
1981 (recursive_dump_type): Update for floatformat pairs.
1982 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1983 (build_gdbtypes): Use build_flt.
1984 (_initialize_gdbtypes): Update set of initialized types.
1985 * gdbtypes.h: Update declarations to match gdbtypes.c.
1986 (struct main_type): Store a pointer to two floatformats.
1987 * arch-utils.c (default_float_format, default_double_format): Delete.
1988 * arch-utils.h (default_float_format, default_double_format): Delete.
1989
1990 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1991 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1992 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1993 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1994 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1995
87680a14
JB
19962007-01-29 Joel Brobecker <brobecker@adacore.com>
1997
1998 * target.c (maintenance_print_target_stack): New function.
1999 (initialize_targets): Add new "maintenance print target-stack"
2000 command.
2001
1c3d648d
MK
20022007-01-28 Mark Kettenis <kettenis@gnu.org>
2003
2004 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
2005
607269ae
DJ
20062007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
2007
2008 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
2009 (struct dwarf2_loclist_baton): Likewise.
2010
40c03ae8
EZ
20112007-01-27 Eli Zaretskii <eliz@gnu.org>
2012
2013 * cli/cli-script.c: Include breakpoint.h.
2014 (build_command_line): Require arguments only for if and while
2015 commands.
2016 (get_command_line, execute_user_command, execute_control_command):
2017 Fix wording of warning messages.
2018 (print_command_lines): Print breakpoint commands.
2019 (execute_control_command): Call commands_from_control_command to
2020 handle the `commands' command inside a body of a flow-control
2021 command.
2022 (read_next_line): Recognize the `commands' command and build a
2023 command line structure for it.
2024 (recurse_read_control_structure, read_command_lines): Handle
2025 `commands' similarly to `if' and `while'.
2026
2027 * breakpoint.c (get_number_trailer): Document the special meaning
2028 of NULL as the first argument PP.
2029 (commands_from_control_command): New function.
2030
2031 * breakpoint.h (commands_from_control_command): Add prototype.
2032
2033 * defs.h (commands_control): New enumerated value for enum
2034 command_control_type.
2035
4b9eee8c
JB
20362007-01-26 Joel Brobecker <brobecker@adacore.com>
2037
2038 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
2039 (ada_exception_sal): Update accordingly.
2040
e1f48ead
JK
20412007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2042
2043 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
2044 * NEWS: Describe CHAR array vs. string identifcation rules.
2045
e150acc7
PB
20462007-01-25 Paul Brook <paul@codesourcery.com>
2047
2048 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
2049
10fb19b6
JB
20502007-01-24 Jim Blandy <jimb@codesourcery.com>
2051
2052 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
2053 expression is empty, bother to return the 'optimized out' value we
2054 construct. (Thanks to Carl Burch.)
2055
85d93f1d
VP
20562007-01-24 Vladimir Prus <vladimir@codesourcery.com>
2057
2058 * varobj.c (c_value_of_root, c_value_of_child)
2059 (cplus_describe_child): Don't call release_value.
2060
fcbd8a5c
TS
20612007-01-24 Thiemo Seufer <ths@mips.com>
2062
2063 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
2064 initialization.
2065
2024f65a
VP
20662007-01-24 Vladimir Prus <vladimir@codesourcery.com>
2067
2068 Refactor getting children name, value and type access
2069 for varobjs in C++.
2070 * varobj.c (get_type_deref): Remove.
2071 (adjust_value_for_child_access): New.
2072 (c_number_of_children): Use the above.
2073 (c_describe_child): Likewise.
2074 (enum accessibility): New.
2075 (match_accessibility): New function.
2076 (cplus_describe_child): New function.
2077 (cplus_name_of_child, cplus_value_of_child)
2078 (cplus_type_of_child): Reimplement in terms
2079 of cplus_describe_child.
2080 (cplus_number_of_children): Use
2081 adjust_value_for_child_access.
2082
6e2a9270
VP
20832007-01-24 Vladimir Prus <vladimir@codesourcery.com>
2084
2085 Fix computation of the 'editable' attribute and
2086 value changeability for for references.
2087 * varobj.c (get_value_type): New function.
2088 (c_variable_editable): Use get_value_type.
2089 (varobj_value_is_changeable): Likewise.
2090
56163ce1
JB
20912007-01-24 Joel Brobecker <brobecker@adacore.com>
2092
2093 * source.c (find_and_open_source): Try rewriting the source
2094 path inside filename if dirname is NULL.
2095
8c6860bb
JB
20962007-01-24 Joel Brobecker <brobecker@adacore.com>
2097
2098 * dwarf2read.c (add_partial_symbol): Create an extra partial
2099 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
2100 (new_symbol): Likewise for symbols.
2101
6db6d2ca
NR
21022007-01-24 Nick Roberts <nickrob@snap.net.nz>
2103
2104 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
2105
7d85ee02
VP
21062007-01-23 Vladimir Prus <vladimir@codesourcery.com>
2107
2108 * value.c (value_primitive_field): Copy the full 'location'
2109 contents, instead of assuming that copying ADDRESS will
2110 bring over everything in the union. Remove obsolete comment.
2111
f79b9530
DJ
21122007-01-23 Masaki Muranaka <monaka@monami-software.com>
2113
2114 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
2115 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
2116 (m32c_m16c_pointer_to_address): Separate code from declarations.
2117
08d8bcd7
DJ
21182007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
2119
2120 * target.c (update_current_target): Correct typo.
2121
57fdbbbe
CV
21222007-01-22 Masaki Muranaka <monaka@monami-software.com>
2123
2124 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
2125 declaration.
2126
58894217
JK
21272007-01-11 Andrew Cagney <cagney@redhat.com>
2128 Daniel Jacobowitz <dan@codesourcery.com>
2129 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 * dwarf2-frame.c (execute_cfa_program): New support of
2132 `DW_CFA_GNU_negative_offset_extended'.
2133
9ebce043
DJ
21342007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2135
2136 * NEWS: Mention flash support for "load" and new remote packets.
2137
973d738b
DJ
21382007-01-21 Markus Deuling <deuling@de.ibm.com>
2139
2140 * breakpoint.c (delete_command): Skip redundant loop iterations.
2141
7b9ee6a8
DJ
21422007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2143
2144 * gdbarch.sh (register_type): Update comment.
2145 * gdbarch.h: Regenerated.
2146 * arch-utils.c (generic_register_size): Call register_type.
2147 * ia64-tdep.c (ia64_extract_return_value): Likewise.
2148 * m32c-tdep.c (check_for_saved): Likewise.
2149 * mips-tdep.c (mips_print_register, print_gp_register_row)
2150 (mips_print_registers_info): Likewise.
2151 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
2152 Likewise.
2153 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
2154 (sh64_do_register, sh64_print_register)
2155 (sh64_media_print_registers_info): Likewise.
2156 * tui/tui-regs.c (tui_register_format): Likewise.
2157
11309657
DJ
21582007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
2159
2160 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
2161
2162 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
2163 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
2164 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
2165 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
2166 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
2167 (make_symbol_completion_list): Likewise.
2168
cb1df416
DJ
21692007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2170 Daniel Jacobowitz <dan@codesourcery.com>
2171
2172 * buildsym.c (end_symtab): Use preallocated symtab if available.
2173 Fill in SYMBOL_SYMTAB.
2174 * buildsym.h (struct subfile): Add symtab member.
2175 * dwarf2read.c (struct dwarf2_cu): Add line_header.
2176 (struct file_entry): Add symtab.
2177 (free_cu_line_header): New function.
2178 (read_file_scope): Use it. Save line_header in the cu. Process
2179 lines before DIEs.
2180 (add_file_name): Initialize new symtab member.
2181 (dwarf_decode_lines): Create symtabs for included files.
2182 (new_symbol): Set SYMBOL_SYMTAB.
2183 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
2184 (search_symbols): Likewise.
2185 * symtab.h (struct symbol): Add symtab member.
2186 (SYMBOL_SYMTAB): Define.
2187
727da900
DJ
21882007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2189
2190 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
2191
7b6b9e83
DJ
21922007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2193
2194 * arch-utils.c (show_endian): Correct reversed condition.
2195
e767400c
JK
21962007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2197
2198 * MAINTAINERS (Write After Approval): Add myself.
2199
b20d8971
VP
22002007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
2201 Vladimir Prus <vladimir@codesourcery.com>
2202
2203 Fix 'selected frame' varobjs.
2204 * varobj.c (struct varobj): Remove the error field.
2205 (varobj_set_value): Don't check var->error.
2206 (install_new_value): Don't set var->error.
2207 (varobj_update): Always pass the new value
2208 of the root via install_new_value.
2209 (create_child): Don't set error field.
2210 (new_variable): Likewise.
2211 (c_value_of_root): Always reevaluate the value
2212 of selected frame varobjs in the selected frame.
2213 Don't call reinit_frame_cache.
2214
7ef2b397
JB
22152007-01-15 Joel Brobecker <brobecker@adacore.com>
2216
2217 * source.c (_initialize_source): Improve the help text of
2218 the substitute-path commands.
2219
1208538e
MK
22202007-01-14 Mark Kettenis <kettenis@gnu.org>
2221
2222 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
2223 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
2224 (frv_skip_prologue): Remove prototypes.
2225 (frv_adjust_breakpoint_address): Renamed from
2226 frv_gdbarch_adjust_breakpoint_address.
2227 (frv_gdbarch_init): Adjust.
2228
765f065a
MK
22292007-01-13 Mark Kettenis <kettenis@gnu.org>
2230
5e66aab2
MK
2231 * gdbarch.sh (deprecated_extract_return_value)
2232 (deprecated_store_return_value): Remove.
2233 (extract_return_value, store_return_value): Remove default values.
2234 * gdbarch.c, gdbarch.h: Regenerate.
2235 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
2236 (legacy_store_return_value): Remove.
2237 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
2238 Remove.
2239
56178203
MK
2240 * mi/mi-main.c: Remove obsolete comment.
2241
23303b2e
MK
2242 * regcache.c, regcache.h (deprecated_register_bytes)
2243 (deprecated_read_register_bytes)
2244 (deprecated_write_register_bytes): Remove.
2245
765f065a
MK
2246 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
2247 Don't forget to move destination pointer.
2248
610acfff
MK
22492007-01-01 Mark Kettenis <kettenis@gnu.org>
2250
2251 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
2252
12102450
UW
22532007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
2254
2255 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
2256 past entry function with recent newlib.
2257
c8b2f53c
VP
22582007-01-11 Vladimir Prus <vladimir@codesourcery.com>
2259
2260 * gdb.texinfo (GDB/MI Variable Objects): Improve the
2261 introduction. Specify -var-update more exactly.
2262
d57df5e4
DJ
22632007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
2264
2265 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
2266
03f597d5
JB
22672007-01-10 Jim Blandy <jimb@codesourcery.com>
2268
2269 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
2270 the Global Maintainers' invitation to be a global maintainer.
2271
fd48f117
DJ
22722007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
2273
2274 * infrun.c (singlestep_pc): New variable.
2275 (resume): Set singlestep_pc.
2276 (context_switch): Add a debugging message. Flush the frame cache.
2277 (handle_inferior_event): Add debugging messages. Handle thread
2278 hops when a software single step has completed. Let context_switch
2279 handle flushing the frame cache.
2280
23181151
DJ
22812007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2282
2283 * NEWS: Mention target descriptions, "set tdesc filename",
2284 "unset tdesc filename", "show tdesc filename", and
2285 qXfer:features:read.
2286 * arch-utils.c (choose_architecture_for_target): New function.
2287 (gdbarch_info_fill): Call it.
2288 * target-descriptions.c (struct property): Make members non-const.
2289 (struct target_desc): Add arch member.
2290 (target_description_filename): New variable.
2291 (target_find_description): Try via XML first.
2292 (tdesc_architecture): New.
2293 (free_target_description, make_cleanup_free_target_description): New.
2294 (set_tdesc_property): Call xstrdup.
2295 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
2296 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
2297 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
2298 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
2299 * target-descriptions.h (tdesc_architecture)
2300 (make_cleanup_free_target_description, set_tdesc_architecture): New
2301 prototypes.
2302 * Makefile.in (SFILES): Add xml-tdesc.c.
2303 (COMMON_OBS): Add xml-tdesc.o.
2304 (target-descriptions.o): Update.
2305 (xml-tdesc.o): New rule.
2306 * xml-tdesc.c, xml-tdesc.h: New files.
2307 * remote.c (PACKET_qXfer_features): New enum.
2308 (remote_protocol_features): Add qXfer:features:read.
2309 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
2310 (_initialize_remote): Register qXfer:features:read.
2311 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
2312 * features/gdb-target.dtd: New file.
2313
3e9cb5f4
DJ
23142007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2315
2316 * copyright.sh: Clarify error.
2317
818f79f6
DJ
23182007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2319
2320 * symtab.c (matching_bfd_sections): Fix VMA matching for
2321 prelinked objects.
2322
f7a6bb70
DJ
23232007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2324
2325 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
2326 nested symbols.
2327
20ac0504
DJ
23282007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2329
2330 Updated copyright notices for most files.
2331
85bb0718
DJ
23322007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2333
2334 * copyright.sh (prunes): Add step-line.inp and step-line.c.
2335
aa28a74e
DJ
23362007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2337
2338 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
2339 exec_prefix.
2340 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
2341 '${prefix}'.
2342 * configure, config.in: Regenerate.
2343 * defs.h (debug_file_directory): Declare.
2344 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
2345 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
2346 relocate it if DEBUGDIR_RELOCATABLE.
2347 * symfile.c (debug_file_directory): Make non-static.
2348 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
2349 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
2350 (_initialize_symfile): Don't initialize debug_file_directory here.
2351
1cfd2c3e
JB
23522007-01-09 Jim Blandy <jimb@codesourcery.com>
2353
2354 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
2355 statements.
2356
5efde112
DJ
23572007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2358
2359 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
2360 frame_unwind_register to recurse.
2361 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
2362 (alpha_heuristic_frame_prev_register): Likewise.
2363 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
2364 * m32c-tdep.c (m32c_prev_register): Likewise.
2365 * frame.c (frame_register_unwind_location): Remove FIXME.
2366
4de1f557
DJ
23672007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2368 Eli Zaretskii <eliz@gnu.org>
2369
2370 * copyright.sh: New file.
2371
ca4ca11e
DJ
23722007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2373
2374 * configure.ac: Check for XML_StopParser.
2375 * xml-support.c (gdb_xml_body_text): Check for an error.
2376 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
2377 (gdb_xml_end_element_wrapper): Likewise.
2378 * config.in, configure: Regenerated.
2379
57e66780
DJ
23802007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2381
2382 * varobj.c (install_new_value): Always update print_value.
2383 (value_get_print_value): Immediately return NULL for missing
2384 values.
2385
b523a1fd
JB
23862007-01-08 Jim Blandy <jimb@codesourcery.com>
2387
2388 * configure.ac: Tighten pattern for extracting value of
2389 DEPRECATED_TM_FILE from the target makefile fragment.
2390 * configure: Regenerated.
2391
3d799a95
DJ
23922007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2393
2394 * linux-nat.c (struct simple_pid_list): Add status.
2395 (add_to_pid_list): Record the PID's status.
2396 (linux_record_stopped_pid): Likewise. Make static.
2397 (pull_pid_from_list): Return the saved status.
2398 (linux_nat_handle_extended): Deleted.
2399 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
2400 Make static. Handle non-SIGSTOP for a new thread's first signal.
2401 (flush_callback): Handle unexpected pending signals.
2402 (linux_nat_wait): Update calls to changed functions.
2403 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
2404 Remove prototypes for newly static functions.
2405
9acbedc0
UW
24062007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2407
2408 * gdbarch.sh (value_from_register): New gdbarch function.
2409 * gdbarch.c, gdbarch.h: Regenerate.
2410 * findvar.c (default_value_from_register): New function.
2411 (value_from_register): Use gdbarch_value_from_register.
2412 * value.h (default_value_from_register): Declare.
2413 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
2414 spu_value_to_register): Remove.
2415 (spu_value_from_register): New function.
2416 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2417 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2418 Call set_gdbarch_value_from_register.
2419 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
2420 s390_value_to_register): Remove.
2421 (s390_value_from_register): New function.
2422 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2423 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2424 Call set_gdbarch_value_from_register.
2425
f822c95b
DJ
24262007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2427
2428 * NEWS: Add "set sysroot" and "show sysroot".
2429 * solib.c (solib_absolute_prefix): Delete. Replace
2430 all uses with gdb_sysroot.
2431 (_initialize_solib): Add "set sysroot" and "show sysroot".
2432 Make "solib-absolute-prefix" an alias to it.
2433
00fa51f6
UW
24342007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2435
2436 * frame.c (get_frame_register_bytes): New function.
2437 (put_frame_register_bytes): Likewise.
2438 * frame.h (get_frame_register_bytes): Declare.
2439 (put_frame_register_bytes): Likewise.
2440 * findvar.c (value_from_register): Always construct lval_register
2441 values. Use get_frame_register_bytes.
2442 * valops.c (value_assign): Use get_frame_register_bytes and
2443 put_frame_register_bytes.
2444
a95c9d06
JB
24452007-01-08 Jim Blandy <jimb@codesourcery.com>
2446
2447 * MAINTAINERS: Update Stan Shebs' email address.
2448
4ed6b5be
JB
24492007-01-07 Joel Brobecker <brobecker@adacore.com>
2450
2451 * ada-lang.c (is_known_support_routine): Improve the implementation.
2452
9bbc9174
JB
24532007-01-06 Joel Brobecker <brobecker@adacore.com>
2454
2455 * ada-lang.c: Add include of source.h.
2456 (is_known_support_routine): Improve the check verifying that the file
2457 associated to this frame exists.
2458 * Makefile.in (ada-lang.o): Add dependency on source.h.
2459
44a81774
JB
24602007-01-07 Jim Blandy <jimb@codesourcery.com>
2461
2462 * ax-general.c (ax_const_l): Select proper opcode for the given
2463 value.
2464
fcd19eb1 24652007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6fe1a487
NR
2466
2467 * varobj.c (c_value_of_root): Don't select frame if variable
2468 object is out of scope.
2469
fcd19eb1 24702007-01-05 Nick Roberts <nickrob@snap.net.nz>
3fa6deb5
NR
2471
2472 * varobj.c (struct varobj): New member print_value.
2473 (install_new_value): Compare last printed value with current one
2474 instead of contents.
2475 (new_variable): Initialize var->print_value to NULL.
2476 (free_variable): Free var->print_value.
2477 (value_get_print_value): New function derived from
2478 c_value_of_variable.
2479 (c_value_of_variable): Use value_get_print_value.
2480
92a56b20
JB
24812007-01-05 Joel Brobecker <brobecker@adacore.com>
2482
2483 * i386-tdep.c (i386_analyze_stack_align): Add comment.
2484
0e420bd8
JB
24852007-01-05 Joel Brobecker <brobecker@adacore.com>
2486
2487 * NEWS: Add entries for new catch commands.
2488
b69733ab 24892007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
2490
2491 * dwarf2read.c (partial_die_info): Add field has_byte_size.
2492 (add_partial_symbol): Correct identification of external references.
2493 (process_structure_scope): Likewise.
2494 (read_partial_die): Handle DW_AT_byte_size attribute.
2495
24962007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
2497
2498 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
2499
8e38af42
NR
25002007-01-05 Nick Roberts <nickrob@snap.net.nz>
2501
2502 * varobj.c (get_type_deref): Fix variable objects for references to
2503 pointers.
2504
d1c79ecd
DJ
25052007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2506
2507 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
2508 with no symbols.
2509
e776119f
DJ
25102007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2511
2512 * memory-map.c (struct_memory_map_parsing_data): Remove most
2513 members. Make property_name an array.
2514 (free_memory_map_parsing_data, memory_map_start_element)
2515 (memory_map_end_element, memory_map_character_data): Delete.
2516 (memory_map_start_memory, memory_map_end_memory)
2517 (memory_map_start_property, memory_map_end_property): New functions.
2518 (property_attributes, memory_children, memory_type_enum)
2519 (memory_attributes, memory_map_children, memory_map_elements): New.
2520 (parse_memory_map): Rewrite.
2521 * xml-support.c (debug_xml): New.
2522 (xml_get_required_attribute, xml_get_integer_attribute)
2523 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
2524 Delete.
2525 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
2526 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
2527 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
2528 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
2529 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
2530 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
2531 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
2532 New.
2533 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
2534 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
2535 (enum gdb_xml_element_flag, struct gdb_xml_element)
2536 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
2537 (struct gdb_xml_enum): New.
2538 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
2539 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
2540 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
2541 (xml_get_required_attribute, xml_get_integer_attribute)
2542 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
2543 * Makefile.in (xml_support_h, xml-support.o): Update.
2544
5e572bb4
DJ
25452007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2546
2547 * Makefile.in (eval.o): Update dependencies.
2548 * eval.c: Include "ui-out.h" and "exceptions.h".
2549 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
2550 Use value_zero if an error occurs when avoiding side effects.
2551 * varobj.c (c_value_of_root): Initialize new_val.
2552
74a44383
DJ
25532007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2554
2555 * varobj.c (varobj_list_children): Stop if the number of children is
2556 unknown.
2557 (c_number_of_children):
2558
e8d2d628
MK
25592007-01-04 Mark Kettenis <kettenis@gnu.org>
2560
2561 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
2562 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
2563 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
2564 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
2565 sizeof, instead of hardcoded constants.
2566
c941839d
DJ
25672007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2568
2569 * CONTRIBUTE: Use sourceware.org.
2570
303b6f5d 25712007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 2572
303b6f5d
DJ
2573 * buildsym.c (start_subfile): Handle producer.
2574 (record_producer): New function.
2575 * buildsym.h (struct subfile): Include producer.
2576 (record_producer): New prototype.
2577 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
2578 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
2579 armcc_cfa_offsets_reversed.
2580 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
2581 (dwarf2_frame_find_quirks): New function.
2582 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
2583 (decode_frame_entry_1): Record the CIE version. Record the
2584 augmentation. Skip armcc augmentations.
2585 * dwarf2read.c (read_file_scope): Save the producer.
2586 * symtab.h (struct symtab): Rename unused version member to
2587 producer.
2d0720d9 2588
aa79a185
DJ
25892007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2590
2591 * configure.ac (build_warnings): Use -Wall and
2592 -Wdeclaration-after-statement.
2593 * configure: Regenerated.
2594
bbec2603
VP
25952007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2596
2597 Simplify access to variours properties of child
2598 variable objects in C.
2599 * varobj.c (value_struct_element_index): New function.
2600 (c_describe_child): New function.
2601 (c_name_of_child, c_value_of_child)
2602 (c_type_of_child): Rewrite to use c_describe_child.
2603
28335dcc
VP
26042007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2605
2606 gdb/
2607 * varobj.c: Include "vec.h".
2608 (varobj_p): New typedef, declare vector of those.
2609 (struct varobj): Use vector for the 'children' member.
2610 (child_exists): Remove.
2611 (save_child_in_parent): Remove.
2612 (remove_child_from_parent): Remove.
2613 (struct varobj_child): Remove.
2614 (struct vstack): Remove.
2615 (vpush, vpop): Remove.
2616 (varobj_list_children): Adjust to work work vector.
2617 (varobj_update): Likewise. Use vectors for
2618 working stack and result.
2619 (delete_variable_1): Likewise.
2620 * Makefile.in (varobj.o): Update dependencies.
2621
b2c2bd75
VP
26222007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2623
2624 Port from Apple's version.
2625 gdb/
2626 * varobj.c (type_changeable): Rename to...
2627 (varobj_value_is_changeable_p): ...this. Adjust all callers.
2628 (is_root_p): New function. Use it everywhere.
2629
bdfb3870
JB
26302007-01-04 Jim Blandy <jimb@codesourcery.com>
2631
2632 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
2633 then plain 'fixup'.
2634
5d15052e
JB
26352007-01-04 Joel Brobecker <brobecker@adacore.com>
2636
2637 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
2638
53103997
JB
26392007-01-04 Joel Brobecker <brobecker@adacore.com>
2640
2641 * hpread.c (hpread_type_lookup): Fix compilation failure.
2642
27fd2f50
Q
26432007-01-04 Qinwei <qinwei@sunnorth.com.cn>
2644
2645 * NEWS: New port to S+core.
2646 * MAINTAINERS (Write After Approval, Responsible Maintainers):
2647 Add myself.
2648
2649 * Makefile.in: Add dependencies for S+core files.
2650 * configure.tgt (score*, score-*-*): Add S+core target.
2651 * config/score/embed.mt: New file.
2652 * score-tdep.c: New file.
2653 * score-tdep.h: New file.
2654
a6cfbe68
JB
26552007-01-04 Joel Brobecker <brobecker@adacore.com>
2656
2657 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
2658 the appropriate type rather than a bogus void type.
2659
67cf15b7 26602007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
2661
2662 * ada-lang.h (ada_find_printable_frame): Remove.
2663 (ada_exception_catchpoint_p, ada_decode_exception_location)
2664 (ada_decode_assert_location): Add declaration.
2665 * ada-lang.c: Add include of annotate.h and valprint.h.
2666 (exception_catchpoint_kind): New enum.
2667 (function_name_from_pc, is_known_support_routine)
2668 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2669 (ada_exception_name_addr_1, ada_exception_name_addr)
2670 (print_it_exception, print_one_exception, print_mention_exception)
2671 (print_it_catch_exception, print_one_catch_exception)
2672 (print_mention_catch_exception, catch_exception_breakpoint_ops)
2673 (print_it_catch_exception_unhandled)
2674 (print_one_catch_exception_unhandled)
2675 (print_mention_catch_exception_unhandled, print_it_catch_assert)
2676 (print_one_catch_assert, print_mention_catch_assert)
2677 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2678 (ada_get_next_arg, catch_ada_exception_command_split)
2679 (ada_exception_sym_name, ada_exception_sym_name)
2680 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2681 (ada_parse_catchpoint_condition, ada_exception_sal)
2682 (ada_decode_exception_location)
2683 (ada_decode_assert_location): New function.
2684 (catch_exception_unhandled_breakpoint_ops): New global variable.
2685 (catch_assert_breakpoint_ops): New global variable.
2686 * breakpoint.c: Add include of ada-lang.h.
2687 (print_one_breakpoint): Do not print the condition for Ada
2688 exception catchpoints.
2689 (create_ada_exception_breakpoint): New function.
2690 (catch_ada_exception_command, catch_assert_command): New function.
2691 (catch_command_1): Add support for the new "catch exception" and
2692 "catch assert" commands.
2693 (_initialize_breakpoint): Add help description for the new catch
2694 commands.
2695 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2696 valprint.h.
2697 (breakpoint.o): Add dependency on ada-lang.h.
2698
05cfdb42
DJ
26992007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
2700
2701 * coffread.c (cs_to_section): If bfd_section is found, always
2702 return its section index.
2703 (coff_symtab_read): Determine the minimal_symbol_type using the
2704 bfd_section flags.
2705
2e03ee74
DJ
27062007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2707 Daniel Jacobowitz <dan@codesourcery.com>
2708
2709 * Makefile.in (top.o): Update.
2710 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2711 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2712 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2713 New.
2714 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2715
1c63d086
MK
27162007-01-03 Mark Kettenis <kettenis@gnu.org>
2717
2718 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2719 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2720
d5d6fca5
DJ
27212007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2722
2723 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2724 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2725 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2726 greater than or equal to zero.
2727 * m2-typeprint.c (m2_array): Likewise.
2728 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2729 * gdbtypes.c (copy_type_recursive): Correct == typo.
2730 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2731 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2732 greater than zero.
2733 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2734 (default_macro_scope): Remove unused variable.
2735 * prologue-value.h (pv_area_find_reg): Don't name an argument
2736 "register".
2737 * remote-fileio.c (remote_fio_func_map): Add missing braces.
2738 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2739 type.
2740 (cleanup_sigint_signal_handler): Remove casts.
2741 * valprint.c (val_print): Use a volatile local for the modified
2742 argument.
2743 * varobj.c (languages): Remove extra array dimension.
2744 (varobj_create): Correct access to languages array.
2745 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2746 missing braces.
2747 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2748 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2749 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2750 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2751 (mi_cmd_data_write_memory): Likewise.
2752 * signals/signals.c (target_signal_to_string): Cast to int before
2753 comparing.
2754 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2755 Update all callers.
2756
0d5de010
DJ
27572007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2758
2759 * NEWS: Mention pointer to member improvements.
2760 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2761 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2762 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2763 * c-typeprint.c (c_print_type): Update for new type codes.
2764 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2765 (c_type_print_base): Likewise.
2766 (c_type_print_args): Rewrite.
2767 * c-valprint.c (c_val_print): Update for new type codes. Remove
2768 support for references to members. Treat methods like functions.
2769 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2770 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2771 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2772 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2773 (struct cp_abi_ops): Add corresponding members.
2774 * cp-valprint.c (cp_print_class_method): Delete.
2775 (cp_find_class_member): New function.
2776 (cp_print_class_member): Use it. Simplify support for bogus
2777 member pointers.
2778 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2779 lookup_methodptr_type.
2780 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2781 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2782 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2783 pointer support.
2784 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2785 references returned by user defined operators.
2786 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2787 (f_type_print_varspec_suffix): Remove support for member pointers.
2788 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2789 and adjusted.
2790 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2791 (lookup_methodptr_type): New.
2792 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2793 (recursive_dump_type): Update for new types.
2794 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2795 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2796 (lookup_memberptr_type, lookup_methodptr_type)
2797 (smash_to_memberptr_type): New prototypes.
2798 (smash_to_method_type): Formatting fix.
2799 (lookup_member_type, smash_to_member_type): Delete prototypes.
2800 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2801 Do not rely on debug information for the vptr or the method's
2802 enclosing type. Handle function descriptors for IA64.
2803 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2804 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2805 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2806 (gnuv3_method_ptr_to_value): New.
2807 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2808 * hpread.c (hpread_type_lookup): Update for new types.
2809 * infcall.c (value_arg_coerce): Likewise.
2810 * m2-typeprint.c (m2_print_type): Remove explicit support
2811 for member pointers.
2812 * m2-valprint.c (m2_val_print): Likewise.
2813 * p-typeprint.c (pascal_type_print_varspec_prefix)
2814 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2815 * p-valprint.c (pascal_val_print): Likewise.
2816 (pascal_object_print_class_method, pascal_object_print_class_member):
2817 Delete.
2818 * p-lang.h (pascal_object_print_class_method)
2819 (pascal_object_print_class_member): Delete prototypes.
2820 * stabsread.c (read_type): Update for new types.
2821 * typeprint.c (print_type_scalar): Likewise.
2822 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2823 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2824 argument. Construct a pointer to member if the address of a
2825 function or data member is requested.
2826 (value_cast_pointers): Don't modify the input value.
2827 (value_cast): Adjust pointer to member handling for new types.
2828 Allow null pointer to member constants. Don't modify the input
2829 value.
2830 (value_ind): Remove pointer to member check. Handle function
2831 descriptors for function pointers.
2832 (value_struct_elt, value_find_oload_method_list, check_field):
2833 Remove pointer to member checks.
2834 * value.c (unpack_long): Allow pointers to data members.
2835 (value_from_longest): Allow member pointers.
2836 * value.h (value_aggregate_elt): Add want_address.
2837 * varobj.c (c_variable_editable): Remove check for members.
2838 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2839 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2840 in virtual tables.
2841 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2842 * c-lang.h (cp_print_class_method): Delete prototype.
2843 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2844 * mips-tdep.c (mips_gdbarch_init): Likewise.
2845 * gdbarch.c, gdbarch.h: Regenerated.
2846
d217aaed
MK
28472007-01-01 Mark Kettenis <kettenis@gnu.org>
2848
2849 * rs6000-tdep.c (rs6000_use_struct_convention)
2850 (rs6000_extract_return_value, rs6000_store_return_value)
2851 (rs6000_extract_struct_value_address): Remove.
2852 (rs6000_return_value): New function.
2853 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2854 store_return_value, deprecated_extract_struct_value_address and
2855 deprecated_use_struct_convention. Use rs6000_return_value
2856 instead.
2857
02296b29
NR
28582007-01-02 Nick Roberts <nickrob@snap.net.nz>
2859
2860 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2861 -display-disable, -display-enable, -display-insert and
2862 -display-list.
2863
b69733ab 28642007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
2865
2866 * breakpoint.c (remove_breakpoint): Remove dead code.
2867
28682007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
2869
2870 * varobj.c: Include block.h.
2871 (c_value_of_root): Check scope within nested statements.
2872
9f3a1602
MK
28732007-01-01 Mark Kettenis <kettenis@gnu.org>
2874
2875 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2876 regcache_cooked_write_signed instead of
2877 deprecated_write_register_bytes.
2878
12349ccd
JB
28792007-01-01 Joel Brobecker <brobecker@adacore.com>
2880
2881 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2882
8c48ebcf
JB
28832007-01-01 Joel Brobecker <brobecker@adacore.com>
2884
2885 Followed the Start of New Year Procedure:
2886 * ChangeLog-2006: New file, containing all the entries for 2006.
2887 * ChangeLog: Removed all 2006 entries, and changed the reference
2888 to the previous ChangeLog to point to ChangeLog 2006.
2889 * top.c (print_gdb_version): Update copyright year.
2890
154927ff
MK
28912007-01-01 Mark Kettenis <kettenis@gnu.org>
2892
2893 * Makefile.in (remote-sds.o): Remove.
2894 * remote-sds.c: Delete.
2895
8c48ebcf 2896For older changes see ChangeLog-2006.
c906108c
SS
2897\f
2898Local Variables:
2899mode: change-log
2900left-margin: 8
2901fill-column: 74
2902version-control: never
2903End: