1 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4 pointed to by GREGSETP.
6 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
8 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
9 of regcache_raw_read_signed.
10 (fill_fpregset): Use regcache_raw_collect instead of
13 2007-05-03 Kevin Buettner <kevinb@redhat.com>
15 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
16 point arguments, test explicitly for use of the EABI32 ABI
17 instead of inferring this condition from tests on register
20 2007-05-03 Kevin Buettner <kevinb@redhat.com>
22 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
23 prior to allocating its location.
25 2007-05-02 Maciej W. Rozycki <macro@mips.com>
27 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
28 based on mips_abi_regsize() whose result is known in advance.
29 (mips_o64_push_dummy_call): Likewise.
31 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
33 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
34 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
36 * mips-linux-nat.c: Include "gregset.h".
37 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
38 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
39 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
40 fill_fpregset): Move to mips-linux-nat.c.
42 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
44 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
46 * regcache.c (deprecated_read_register_gen): Remove, inline ...
47 (read_register): ... here.
48 (deprecated_write_register_gen): Remove, inline ...
49 (write_register): ... here.
50 * regcache.h (deprecated_read_register_gen): Remove prototype.
51 (deprecated_write_register_gen): Likewise.
53 * remote-sim.c (gdbsim_store_register): Replace call to
54 deprecated_read_register_gen with regcache_cooked_read.
55 * target.c (debug_print_register): Replace calls to
56 deprecated_read_register_gen and read_register with
59 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
61 * hpux-thread.c (hpux_thread_store_registers): Use
62 regcache_raw_collect, not regcache_raw_read.
63 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
64 not regcache_raw_write.
66 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
68 * gdbarch.sh: Remove deprecated_register_byte.
69 * gdbarch.c, gdbarch.h: Regenerate.
70 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
71 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
73 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
74 * regcache.c (regcache_valid_p): Allow to query cooked registers in
75 read-only register caches. Make REGCACHE parameter const.
76 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
78 * mi/mi-main.c (old_regs): Remove.
79 (mi_setup_architecture_data, _initialize_mi_main): Remove.
80 (register_changed_p): Reimplement to compare two register caches.
81 (mi_cmd_data_list_changed_registers): Update caller.
82 * mi/mi-main.h (mi_setup_architecture_data): Remove.
83 * mi/mi-interp.c (mi_interpreter_init): Do not call
84 mi_setup_architecture_data.
86 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
88 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
89 inline definition at the places the macros are used.
90 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
92 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
94 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
96 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
97 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
98 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
99 (rs6000_aix_regset_from_core_section): New function.
100 (rs6000_aix_init_osabi): Register it.
101 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
102 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
103 * rs6000-nat.c (CoreRegs): Do not define type.
104 (fetch_core_registers, rs6000_core_fns): Remove.
105 (_initialize_core_rs6000): Do not register it. Rename to ...
106 (_initialize_rs6000_nat): ... this.
107 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
109 2007-04-27 Kevin Buettner <kevinb@redhat.com>
111 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
112 (dwarf2_read_address): Sign extend return address as required by
115 2007-04-27 Kevin Buettner <kevinb@redhat.com>
117 * solib-frv.c (lm_base): Bail out if the main executable has
120 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
122 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
123 of FPCR register in fpregset.
125 2007-04-27 Maciej W. Rozycki <macro@mips.com>
127 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
128 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
130 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
132 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
133 * rs6000-nat.c (rs6000_wait): New function.
134 (_initialize_core_rs6000): Install it as to_wait target method.
135 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
137 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
139 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
140 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
141 * rs6000-nat.c (super_create_inferior): New variable.
142 (rs6000_create_inferior): Make static. Adapt argument list. Call
143 original version of create_inferior via super_create_inferior.
144 (_initialize_core_rs6000): Install to_create_inferior target method.
146 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
148 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
149 (aix_thread_xfer_partial): ... this.
150 (init_aix_thread_ops): Install to_xfer_partial instead
151 of deprecated_xfer_memory target method.
153 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
154 and inftarg.o, add inf-ptrace.o.
155 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
156 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
157 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
158 (fetch_inferior_registers): Rename to ...
159 (rs6000_fetch_inferior_registers): ... this. Make static.
160 (store_inferior_registers): Rename to ...
161 (rs6000_store_inferior_registers): ... this. Make static.
162 (read_word, child_xfer_memory): Remove.
163 (rs6000_xfer_partial): New function.
164 (kernel_u_size): Remove.
165 (_initialize_core_rs6000): Add inf_ptrace-based target.
166 * Makefile.in (rs6000-nat.o): Update dependencies.
168 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
170 * inf-ptrace.c: Include "gdb_stdint.h".
171 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
172 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
173 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
174 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
175 (inf_ptrace_store_register): Likewise.
176 * Makefile.in (inf-ptrace.o): Update dependencies.
178 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
180 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
181 * configure.tgt (rs6000-*-*): Likewise.
182 * config/rs6000/aix4.mh: Delete file.
183 * config/rs6000/aix4.mt: Delete file.
184 * config/rs6000/rs6000.mh: Delete file.
185 * config/rs6000/rs6000.mt: Delete file.
187 * config/powerpc/nm-aix.h: Delete file.
188 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
190 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
192 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
193 Remove obsolete part of comment.
194 (store_regs_user_thread): Use uint32_t temporaries when calling
196 (store_regs_kernel_thread): Likewise. Add assertion to verify
197 correct size of struct ptsprs members.
198 (aix_thread_xfer_memory): Fix type of myaddr.
199 (aix_thread_extra_thread_info): Fix compiler warning.
200 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
201 (fetch_register, store_register): Adapt callers.
203 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
205 * vec.h (vec_free): Rename to vec_free_. Adapt users.
207 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
209 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
211 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
212 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
213 (alpha_linux_regset_from_core_section): New function.
214 (alpha_linux_init_abi): Install it.
215 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
216 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
217 <sys/procfs.h>, and "gregset.h".
218 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
219 Move from config/alpha/nm-linux.h.
220 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
222 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
223 * alpha-nat.c: Remove #ifdef __linux__ section.
224 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
225 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
226 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
227 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
228 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
229 (NATDEPFILES): Remove alpha-nat.o.
230 * config/alpha/nm-linux.h: Delete file.
231 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
232 * Makefile.in (alpha-linux-nat.o): Update dependencies.
233 (alpha-linux-tdep.o): Likewise.
235 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
237 * mips-linux-nat.c: No longer include "gdbcore.h".
238 (mips_linux_register_addr): Move from mips-linux-tdep.c.
239 (mips64_linux_register_addr): Likewise.
240 (mips_linux_register_u_offset): Call mips_linux_register_addr or
241 mips64_linux_register_addr instead of register_addr.
242 * mips-linux-tdep.c (mips_linux_register_addr,
243 mips64_linux_register_addr): Move to mips-linux-nat.c.
244 (register_addr): Remove.
245 (register_addr_data, init_register_addr_data): Remove.
246 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
247 (set_mips_linux_register_addr): Remove.
248 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
249 * Makefile.in (mips-linux-nat.o): Update dependencies.
251 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
253 * linux-nat.c (linux_register_u_offset): Remove.
254 (linux_target_install_ops): New function.
255 (linux_target): Use it.
256 (linux_trad_target): New function.
257 * linux-nat.h (linux_trad_target): Declare.
259 * alpha-linux-nat.c: Include "gdbcore.h".
260 (alpha_linux_register_u_offset): New function.
261 (_initialize_alpha_linux_nat): Use linux_trad_target.
263 * mips-linux-nat.c: Include "gdbcore.h".
264 (mips_linux_register_u_offset): New function.
265 (_initialize_mips_linux_nat): Use linux_trad_target.
267 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
268 * config/arm/nm-linux.h: Delete file.
270 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
271 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
273 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
274 * config/ia64/nm-linux.h: Delete file.
276 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
277 * config/m32r/nm-linux.h: Delete file.
279 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
280 * config/m68k/nm-linux.h: Delete file.
282 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
283 * config/pa/nm-linux.h: Delete file.
285 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
286 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
287 * config/powerpc/nm-linux.h: Delete file.
289 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
290 * config/s390/nm-linux.h: Delete file.
292 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
293 * config/sparc/linux64.mh (NAT_FILE): Likewise.
294 * config/sparc/nm-linux.h: Delete file.
296 * Makefile.in (alpha-linux-nat.o): Update dependencies.
297 (mips-linux-nat.o): Likewise.
299 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
301 * core-aout.c: Delete file.
302 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
303 (core-aout.o): Delete rule.
304 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
306 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
308 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
309 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
310 KERNEL_U_ADDR): Remove.
312 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
313 (cannot_fetch_register, cannot_store_register): Remove.
314 (fetch_register): Inline cannot_fetch_register and register_addr.
315 (store_register): Inline cannot_store_register and register_addr.
316 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
317 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
318 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
321 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
322 (fetch_register): Inline register_addr.
323 (store_register): Inline register_addr.
324 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
325 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
326 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
328 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
329 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
330 REGISTER_U_ADDR): Remove.
332 * hppa-linux-nat.c (register_addr): Rename to ...
333 (hppa_linux_register_addr): ... this. Make static.
334 (fetch_register, store_register): Adapt callers.
335 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
337 * ppc-linux-nat.c (kernel_u_size): Remove.
338 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
340 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
341 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
343 * config/vax/nm-vax.h: Delete file.
345 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
347 * MAINTAINERS (Write After Approval): Add myself.
349 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
351 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
352 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
353 (m68k_linux_sigcontext_reg_offset): Fix typo.
354 (target_is_uclinux): New.
355 (m68k_linux_inferior_created): New.
356 (m68k_linux_get_sigtramp_info): Check for uClinux or
357 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
359 (_initialize_m68k_linux_tdep): Register
360 m68k_linux_inferior_created.
362 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
364 * win32-nat.c (win32_detach): Remove delete_command call.
365 Resume inferior with win32_resume instead of win32_continue.
367 2007-04-19 Jerome Guitton <guitton@adacore.com>
369 * ser-mingw.c (fd_is_file): New function.
370 (file_select_thread): New function.
371 (ser_console_wait_handle): Add special handling for files.
373 2007-04-18 Denis Pilat <denis.pilat@st.com>
375 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
376 when missing from DW_TAG_subrange_type. Remove the handling of null
377 return from die_type.
379 2007-04-18 Maciej W. Rozycki <macro@mips.com>
381 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
382 change to rearrange some brackets.
383 (mips_n32n64_push_dummy_call): Likewise.
384 (mips_o32_push_dummy_call): Likewise.
385 (mips_o64_push_dummy_call): Likewise.
387 2007-04-18 Denis Pilat <denis.pilat@st.com>
389 * infcmd.c (post_create_inferior): Start with a call to
390 target_terminal_ours.
392 2007-04-17 Maciej W. Rozycki <macro@mips.com>
394 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
396 (mips_n32n64_push_dummy_call): Likewise. Reformat some
398 (mips_o32_push_dummy_call): Likewise.
399 (mips_o64_push_dummy_call): Likewise.
401 2007-04-17 Maciej W. Rozycki <macro@mips.com>
403 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
406 2007-04-17 Maciej W. Rozycki <macro@mips.com>
408 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
410 (mips_o32_push_dummy_call): Likewise.
412 2007-04-17 Andreas Schwab <schwab@suse.de>
414 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
415 sal to be bigger than the end of the function.
417 2007-04-17 Maciej W. Rozycki <macro@mips.com>
418 Nigel Stephens <nigel@mips.com>
420 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
421 argument alignment requirements when calculating stack space
422 required. When aligning an arg register to eight bytes
423 boundary, align stack_offset too. Write floating-point
424 arguments to the appropriate integer register if need go there.
425 (mips_o64_push_dummy_call): Likewise.
427 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
429 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
430 "sig" arguments, add "regcache" argument.
431 * gdbarch.c, gdbarch.h: Regenerate.
433 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
434 (handle_inferior_event): Call remove_single_step_breakpoints directly
435 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
437 * alpha-tdep.c (alpha_software_single_step): Update argument list.
438 Remove handling of !insert_breakpoints_p case.
439 * arm-tdep.c (arm_software_single_step): Likewise.
440 * cris-tdep.c (cris_software_single_step): Likewise.
441 * mips-tdep.c (mips_software_single_step): Likewise.
442 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
443 * sparc-tdep.c (sparc_software_single_step): Likewise.
444 * spu-tdep.c (spu_software_single_step): Likewise.
446 * alpha-tdep.h (alpha_software_single_step): Update prototype.
447 * mips-tdep.h (mips_software_single_step): Likewise.
448 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
449 * sparc-tdep.h (sparc_software_single_step): Likewise.
451 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
453 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
454 when removing single-step breakpoints.
456 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
458 * varobj.h (varobj_set_frozen): New
459 (varobj_get_frozen): New.
460 (varobj_update): New parameter explicit.
461 * varobj.c (struct varobj): New fields frozen
463 (varobj_set_frozen, varobj_get_frozen): New.
464 (install_new_value): Don't fetch values for
465 frozen variable object, or children thereof. Allow
466 a frozen variable object to have non-fetched value.
467 (varobj_update): Allow updating child variables.
468 Don't traverse frozen children.
469 (new_variable): Initialize the frozen field.
470 (c_value_of_variable): Return NULL for frozen
471 variable without any value yet.
472 * mi/mi-cmd-var.c (varobj_update_one): New parameter
474 (mi_cmd_var_create): Output the 'frozen' field,
475 as soon as testsuite is adjusted to expect that field.
476 (mi_cmd_var_set_frozen): New.
477 (mi_cmd_var_update): Pass the 'explicit' parameter to
479 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
480 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
482 2007-04-13 Paul Brook <paul@codesourcery.com>
484 * target-descriptions.c (tdesc_named_type): Add ieee_single and
486 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
488 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
490 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
491 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
492 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
493 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
494 * Makefile.in: Remove references to deleted files.
495 * README: Do not mention deleted ROM monitor interfaces.
496 * defs.h (enum language): Delete language_scm.
497 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
498 (dump_subexp_body_standard): Likewise.
499 * parse.c (operator_length_standard): Likewise.
500 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
501 * remote-mips.c: Do not include remote-utils.h.
502 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
504 * value.c: Do not include scm-lang.h.
505 (unpack_long): Delete scm_unpack call.
506 * config/h8300/h8300.mt, config/mips/embed.mt,
507 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
508 config/sh/embed.mt, config/sh/linux.mt: Remove references to
510 * NEWS: Mention removed files.
512 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
514 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
515 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
517 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
519 * NEWS: Mention removal of HP aCC support.
521 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
523 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
524 first entry for static executables.
525 (breakpoint_addr): Delete unused variable.
526 (elf_locate_base): Search for _r_debug in static executables.
527 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
530 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
532 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
533 (bpstat_what, print_one_breakpoint, allocate_bp_location)
534 (mention): Remove bp_through_sigtramp support.
535 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
537 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
539 * breakpoint.c (bpstat_what): Give step-resume higher priority than
542 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
544 * infrun.c: Doc fixes.
545 (handle_inferior_event): Clarify debug message.
546 (insert_step_resume_breakpoint_at_sal): Print a debug message.
548 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
550 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
552 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
554 * config/m68k/tm-monitor.h: Delete file.
555 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
556 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
558 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
559 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
561 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
563 * gdbarch.sh (software_single_step): Change the return type
564 from void to int and reformatted some comments to <= 80
566 * gdbarch.c, gdbarch.h: Regenerated.
567 * alpha-tdep.c (alpha_software_single_step): Likewise.
568 * alpha-tdep.h (alpha_software_single_step): Likewise.
569 * arm-tdep.c (arm_software_single_step): Likewise.
570 * cris-tdep.c (cris_software_single_step): Likewise.
571 * mips-tdep.c (mips_software_single_step): Likewise.
572 * mips-tdep.h (mips_software_single_step): Likewise.
573 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
574 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
575 * sparc-tdep.c (sparc_software_single_step): Likewise.
576 * sparc-tdep.h (sparc_software_single_step): Likewise.
577 * spu-tdep.c (spu_software_single_step): Likewise.
578 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
581 2007-04-11 Steve Ellcey <sje@cup.hp.com>
583 * configure.ac (build_warnings): Add -Wno-char-subscripts.
584 * configure: Regenerate.
585 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
587 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
589 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
591 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
593 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
595 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
596 distinct on the TYPE_STUB_SUPPORTED debug targets.
597 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
599 2007-04-11 Joel Brobecker <brobecker@adacore.com>
601 * sparc-tdep.c (X_RS2): New macro.
602 (sparc_skip_stack_check): New function.
603 (sparc_analyze_prologue): Adjust PC past stack probing
604 sequence if necessary.
606 2007-04-10 Andreas Schwab <schwab@suse.de>
608 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
611 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
613 * breakpoint.c (gdb_breakpoint_query): Really return an
615 (gdb_breakpoint): Likewise.
616 * thread.c (gdb_list_thread_ids): Likewise.
617 (gdb_thread_select): Likewise.
618 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
619 (mi_cmd_thread_list_ids): Remove bogus initialization.
621 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
623 * Makefile.in (SFILES): Remove hpacc-abi.c.
624 (COMMON_OBS): Remove hpacc-abi.o.
625 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
626 (hpacc-abi.o, hpread.o): Delete rules.
627 * somread.c: Delete extern declarations from hpread.c.
628 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
629 (som_symfile_finish): Do not call hpread_symfile_finish.
630 (som_symfile_init): Do not call hpread_symfile_init.
631 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
632 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
633 * hpacc-abi.c, hpread.c: Deleted.
635 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
637 * solib-svr4.c (enable_break): Simplify return value.
638 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
640 2007-04-10 Andreas Schwab <schwab@suse.de>
642 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
643 l_ld_size, l_next_size, l_prev_size, l_name_size.
645 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
646 to extract addresses from link map.
647 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
650 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
651 (elf_locate_base): Likewise.
652 (open_symbol_file_object): Likewise.
653 (svr4_fetch_objfile_link_map): Likewise.
654 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
655 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
657 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
658 (svr4_lp64_fetch_link_map_offsets): Likewise.
660 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
661 removed members. Set l_ld_offset to -1 if not present.
663 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
665 Pass stderr of program run with "target remote |"
667 * serial.c (serial_open): Set error_fd to -1.
668 * serial.h (struct serial): New field error_fd.
669 (struct serial_opts): New field avail.
670 * ser-pipe.c (pipe_open): Create another pair
671 of sockets. Pass stderr to gdb.
672 * ser-mingw.c (pipe_windows_open): Pass
673 PEX_STDERR_TO_PIPE to pex_run. Initialize
676 (_initialize_ser_windows): Hook pipe_avail.
677 * ser-base.c (generic_readchar): Check if there's
678 anything in stderr channel and route that to gdb_stderr.
680 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
682 * dbxread.c (read_ofile_symtab): Move current_objfile
683 clearing to after end_stabs.
685 2007-04-01 Andreas Schwab <schwab@suse.de>
687 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
688 gdbarch instead of current_gdbarch.
690 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
692 * varobj.c (varobj_create): Keep varobj value
693 NULL when evaluating the type.
695 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
697 * NEWS: Mention new Windows CE support.
699 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
701 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
702 the obsoletion stanza.
703 * NEWS: Mention deleted targets.
705 * config/sh/tm-wince.h: Remove.
706 * config/sh/wince.mt: Remove.
707 * config/mips/tm-wince.h: Remove.
708 * config/mips/wince.mt: Remove.
711 * wince-stub.c: Remove.
712 * wince-stub.h: Remove.
713 * Makefile.in (wince.o): Remove rule.
714 (wince-stub.o): Likewise.
716 * mips-tdep.c (mips_next_pc): Make static.
717 * mips-tdep.h (mips_next_pc): Remove declaration.
718 * arm-tdep.c (arm_pc_is_thumb): Make static.
719 (thumb_get_next_pc): Likewise.
720 (arm_get_next_pc): Likewise.
721 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
722 (arm_pc_is_thumb): Likewise.
723 (thumb_get_next_pc): Likewise.
724 (arm_get_next_pc): Likewise.
726 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
728 * MAINTAINERS: Remove d10v entry.
729 * Makefile.in (SFILES): Remove dwarfread.c.
730 (COMMON_OBS): Remove dwarfread.o.
731 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
732 (remote-est.o, rom68k-rom.o): Delete.
733 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
734 target est, target rom68k, and DWARF 1.
735 * configure.tgt: Mark d10v as removed.
736 * dwarf2read.c: Doc update.
737 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
739 (elf_locate_sections): Do not set them.
740 (elf_symfile_read): Do not call dwarf_build_psymtabs.
741 * symfile.h (dwarf_build_psymtabs): Delete prototype.
742 * config/m68k/monitor.mt (TDEPFILES): Prune.
743 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
744 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
746 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
748 * doublest.c (convert_floatformat_to_doublest): Use
749 floatformat_classify.
750 (floatformat_is_nan): Rename to...
751 (floatformat_classify): ...this. Return more information.
752 * doublest.h (enum float_kind): New.
753 (floatformat_is_nan): Replace prototype...
754 (floatformat_classify): ...with this one.
755 * valprint.c (print_floating): Use floatformat_classify. Handle
758 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
760 * README: Mention ISO C library requirement.
762 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
764 * Makefile.in (SFILES): Remove nlmread.c.
765 (COMMON_OBS): Remove nlmread.o.
766 (nlmread.o): Delete rule.
767 * README: Delete reference to remote-st.c.
768 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
769 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
771 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
772 (_initialize_i386_tdep): Do not reference them.
773 * nlmread.c: Delete file.
774 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
775 * target.c: Doc update.
776 * thread.c: Delete commented include.
777 * config/alpha/tm-alpha.h: Doc update.
779 2007-03-30 Chris Dearman <chris@mips.com>
781 * utils.c (string_to_core_addr): Comment typo.
783 2007-03-30 Chris Dearman <chris@mips.com>
785 * mips-tdep.c: Comment typo.
787 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
789 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
790 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
791 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
792 * config/powerpc/nm-ppc64-linux.h: Remove file.
793 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
794 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
795 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
796 * infptrace.c (call_ptrace): Likewise.
797 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
798 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
799 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
800 (store_register): Likewise.
802 2007-03-29 Joel Brobecker <brobecker@adacore.com>
804 * Makefile.in (varobj.o): Add missing dependency.
806 2007-03-29 Michael Snyder <msnyder@access-company.com>
808 * MAINTAINERS: Update my email address.
810 2007-03-29 Joel Brobecker <brobecker@adacore.com>
812 Add support for exception handling with multiple versions of
814 * ada-lang.c: Update general comments on how Ada exception catchpoints
816 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
817 (__gnat_raise_nodefer_with_msg): Delete.
818 (ada_unhandled_exception_name_addr_ftype): New type.
819 (exception_support_info): New type.
820 (ada_unhandled_exception_name_addr): Add forward declaration.
821 (ada_unhandled_exception_name_addr_from_raise): Likewise.
822 (default_exception_support_info): New constant.
823 (exception_support_info_fallback): Likewise.
824 (exception_info): New global variable.
825 (ada_exception_support_info_sniffer): New function.
826 (ada_executable_changed_observer): Likewise.
827 (ada_unhandled_exception_name_addr_from_raise): Renamed from
828 ada_unhandled_exception_name_addr.
829 (ada_unhandled_exception_name_addr): Reimplement to match the
830 latest Ada runtime implementation.
831 (error_breakpoint_runtime_sym_not_found): Delete.
832 (ada_exception_sym_name): Get the exception sym name from
833 exception_info rather than hardcoding it.
834 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
835 Update error handling.
836 * Makefile.in (ada-lang.o): Add dependency on observer.h.
838 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
840 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
841 (remote-st.o, uw-thread.o): Delete.
842 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
843 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
844 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
845 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
846 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
847 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
848 rs6000-*-lynxos* to an obsoletion stanza.
849 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
850 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
851 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
852 i[34567]86-*-netware*.
853 * NEWS: Mention deleted targets.
855 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
856 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
857 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
858 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
859 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
860 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
861 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
862 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
863 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
864 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
865 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
866 config/rs6000/tm-rs6000ly.h: Delete files.
868 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
870 * defs.h (deprecated_registers_changed_hook): Delete declaration.
871 * interps.c (clear_interpreter_hooks): Do not clear
872 deprecated_registers_changed_hook.
873 * regcache.c (registers_changed): Do not call it.
874 * top.c (deprecated_registers_changed_hook): Do not define it.
875 * mi/mi-interp.c (mi_command_loop): Do not clear it.
876 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
877 (tui_remove_hooks): Do not remove it.
878 (tui_selected_frame_level_changed_hook): Check for negative level.
879 Use get_selected_frame.
880 (tui_registers_changed_hook): Deleted.
882 2007-03-29 Joel Brobecker <brobecker@adacore.com>
884 * stabsread.c (add_undefined_type): Add extra parameter.
885 Now handles nameless types separately.
886 (struct nat): New type.
887 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
888 New static variables.
889 (read_type): Update calls to add_undefined_type.
890 (add_undefined_type_noname): New function.
891 (add_undefined_type_1): Renames from add_undefined_type.
892 (cleanup_undefined_types_noname): New function.
893 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
894 (cleanup_undefined_types): New handles nameless types separately.
895 (_initialize_stabsread): Initialize our new static constants.
897 2007-03-29 Denis Pilat <denis.pilat@st.com>
899 * configure.ac: Test for signal.h.
900 * configure, config.in: Regenerate.
902 2007-03-29 Denis Pilat <denis.pilat@st.com>
904 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
905 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
907 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
909 * arm-wince-tdep.c: New.
910 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
913 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
914 solib-legacy.o, solib-svr4.o, and remove wince.o.
915 * configure.tgt (arm*-*-mingw32ce*): Add.
916 * signals/signals.c [HAVE_SIGNAL_H]: Check.
917 (do_target_signal_to_host): Silence 'not used' warning.
918 * config/arm/tm-wince.h: Remove.
920 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
922 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
923 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
925 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
926 * config/ia64/tm-linux.h: Remove file.
927 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
928 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
929 legacy_pc_in_sigtramp.
930 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
931 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
932 Remove func_name argument.
933 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
935 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
936 * target.c (update_current_target): Add to_have_steppable_watchpoint.
937 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
938 (HAVE_STEPPABLE_WATCHPOINT): Define.
940 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
941 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
942 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
943 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
944 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
945 target_insert_watchpoint, target_remove_watchpoint): Remove.
946 (FETCH_INFERIOR_REGISTERS): Define.
947 * ia64-linux-nat.c (ia64_register_addr): Make static.
948 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
949 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
950 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
951 (ia64_linux_stopped_data_address): Make static. Add target_ops.
952 (ia64_linux_stopped_by_watchpoint): Make static.
953 (ia64_linux_can_use_hw_breakpoint): New function.
954 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
955 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
956 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
958 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
960 * linespec.c: Include language.h.
961 (find_methods): Add language parameter. Call
962 lookup_symbol_in_language. Pass language down.
963 (add_matching_methods): Likewise. Call
964 lookup_symbol_in_language.
965 (add_constructors): Likewise.
966 (find_method): Pass sym_class to collect_methods.
967 (collect_methods): Add sym_class parameter. Pass language
969 * symtab.c (lookup_symbol): Rename to ...
970 (lookup_symbol_in_language): ... this. Add language
971 parameter. Use passed language instead of current_language.
972 (lookup_symbol): New as wrapper around
973 lookup_symbol_in_language.
974 (lookup_symbol_aux): Add language parameter. Use passed
975 language instead of current_language.
976 (search_symbols): Indent.
977 * symtab.h (enum language): Forward declare.
978 (lookup_symbol_in_language): Declare.
979 (lookup_symbol): Update description.
980 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
981 * ada-lang.c (restore_language): Remove.
982 (lookup_symbol_in_language): Remove.
984 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
986 * breakpoint.c (bpstat_num): Add int *num parameter.
987 * breakpoint.h (bpstat_num): Likewise.
988 * infcmd.c (continue_command): Adjust to new bpstat_num
990 (program_info): Likewise.
992 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
994 * config/sh/tm-sh.h: Remove file.
995 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
996 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
997 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
998 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
1000 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1002 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
1003 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
1004 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
1005 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
1006 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
1007 sequence if target_shortname is "remote".
1009 2007-03-27 Anton Blanchard <anton@samba.org>
1011 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
1012 instead of wordsize when looking for the LR in a stack frame.
1014 2007-03-27 Andreas Schwab <schwab@suse.de>
1015 Daniel Jacobowitz <dan@codesourcery.com>
1017 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
1018 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
1019 argument. Update all callers.
1020 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
1021 (dwarf2_frame_set_eh_frame_regnum): Rename to...
1022 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
1023 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
1024 (dwarf2_frame_set_adjust_regnum): ...this.
1025 (dwarf2_frame_eh_frame_regnum): Delete prototype.
1026 * rs6000-tdep.c: Include "dwarf2-frame.h".
1027 (rs6000_adjust_frame_regnum): Define.
1028 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
1029 Register rs6000_adjust_frame_regnum.
1031 * Makefile.in (rs6000-tdep.o): Update dependencies.
1033 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
1035 * Makefile.in: Add support for a "pdf" target.
1037 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
1039 * amd64-tdep.c (amd64_init_frame_cache): New function.
1040 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
1042 2007-03-26 Nigel Stephens <nigel@mips.com>
1043 Maciej W. Rozycki <macro@mips.com>
1045 * ui-out.c (ui_out_field_core_addr): Truncate address to
1046 TARGET_ADDR_BIT size before printing.
1048 2007-03-22 Nigel Stephens <nigel@mips.com>
1049 Maciej W. Rozycki <macro@mips.com>
1051 * remote-mips.c (mips_xfer_memory): Update prototype.
1053 2007-03-22 Joel Brobecker <brobecker@adacore.com>
1055 * symfile.h: #include "symtab.h"
1057 2007-03-22 Denis Pilat <denis.pilat@st.com>
1059 * utils.c (pagination_on_command, pagination_off_command):
1060 Remove useless prototypes.
1062 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
1065 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
1066 instead of TYPE_NAME for object base class name.
1069 2007-03-19 Kevin Buettner <kevinb@redhat.com>
1071 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
1072 Specify frame type in calls to frame_func_unwind().
1074 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
1076 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
1077 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
1078 (refine_prologue_limit): Delete.
1079 (skip_prologue): Don't call it. Use extract_unsigned_integer.
1080 Assume lim_pc is set. Correct check for incomplete prologues.
1081 Do not skip clobbers of the frame pointer.
1082 * symtab.c (skip_prologue_using_sal): Fail if there is only one
1085 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
1087 * frame.c (frame_pop): Check to see whether there's a frame to
1088 which we can pop first.
1090 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
1092 * MAINTAINERS (Write After Approval): Add myself.
1094 2007-03-09 Markus Deuling <deuling@de.ibm.com>
1096 * infrun.c (breakpoints_failed): Remove unnecessary variable.
1097 (handle_inferior_event): Remove unnecessary braces.
1098 * breakpoint.c (bpstat_what): Remove wrong comment.
1100 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
1102 * spu-tdep.c (spu_in_function_epilogue_p): New function.
1103 (spu_gdbarch_init): Install it.
1105 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1107 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
1108 object types, not 0.
1110 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1112 * spu-tdep.c (spu_frame_align): New function.
1113 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
1115 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1117 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
1118 (spu_software_single_step): Likewise.
1119 (spu_read_pc, spu_write_pc): New functions.
1120 (spu_gdbarch_init): Install them.
1122 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1124 * cli/cli-dump.c (struct callback_data): load_offset needs to
1125 have signed long type.
1127 2007-03-07 Joel Brobecker <brobecker@adacore.com>
1129 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
1130 Revert the previous change that had some unexpected side-effects
1132 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
1133 function to get the address of the calling instruction.
1135 2007-03-07 Denis Pilat <denis.pilat@st.com>
1137 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
1138 get_selected_frame by deprecated_safe_get_selected_frame.
1140 2007-03-02 Mark Kettenis <kettenis@gnu.org>
1142 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
1143 "gdb_string.h". Don't include "nbsd-tdep.h".
1144 (SIZEOF_STRUCT_REG): Remove.
1145 (SHNBSD_SIZEOF_GREGS): New.
1146 (shnbsd_supply_gregset, shnbsd_collect_gregset)
1147 (shnbsd_regset_from_core_section): New functions.
1148 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1149 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
1150 shnbsd_supply_gregset, shnbsd_collect_gregset.
1151 (shnbsd_gregset): New variable.
1152 (shnbsd_init_abi): Set regset_from_core_section.
1153 (GDB_OSABI_NETBSD_CORE): New define.
1154 (shnbsd_core_osabi_sniffer): New function.
1155 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
1156 * Makefile.in (shnbsd-tdep.o): Update dependencies.
1157 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
1159 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1161 2007-02-28 Joel Brobecker <brobecker@adacore.com>
1163 * gdbtypes.c (replace_type): Fix typo that caused us to not update
1164 length of the types referenced by the new type CV ring.
1166 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1168 * frame.c (frame_pop, frame_observer_target_changed): Call
1170 (flush_cached_frames): Rename to reinit_frame_cache and delete
1172 * frame.h (flush_cached_frames): Delete prototype and update comment.
1174 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
1175 reinit_frame_cache instead of flush_cached_frames. Do not call
1176 select_frame after reinit_frame_cache.
1177 * corelow.c (core_open): Likewise.
1178 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
1179 * infrun.c (prepare_to_proceed, context_switch)
1180 (handle_inferior_event): Likewise.
1181 * linux-fork.c (fork_load_infrun_state): Likewise.
1182 * ocd.c (ocd_start_remote): Likewise.
1183 * remote-e7000.c (e7000_start_remote): Likewise.
1184 * remote-mips.c (device): Likewise.
1185 * thread.c (switch_to_thread): Likewise.
1186 * tracepoint.c (finish_tfind_command): Likewise.
1187 * gdbarch.c: Regenerated.
1189 2007-02-28 Jerome Guitton <guitton@adacore.com>
1190 Joel Brobecker <brobecker@adacore.com>
1192 * gdbtypes.c (check_typedef): Do not replace stub type if
1193 the resolved type is not defined in the same objfile.
1195 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1197 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
1199 2007-02-28 Joel Brobecker <brobecker@adacore.com>
1201 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
1202 symbol for Ada units when the symbol is defined using 't' rather
1203 than 'Tt' as symbol descriptor.
1205 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1207 * config/mips/tm-nbsd.h: Delete file.
1208 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1209 * config/sh/tm-nbsd.h: Delete file.
1210 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
1212 2007-02-28 Joel Brobecker <brobecker@adacore.com>
1214 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
1215 unused WRONG_PARAM value since it was recently deleted.
1217 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
1219 * varobj.c (varobj_update): Free temporary vectors.
1221 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1223 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
1224 * config/powerpc/tm-linux.h: Delete file.
1225 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
1226 (PROCESS_LINENUMBER_HOOK): Do not undefine.
1227 (TEXT_SEGMENT_BASE): Do not redefine.
1228 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
1229 from config/rs6000/tm-rs6000.h.
1230 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1231 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
1232 (TEXT_SEGMENT_BASE): Remove.
1233 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
1234 (rs6000_in_solib_return_trampoline): Remove.
1235 (SKIP_TRAMPOLINE_CODE): Remove.
1236 (rs6000_skip_trampoline_code): Remove.
1237 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
1238 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1239 (FP0_REGNUM): Remove.
1240 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
1241 (rs6000_set_host_arch_hook): Remove.
1242 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
1243 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
1244 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
1245 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
1246 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
1247 * rs6000-nat.c: Include "rs6000-tdep.h".
1248 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
1249 (set_host_arch): Rename to ...
1250 (rs6000_create_inferior): ... this. Make public.
1251 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
1252 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
1253 (rs6000_create_inferior): Remove.
1254 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
1255 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
1256 set_gdbarch_in_solib_return_trampoline, and
1257 set_gdbarch_skip_trampoline_code.
1258 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
1259 from config/rs6000/tm-rs6000.h.
1261 2007-02-27 Joel Brobecker <brobecker@adacore.com>
1263 * buildsym.c (record_producer): Do nothing if no producer is provided.
1265 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
1267 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
1268 to check changelist is non-NULL. Call error if the frontend tries
1269 to update a non-root variable.
1271 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
1273 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1275 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
1276 (dwarf2_frame_sniffer): Update.
1277 (dwarf2_signal_frame_this_id): New function.
1278 (dwarf2_signal_frame_unwind): Use it.
1279 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
1280 * frame.c (frame_func_unwind): Add this_type argument.
1281 (get_frame_func): Update.
1282 (frame_unwind_address_in_block): Add this_type argument and check it.
1284 (get_frame_address_in_block): Update.
1285 * frame.h (enum frame_type): Move higher in the file.
1286 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
1289 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
1290 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
1291 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
1292 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
1293 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
1294 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
1295 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
1296 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
1297 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
1298 frame_func_unwind and frame_unwind_address_in_block to specify
1299 the frame type. Use frame_unwind_address_in_block instead of
1300 frame_pc_unwind in sniffers.
1302 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1304 * frame.c (deprecated_selected_frame): Rename to...
1305 (selected_frame): ...this. Make static.
1306 (get_selected_frame, select_frame): Update.
1307 * frame.h (deprected_select_frame): Delete.
1308 (deprecated_safe_get_selected_frame): Update comments.
1310 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
1311 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
1312 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
1313 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
1314 tui/tui.c: Replace references to deprecated_selected_frame.
1316 2007-02-27 Fred Fish <fnf@specifix.com>
1318 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
1319 directly decrement the stack pointer, accumulate their operand into
1320 the stack offset, and mark the function as not being frameless.
1322 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1324 * arch-utils.c (selected_byte_order): New.
1325 * arch-utils.h (selected_byte_order): New prototype.
1326 * remote-sim.c (gdbsim_open): Use selected_byte_order.
1328 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1330 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
1331 (default_symfile_offsets): Check VMA here. Update section VMAs.
1333 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1335 * remote.c (init_remote_state): Add special handling for placeholder
1338 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1340 * Makefile.in (XMLFILES): Include $(TDEP_XML).
1341 (filenames_h): New variable.
1342 (clean): Clean up xml-builtin.c and stamp-xml.
1343 (arm-linux-nat.o): Update.
1344 * config/arm/linux.mh (TDEP_XML): Define.
1345 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1346 (arm_linux_has_wmmx_registers): New.
1347 (GET_THREAD_ID): Fix typo.
1348 (IWMMXT_REGS_SIZE): Define.
1349 (fetch_wmmx_regs, store_wmmx_regs): New.
1350 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
1351 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
1352 (super_xfer_partial, arm_linux_xfer_partial): New.
1353 (_initialize_arm_linux_nat): Use them.
1354 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
1355 (xml_builtin_xfer_partial): New function.
1356 * xml-support.h (xml_builtin_xfer_partial): New prototype.
1357 * NEWS: Update mention of iWMMXt support.
1359 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1361 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
1362 if there are no FPA registers.
1363 (arm_dwarf_reg_to_regnum): New function.
1364 (arm_register_type, arm_register_name): Return minimal values for
1365 unsupported registers.
1366 (arm_register_sim_regno): Handle iWMMXt registers.
1367 (arm_gdbarch_init): Record missing FPA registers if indicated by
1368 a target description. Recognize iWMMXt registers. Only register
1369 "info float" for FPA. Use ARM_NUM_REGS. Register
1370 arm_dwarf_reg_to_regnum.
1371 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
1373 (struct gdbarch_tdep): Add have_fpa_registers.
1374 * features/xscale-iwmmxt.xml: Update capitalization.
1375 * regformats/arm-with-iwmmxt.dat: Regenerated.
1377 2007-02-24 Kevin Buettner <kevinb@redhat.com>
1379 * NEWS (New targets): Add entry for the Toshiba Media Processor.
1381 2007-02-23 Kevin Buettner <kevinb@redhat.com>
1383 * MAINTAINERS (mep): New target.
1385 2007-02-23 Kevin Buettner <kevinb@redhat.com>
1387 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
1389 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
1390 (mep-tdep.o): New rule.
1391 * configure.tgt (mep-*-*): New target.
1392 * mep-tdep.c: New file.
1393 * config/mep/mep.mt: New file.
1395 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1397 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
1398 BREAKPOINT_HIT and STOP_UNKNOWN.
1400 2007-02-22 Markus Deuling <deuling@de.ibm.com>
1402 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
1404 2007-02-20 Joel Brobecker <brobecker@adacore.com>
1406 * gdb_expat.h (XMLCALL): Define if not already defined.
1408 2007-02-20 Andreas Schwab <schwab@suse.de>
1410 * Makefile.in (symfile.o): Update dependencies.
1412 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1414 * MAINTAINERS: Disable -Werror for cris simulator. Build
1415 sparc64-solaris2.10 instead of the broken sparc-elf.
1416 * solib-frv.c: Include "solib.h".
1417 * Makefile.in (solib-frv.o): Update.
1418 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
1419 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
1420 (xtensa_frame_this_id, xtensa_frame_prev_register)
1421 (xtensa_push_dummy_call): Use %p.
1423 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1425 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1426 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
1427 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1428 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
1429 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
1430 (sparc-linux-tdep.o): Update.
1432 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
1434 * xtensa-tdep.h (xtensa_reg_mask_t): New.
1435 (xtensa_mask_t): Change mask field to be a separate array.
1436 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
1437 (xtensa_pseudo_register_write, xtensa_unwind_pc)
1438 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1439 (xtensa_breakpoint_from_pc): Remove implicit type casting.
1440 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
1441 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
1442 (mask14, mask15): Rename to
1443 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
1444 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
1445 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
1446 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
1447 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
1448 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
1449 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
1450 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
1451 (xtensa_submask14, xtensa_submask15): New.
1452 (rmap): Follow strict aliasing rules doing static initialization.
1454 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
1456 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
1457 handling from here...
1458 (tdesc_register_type): ...to here.
1459 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
1460 * features/arm-core.xml: Use code_ptr and data_ptr.
1462 2007-02-13 Denis Pilat <denis.pilat@st.com>
1464 * varobj.h (enum varobj_update_error): New enum.
1465 * varobj.c (struct varobj_root): Add is_valid member.
1466 (varobj_get_type): Check for invalid varobj.
1467 (varobj_get_attributes): Likewise.
1468 (variable_editable):Likewise.
1469 (varobj_update): Likewise. Use varobj_update_error.
1470 (new_root_variable): Set root varobj as valid by default.
1471 (varobj_invalidate): New function.
1472 * symfile.c (clear_symtab_users): Use varobj_invalidate.
1473 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
1474 Use varobj_update_error.
1476 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
1479 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
1480 Pascal language marker.
1481 * dwarf2read.c (set_cu_language): Likewise.
1483 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
1485 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1486 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1487 instead of target_terminal_init since inferior_ptid isn't set yet.
1489 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
1491 * MAINTAINERS (Write After Approval): Add myself.
1493 2007-02-09 Fred Fish <fnf@specifix.com>
1495 Based on work by Apple Computer, Inc.
1496 * event-top.c (async_request_quit): Call quit() whenever either
1497 quit_flag is set or immediate_quit is set.
1499 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1501 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1502 type to a pointer to const struct block.
1503 (ada_lookup_symbol_list): Don't cast away constness when calling
1504 remove_out_of_scope_renamings.
1506 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
1508 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1509 address of 'filename'; it is always non null.
1511 2007-02-09 Joel Brobecker <brobecker@adacore.com>
1513 * exec.c (add_to_section_table): Do not discard empty sections.
1515 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1517 * features/Makefile, features/arm-with-iwmmxt.xml,
1518 features/gdbserver-regs.xsl, features/number-regs.xsl,
1519 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1520 * regformats/arm-with-iwmmxt.dat: Generate.
1521 * NEWS: Mention iWMMXt.
1523 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1525 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1526 (xml-tdesc.o): Update.
1527 * xml-support.c: Add a comment.
1528 (gdb_xml_enums_boolean): New variable.
1529 (gdb_xml_parse_attr_enum): Use strcasecmp.
1530 * xml-support.h (gdb_xml_enums_boolean): Declare.
1531 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1532 next_regnum, and current_union.
1533 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1534 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1535 (field_attributes, union_children, reg_attributes, union_attributes)
1536 (vector_attributes, feature_attributes, feature_children): New.
1537 (target_children): Make static. Add <feature>.
1538 (tdesc_elements): Make static.
1539 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1540 (struct tdesc_feature, tdesc_feature_p): New types.
1541 (struct target_desc): Add features member.
1542 (struct tdesc_arch_data, tdesc_data): New.
1543 (target_find_description): Clarify error message. Warn about
1544 ignored register descriptions.
1545 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1546 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1547 (tdesc_data_cleanup, tdesc_numbered_register)
1548 (tdesc_numbered_register_choices, tdesc_find_register)
1549 (tdesc_register_name, tdesc_register_type)
1550 (tdesc_remote_register_number, tdesc_register_reggroup_p)
1551 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1552 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1553 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1554 (tdesc_create_feature, tdesc_record_type): New.
1555 (free_target_description): Free features.
1556 (_initialize_target_descriptions): Initialize tdesc_data.
1557 * arch-utils.c (default_remote_register_number): New.
1558 * arch-utils.h (default_remote_register_number): New prototype.
1559 * target-descriptions.h (set_tdesc_pseudo_register_name)
1560 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1561 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1562 (tdesc_numbered_register, tdesc_numbered_register_choices)
1563 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1564 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1565 (tdesc_create_reg): Declare.
1566 * gdbarch.sh (remote_register_number): New entry.
1567 * gdbarch.c, gdbarch.h: Regenerate.
1568 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1569 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1571 * arm-tdep.c (arm_register_aliases): New.
1572 (arm_register_name_strings): Rename to...
1573 (arm_register_names): ...this. Make const. Delete the old version.
1574 (current_option, arm_register_byte): Delete.
1575 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
1576 (value_of_arm_user_reg): New.
1577 (arm_gdbarch_init): Verify any described registers. Call
1578 tdesc_use_registers. Don't use arm_register_byte. Create aliases
1579 for standard register names.
1580 (_initialize_arm_tdep): Do not adjust arm_register_names.
1581 * user-regs.c (struct user_reg): Add baton member.
1582 (append_user_reg, user_reg_add_builtin, user_regs_init)
1583 (user_reg_add, value_of_user_reg): Use a baton for user
1585 * std-regs.c: Update.
1586 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1587 (user_reg_add): Add baton argument.
1588 * NEWS: Mention target description register support.
1589 * features/arm-core.xml, features/arm-fpa.xml: New.
1590 * eval.c (evaluate_subexp_standard): Allow ptype $register
1591 when the program is not running.
1593 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
1595 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1597 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1599 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1600 info->disassembler_options to "any".
1602 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1604 * varobj.c (install_new_value): Only call value_get_print_value
1607 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1609 Reported by timeless@gmail.com:
1610 * gdb/target.c (target_flash_erase): Do not return void value.
1611 (target_flash_done): Likewise.
1612 * gdb/cli/cli-cmds.c (source_command): Likewise.
1614 2007-02-08 Fred Fish <fnf@specifix.com>
1616 Based on work by Apple Computer, Inc.
1617 * event-top.c (handle_sigint): Set quit_flag.
1618 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1619 if quit_flag has already been reset.
1621 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1623 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1626 2007-02-08 Fred Fish <fnf@specifix.com>
1628 * defs.h (request_quit): Remove declaration.
1629 * utils.c (request_quit): Remove definition.
1631 2007-02-08 Joel Brobecker <brobecker@gnat.com>
1632 Jan Kratochvil <jan.kratochvil@redhat.com>
1633 Daniel Jacobowitz <dan@codesourcery.com>
1635 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1636 (skip_prologue): Allow bl->blrl used by PIC code.
1638 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1639 Daniel Jacobowitz <dan@codesourcery.com>
1641 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1642 initialize tmp_obstack.
1643 * p-valprint.c (pascal_object_print_value_fields)
1644 (pascal_object_print_value): Likewise.
1646 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1648 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1650 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1652 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1653 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1655 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1657 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1659 (tdesc_parse_xml): Cache expanded descriptions.
1661 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1663 * Makefile.in (XMLFILES): New.
1664 (COMMON_OBS): Add xml-builtin.o.
1665 (xml-builtin.c, stamp-xml): New rules.
1666 (xml-tdesc.o): Update.
1667 * features/feature_to_c.sh: New file.
1668 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1669 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1670 (gdb_xml_start_element): Initialize scope after possibly reallocating
1671 scopes. Move cleanup later. Handle the XInclude description
1673 (gdb_xml_end_element): Only parse the body if there is a current element.
1674 Call XML_DefaultCurrent if there is no element.
1675 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1676 (struct xinclude_parsing_data, xinclude_start_include)
1677 (xinclude_end_include, xml_xinclude_default)
1678 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1679 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1680 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1681 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1682 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1683 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1684 XInclude directives. Use the compiled in DTD.
1685 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1686 directory name. Do not warn here.
1687 (file_read_description_xml): Update call. Warn here instead. Pass
1689 (fetch_available_features_from_target): New.
1690 (target_read_description_xml): Use it.
1691 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1693 * features/xinclude.dtd: New file.
1695 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1697 * linux-thread-db.c (check_for_thread_db): Return early if we have
1698 no libthread_db support.
1700 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1702 * mi/mi-parse.h: Include <sys/time.h>.
1704 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
1706 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1707 instead of print_variable_value to print values.
1709 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1711 * mi/mi-main.c: Numerous formatting changes.
1712 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1713 removed in my previous change.
1715 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1717 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1718 Use 1000000L instead of 1000000.
1720 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1722 Based on work by Apple Computer, Inc.
1724 * configure.ac: Test for sys/resource.h and getrusage.
1725 * configure, config.in: Regenerate.
1727 * mi/mi-main.c: Include <sys/resource.h> if present.
1728 (rusage): Declare if HAVE_GETRUSAGE.
1729 (current_command_ts, do_timings): New static variables.
1730 (timestamp, print_diff_now, print_diff, timeval_diff):
1731 New static timing functions.
1732 (mi_cmd_enable_timings): New function for new MI command.
1733 (captured_mi_execute_command, mi_execute_async_cli_command):
1734 Call timing functions.
1736 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1739 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1741 * mi/mi-parse.h: (mi_timestamp): New structure.
1742 (mi_parse): Add mi_timestamp* member.
1744 2007-02-02 Denis Pilat <denis.pilat@st.com>
1746 * thread.c (make_cleanup_restore_current_thread): New function.
1747 (info_threads_command): Use of make_cleanup_restore_current_thread
1748 to restore the current thread and the selected frame.
1749 (restore_selected_frame): New function.
1750 (struct current_thread_cleanup): Add frame_id field.
1751 (do_restore_current_thread_cleanup): Add restoring of the selected
1753 (make_cleanup_restore_current_thread): Likewise.
1754 (thread_apply_all_command): backup the selected frame while
1755 entering the function and restore it at exit.
1756 (thread_apply_command): Likewise.
1758 2007-02-02 Denis Pilat <denis.pilat@st.com>
1760 * MAINTAINERS (Write After Approval): Add myself to the list.
1762 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1764 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1765 (m32r_store_register): Ditto.
1767 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
1769 * ser-mingw.c (pipe_windows_open)
1770 (pipe_windows_read, pipe_windows_write): Declare
1771 variables at the top of the function.
1773 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1775 * doublest.c (floatformat_from_length): Use the right element from
1776 gdbarch floatformats.
1777 (floatformat_from_type, extract_typed_floating)
1778 (store_typed_floating): Likewise.
1779 * doublest.h: Remove declarations for undefined floatformat arrays.
1780 * gdbarch.sh (float_format, double_format, long_double_format): Change
1782 (pformat): Update for pairs.
1783 * gdbarch.c, gdbarch.h: Regenerated.
1784 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1785 (floatformats_ieee_double_littlebyte_bigword)
1786 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1787 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1788 (floatformats_vax_d): New variables.
1789 (builtin_type_ieee_single, builtin_type_ieee_double)
1790 (builtin_type_arm_ext, builtin_type_ia64_spill)
1791 (builtin_type_ia64_quad): Replace arrays with individual types.
1792 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1793 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1794 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1795 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1796 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1797 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1798 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1799 unused and endian-specific types.
1800 (recursive_dump_type): Update for floatformat pairs.
1801 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1802 (build_gdbtypes): Use build_flt.
1803 (_initialize_gdbtypes): Update set of initialized types.
1804 * gdbtypes.h: Update declarations to match gdbtypes.c.
1805 (struct main_type): Store a pointer to two floatformats.
1806 * arch-utils.c (default_float_format, default_double_format): Delete.
1807 * arch-utils.h (default_float_format, default_double_format): Delete.
1809 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1810 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1811 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1812 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1813 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1815 2007-01-29 Joel Brobecker <brobecker@adacore.com>
1817 * target.c (maintenance_print_target_stack): New function.
1818 (initialize_targets): Add new "maintenance print target-stack"
1821 2007-01-28 Mark Kettenis <kettenis@gnu.org>
1823 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1825 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
1827 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1828 (struct dwarf2_loclist_baton): Likewise.
1830 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1832 * cli/cli-script.c: Include breakpoint.h.
1833 (build_command_line): Require arguments only for if and while
1835 (get_command_line, execute_user_command, execute_control_command):
1836 Fix wording of warning messages.
1837 (print_command_lines): Print breakpoint commands.
1838 (execute_control_command): Call commands_from_control_command to
1839 handle the `commands' command inside a body of a flow-control
1841 (read_next_line): Recognize the `commands' command and build a
1842 command line structure for it.
1843 (recurse_read_control_structure, read_command_lines): Handle
1844 `commands' similarly to `if' and `while'.
1846 * breakpoint.c (get_number_trailer): Document the special meaning
1847 of NULL as the first argument PP.
1848 (commands_from_control_command): New function.
1850 * breakpoint.h (commands_from_control_command): Add prototype.
1852 * defs.h (commands_control): New enumerated value for enum
1853 command_control_type.
1855 2007-01-26 Joel Brobecker <brobecker@adacore.com>
1857 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1858 (ada_exception_sal): Update accordingly.
1860 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1862 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1863 * NEWS: Describe CHAR array vs. string identifcation rules.
1865 2007-01-25 Paul Brook <paul@codesourcery.com>
1867 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1869 2007-01-24 Jim Blandy <jimb@codesourcery.com>
1871 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1872 expression is empty, bother to return the 'optimized out' value we
1873 construct. (Thanks to Carl Burch.)
1875 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1877 * varobj.c (c_value_of_root, c_value_of_child)
1878 (cplus_describe_child): Don't call release_value.
1880 2007-01-24 Thiemo Seufer <ths@mips.com>
1882 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1885 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1887 Refactor getting children name, value and type access
1889 * varobj.c (get_type_deref): Remove.
1890 (adjust_value_for_child_access): New.
1891 (c_number_of_children): Use the above.
1892 (c_describe_child): Likewise.
1893 (enum accessibility): New.
1894 (match_accessibility): New function.
1895 (cplus_describe_child): New function.
1896 (cplus_name_of_child, cplus_value_of_child)
1897 (cplus_type_of_child): Reimplement in terms
1898 of cplus_describe_child.
1899 (cplus_number_of_children): Use
1900 adjust_value_for_child_access.
1902 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1904 Fix computation of the 'editable' attribute and
1905 value changeability for for references.
1906 * varobj.c (get_value_type): New function.
1907 (c_variable_editable): Use get_value_type.
1908 (varobj_value_is_changeable): Likewise.
1910 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1912 * source.c (find_and_open_source): Try rewriting the source
1913 path inside filename if dirname is NULL.
1915 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1917 * dwarf2read.c (add_partial_symbol): Create an extra partial
1918 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1919 (new_symbol): Likewise for symbols.
1921 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
1923 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1925 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
1927 * value.c (value_primitive_field): Copy the full 'location'
1928 contents, instead of assuming that copying ADDRESS will
1929 bring over everything in the union. Remove obsolete comment.
1931 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
1933 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1934 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1935 (m32c_m16c_pointer_to_address): Separate code from declarations.
1937 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
1939 * target.c (update_current_target): Correct typo.
1941 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
1943 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1946 2007-01-11 Andrew Cagney <cagney@redhat.com>
1947 Daniel Jacobowitz <dan@codesourcery.com>
1948 Jan Kratochvil <jan.kratochvil@redhat.com>
1950 * dwarf2-frame.c (execute_cfa_program): New support of
1951 `DW_CFA_GNU_negative_offset_extended'.
1953 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1955 * NEWS: Mention flash support for "load" and new remote packets.
1957 2007-01-21 Markus Deuling <deuling@de.ibm.com>
1959 * breakpoint.c (delete_command): Skip redundant loop iterations.
1961 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1963 * gdbarch.sh (register_type): Update comment.
1964 * gdbarch.h: Regenerated.
1965 * arch-utils.c (generic_register_size): Call register_type.
1966 * ia64-tdep.c (ia64_extract_return_value): Likewise.
1967 * m32c-tdep.c (check_for_saved): Likewise.
1968 * mips-tdep.c (mips_print_register, print_gp_register_row)
1969 (mips_print_registers_info): Likewise.
1970 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1972 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1973 (sh64_do_register, sh64_print_register)
1974 (sh64_media_print_registers_info): Likewise.
1975 * tui/tui-regs.c (tui_register_format): Likewise.
1977 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1979 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1981 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1982 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1983 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1984 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1985 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1986 (make_symbol_completion_list): Likewise.
1988 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1989 Daniel Jacobowitz <dan@codesourcery.com>
1991 * buildsym.c (end_symtab): Use preallocated symtab if available.
1992 Fill in SYMBOL_SYMTAB.
1993 * buildsym.h (struct subfile): Add symtab member.
1994 * dwarf2read.c (struct dwarf2_cu): Add line_header.
1995 (struct file_entry): Add symtab.
1996 (free_cu_line_header): New function.
1997 (read_file_scope): Use it. Save line_header in the cu. Process
1999 (add_file_name): Initialize new symtab member.
2000 (dwarf_decode_lines): Create symtabs for included files.
2001 (new_symbol): Set SYMBOL_SYMTAB.
2002 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
2003 (search_symbols): Likewise.
2004 * symtab.h (struct symbol): Add symtab member.
2005 (SYMBOL_SYMTAB): Define.
2007 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2009 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
2011 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2013 * arch-utils.c (show_endian): Correct reversed condition.
2015 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 * MAINTAINERS (Write After Approval): Add myself.
2019 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
2020 Vladimir Prus <vladimir@codesourcery.com>
2022 Fix 'selected frame' varobjs.
2023 * varobj.c (struct varobj): Remove the error field.
2024 (varobj_set_value): Don't check var->error.
2025 (install_new_value): Don't set var->error.
2026 (varobj_update): Always pass the new value
2027 of the root via install_new_value.
2028 (create_child): Don't set error field.
2029 (new_variable): Likewise.
2030 (c_value_of_root): Always reevaluate the value
2031 of selected frame varobjs in the selected frame.
2032 Don't call reinit_frame_cache.
2034 2007-01-15 Joel Brobecker <brobecker@adacore.com>
2036 * source.c (_initialize_source): Improve the help text of
2037 the substitute-path commands.
2039 2007-01-14 Mark Kettenis <kettenis@gnu.org>
2041 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
2042 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
2043 (frv_skip_prologue): Remove prototypes.
2044 (frv_adjust_breakpoint_address): Renamed from
2045 frv_gdbarch_adjust_breakpoint_address.
2046 (frv_gdbarch_init): Adjust.
2048 2007-01-13 Mark Kettenis <kettenis@gnu.org>
2050 * gdbarch.sh (deprecated_extract_return_value)
2051 (deprecated_store_return_value): Remove.
2052 (extract_return_value, store_return_value): Remove default values.
2053 * gdbarch.c, gdbarch.h: Regenerate.
2054 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
2055 (legacy_store_return_value): Remove.
2056 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
2059 * mi/mi-main.c: Remove obsolete comment.
2061 * regcache.c, regcache.h (deprecated_register_bytes)
2062 (deprecated_read_register_bytes)
2063 (deprecated_write_register_bytes): Remove.
2065 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
2066 Don't forget to move destination pointer.
2068 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2070 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
2072 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
2074 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
2075 past entry function with recent newlib.
2077 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
2079 * gdb.texinfo (GDB/MI Variable Objects): Improve the
2080 introduction. Specify -var-update more exactly.
2082 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
2084 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
2086 2007-01-10 Jim Blandy <jimb@codesourcery.com>
2088 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
2089 the Global Maintainers' invitation to be a global maintainer.
2091 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
2093 * infrun.c (singlestep_pc): New variable.
2094 (resume): Set singlestep_pc.
2095 (context_switch): Add a debugging message. Flush the frame cache.
2096 (handle_inferior_event): Add debugging messages. Handle thread
2097 hops when a software single step has completed. Let context_switch
2098 handle flushing the frame cache.
2100 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2102 * NEWS: Mention target descriptions, "set tdesc filename",
2103 "unset tdesc filename", "show tdesc filename", and
2104 qXfer:features:read.
2105 * arch-utils.c (choose_architecture_for_target): New function.
2106 (gdbarch_info_fill): Call it.
2107 * target-descriptions.c (struct property): Make members non-const.
2108 (struct target_desc): Add arch member.
2109 (target_description_filename): New variable.
2110 (target_find_description): Try via XML first.
2111 (tdesc_architecture): New.
2112 (free_target_description, make_cleanup_free_target_description): New.
2113 (set_tdesc_property): Call xstrdup.
2114 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
2115 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
2116 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
2117 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
2118 * target-descriptions.h (tdesc_architecture)
2119 (make_cleanup_free_target_description, set_tdesc_architecture): New
2121 * Makefile.in (SFILES): Add xml-tdesc.c.
2122 (COMMON_OBS): Add xml-tdesc.o.
2123 (target-descriptions.o): Update.
2124 (xml-tdesc.o): New rule.
2125 * xml-tdesc.c, xml-tdesc.h: New files.
2126 * remote.c (PACKET_qXfer_features): New enum.
2127 (remote_protocol_features): Add qXfer:features:read.
2128 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
2129 (_initialize_remote): Register qXfer:features:read.
2130 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
2131 * features/gdb-target.dtd: New file.
2133 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2135 * copyright.sh: Clarify error.
2137 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 * symtab.c (matching_bfd_sections): Fix VMA matching for
2142 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2144 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
2147 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2149 Updated copyright notices for most files.
2151 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2153 * copyright.sh (prunes): Add step-line.inp and step-line.c.
2155 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2157 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
2159 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
2161 * configure, config.in: Regenerate.
2162 * defs.h (debug_file_directory): Declare.
2163 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
2164 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
2165 relocate it if DEBUGDIR_RELOCATABLE.
2166 * symfile.c (debug_file_directory): Make non-static.
2167 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
2168 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
2169 (_initialize_symfile): Don't initialize debug_file_directory here.
2171 2007-01-09 Jim Blandy <jimb@codesourcery.com>
2173 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
2176 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2178 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
2179 frame_unwind_register to recurse.
2180 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
2181 (alpha_heuristic_frame_prev_register): Likewise.
2182 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
2183 * m32c-tdep.c (m32c_prev_register): Likewise.
2184 * frame.c (frame_register_unwind_location): Remove FIXME.
2186 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2187 Eli Zaretskii <eliz@gnu.org>
2189 * copyright.sh: New file.
2191 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
2193 * configure.ac: Check for XML_StopParser.
2194 * xml-support.c (gdb_xml_body_text): Check for an error.
2195 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
2196 (gdb_xml_end_element_wrapper): Likewise.
2197 * config.in, configure: Regenerated.
2199 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2201 * varobj.c (install_new_value): Always update print_value.
2202 (value_get_print_value): Immediately return NULL for missing
2205 2007-01-08 Jim Blandy <jimb@codesourcery.com>
2207 * configure.ac: Tighten pattern for extracting value of
2208 DEPRECATED_TM_FILE from the target makefile fragment.
2209 * configure: Regenerated.
2211 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2213 * linux-nat.c (struct simple_pid_list): Add status.
2214 (add_to_pid_list): Record the PID's status.
2215 (linux_record_stopped_pid): Likewise. Make static.
2216 (pull_pid_from_list): Return the saved status.
2217 (linux_nat_handle_extended): Deleted.
2218 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
2219 Make static. Handle non-SIGSTOP for a new thread's first signal.
2220 (flush_callback): Handle unexpected pending signals.
2221 (linux_nat_wait): Update calls to changed functions.
2222 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
2223 Remove prototypes for newly static functions.
2225 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2227 * gdbarch.sh (value_from_register): New gdbarch function.
2228 * gdbarch.c, gdbarch.h: Regenerate.
2229 * findvar.c (default_value_from_register): New function.
2230 (value_from_register): Use gdbarch_value_from_register.
2231 * value.h (default_value_from_register): Declare.
2232 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
2233 spu_value_to_register): Remove.
2234 (spu_value_from_register): New function.
2235 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2236 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2237 Call set_gdbarch_value_from_register.
2238 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
2239 s390_value_to_register): Remove.
2240 (s390_value_from_register): New function.
2241 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2242 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2243 Call set_gdbarch_value_from_register.
2245 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
2247 * NEWS: Add "set sysroot" and "show sysroot".
2248 * solib.c (solib_absolute_prefix): Delete. Replace
2249 all uses with gdb_sysroot.
2250 (_initialize_solib): Add "set sysroot" and "show sysroot".
2251 Make "solib-absolute-prefix" an alias to it.
2253 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
2255 * frame.c (get_frame_register_bytes): New function.
2256 (put_frame_register_bytes): Likewise.
2257 * frame.h (get_frame_register_bytes): Declare.
2258 (put_frame_register_bytes): Likewise.
2259 * findvar.c (value_from_register): Always construct lval_register
2260 values. Use get_frame_register_bytes.
2261 * valops.c (value_assign): Use get_frame_register_bytes and
2262 put_frame_register_bytes.
2264 2007-01-08 Jim Blandy <jimb@codesourcery.com>
2266 * MAINTAINERS: Update Stan Shebs' email address.
2268 2007-01-07 Joel Brobecker <brobecker@adacore.com>
2270 * ada-lang.c (is_known_support_routine): Improve the implementation.
2272 2007-01-06 Joel Brobecker <brobecker@adacore.com>
2274 * ada-lang.c: Add include of source.h.
2275 (is_known_support_routine): Improve the check verifying that the file
2276 associated to this frame exists.
2277 * Makefile.in (ada-lang.o): Add dependency on source.h.
2279 2007-01-07 Jim Blandy <jimb@codesourcery.com>
2281 * ax-general.c (ax_const_l): Select proper opcode for the given
2284 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
2286 * varobj.c (c_value_of_root): Don't select frame if variable
2287 object is out of scope.
2289 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
2291 * varobj.c (struct varobj): New member print_value.
2292 (install_new_value): Compare last printed value with current one
2293 instead of contents.
2294 (new_variable): Initialize var->print_value to NULL.
2295 (free_variable): Free var->print_value.
2296 (value_get_print_value): New function derived from
2297 c_value_of_variable.
2298 (c_value_of_variable): Use value_get_print_value.
2300 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2302 * i386-tdep.c (i386_analyze_stack_align): Add comment.
2304 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2306 * NEWS: Add entries for new catch commands.
2308 2007-01-05 Joel Brobecker <brobecker@adacore.com>
2310 * dwarf2read.c (partial_die_info): Add field has_byte_size.
2311 (add_partial_symbol): Correct identification of external references.
2312 (process_structure_scope): Likewise.
2313 (read_partial_die): Handle DW_AT_byte_size attribute.
2315 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
2317 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
2319 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
2321 * varobj.c (get_type_deref): Fix variable objects for references to
2324 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2326 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
2329 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2331 * memory-map.c (struct_memory_map_parsing_data): Remove most
2332 members. Make property_name an array.
2333 (free_memory_map_parsing_data, memory_map_start_element)
2334 (memory_map_end_element, memory_map_character_data): Delete.
2335 (memory_map_start_memory, memory_map_end_memory)
2336 (memory_map_start_property, memory_map_end_property): New functions.
2337 (property_attributes, memory_children, memory_type_enum)
2338 (memory_attributes, memory_map_children, memory_map_elements): New.
2339 (parse_memory_map): Rewrite.
2340 * xml-support.c (debug_xml): New.
2341 (xml_get_required_attribute, xml_get_integer_attribute)
2342 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
2344 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
2345 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
2346 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
2347 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
2348 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
2349 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
2350 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
2352 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
2353 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
2354 (enum gdb_xml_element_flag, struct gdb_xml_element)
2355 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
2356 (struct gdb_xml_enum): New.
2357 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
2358 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
2359 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
2360 (xml_get_required_attribute, xml_get_integer_attribute)
2361 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
2362 * Makefile.in (xml_support_h, xml-support.o): Update.
2364 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2366 * Makefile.in (eval.o): Update dependencies.
2367 * eval.c: Include "ui-out.h" and "exceptions.h".
2368 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
2369 Use value_zero if an error occurs when avoiding side effects.
2370 * varobj.c (c_value_of_root): Initialize new_val.
2372 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2374 * varobj.c (varobj_list_children): Stop if the number of children is
2376 (c_number_of_children):
2378 2007-01-04 Mark Kettenis <kettenis@gnu.org>
2380 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
2381 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
2382 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
2383 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
2384 sizeof, instead of hardcoded constants.
2386 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2388 * CONTRIBUTE: Use sourceware.org.
2390 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2392 * buildsym.c (start_subfile): Handle producer.
2393 (record_producer): New function.
2394 * buildsym.h (struct subfile): Include producer.
2395 (record_producer): New prototype.
2396 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
2397 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
2398 armcc_cfa_offsets_reversed.
2399 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
2400 (dwarf2_frame_find_quirks): New function.
2401 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
2402 (decode_frame_entry_1): Record the CIE version. Record the
2403 augmentation. Skip armcc augmentations.
2404 * dwarf2read.c (read_file_scope): Save the producer.
2405 * symtab.h (struct symtab): Rename unused version member to
2408 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2410 * configure.ac (build_warnings): Use -Wall and
2411 -Wdeclaration-after-statement.
2412 * configure: Regenerated.
2414 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2416 Simplify access to variours properties of child
2417 variable objects in C.
2418 * varobj.c (value_struct_element_index): New function.
2419 (c_describe_child): New function.
2420 (c_name_of_child, c_value_of_child)
2421 (c_type_of_child): Rewrite to use c_describe_child.
2423 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2426 * varobj.c: Include "vec.h".
2427 (varobj_p): New typedef, declare vector of those.
2428 (struct varobj): Use vector for the 'children' member.
2429 (child_exists): Remove.
2430 (save_child_in_parent): Remove.
2431 (remove_child_from_parent): Remove.
2432 (struct varobj_child): Remove.
2433 (struct vstack): Remove.
2434 (vpush, vpop): Remove.
2435 (varobj_list_children): Adjust to work work vector.
2436 (varobj_update): Likewise. Use vectors for
2437 working stack and result.
2438 (delete_variable_1): Likewise.
2439 * Makefile.in (varobj.o): Update dependencies.
2441 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
2443 Port from Apple's version.
2445 * varobj.c (type_changeable): Rename to...
2446 (varobj_value_is_changeable_p): ...this. Adjust all callers.
2447 (is_root_p): New function. Use it everywhere.
2449 2007-01-04 Jim Blandy <jimb@codesourcery.com>
2451 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
2454 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2456 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
2458 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2460 * hpread.c (hpread_type_lookup): Fix compilation failure.
2462 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
2464 * NEWS: New port to S+core.
2465 * MAINTAINERS (Write After Approval, Responsible Maintainers):
2468 * Makefile.in: Add dependencies for S+core files.
2469 * configure.tgt (score*, score-*-*): Add S+core target.
2470 * config/score/embed.mt: New file.
2471 * score-tdep.c: New file.
2472 * score-tdep.h: New file.
2474 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2476 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
2477 the appropriate type rather than a bogus void type.
2479 2007-01-04 Joel Brobecker <brobecker@adacore.com>
2481 * ada-lang.h (ada_find_printable_frame): Remove.
2482 (ada_exception_catchpoint_p, ada_decode_exception_location)
2483 (ada_decode_assert_location): Add declaration.
2484 * ada-lang.c: Add include of annotate.h and valprint.h.
2485 (exception_catchpoint_kind): New enum.
2486 (function_name_from_pc, is_known_support_routine)
2487 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2488 (ada_exception_name_addr_1, ada_exception_name_addr)
2489 (print_it_exception, print_one_exception, print_mention_exception)
2490 (print_it_catch_exception, print_one_catch_exception)
2491 (print_mention_catch_exception, catch_exception_breakpoint_ops)
2492 (print_it_catch_exception_unhandled)
2493 (print_one_catch_exception_unhandled)
2494 (print_mention_catch_exception_unhandled, print_it_catch_assert)
2495 (print_one_catch_assert, print_mention_catch_assert)
2496 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2497 (ada_get_next_arg, catch_ada_exception_command_split)
2498 (ada_exception_sym_name, ada_exception_sym_name)
2499 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2500 (ada_parse_catchpoint_condition, ada_exception_sal)
2501 (ada_decode_exception_location)
2502 (ada_decode_assert_location): New function.
2503 (catch_exception_unhandled_breakpoint_ops): New global variable.
2504 (catch_assert_breakpoint_ops): New global variable.
2505 * breakpoint.c: Add include of ada-lang.h.
2506 (print_one_breakpoint): Do not print the condition for Ada
2507 exception catchpoints.
2508 (create_ada_exception_breakpoint): New function.
2509 (catch_ada_exception_command, catch_assert_command): New function.
2510 (catch_command_1): Add support for the new "catch exception" and
2511 "catch assert" commands.
2512 (_initialize_breakpoint): Add help description for the new catch
2514 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2516 (breakpoint.o): Add dependency on ada-lang.h.
2518 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
2520 * coffread.c (cs_to_section): If bfd_section is found, always
2521 return its section index.
2522 (coff_symtab_read): Determine the minimal_symbol_type using the
2525 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2526 Daniel Jacobowitz <dan@codesourcery.com>
2528 * Makefile.in (top.o): Update.
2529 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2530 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2531 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2533 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2535 2007-01-03 Mark Kettenis <kettenis@gnu.org>
2537 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2538 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2540 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2542 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2543 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2544 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2545 greater than or equal to zero.
2546 * m2-typeprint.c (m2_array): Likewise.
2547 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2548 * gdbtypes.c (copy_type_recursive): Correct == typo.
2549 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2550 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2552 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2553 (default_macro_scope): Remove unused variable.
2554 * prologue-value.h (pv_area_find_reg): Don't name an argument
2556 * remote-fileio.c (remote_fio_func_map): Add missing braces.
2557 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2559 (cleanup_sigint_signal_handler): Remove casts.
2560 * valprint.c (val_print): Use a volatile local for the modified
2562 * varobj.c (languages): Remove extra array dimension.
2563 (varobj_create): Correct access to languages array.
2564 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2566 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2567 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2568 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2569 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2570 (mi_cmd_data_write_memory): Likewise.
2571 * signals/signals.c (target_signal_to_string): Cast to int before
2573 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2576 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2578 * NEWS: Mention pointer to member improvements.
2579 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2580 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2581 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2582 * c-typeprint.c (c_print_type): Update for new type codes.
2583 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2584 (c_type_print_base): Likewise.
2585 (c_type_print_args): Rewrite.
2586 * c-valprint.c (c_val_print): Update for new type codes. Remove
2587 support for references to members. Treat methods like functions.
2588 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2589 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2590 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2591 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2592 (struct cp_abi_ops): Add corresponding members.
2593 * cp-valprint.c (cp_print_class_method): Delete.
2594 (cp_find_class_member): New function.
2595 (cp_print_class_member): Use it. Simplify support for bogus
2597 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2598 lookup_methodptr_type.
2599 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2600 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2601 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2603 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2604 references returned by user defined operators.
2605 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2606 (f_type_print_varspec_suffix): Remove support for member pointers.
2607 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2609 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2610 (lookup_methodptr_type): New.
2611 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2612 (recursive_dump_type): Update for new types.
2613 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2614 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2615 (lookup_memberptr_type, lookup_methodptr_type)
2616 (smash_to_memberptr_type): New prototypes.
2617 (smash_to_method_type): Formatting fix.
2618 (lookup_member_type, smash_to_member_type): Delete prototypes.
2619 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2620 Do not rely on debug information for the vptr or the method's
2621 enclosing type. Handle function descriptors for IA64.
2622 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2623 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2624 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2625 (gnuv3_method_ptr_to_value): New.
2626 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2627 * hpread.c (hpread_type_lookup): Update for new types.
2628 * infcall.c (value_arg_coerce): Likewise.
2629 * m2-typeprint.c (m2_print_type): Remove explicit support
2630 for member pointers.
2631 * m2-valprint.c (m2_val_print): Likewise.
2632 * p-typeprint.c (pascal_type_print_varspec_prefix)
2633 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2634 * p-valprint.c (pascal_val_print): Likewise.
2635 (pascal_object_print_class_method, pascal_object_print_class_member):
2637 * p-lang.h (pascal_object_print_class_method)
2638 (pascal_object_print_class_member): Delete prototypes.
2639 * stabsread.c (read_type): Update for new types.
2640 * typeprint.c (print_type_scalar): Likewise.
2641 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2642 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2643 argument. Construct a pointer to member if the address of a
2644 function or data member is requested.
2645 (value_cast_pointers): Don't modify the input value.
2646 (value_cast): Adjust pointer to member handling for new types.
2647 Allow null pointer to member constants. Don't modify the input
2649 (value_ind): Remove pointer to member check. Handle function
2650 descriptors for function pointers.
2651 (value_struct_elt, value_find_oload_method_list, check_field):
2652 Remove pointer to member checks.
2653 * value.c (unpack_long): Allow pointers to data members.
2654 (value_from_longest): Allow member pointers.
2655 * value.h (value_aggregate_elt): Add want_address.
2656 * varobj.c (c_variable_editable): Remove check for members.
2657 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2658 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2660 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2661 * c-lang.h (cp_print_class_method): Delete prototype.
2662 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2663 * mips-tdep.c (mips_gdbarch_init): Likewise.
2664 * gdbarch.c, gdbarch.h: Regenerated.
2666 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2668 * rs6000-tdep.c (rs6000_use_struct_convention)
2669 (rs6000_extract_return_value, rs6000_store_return_value)
2670 (rs6000_extract_struct_value_address): Remove.
2671 (rs6000_return_value): New function.
2672 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2673 store_return_value, deprecated_extract_struct_value_address and
2674 deprecated_use_struct_convention. Use rs6000_return_value
2677 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
2679 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2680 -display-disable, -display-enable, -display-insert and
2683 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2685 * breakpoint.c (remove_breakpoint): Remove dead code.
2687 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
2689 * varobj.c: Include block.h.
2690 (c_value_of_root): Check scope within nested statements.
2692 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2694 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2695 regcache_cooked_write_signed instead of
2696 deprecated_write_register_bytes.
2698 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2700 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2702 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2704 Followed the Start of New Year Procedure:
2705 * ChangeLog-2006: New file, containing all the entries for 2006.
2706 * ChangeLog: Removed all 2006 entries, and changed the reference
2707 to the previous ChangeLog to point to ChangeLog 2006.
2708 * top.c (print_gdb_version): Update copyright year.
2710 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2712 * Makefile.in (remote-sds.o): Remove.
2713 * remote-sds.c: Delete.
2715 For older changes see ChangeLog-2006.
2721 version-control: never