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