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