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