gdb:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-08-17 Tom Tromey <tromey@redhat.com>
2
3 PR gdb/1535:
4 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
5 (ep_find_event_name_end): Remove.
6 (catch_fork_temporary, catch_vfork_temporary,
7 catch_fork_permanent, catch_vfork_permanent): New constants.
8 (catch_vfork, catch_fork): Remove.
9 (catch_fork_command_1): Add 'command' argument. Remove
10 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
11 all cases.
12 (catch_exec_command_1): Add 'command' argument; remove
13 'tempflag'. Handle NULL 'arg'.
14 (catch_load_command_1): Likewise.
15 (catch_unload_command_1): Likewise.
16 (catch_ada_exception_command): Likewise.
17 (catch_assert_command): Likewise.
18 (catch_catch_command): New function.
19 (catch_throw_command): Likewise.
20 (catch_command_1): Remove.
21 (catch_command): Just call error.
22 (tcatch_command): Likewise.
23 (catch_cmdlist): New global.
24 (tcatch_cmdlist): Likewise.
25 (add_catch_command): New function.
26 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
27 commands. Create all catch sub-commands.
28
29 2008-08-17 Pedro Alves <pedro@codesourcery.com>
30
31 * gdbthread.h: Add comments.
32 * stack.c (get_selected_block): Return 0 on an exited thread.
33 * top.c (execute_command): Check for is_stopped, not !is_running.
34 * event-top.c (command_handler): Likewise.
35
36 2008-08-16 Pedro Alves <pedro@codesourcery.com>
37
38 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
39 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
40 (mi_cmd_exec_finish): Remove "return".
41
42 2008-08-16 Pedro Alves <pedro@codesourcery.com>
43
44 * target.h (pop_all_targets): Declare.
45 * target.c (pop_all_targets): New.
46 * top.c (quit_target): Pop all targets instead of just closing the
47 current.
48
49 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
50 Thiago Jung Bauermann <bauerman@br.ibm.com>
51
52 * cli-script.c (read_next_line): Add parse_commands argument.
53 (recurse_read_control_structure): Adapt to new read_next_line
54 signature.
55 (read_command_lines): Add parse_commands argument.
56 (define_command): Adapt to new read_command_lines signature.
57 (document_command): Likewise.
58 * breakpoint.c (commands_command): Likewise.
59 * defs.h (read_command_lines): Adjust function prototype.
60
61 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
62
63 * ada-lang.c (pos_atr): Account for the possibility that the
64 argument may be a reference.
65
66 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
67
68 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
69 ('F' format) for @FIX names generated by the loader, retaining only
70 the minimal symbols (and no partial symbol tables) for these names.
71 Fixes warning messages about symbols that are found in partial
72 symbol tables, but not full symbol tables.
73
74 2008-08-16 Pedro Alves <pedro@codesourcery.com>
75
76 * infrun.c (fetch_inferior_event): Only call normal_stop if not
77 stopping quietly.
78
79 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
80
81 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
82 Include "features/rs6000/powerpc-vsx64.c".
83 (ppc_supply_vsxregset): New function.
84 (ppc_collect_vsxregset): New function.
85 (IS_VSX_PSEUDOREG): New macro.
86 (IS_EFP_PSEUDOREG): New macro.
87 (vsx_register_p): New function.
88 (ppc_vsx_support_p): New function.
89 (rs6000_builtin_type_vec128): New function.
90 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
91 correct names for VSX registers and EFPR registers.
92 (rs6000_pseudo_register_type): Return correct types for VSX
93 and EFPR registers.
94 (rs6000_pseudo_register_reggroup_p): Return correct group for
95 VSX and EFPR registers.
96 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
97 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
98 (vsx_pseudo_register_read): New function.
99 (vsx_pseudo_register_write): New function.
100 (efpr_pseudo_register_read): New function.
101 (efpr_pseudo_register_write): New function.
102 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
103 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
104 (rs6000_gdbarch_init): Declare have_vsx.
105 Initialize new upper half VSX registers.
106 Initialize VSX-related and EFPR-related pseudo-registers variables.
107 Adjust the number of pseudo registers accordingly.
108
109 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
110 and SIZEOF_VSRREGS.
111 (gdb_vsxregset_t): New type.
112 (have_ptrace_getsetvsxregs): New variable.
113 (fetch_vsx_register): New function.
114 (fetch_register): Handle VSX registers.
115 (fetch_vsx_registers): New function.
116 (fetch_ppc_registers): Handle VSX registers.
117 (store_ppc_registers): Handle VSX registers.
118 (store_vsx_register): New function.
119 (store_register): Handle VSX registers.
120 (store_vsx_registers): New function.
121 (ppc_linux_read_description): Handle VSX-enabled inferiors.
122 (gdb_vsxregset_t): New type.
123 (supply_vsxregset): New function.
124 (fill_vsxregset): New function.
125
126 * ppc-tdep.h (vsx_register_p): New prototype.
127 (vsx_support_p): New prototype.
128 (ppc_vsr0_regnum): New variable.
129 (ppc_vsr0_upper_regnum): Likewise.
130 (ppc_efpr0_regnum): Likewise.
131 (ppc_builtin_type_vec128): New type.
132 (ppc_num_vsrs): New constant.
133 (ppc_num_vshrs): New constant.
134 (ppc_num_efprs): Likewise.
135 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
136 (ppc_supply_vsxregset): New prototype.
137 (ppc_collect_vsxregset): New prototype.
138
139 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
140 Include "features/rs6000/powerpc-vsx64l.c".
141 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
142 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
143 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
144 (ppc_linux_regset_from_core_section): Handle VSX core section.
145 (ppc_linux_core_read_description): Support VSX-enabled core files.
146
147 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
148 Declare tdesc_powerpc_vsx64l
149
150 * corelow.c (get_core_register_section): Support VSX-enabled
151 core files.
152
153 * features/rs6000/power-vsx.xml: New VSX descriptions.
154 * features/rs6000/powerpc-vsx32.xml: New file.
155 * features/rs6000/powerpc-vsx32l.xml: New file.
156 * features/rs6000/powerpc-vsx64.xml: New file.
157 * features/rs6000/powerpc-vsx64l.xml: New file.
158 * features/rs6000/powerpc-vsx32.c: New file (generated).
159 * features/rs6000/powerpc-vsx32l.c: New file (generated).
160 * features/rs6000/powerpc-vsx64.c: New file (generated).
161 * features/rs6000/powerpc-vsx64l.c: New file (generated).
162 * features/Makefile: Updated with new descriptions.
163 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
164 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
165
166 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
167
168 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
169 call linux_target twice.
170
171 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
172
173 * nto-tdep.c (lm_info): Updated struct lm_info definition from
174 solib-svr4.c
175 (LM_ADDR): Use l_addr if available; if not, use link map and set
176 l_addr.
177
178 2008-08-14 Tom Tromey <tromey@redhat.com>
179
180 * macrocmd.c (macro_define_command): Check for NULL argument.
181 (macro_undef_command): Likewise.
182
183 2008-08-14 Pedro Alves <pedro@codesourcery.com>
184
185 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
186
187 2008-08-13 Pedro Alves <pedro@codesourcery.com>
188
189 * breakpoint.c (always_inserted_auto, always_inserted_on)
190 (always_inserted_off, always_inserted_enums): New.
191 (always_inserted_mode): Change type to char* and point to
192 always_inserted_auto.
193 (show_always_inserted_mode): In auto mode, also show the current
194 effect of the option.
195 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
196 (_initialize_breakpoint): Make the "set breakpoints
197 always-inserted" command an enum command. Extend help to describe
198 the auto mode.
199
200 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
201
202 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
203 query valid) bit. Ignore bits outside the condition field.
204 (info_spu_proxydma_command): Ignore bits outside the field.
205
206 2008-08-12 Michael Snyder <msnyder@vmware.com>
207
208 * MAINTAINERS: Update my email address.
209
210 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
211
212 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
213
214 2008-08-12 Pedro Alves <pedro@codesourcery.com>
215
216 Add no-ack mode to the remote protocol --- optionally stop ACKing
217 packets and responses when we have a reliable communication
218 medium.
219
220 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
221
222 * remote.c (struct remote_state): Add noack_mode field.
223 (PACKET_QStartNoAckMode): New.
224 (remote_start_remote): Don't any outstanding packet here.
225 (remote_open_1): Clear noack_mode. Ack any outstanding packet
226 here. Activate noack mode if requested.
227 (remote_protocol_features): Add QStartNoAckMode.
228 (remote_open_1):
229 (putpkt_binary): Don't send ack in noack mode.
230 (read_frame): Don't recompute the checksum in noack mode.
231 (getpkt_sane): Skip sending ack if in noack mode.
232 (_initialize_remote): Add set/show remote noack mode.
233 * NEWS: Note the new features.
234
235 2008-08-11 Kevin Buettner <kevinb@redhat.com>
236
237 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
238 New macros.
239 (rs6000_skip_main_prologue): New function.
240 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
241
242 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
243
244 * MAINTAINERS (Write After Approval): Add self.
245
246 2008-08-11 Stan Shebs <stan@codesourcery.com>
247
248 ARM BE8 support.
249 * disasm.c (gdb_disassemble_info): Set endian_code.
250 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
251 * gdbarch.h, gdbarch.c: Regenerate.
252 * arch-utils.c (initialize_current_architecture): Set the
253 default byte_order_for_code.
254 (gdbarch_info_init): Ditto.
255 (gdbarch_info_fill): Ditto.
256 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
257 (thumb_analyze_prologue): Swap halfword if code endianness is
258 different from general endianness.
259 (arm_skip_prologue): Similarly.
260 (arm_scan_prologue): Ditto.
261 (thumb_get_next_pc): Ditto.
262 (arm_get_next_pc): Ditto.
263 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
264 choose correct endianness for breakpoints.
265
266 2008-08-10 Pedro Alves <pedro@codesourcery.com>
267
268 * bsd-kvm.c: Include "gdbthread.h".
269 (bsd_kvm_ptid): New.
270 (bsd_kvm_open): Add a main thread.
271 (bsd_kvm_close): Delete it.
272 (bsd_kvm_thread_alive): New.
273 (bsd_kvm_pid_to_str): New.
274 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
275 bsd_kvm_pid_to_str.
276 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
277
278 2008-08-09 Pedro Alves <pedro@codesourcery.com>
279
280 * buildsym.c (start_subfile): Properly cast sentinel in concat
281 call.
282 * cp-name-parser.y: Include "config.h".
283 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
284 concat call.
285 * gdb_select.h: Include sys/time.h if sys/select.h is not
286 available.
287
288 2008-08-09 Pedro Alves <pedro@codesourcery.com>
289
290 * go32-nat.c: Include "gdbthread.h".
291 (go32_stop, go32_kill_inferior): Delete the main thread.
292 (go32_create_inferior): Add it.
293 (go32_thread_alive, go32_pid_to_str): New.
294 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
295
296 2008-08-09 Pedro Alves <pedro@codesourcery.com>
297
298 * go32-nat.c (fetch_register, store_register): Pass the regcache
299 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
300 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
301 (struct seg_descr, struct seg_descr): pack the whole struct
302 instead of each member individually.
303
304 2008-08-09 Andreas Schwab <schwab@suse.de>
305
306 * python/python.c (_initialize_python): Use unabbreviated commands
307 in prefix name.
308
309 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
310
311 * Makefile.in (stamp-h): Also create .deps.
312
313 2008-08-09 Tom Tromey <tromey@redhat.com>
314
315 * Makefile.in (generated_files): Add GNULIB_H.
316
317 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
318
319 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
320 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
321 Revise comment.
322 (pa64_current_sos): Remove map private warning warning.
323 * solib-som.c: Include string.h and sys/utsname.h.
324 (get_hpux_major_release): New function.
325 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
326 about shared library private mapping on HP-UX 11 and later. Only force
327 private mapping of shared libraries on HP-UX 10 and earlier.
328 (link_map_start): Delete warning.
329
330 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
331 H.J. Lu <hongjiu.lu@intel.com>
332 Mark Kettenis <kettenis@gnu.org>
333
334 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
335 (amd64_init_frame_cache): Initialize saved_sp_reg.
336 (amd64_analyze_stack_align): New.
337 (amd64_analyze_prologue): Call it.
338 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
339 %rip to 8 when halfway aligning the stack.
340
341 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
342 AMD64_R14_REGNUM.
343
344 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
345 saved_sp_reg.
346 (i386_alloc_frame_cache): Remove stack_align. Initialize
347 saved_sp_reg to -1.
348 (i386_analyze_stack_align): Rewrite.
349 (i386_frame_cache): Use saved_sp_reg if it is valid.
350
351 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
352
353 * target.c: Include "solib.h".
354 (target_pre_inferior): Call no_shared_libraries.
355 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
356 or clear_solib.
357 (attach_command): Do not call clear_solib.
358
359 2008-08-09 Mark Kettenis <kettenis@gnu.org>
360
361 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
362 the %eip register.
363
364 2008-08-08 Tom Tromey <tromey@redhat.com>
365
366 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
367 POSTCOMPILE.
368 (python-utils.o): Likewise.
369
370 2008-08-08 Andreas Schwab <schwab@suse.de>
371
372 * corefile.c (_initialize_core): Remove spurious paren from set
373 gnutarget doc string.
374
375 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
376
377 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
378 Define PPC_FEATURE_BOOKE.
379 (ppc_linux_get_hwcap): New function.
380 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
381 4-bytes alignment restrictions.
382 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
383 positioning of the read/write flags.
384 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
385 4-bytes alignment.
386
387 2008-08-08 Pedro Alves <pedro@codesourcery.com>
388
389 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
390
391 * win32-nat.c (win32_add_thread): Change thread argument type to
392 ptid_t. Adjust.
393 (win32_add_thread): Adjust.
394 (win32_delete_thread): Change thread argument type to ptid_t.
395 Adjust.
396 (win32_fetch_inferior_registers, win32_store_inferior_registers)
397 (win32_resume, get_win32_debug_event, get_win32_debug_event)
398 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
399 (init_win32_ops): Put to_magic last.
400 (win32_win32_thread_alive): Adjust.
401
402 2008-08-08 Pedro Alves <pedro@codesourcery.com>
403
404 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
405 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
406
407 2008-08-08 Pedro Alves <pedro@codesourcery.com>
408
409 * remote-m32r-sdi.c: Include "gdbthread.h".
410 (remote_m32r_ptid): New.
411 (m32r_close): Delete the main thread.
412 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
413 main thread.
414 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
415 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
416
417 2008-08-07 Tom Tromey <tromey@redhat.com>
418 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
419
420 * aclocal.m4, configure: Rebuild.
421 * configure.in: Call ZW_CREATE_DEPDIR,
422 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
423 (MAKE, GMAKE): New substs.
424 * acinclude.m4: Include depstand.m4.
425 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
426 COMPILE, POSTCOMPILE, depcomp): New variables.
427 Remove all _h variables.
428 Remove many .o targets.
429 ($(srcdir)/copying.c): avoid backslash-newline after comment
430 sign (@maintainer_mode_true@).
431 (HFILES_NO_SRCDIR): Regenerate.
432 (generated_files): New variable.
433 (all_gdbtk_cflags): Likewise.
434 (.c.o): Rewrote.
435 (init.o, version.o, copying.o): Remove.
436 (distclean): Remove DEPDIR.
437 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
438 printcmd.o, procfs.o, v850ice.o): Rewrite.
439 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
440 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
441 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
442 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
443 gdbtk-wrapper.o): Likewise.
444 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
445 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
446 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
447 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
448 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
449 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
450 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
451 tui-wingeneral.o, tui-winsource.o): Likewise.
452 (all_object_files): New variable.
453 ($(all_object_files)): New target.
454 Include dependency files, when using GNU Make.
455
456 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
457
458 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
459 the valid bit set. Ensure display order respects partial
460 order defined by dependency bits.
461
462 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
463
464 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
465 setup.
466
467 2008-08-06 Mark Kettenis <kettenis@gnu.org>
468
469 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
470 OpenBSD 4.3.
471
472 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
473 Tom Tromey <tromey@redhat.com>
474 Thiago Jung Bauermann <bauerman@br.ibm.com>
475 Doug Evans <dje@google.com>
476
477 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
478 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
479 PYTHON_CFLAGS): New.
480 (python_h, python_internal_h): New.
481 (cli-script.o): Depend on python.h
482 (python.o, python-utils.o): New.
483 * cli/cli-script.c (print_command_lines): Handle python_control.
484 (execute_control_command): Handle python_control.
485 (execute_control_command_untraced): New function.
486 (while_command): Call execute_control_command_untraced.
487 (if_command): Likewise.
488 (get_command_line): Remove static attribute.
489 (read_next_line): Handle "python".
490 (recurse_read_control_structure): Handle python_control.
491 (read_command_lines): Handle python_control.
492 Include python.h.
493 * cli/cli-script.h (get_command_line): Add prototype.
494 (execute_control_command_untraced): Likewise.
495 * configure.ac: Add --with-python.
496 * defs.h (enum command_control_type) <python_control>: New
497 constant.
498 * python/python-internal.h: New file.
499 * python/python.c: New file.
500 * python/python.h: New file.
501 * python/python-utils.c: New file.
502 * NEWS: Mention Python scripting support and its new commands.
503
504 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
505
506 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
507
508 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
509
510 * MAINTAINERS (Write After Approval): Add self.
511
512 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
513
514 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
515 (insert_breakpoint_locations): Likewise.
516
517 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
518
519 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
520 breakpoint.
521 (set_longjmp_breakpoint): Likewise.
522
523 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
524
525 PR build/2490
526 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
527 defined.
528
529 2008-08-05 Tom Tromey <tromey@redhat.com>
530
531 * bcache.c (deprecated_bcache_added): Initialize obstack.
532 (bcache_xmalloc): Don't initialize obstack.
533 (bcache_xfree): Conditionally free obstack.
534 (bcache_memory_used): Update.
535
536 2008-08-05 Tom Tromey <tromey@redhat.com>
537
538 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
539 bcache_full.
540 (append_psymbol_to_list): Accept a const pointer.
541 (add_psymbol_to_list): Fix const correctness.
542 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
543 (bcache_full): Declare.
544 * bcache.c (bcache_data, deprecated_bcache): Remove.
545 (bcache): Use bcache_full.
546 (bcache_full): Rename from deprecated_bcache_added. Change return
547 type.
548
549 2008-08-04 Stan Shebs <stan@codesourcery.com>
550
551 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
552 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
553 (enable_break): Remove test of BKPT_AT_SYMBOL.
554
555 2008-08-02 Keith Seitz <keiths@redhat.com>
556
557 * acinclude.m4: Include ../config/tcl.m4 to pick up
558 standard Tcl configury bits.
559 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
560 * configure.ac: Don't check if ../itcl exists when building
561 gdbtk. It could be installed.
562 Rewrite gdbtk configury to allow for using system-supplied
563 Tcl and Tk. Gdbtk no longer requires build-time access to
564 itcl and itk.
565 * Makefile.in: Remove everything related to itcl and itk.
566 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
567 configure.ac.
568 Remove v850ice.o build rule.
569 (ALL_TCL_CFLAGS): New convenience defintion. Change all
570 gdbtk sources to use it.
571 * configure: Regenerate.
572
573 2008-07-31 Stan Shebs <stan@codesourcery.com>
574
575 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
576
577 2008-07-30 Stan Shebs <stan@codesourcery.com>
578
579 * objfiles.c (TARGET_KEEP_SECTION): Remove.
580 (add_to_objfile_sections): Remove use.
581
582 2008-07-29 Tom Tromey <tromey@redhat.com>
583
584 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
585 (lookup_cmd_composition): Likewise.
586
587 2008-07-29 Tom Tromey <tromey@redhat.com>
588
589 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
590 dead code. Fix indentation.
591
592 2008-07-29 Stan Shebs <stan@codesourcery.com>
593
594 * main.c (captured_main): Remove long-unused #if 0 blocks.
595
596 2008-07-28 Tom Tromey <tromey@redhat.com>
597
598 * annotate.h (deprecated_annotate_starting_hook): Remove.
599 (deprecated_annotate_stopped_hook): Remove.
600 (deprecated_annotate_exited_hook): Remove.
601 * Makefile.in (annotate.o): Depend on observer_h.
602 * top.c (deprecated_delete_breakpoint_hook): Remove.
603 (deprecated_create_breakpoint_hook): Likewise.
604 (deprecated_modify_breakpoint_hook): Likewise.
605 * interps.c (clear_interpreter_hooks): Update for removed hooks.
606 * breakpoint.c (mention): Don't call removed hook.
607 (delete_breakpoint): Likewise.
608 (disable_breakpoint): Likewise.
609 (do_enable_breakpoint): Likewise.
610 * annotate.c: Include observer.h.
611 (breakpoint_changed): Change type of argument.
612 (_initialize_annotate): Register observers.
613 (deprecated_annotate_starting_hook): Remove.
614 (deprecated_annotate_stopped_hook): Remove.
615 (deprecated_annotate_exited_hook): Remove.
616 (annotate_starting): Update for hook removal.
617 (annotate_stopped): Likewise.
618 (annotate_exited): Likewise.
619 * defs.h (deprecated_delete_breakpoint_hook): Remove.
620 (deprecated_create_breakpoint_hook): Likewise.
621 (deprecated_modify_breakpoint_hook): Likewise.
622
623 2008-07-28 Tom Tromey <tromey@redhat.com>
624
625 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
626
627 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
628
629 * configure.ac: Check for the GNU/Linux ptrace signature.
630 * configure: Regenerated.
631
632 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
633
634 * linux-nat.c (resume_callback): Add more debugging output.
635 (linux_nat_has_pending_sigint): New function, based on
636 linux_nat_has_pending.
637 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
638 (stop_wait_callback): Remove flush_mask handling. Honor
639 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
640 to recursive calls.
641 (linux_nat_has_pending, flush_callback): Remove.
642 (linux_nat_filter_event): Check for ignore_sigint.
643 (linux_nat_wait): Remove flush_mask support and call to
644 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
645 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
646
647 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
648
649 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
650 report events from resumed threads.
651
652 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
653
654 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
655 (mips_linux_init_abi): Set tdep->syscall_next_pc.
656 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
657 mips-tdep.h.
658 (mips32_next_pc): Handle the syscall instruction.
659 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
660 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
661
662 2008-07-26 Tom Tromey <tromey@redhat.com>
663
664 PR gdb/1158:
665 * valops.c (value_struct_elt): Treat function-valued field as a
666 static method.
667
668 2008-07-26 Tom Tromey <tromey@redhat.com>
669
670 PR gdb/1136:
671 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
672 longer tokens first.
673
674 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
675
676 Kill cmd_async_ok.
677 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
678 (get_cmd_async_ok): Remove.
679 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
680 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
681 * infcmd.c (_initialize_infcmd): Likewise.
682 * thread.c (_initialize_thread): Likewise.
683
684 2008-07-25 Joseph Myers <joseph@codesourcery.com>
685
686 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
687 128-bit long doubles in even-odd pairs of FPRs. Do not
688 right-align float arguments for big-endian.
689 (mips_n32n64_return_value): Apply return value convention for
690 structs containing one or two floating-point values to soft-float
691 as well as hard-float. Handle 128-bit long doubles in such
692 structs.
693 (mips_o32_push_dummy_call): Only skip one integer register for a
694 float argument passed in an FPR.
695
696 2008-07-25 Tom Tromey <tromey@redhat.com>
697
698 * tui/tui-hooks.c: Include observer.h.
699 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
700 Remove.
701 (tui_bp_created_observer, tui_bp_deleted_observer,
702 tui_bp_modified_observer): New globals.
703 (tui_install_hooks): Use observers, not events.
704 (tui_remove_hooks): Likewise.
705 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
706 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
707 globals.
708 (breakpoint_notify): Check mi_can_breakpoint_notify.
709 (breakpoint_hooks): Remove.
710 (mi_cmd_break_insert): Attach observers. Don't use events.
711 * tracepoint.c: Include observer.h, not gdb-events.h.
712 (tracepoint_operation, trace_pass_command): Notify observer.
713 * interps.c: Don't include gdb-events.h.
714 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
715 * gdbarch.c: Rebuild.
716 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
717 (deprecated_current_gdbarch_select_hack): Notify observer.
718 * breakpoint.h: Don't include gdb-events.h.
719 * breakpoint.c: Don't include gdb-events.h.
720 (condition_command): Notify observer.
721 (commands_command): Likewise.
722 (commands_from_control_command): Likewise.
723 (mention, delete_breakpoint, set_ignore_count): Likewise.
724 (disable_breakpoint, do_enable_breakpoint): Likewise.
725 * Makefile.in (gdb_events_h): Remove.
726 (breakpoint_h): Update.
727 (COMMON_OBS): Remove gdb-events.o.
728 (gdb-events.o): Remove.
729 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
730 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
731 * gdb-events.c: Remove.
732 * gdb-events.h: Remove.
733 * gdb-events.sh: Remove.
734
735 2008-07-24 Pedro Alves <pedro@codesourcery.com>
736
737 * remote.c (remote_threads_extra_info): Don't query the remote
738 server about info on the internally added main thread.
739
740 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
741
742 * nto-procfs.c (procfs_attach): Populate initial thread list.
743 (procfs_wait): Return new pid, built from the inferior status.
744
745 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
746
747 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
748 * configure: Regenerate.
749
750 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
751
752 * nto-procfs.c (procfs_xfer_memory): Changed signature.
753 (procfs_resume): Workaround for dereferencing type-punned pointer
754 warning.
755 * nto-tdep.c (nto_parse_redirection): Change signature to be const
756 correct.
757 * nto-tdep.h (nto_parse_redirection): Likewise.
758
759 2008-07-21 Stan Shebs <stan@codesourcery.com>
760
761 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
762 * gdbarch.sh: Adjust comment to refer to
763 in_solib_dynsym_resolve_code().
764 * gdbarch.h, gdbarch.c: Update.
765 * solib-osf.c: Ditto.
766 * infrun.c: Ditto.
767 (handle_inferior_event): Use in_solib_dynsym_resolve_code
768 unconditionally.
769 * config/mips/nm-irix5.h: Remove undef of
770 IN_SOLIB_DYNSYM_RESOLVE_CODE.
771
772 2008-07-21 Tom Tromey <tromey@redhat.com>
773
774 * symfile.c (reread_symbols): Don't pass argument to observer.
775 * exec.c (exec_file_attach): Don't pass argument to observer.
776 * ada-lang.c (ada_executable_changed_observer): Remove argument.
777 * symtab.c (symtab_observer_executable_changed): Remove argument.
778 * observer.sh: Handle functions with no arguments.
779
780 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
781 Chris Demetriou <cgd@google.com>
782
783 * elfread.c (elf_symfile_segments): Fix the check that each loadable
784 section fits within an ELF segment to handle ELF segments that hit
785 the end of the address space.
786
787 2008-07-20 Chris Demetriou <cgd@google.com>
788
789 * MAINTAINERS (Write After Approval): Add self.
790
791 2008-07-18 Tom Tromey <tromey@redhat.com>
792
793 PR gdb/855:
794 * NEWS: Add entry for macro commands.
795 * Makefile.in (macrocmd.o): Add gdb_string.h.
796 * macroscope.h (user_macro_scope): Declare.
797 (default_macro_scope): Update documentation.
798 (macro_user_macros): Declare.
799 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
800 Use user_macro_scope.
801 (null_macro_lookup): Remove.
802 * macrotab.h (macro_callback_fn): Declare.
803 (macro_for_each): Likewise.
804 (macro_allow_redefinitions): Likewise.
805 * macrotab.c (foreach_macro): New function
806 (macro_for_each): Likewise.
807 (struct macro_table) <redef_ok>: New field.
808 (macro_allow_redefinitions): New function.
809 (new_macro_table): Update.
810 (macro_define_function): Likewise.
811 (macro_define_object): Likewise.
812 * macroscope.c (user_macro_scope): New function.
813 (default_macro_scope): Use it.
814 (macro_user_macros): New global.
815 (standard_macro_lookup): Look in macro_user_macros.
816 (_initialize_macroscope): New function.
817 * macroexp.h (macro_is_whitespace, macro_is_digit,
818 macro_is_identifier_nondigit): Declare.
819 * macroexp.c (macro_is_whitespace): Rename. No longer static.
820 (macro_is_digit): Likewise.
821 (macro_is_identifier_nondigit): Likewise.
822 (get_identifier): Update.
823 (get_pp_number): Likewise.
824 (get_token): Likewise.
825 * macrocmd.c (skip_ws): New function.
826 (extract_identifier): Likewise.
827 (free_macro_definition_ptr): Likewise.
828 (user_macros): Remove.
829 (macro_define_command): Implement.
830 (_initialize_macrocmd): Update.
831 (macro_undef_command): Implement.
832 (print_one_macro): New function.
833 (macro_list_command): Implement.
834
835 2008-07-18 Joseph Myers <joseph@codesourcery.com>
836
837 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
838 in BFD ELF check.
839 * configure: Regenerate.
840
841 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
842
843 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
844
845 2008-07-15 Andreas Schwab <schwab@suse.de>
846
847 * valops.c (value_cast_pointers): Follow typedefs when checking
848 result of coercion.
849
850 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
851
852 * block.c (block_function): Renamed to ...
853 (block_linkage_function): ... this. All callers changed.
854 * block.h (block_function): Renamed to ...
855 (block_linkage_function): ... this.
856
857 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
858
859 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
860
861 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
862
863 * frame.c (frame_sp_unwind): Delete.
864 (get_frame_sp): Do not use it.
865 * frame.h (frame_sp_unwind): Delete prototype.
866
867 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
868
869 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
870
871 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
872
873 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
874 * frame.c (frame_unwind_address_in_block): Delete.
875 (get_frame_address_in_block): Do not use it. Check the type
876 of the next frame first.
877 (frame_cleanup_after_sniffer): Update comment.
878 * frame.h (frame_unwind_address_in_block): Delete prototype.
879 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
880
881 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
882
883 * frame.c (frame_func_unwind): Delete.
884 (get_frame_func): Do not use it.
885 * frame.h (frame_func_unwind): Delete prototype.
886 * hppa-tdep.c (hppa_frame_cache): Update comment.
887 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
888
889 2008-07-14 Stan Shebs <stan@codesourcery.com>
890
891 * remote-sim.c (init_gdbsim_ops): Remove
892 TARGET_REDEFINE_DEFAULT_OPS.
893
894 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
895
896 * findvar.c (read_var_value): Remove unused variable.
897
898 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
899
900 * infrun.c (handle_inferior_event): Tag threads as stopped
901 before inserting breakpoints.
902
903 2008-07-15 Hui Zhu <teawater@gmail.com>
904
905 * MAINTAINERS: Added myself to section Write After Approval.
906
907 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
908
909 PR gdb/2477
910 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
911
912 2008-07-14 Pedro Alves <pedro@codesourcery.com>
913
914 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
915 (i386_dicos_push_dummy_code): New.
916 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
917 Register i386_dicos_push_dummy_code.
918
919 2008-07-14 Markus Deuling <deuling@de.ibm.com>
920
921 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
922 (mips_n32n64_push_dummy_call, mips_o64_return_value)
923 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
924
925 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
926 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
927 (mips_n32n64_fp_arg_chunk_p): Update caller.
928
929 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
930 (mips_n32n64_push_dummy_call): Update caller.
931
932 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
933 current_gdbarch.
934 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
935 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
936
937
938 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
939 current_gdbarch.
940 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
941 (mips_o64_push_dummy_call): Update caller.
942
943 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
944 (fp_register_arg_p, mips_dump_tdep): Update caller.
945
946 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
947 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
948
949 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
950 current_gdbarch.
951 (mips32_scan_prologue): Update caller.
952
953 (heuristic_proc_start): Add gdbarch as parameter. Replace
954 current_gdbarch.
955 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
956
957 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
958 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
959 the current architecture. Update call to getregs_supplies.
960 (getregs_supplies): Add gdbarch as parameter and replace
961 current_gdbarch.
962
963 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
964 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
965 NBSD_MIPS_JB_ELEMENT_SIZE.
966 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
967 replace current_gdbarch.
968
969 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
970 current_gdbarch.
971 (mips_fetch_registers, mips_store_registers): Update call
972 to mips_map_regno.
973 (mips_load): Use get_regcache_arch to get at the current_architecture
974 and replace current_gdbarch.
975
976 2008-07-13 Pedro Alves <pedro@codesourcery.com>
977
978 * thread.c (restore_selected_frame): On fail to restore, select
979 the innermost frame, and don't crash when warning the user.
980
981 2008-07-13 Hui Zhu <teawater@gmail.com>
982
983 * symtab.c (expand_line_sal): Fix a memory leak.
984
985 2008-07-13 Pedro Alves <pedro@codesourcery.com>
986
987 * utils.c (struct continuation): Define as inheriting struct
988 cleanup.
989 (add_continuation, do_all_continuations)
990 (discard_all_continuations, add_intermediate_continuation)
991 (do_all_intermediate_continuations)
992 (discard_all_intermediate_continuations): Adjust.
993
994 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
995
996 Skip varobj in running threads.
997 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
998 thread is not stopped, skip the varobj.
999 * Makefile.in: Update dependencies.
1000
1001 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
1002
1003 Enable all commands while inferiour is running
1004 * mi/mi-main.c (mi_cmd_execute): Don't check if
1005 inferiour is executing.
1006
1007 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
1008
1009 Allow all CLI command even if target is executing.
1010 * gdb/top.c (execute_command_1): Don't check if the inferiour
1011 is running.
1012
1013 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
1014
1015 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
1016 Fix printing of frame, when frame is wrong.
1017
1018 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1019
1020 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
1021 backchain is unreadable.
1022
1023 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
1024
1025 * spu-linux-nat.c: Include "gdbthread.h".
1026 (spu_child_post_startup_inferior): Register main thread.
1027 (spu_child_post_attach): Likewise.
1028 * Makefile.in (spu-linux-nat.o): Update dependencies.
1029
1030 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1031
1032 Rewrite continuations internals on top of cleanups and plug
1033 continuation arguments leaks.
1034
1035 * defs.h (struct continuation): Make it opaque.
1036 (add_continuation, add_intermediate_continuation): Drop the int
1037 argument of the continuation hook argument. Add
1038 continuation_free_args argument.
1039 (do_all_continuations, do_all_intermediate_continuations): Drop
1040 the error_p argument.
1041
1042 * utils.c (add_continuation): Drop the int argument of the
1043 continuation hook argument. Add continuation_free_args argument.
1044 Reimplement on top of cleanups.
1045 (do_all_continuations): Drop error argument. Reimplement on top
1046 of cleanups.
1047 (discard_all_continuations): Reimplement on top of cleanups.
1048 (add_intermediate_continuation): Drop the int argument of the
1049 continuation hook argument. Add continuation_free_args argument.
1050 Reimplement on top of cleanups.
1051 (do_all_intermediate_continuations): Drop error argument.
1052 Reimplement on top of cleanups.
1053 (discard_all_intermediate_continuations): Reimplement on top of
1054 cleanups.
1055
1056 * breakpoint.c (until_break_command_continuation): Drop error
1057 argument. Add xfree as continuation argument deleter.
1058
1059 * inf-loop.c (inferior_event_handler): On error, discard all
1060 continuations. Adjust to new do_all_intermediate_continuations
1061 and do_all_continuations interfaces.
1062
1063 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
1064 Pass xfree as continuation argument deleter.
1065 (finish_command_continuation): Drop error_p argument. Adjust.
1066 (finish_command_continuation_free_arg): New.
1067 (finish_command): Pass finish_command_continuation_free_arg as
1068 continuation argument deleter. Adjust to new do_all_continuations
1069 interfaces.
1070 (attach_command_continuation): Drop error_p argument.
1071 (attach_command_continuation_free_args): New.
1072 (attach_command): Pass attach_command_continuation_free_args as
1073 continuation argument deleter.
1074
1075 * interps.c (interp_set): Adjust to new do_all_continuations
1076 interfaces.
1077
1078 * event-top.c (stdin_event_handler): In error, also discard the
1079 intermediate continuations.
1080
1081 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1082
1083 Replace struct continuation_args by void* and per command structs.
1084
1085 * top.c (execute_command): Remove unused arg1 and arg2 locals.
1086
1087 * breakpoint.c (struct until_break_command_continuation_args):
1088 New.
1089 (until_break_command_continuation): Take a void* instead of a
1090 continuations_arg. Adjust.
1091 (until_break_command): Adjust to use struct
1092 until_break_command_continuation_args instead of struct
1093 continuation_arg.
1094
1095 * infcmd.c (struct step_1_continuation_args): New.
1096 (step_1_continuation): Take a void* instead of a
1097 continuations_arg. Adjust to use struct step_1_continuation_args.
1098 (step_once): Adjust to use struct step_1_continuation_args.
1099
1100 (struct finish_command_continuation_args): New.
1101 (finish_command_continuation): Take a void* instead of a
1102 continuations_arg. Adjust to use struct
1103 finish_command_continuation_args.
1104 (finish_command): Adjust to use struct
1105 finish_command_continuation_args.
1106 (struct attach_command_continuation_args): New.
1107 (attach_command_continuation): Take a void* instead of a
1108 continuations_arg. Adjust to use struct
1109 attach_command_continuation_args.
1110 (attach_command): Adjust to use struct
1111 attach_command_continuation_args.
1112
1113 * defs.h (struct continuation_arg): Delete.
1114 (struct continuation): Replace the struct continuation_arg*
1115 parameter of continuation_hook by a void*. Replace "arg_list"
1116 member by a new "args" member with void* type.
1117 (add_continuation, add_intermediate_continuation): Replace struct
1118 continuation_arg type usages by void* usages.
1119
1120 * utils.c (add_continuation, do_all_continuations)
1121 (add_intermediate_continuation)
1122 (do_all_intermediate_continuations): Replace struct
1123 continuation_arg type usages by void* usages. Pass "args" instead
1124 of "arg_list".
1125
1126 2008-07-12 Pedro Alves <pedro@codesourcery.com>
1127
1128 * infrun.c (struct thread_stepping_state): Delete sal member.
1129 (init_thread_stepping_state): Add local sal. Use it instead of
1130 tss->sal.
1131 (handle_inferior_event): New local stop_pc_sal. Use it instead of
1132 tss->sal.
1133 (step_into_function): Add local stop_func_sal. Use it instead of
1134 tss->sal.
1135
1136 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1137
1138 Implement -exec-continue/-exec-interrupt --all.
1139 * infcmd.c (continue_1): New, extracted from
1140 (continue_command): ...here.
1141 (interrupt_target_1): New, extracted from
1142 (interrupt_target_command): ...here.
1143 * inferior.h (continue_1, interrupt_target_1): New.
1144 * mi/mi-main.c (mi_cmd_exec_continue)
1145 (mi_cmd_exec_interrupt): Handle --all.
1146
1147 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1148
1149 Implement --thread and --frame.
1150 * gdbthread.h (find_thread_id): Declare.
1151 * thread.c (find_thread_id): Make non-static.
1152 * mi/mi-main.c (mi_cmd_execute): Switch to the right
1153 thread and frame, if necessary.
1154 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
1155 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1156
1157 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1158
1159 * infrun.c (resume): Discard cleanups on early exit path.
1160
1161 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1162
1163 * infrun.c (normal_stop): For MI, report which threads
1164 were stopped.
1165
1166 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
1167
1168 Report thread state in -thread-info output.
1169 * thread.c (print_thread_info): Add new field "state".
1170
1171 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1172
1173 * infrun.c (handle_inferior_event): Also ignore a
1174 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
1175
1176 2008-07-11 Tom Tromey <tromey@redhat.com>
1177
1178 * completer.c (complete_line_internal): New function, from
1179 complete_line. Add 'for_help' parameter.
1180 (complete_line): Use it.
1181 (command_completer): Move later. Rewrite.
1182
1183 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1184
1185 * thread.c (thread_apply_command): Move making the cleanup out of
1186 the loop.
1187
1188 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1189
1190 Exited threads.
1191
1192 * thread.c (enum thread_state): New.
1193 (thread_state main_thread_running): Delete, in favor of...
1194 (thread_state main_thread_state): ... this. Update throughout.
1195 (clear_thread_inferior_resources): New, split from free_thread.
1196 (free_thread): Call clear_thread_inferior_resources.
1197 (init_thread_list): Set main thread to stopped state.
1198 (add_thread_silent): Take care of PTID reuses.
1199 (delete_thread): If deleting inferior_ptid or a thread with
1200 refcount > 0, mark it as exited, but still keep it in the list.
1201 Only notify of thread exits, if we haven't done so yet.
1202 (iterate_over_threads): Make it safe to delete threads while
1203 iterating over them.
1204 (do_captured_list_thread_ids): Don't account for exited threads.
1205 (thread_alive): Check for the THREAD_EXITED state, and don't set
1206 ptid to -1 on exited threads.
1207 (set_running): Update to account for extra possible states.
1208 (is_thread_state): New.
1209 (is_stopped, is_exited): New.
1210 (is_running): Implement in terms of is_thread_state.
1211 (any_running): Update.
1212 (print_thread_info): Update. Account for exited threads. Don't
1213 warn about missed frame restoring here, its done in the cleanup.
1214 (switch_to_thread): Don't read from a thread that has gone.
1215 (restore_current_thread): In non-stop mode, do a full context
1216 switch.
1217 (restore_selected_frame): Add a frame_level argument. Rewrite.
1218 (struct current_thread_cleanup): Add selected_frame_level and
1219 was_stopped members.
1220 (do_restore_current_thread_cleanup): Check if thread was stopped
1221 and still is, and if the target has registers, stack and memory
1222 before restoring the selected frame. Don't delete the cleanup
1223 argument here.
1224 (restore_current_thread_cleanup_dtor): New.
1225 (make_cleanup_restore_current_thread): Remove all arguments.
1226 Rewrite.
1227 (thread_apply_all_command): Update. Prune threads.
1228 (thread_apply_command): Update.
1229 (thread_command): Account for currently selected exited thread.
1230 (do_captured_thread_select): Check for a running thread. Prune
1231 threads.
1232 (_initialize_thread): Make "info threads", "thread", "thread
1233 apply", and "thread apply all" appliable without a selected thread.
1234 * gdbthread.h (struct thread_info): Replace running_ by state_.
1235 Add refcount.
1236 (is_exited, is_stopped): Declare.
1237 (make_cleanup_restore_current_thread): Remove all arguments.
1238 * infrun.c: Include "event-top.h".
1239 (fetch_inferior_event): In non-stop mode, restore selected thread
1240 and frame after handling the event and running breakpoint
1241 commands. Display GDB prompt if needed.
1242 (normal_stop): In non-stop mode, don't print thread switching
1243 notice.
1244 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1245 (get_cmd_no_selected_thread_ok): New.
1246 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1247 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1248 Declare.
1249 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1250 no-selected-thread ok.
1251 * top.c (execute_command): Check for non no-selected-thread-ok
1252 commands.
1253 * linux-nat.c (struct saved_ptids, threads_to_delete)
1254 (record_dead_thread, prune_lwps): Delete.
1255 (exit_lwp): Unconditionally delete thread.
1256 (linux_nat_resume): Remove prune_lwps call.
1257 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1258 of is_running. Adjust to make_cleanup_restore_current_thread
1259 interface change.
1260 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1261 selected thread has exited.
1262 * inf-loop.c (inferior_event_handler): Don't display the prompt
1263 here.
1264 * varobj.c (c_value_of_root): Update.
1265 * defs.h (make_cleanup_dtor): Declare.
1266 * utils.c (make_cleanup_dtor): New.
1267
1268 * Makefile.in (infrun.o): Depend on $(event_top_h).
1269
1270 2008-07-11 Pedro Alves <pedro@codesourcery.com>
1271
1272 Add "continue -a" and "interrupt -a" options for non-stop mode.
1273
1274 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1275 (continue_command): Add "-a" option.
1276 (interrupt_target_command): Add "-a" option.
1277 (_initialize_infcmd): Add extend help of continue and interrupt
1278 command to mention the new "-a" option. Mark "continue" async ok.
1279
1280 2008-07-10 Doug Evans <dje@google.com>
1281
1282 Add "set print symbol-loading on|off".
1283 * NEWS: Document new option.
1284 * symfile.h (print_symbol_loading): Declare.
1285 * symfile.c (print_symbol_loading): New global.
1286 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
1287 from ..." if print_symbol_loading.
1288 (_initialize_symfile): Add set/show print symbol-loading.
1289 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
1290 if print_symbol_loading.
1291
1292 2008-07-10 Pedro Alves <pedro@codesourcery.com>
1293
1294 Non-stop linux native.
1295
1296 * linux-nat.c (linux_test_for_tracefork): Block events while we're
1297 here.
1298 (get_pending_status): Implement non-stop mode.
1299 (linux_nat_detach): Stop threads before detaching.
1300 (linux_nat_resume): In non-stop mode, always resume only a single
1301 PTID.
1302 (linux_handle_extended_wait): On a clone event, in non-stop mode,
1303 add new lwp to GDB's thread table, and mark as running, executing
1304 and stopped appropriately.
1305 (linux_nat_filter_event): Don't assume there are other running
1306 threads when a thread exits.
1307 (linux_nat_wait): Mark the main thread as running and executing.
1308 In non-stop mode, don't stop all lwps.
1309 (linux_nat_kill): Stop lwps before killing them.
1310 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
1311 alive.
1312 (send_sigint_callback): New.
1313 (linux_nat_stop): New.
1314 (linux_nat_add_target): Set to_stop to linux_nat_stop.
1315
1316 * linux-nat.h (thread_db_attach_lwp): Declare.
1317
1318 * linux-thread-db.c (thread_get_info_callback): Check for new
1319 threads if we have none.
1320 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
1321 stopped lwp. Check for new threads if we have none.
1322 (thread_db_attach_lwp): New.
1323 (thread_db_init): Set proc_handle.pid to inferior_ptid.
1324 (check_event): Set proc_handle.pid to the stopped lwp.
1325 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
1326 lwp available, bail out if there is none.
1327
1328 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
1329 PTRACE_KILL.
1330
1331 2008-07-10 Kevin Buettner <kevinb@redhat.com>
1332
1333 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
1334 `current_pc' from CORE_ADDR to ULONGEST.
1335
1336 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
1337 gdbsim_stop().
1338
1339 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1340
1341 * NEWS (New commands): Mention "set disable-randomization".
1342 * configure.ac: Add check for HAVE_PERSONALITY and
1343 HAVE_DECL_ADDR_NO_RANDOMIZE.
1344 * configure, config.in: Regenerate.
1345 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
1346 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
1347 ADDR_NO_RANDOMIZE.
1348 (disable_randomization, show_disable_randomization)
1349 (set_disable_randomization): New.
1350 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
1351 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
1352 variable DISABLE_RANDOMIZATION.
1353 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
1354 DISABLE_RANDOMIZATION.
1355
1356 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1357
1358 Adjust all targets to new target_stop interface.
1359
1360 * gnu-nat.c (gnu_stop): Add ptid argument.
1361 * go32-nat.c (go32_stop): Add ptid argument.
1362 (go32_create_inferior): Pass inferior_ptid to go32_stop.
1363 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
1364 * monitor.c (monitor_stop): Add ptid argument.
1365 (monitor_open): Pass inferior_ptid to monitor_stop.
1366 (monitor_interrupt): Pass inferior_ptid to target_stop.
1367 (monitor_stop): Add ptid argument.
1368 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
1369 (procfs_create_inferior): Add ptid argument.
1370 * procfs.c (procfs_stop): Add ptid argument.
1371 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
1372 * remote-sim.c (gdbsim_stop): Add ptid argument.
1373 * sol-thread.c (sol_thread_stop): Add ptid argument.
1374 * win32-nat.c (win32_stop): Add ptid argument.
1375
1376 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1377
1378 Non-stop inferior control.
1379
1380 * infrun.c (resume): In non-stop mode, always resume just one
1381 thread.
1382 (proceed): Don't call prepare_to_proceed in non-stop mode.
1383 (fetch_inferior_event): In non-stop mode, switch context before
1384 handling the event.
1385 (error_is_running, ensure_not_running): New.
1386 (handle_inferior_event): In non-stop mode: Mark only the event
1387 thread as stopped. Require that the target module manages adding
1388 threads to the thread list. Assert that there isn't a
1389 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
1390 (normal_stop): Only mark not-running if inferior hasn't exited.
1391 In non-stop mode, only mark the event thread.
1392
1393 * thread.c:Include "cli/cli-decode.h".
1394 (print_thread_info): Don't read from a running thread.
1395 Output "(running)" if thread is running.
1396 (switch_to_thread): Don't read stop_pc if thread is executing.
1397 (do_restore_current_thread_cleanup): Don't write to a running
1398 thread.
1399 (thread_apply_all_command): Don't read from a running thread. In
1400 non-stop mode, do a full context-switch instead of just switching
1401 threads.
1402 (thread_apply_command): In non-stop mode, do a full context-switch
1403 instead of just switching threads.
1404 (do_captured_thread_select): Likewise. Inform user if selected
1405 thread is running.
1406 (_initialize_thread): Mark "info threads" and "thread" and
1407 async_ok.
1408
1409 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
1410 unregister the target from the event loop.
1411
1412 * infcmd.c (continue_command, step_1, jump_command)
1413 (signal_command): Ensure the selected thread isn't running.
1414 (interrupt_target_command): In non-stop mode, interrupt only the
1415 selected thread.
1416
1417 * inferior.h (error_is_running, ensure_not_running): Declare.
1418
1419 * target.h (struct target_ops): Add ptid argument to the to_stop
1420 member.
1421 (target_stop): Add ptid_t argument.
1422
1423 * target.c (update_current_target): Add ptid argument to to_stop's
1424 type.
1425 (debug_to_stop): Add ptid_t argument.
1426 (debug_to_rcmd): Set to_stop_ptid.
1427
1428 * remote.c (remote_stop): Add ptid_t argument.
1429 (async_remote_interrupt): Add inferior_ptid to target_stop.
1430 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
1431
1432 * Makefile.in (thread.o): Depend on $(cli_decode_h).
1433
1434 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1435
1436 Don't rely on ecs->wait_for_more.
1437
1438 * infrun.c (proceed): Clear the stepping state, set
1439 previous_inferior_ptid and clear infwait state.
1440 (wait_for_inferior): Don't clear the stepping state, set
1441 previous_inferior_ptid, or clear the infwait state here.
1442 (fetch_inferior_event): Don't clear the stepping state, set
1443 previous_inferior_ptid, or clear the infwait state here. Don't
1444 condition on wait_for_more.
1445
1446 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1447
1448 Refactor infrun a bit.
1449
1450 * infrun.c (currently_stepping): Take a struct
1451 thread_stepping_state instead of an execution_control_state.
1452 (struct thread_stepping_state): New, split from
1453 execution_control_state.
1454 (gtss, tss): New globals.
1455 (proceed): Clear the stepping state, set previous_inferior_ptid
1456 and clear infwait state.
1457 (init_wait_for_inferior): Clear the stepping state,
1458 previous_inferior_ptid and infwait state.
1459 (waiton_ptid, infwait_state): New, split from
1460 execution_control_state.
1461 (struct execution_control_state): Members that persist through
1462 events moved out to either struct thred_stepping_state or made
1463 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
1464 (wait_for_inferior, fetch_inferior_event): Use local
1465 execution_control_state. Update to execution_control_state split.
1466 (init_execution_control_state): Adjust.
1467 (init_thread_stepping_state): New, extracted from
1468 init_execution_control_state.
1469 (context_switch): Take a ptid instead of an
1470 execution_control_state.
1471 (context_switch_to): Adjust.
1472 (adjust_pc_after_break): Adjust.
1473 (init_infwait_state): New.
1474 (handle_inferior_event): Adjust.
1475
1476 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1477 Vladimir Prus <vladimir@codesourcery.com>
1478
1479 Per-thread commands.
1480
1481 * gdbthread.h: Remove unneeded forward declarations.
1482 Include "inferior.h".
1483 (struct thread_info): Add continuations,
1484 intermediate_continuations, proceed_to_finish, step_over_calls,
1485 stop_step, step_multi and stop_signal members.
1486 (save_infrun_state): Add continuations,
1487 intermediate_continuations, proceed_to_finish, step_over_calls,
1488 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1489 (load_infrun_state): Add continuations,
1490 intermediate_continuations, proceed_to_finish, step_over_calls,
1491 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1492
1493 * thread.c (load_infrun_state): In non-stop mode, load
1494 continuations, intermediate_continuations, proceed_to_finish,
1495 step_over_calls, stop_step, step_multi and stop_signal.
1496 (save_infrun_state): Store continuations,
1497 intermediate_continuations, proceed_to_finish, step_over_calls,
1498 stop_step, step_multi, stop_signal and stop_bpstat.
1499 (save_infrun_state): Store continuations,
1500 intermediate_continuations, proceed_to_finish, step_over_calls,
1501 stop_step, step_multi, stop_signal and stop_bpstat.
1502 (free_thread): Clear The thread's stop_bpstat.
1503
1504 * inferior.h (context_switch_to): Declare.
1505
1506 * infrun.c (ecss): New global.
1507 (context_switch): Context switch continuations,
1508 intermediate_continuations, proceed_to_finish, step_over_calls,
1509 stop_step, step_multi, stop_signal and stop_bpstat.
1510 (wait_for_inferior): Use global ecss.
1511 (async_ecss, async_ecs): Delete.
1512 (fetch_inferior_event): Use global ecss.
1513 (context_switch_to): New.
1514
1515 * top.c (execute_command): In non-stop, only check if the current
1516 thread is running, in all-stop, check if there's any thread
1517 running.
1518
1519 * breakpoint.c (bpstat_remove_breakpoint): New.
1520 (bpstat_remove_breakpoint_callback): New.
1521 (delete_breakpoint): Clear the stop_bpstats of all threads.
1522
1523 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
1524 current thread is running, in all-stop, check if there's any
1525 thread running.
1526
1527 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
1528
1529 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1530
1531 Add non_stop global.
1532
1533 * inferior.h (non_stop): Declare.
1534 * infrun.c (non_stop, non_stop_1): New.
1535 (set_non_stop, show_non_stop): New.
1536 (_initialize_infrun): Add "set/show non-stop" command.
1537
1538 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1539
1540 Adjust fork/vfork/exec to pass ptids around.
1541
1542 * target.h (struct target_waitstatus): Store related_pid as a ptid.
1543 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
1544 Take a ptid_t.
1545 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
1546 type to ptid.
1547 * breakpoint.c (print_it_typical, bpstat_check_location)
1548 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
1549 (create_fork_vfork_event_catchpoint): Adjust.
1550 * infrun.c (fork_event): Change parent_pid and child_pid types to
1551 ptid.
1552 (follow_exec, inferior_has_forked, inferior_has_vforked)
1553 (inferior_has_execd): Take a ptid_t and don't trim it.
1554 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
1555 * linux-nat.c (linux_child_follow_fork): Adjust.
1556 * inf-ptrace.c (inf_ptrace_wait): Adjust.
1557 * inf-ttrace.c (inf_ttrace_wait): Adjust.
1558 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
1559
1560 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1561
1562 Add "executing" property to threads.
1563
1564 * inferior.h (target_executing): Delete.
1565 * gdbthread.h (struct thread_info): Add executing_ field.
1566 (set_executing, is_executing): New.
1567 * thread.c (main_thread_executing): New.
1568 (init_thread_list): Clear it and also main_thread_running.
1569 (is_running): Return false if target has no execution.
1570 (any_running, is_executing, set_executing): New.
1571
1572 * top.c: Include "gdbthread.h".
1573 (target_executing): Delete.
1574 (execute_command): Replace target_executing check by any_running.
1575 * event-top.c: Include "gdbthread.h".
1576 (display_gdb_prompt, command_handler): Replace target_executing by
1577 is_running.
1578 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
1579 here. Replace target_executing by is_running.
1580 * infrun.c (handle_inferior_event): Mark all threads as
1581 not-executing.
1582 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
1583 here.
1584 * stack.c (get_selected_block): Return null if inferior is
1585 executing.
1586 * target.c (target_resume): Mark resumed ptid as executing.
1587 * breakpoint.c (until_break_command): Replace target_executing
1588 check by is_executing.
1589 * remote.c (remote_async_resume): Don't mark inferior as executing
1590 here.
1591 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
1592 by any_running.
1593
1594 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
1595 (mi_execute_async_cli_command): Replace target_executing by
1596 is_running.
1597
1598 * frame.c (get_current_frame): Error out if the current thread is
1599 executing.
1600 (has_stack_frames): New.
1601 (get_selected_frame, deprecated_safe_get_selected_frame): Check
1602 has_stack_frames.
1603
1604 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
1605 $(gdbthread_h).
1606
1607 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1608
1609 * symfile.c (load_command): Reopen the exec file and reread
1610 symbols before anything else.
1611
1612 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1613
1614 * remote-sim.c: Include gdbthread.h.
1615 (remote_sim_ptid): New global.
1616 (gdbsim_create_inferior): Silently add the main task to GDB's
1617 thread list.
1618 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
1619 task from GDB's thread list.
1620 (gdbsim_resume): Adjust to use remote_sim_ptid.
1621 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
1622 (init_gdbsim_ops): Register gdbsim_thread_alive and
1623 gdbsim_pid_to_str.
1624 (_initialize_remote_sim): Initialize remote_sim_ptid.
1625 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
1626
1627 2008-07-09 Pedro Alves <pedro@codesourcery.com>
1628
1629 * monitor (monitor_ptid): New global.
1630 (monitor_open): Silently add the main task to GDB's thread list.
1631 (monitor_close, monitor_mourn_inferior): Silently delete the main
1632 task from GDB's thread list.
1633 (monitor_thread_alive, monitor_pid_to_str): New.
1634 (init_base_monitor_ops): Register monitor_thread_alive and
1635 monitor_pid_to_str.
1636 (_initialize_remote_monitors): Initialize monitor_ptid.
1637
1638 * gdbthread.h (delete_thread_silent): Declare.
1639 * thread.c (delete_thread): Rename to ...
1640 (delete_thread_1): ... this. Add "silent" parameter. If silent,
1641 don't do exit notifications.
1642 (delete_thread, delete_thread_silent): New, as wrappers to
1643 delete_thread_1.
1644
1645 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1646
1647 * breakpoint.c (update_global_location_list): Add boolean
1648 "should_insert" argument. Only insert locations if caller told it
1649 too.
1650 (update_global_location_list_nothrow): Add boolean "should_insert"
1651 argument. Pass it to update_global_location_list.
1652 (insert_breakpoints, create_longjmp_breakpoint)
1653 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
1654 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1655 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
1656 (enable_watchpoints_after_interactive_call_stop)
1657 (set_momentary_breakpoint, create_breakpoints)
1658 (break_command_really, watch_command_1)
1659 (create_ada_exception_breakpoint, update_breakpoint_locations)
1660 (do_enable_breakpoint, enable_command): Pass true to
1661 update_global_location_list.
1662 (bpstat_stop_status, disable_overlay_breakpoints)
1663 (disable_watchpoints_before_interactive_call_start)
1664 (delete_breakpoint, disable_breakpoint, disable_command): Pass
1665 false to update_global_location_list.
1666 (update_breakpoints_after_exec): Don't temporarily disable
1667 always-inserted mode.
1668
1669 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1670
1671 * breakpoint.c (mark_breakpoints_out): Make public.
1672 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
1673 here. Update comment.
1674 * breakpoint.h (mark_breakpoints_out): Declare.
1675
1676 * linux-nat.c (linux_handle_extended_wait): On
1677 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
1678 * inf-ttrace.c (inf_ttrace_wait): Likewise.
1679
1680 2008-07-08 Pedro Alves <pedro@codesourcery.com>
1681
1682 * infrun.c (follow_exec): Reset shared libraries before adding the
1683 main exec file.
1684
1685 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1686
1687 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
1688
1689 2008-07-07 Pedro Alves <pedro@codesourcery.com>
1690
1691 * i386-dicos-tdep.c: Include "inferior.h".
1692 (i386_dicos_frame_align): New.
1693 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
1694 dummy location ON_STACK.
1695 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
1696
1697 2008-07-07 Joel Brobecker <brobecker@adacore.com>
1698
1699 * gstdint.h: New file.
1700
1701 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
1702
1703 * mi/mi-interp.c (mi_on_resume): Don't try to report
1704 resumed thread it the thread list is empty.
1705
1706 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
1707
1708 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
1709 completer for set to filename_completer.
1710
1711 NEWS: Mention it.
1712
1713 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
1714
1715 Implement -target-attach.
1716 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
1717
1718 2008-06-21 Hui Zhu <teawater@gmail.com>
1719
1720 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
1721
1722 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1723
1724 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
1725 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
1726
1727 * target.h (struct target_ops): Add to_attach_no_wait member.
1728 (target_attach_no_wait): New.
1729 * target.c (update_current_target): Inherit to_attach_no_wait.
1730
1731 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
1732 target_attach_no_wait runtime check.
1733
1734 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
1735 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
1736 win32_ops.
1737
1738 2008-07-03 Pedro Alves <pedro@codesourcery.com>
1739
1740 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
1741 on debug_displaced being set.
1742
1743 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1744
1745 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
1746 directly instead of get_frame_id.
1747
1748 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1749
1750 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
1751 (deal_with_atomic_sequence): Update BC masks.
1752 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
1753 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
1754
1755 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1756
1757 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
1758 register, not the previous frame's.
1759
1760 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
1761
1762 * source.c (select_source_symtab): Make sure we skip namespace
1763 symtabs when showing cpp source code.
1764
1765 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
1766
1767 * MAINTAINERS (Authorized committers): Fix my email address.
1768
1769 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1770
1771 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
1772 -target-download and -target-select via CLI, so that
1773 the quoting rules are the same as they were (unfortunately)
1774 in all prior gdb releases.
1775 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
1776 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1777 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
1778 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1779 (mi_cmd_execute): Set current_token even for commands
1780 routed via CLI.
1781
1782 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
1783
1784 * alphafbsd-tdep.c: Update for unwinder changes.
1785 * alpha-linux-tdep.c: Likewise.
1786 * alphanbsd-tdep.c: Likewise.
1787 * alphaobsd-tdep.c: Likewise.
1788 * avr-tdep.c: Likewise.
1789 * cris-tdep.c: Likewise.
1790 * frv-linux-tdep.c: Likewise.
1791 * frv-tdep.c: Likewise.
1792 * h8300-tdep.c: Likewise.
1793 * hppa-linux-tdep.c: Likewise.
1794 * iq2000-tdep.c: Likewise.
1795 * m32c-tdep.c: Likewise.
1796 * m32r-linux-tdep.c: Likewise.
1797 * m32r-tdep.c: Likewise.
1798 * m68hc11-tdep.c: Likewise.
1799 * mep-tdep.c: Likewise.
1800 * mn10300-tdep.c: Likewise.
1801 * mt-tdep.c: Likewise.
1802 * score-tdep.c: Likewise.
1803 * sh64-tdep.c: Likewise.
1804 * sh-tdep.c: Likewise.
1805 * sparc64fbsd-tdep.c: Likewise.
1806 * sparc64nbsd-tdep.c: Likewise.
1807 * sparc64obsd-tdep.c: Likewise.
1808 * v850-tdep.c: Likewise.
1809 * vaxobsd-tdep.c: Likewise.
1810 * vax-tdep.c: Likewise.
1811 * xstormy16-tdep.c: Likewise.
1812
1813 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1814
1815 * mi/mi-main.c (enum captured_mi_execute_command_actions)
1816 (captured_mi_execute_command_args): Remove.
1817 (captured_mi_execute_command): Cast the closure to mi_parse
1818 pointer, not to captured_mi_execute_command_args, and don't
1819 set the action field thereof.
1820 (mi_execute_command): Pass struct mi_parse, not
1821 captured_mi_execute_command_args to captured_mi_execute_command.
1822 (mi_execute_command): Remove (dead) code for suppressing
1823 printing prompt.
1824
1825 2008-06-28 Pedro Alves <pedro@codesourcery.com>
1826
1827 * linux-nat.c (enum sigchld_state): New.
1828 (linux_nat_async_events_state): Renamed from
1829 linux_nat_async_events_enabled.
1830 (linux_nat_event_pipe_push, my_waitpid): Adjust.
1831 (sigchld_default_action): New.
1832 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
1833 unconditionally.
1834 (linux_nat_create_inferior): Set events state to sigchld_default
1835 state.
1836 (linux_nat_resume): Adjust.
1837 (linux_nat_wait): Call linux_nat_async_events unconditionally.
1838 (sigchld_handler): Adjust.
1839 (linux_nat_async_mask): Don't set SIGCHLD actions here.
1840 (get_pending_events): Adjust.
1841 (linux_nat_async_events): Rewrite to handle enum sigchld_state
1842 instead of a boolean.
1843 (linux_nat_async): Adjust.
1844 (_initialize_linux_nat): Capture default SIGCHLD action into
1845 sigchld_default_action.
1846
1847 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1848
1849 * breakpoint.c (moribund_locations): New.
1850 (bpstat_stop_status): Process moribund locations.
1851 (update_global_location_list): Add removed
1852 locations to moribund_locations.
1853 (breakpoint_retire_moribund): New.
1854 * breakpoint.h (struct bp_location): New field
1855 events_till_retirement.
1856 (breakpoint_retire_moribund): Declare.
1857 * thread.c (thread_count): New.
1858 * infrun.c (handle_inferior_event): Call
1859 breakpoint_retire_moribund.
1860 * gdbthread.h (thread_count): Declare.
1861
1862 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1863
1864 * dfp.c (decimal_convert): Call match_endianness before and after
1865 conversion.
1866
1867 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
1868
1869 * remote.c (remote_insert_breakpoint): Ensure that if Z0
1870 unsupported and we fall back to memory_insert_breakpoint, we
1871 use the unmodified requested address.
1872
1873 2008-06-27 Joel Brobecker <brobecker@adacore.com>
1874
1875 * dwarf2read.c (read_attribute_value): Issue a complaint when
1876 adjusting size attribute values of 0xffffffff as zero.
1877
1878 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1879
1880 * i386-tdep.c (i386_16_byte_align_p): New.
1881 (i386_push_dummy_call): Determine stack space required for
1882 arguments going forwards allowing for 16-byte alignment, then push
1883 arguments going forwards.
1884
1885 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1886
1887 * infrun.c (start_remote): Don't clear thread list here.
1888 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
1889 list here.
1890 * remote.c (record_currthread): Upgrade the main thread and its
1891 entry in the thread list if this is the first time we hear about
1892 threads.
1893 (remote_thread_alive): Consider magic_null_ptid or a ptid without
1894 a tid member always alive.
1895 (remote_find_new_threads): Don't update the main thread here.
1896 (remote_start_remote): Clear thread list here. Always add the
1897 main thread.
1898 (extended_remote_attach_1): Add the main thread here.
1899 (extended_remote_mourn_1): Re-add the main thread here.
1900 (extended_remote_create_inferior_1): Add a main thread.
1901
1902 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
1903
1904 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1905
1906 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1907
1908 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
1909 globals.
1910 (general_thread, continue_thread): Change type to ptid_t.
1911 (record_currthread): Take a ptid_t parameter instead of an
1912 integer.
1913 (MAGIC_NULL_PID): Delete.
1914 (set_thread): Take a ptid_t parameter and adjust.
1915 (set_general_thread, set_continue_thread): New.
1916 (remote_thread_alive, remote_newthread_step)
1917 (remote_current_thread, remote_find_new_threads)
1918 (remote_threads_info, remote_start_remote, remote_vcont_resume)
1919 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
1920 (threadalive_test, remote_pid_to_str)
1921 (remote_get_thread_local_address): Adjust.
1922 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
1923 and any_thread_ptid.
1924
1925 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
1928 * configure: Regenerated.
1929
1930 2008-06-26 Joel Brobecker <brobecker@adacore.com>
1931
1932 * dwarf2read.c (read_attribute_value): Treat size attribute
1933 values of 0xffffffff as if the attribute value was zero.
1934
1935 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1936
1937 * linux-nat.c: Add description of overall logic.
1938
1939 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
1940
1941 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
1942 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
1943 all dependencies on $(gdb_stdint_h).
1944 (distclean): Do not delete gdb_stdint.h.
1945 * acinclude.m4: Do not use stdint.m4.
1946 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
1947 uintptr_t, and gdb_stdint.h.
1948 * defs.h: Include <stdint.h>.
1949 * gdb_thread_db.h: Assume stdint.h is already included.
1950 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
1951 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
1952 include gdb_stdint.h.
1953 * configure, config.in: Regenerate.
1954
1955 2008-06-26 Joseph Myers <joseph@codesourcery.com>
1956
1957 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
1958 decimal floating-point values in GPRs for soft-float.
1959 (do_ppc_sysv_return_value): Handle returning decimal
1960 floating-point values in GPRs for soft-float.
1961
1962 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1963
1964 * target.c (target_read_until_error): New.
1965 * target.h (target_read_until_error): Declare.
1966 * mi/mi-main.c (mi_cmd_data_read_memory): Use
1967 target_read_until_error.
1968
1969 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1970
1971 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
1972 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
1973 after the DECFLOAT detection to fix a memory leak. Remove the
1974 redundant NUM initialization. Protect the DECFLOAT detection memory
1975 access before the P block. Restore the P memory content for the
1976 DECFLOAT detection.
1977
1978 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1979
1980 Kill the return value for all MI command functions.
1981 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
1982 (mi_cmd_argv_ftype): Change return type to void.
1983
1984 * mi/mi-main.c: Adjust all function that implement
1985 MI commands to return nothing.
1986 (struct captured_mi_execute_command_actions):
1987 Remove the rc field.
1988 (mi_cmd_execute): Return nothing.
1989 (mi_execute_async_cli_command): Return nothing.
1990 (mi_cmd_exec_interrupt): Don't print ^done here.
1991 (mi_cmd_target_select): Don't print ^connected here.
1992 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
1993 Special-case -target-select and output ^connected, not ^done.
1994
1995 * mi/mi-cmd-break.c: Adjust.
1996 * mi/mi-cmd-disas.c: Adjust.
1997 * mi/mi-cmd-env.c: Adjust.
1998 * mi/mi-cmd-file.c: Adjust.
1999 * mi/mi-cmd-stack.c: Adjust.
2000 * mi/mi-cmd-target.c: Adjust.
2001 * mi/mi-cmd-var.c: Adjust.
2002 * mi/mi-interp.c: Adjust.
2003 * mi/mi-symbol-cmds.c: Adjust.
2004
2005 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
2006
2007 Emit ^running via observer.
2008 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
2009 ^running here.
2010 (mi_on_resume): Print ^running if not previously output.
2011 * mi/mi-main.c (running_result_record_printed): New.
2012 (captured_mi_execute_command): Reset
2013 running_result_record_printed. Use running_result_record_printed
2014 to decide if we should skip ^done.
2015 (mi_execute_async_cli_command): Don't print ^running here.
2016 * mi/mi-main.h (current_token, running_result_record_printed):
2017 Declare.
2018
2019 2008-06-24 Michael Snyder <msnyder@specifix.com>
2020
2021 * infrun.c (_initialize_infrun): White space and typo fix.
2022
2023 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
2024
2025 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
2026 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
2027 when first loading DLL with "dll" command.
2028
2029 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2030
2031 * gnu-nat.c (proc_string): Use capital T for "Thread".
2032
2033 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2034
2035 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
2036
2037 2008-06-18 Joel Brobecker <brobecker@adacore.com>
2038
2039 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2040 the target cannot run.
2041
2042 2008-06-18 Joel Brobecker <brobecker@adacore.com>
2043
2044 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2045 we're attaching to a running process.
2046
2047 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
2048
2049 * win32-nat.c (handle_load_dll): Give dll name and load address
2050 if debug_events is on.
2051 (handle_unload_dll): Likewise.
2052
2053 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
2054
2055 Don't suppress *running when doing finish.
2056 * infcall.c (call_function_by_hand): Set both
2057 suppress_resume_observer and suppress_stop_observer.
2058 * infcmd.c (suppress_run_stop_observers): Split into...
2059 (suppress_resume_observer, suppress_stop_observer): ...those.
2060 (finish_command_continuation): Clear suppress_stop_observer.
2061 (finish_command): Set suppress_stop_observer.
2062 * inferior.h (suppress_run_stop_observers): Split into...
2063 (suppress_resume_observer, suppress_stop_observer): ...those.
2064 * infrun.c (normal_stop): Check for suppress_stop_observer.
2065 * thread.c (set_running): Check for suppress_resume_observer.
2066
2067 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
2068 Pierre Muller <muller@ics.u-strasbg.fr>
2069
2070 * gdbarch.sh (gdbarch_skip_main_prologue): New.
2071 * gdbarch.h, gdbarch.c: Regenerate.
2072 * i386-tdep.h (i386_skip_main_prologue): Declare.
2073 * i386-tdep.c (i386_skip_main_prologue): New.
2074 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
2075 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
2076 * symtab.c (find_function_start_sal): When pc points at the "main"
2077 function, call gdbarch_skip_main_prologue.
2078
2079 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
2080
2081 * value.c (value_primitive_field): Fetch lazy register values.
2082
2083 2008-06-11 Pedro Alves <pedro@codesourcery.com>
2084
2085 * NEWS: Mention support removal of undocumented S AA p PID stop
2086 reply packet.
2087
2088 * remote.c (remote_wait): Remove undocumented S AA p PID support.
2089
2090 2008-06-10 Stan Shebs <stan@codesourcery.com>
2091
2092 * MAINTAINERS: Update my affiliation and address.
2093
2094 2008-06-10 Andreas Schwab <schwab@suse.de>
2095
2096 * top.c (print_gdb_version): Don't print final newline.
2097
2098 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2099
2100 Implement *running.
2101 * Makefile.in: Update dependencies.
2102 * gdbthread.h (struct thread_info): New field
2103 running_.
2104 (set_running, is_running): New.
2105 * thread.c (set_running, is_running): New.
2106 * inferior.h (suppress_normal_stop_observer): Rename to...
2107 (suppress_run_stop_observers): ..this.
2108 * infcmd.c (suppress_normal_stop_observer): Rename to...
2109 (suppress_run_stop_observers): ..this.
2110 (finish_command_continuation, finish_command): Adjust.
2111 * infcall.c (call_function_by_hand): Adjust.
2112 * infrun.c (normal_stop): Call set_running.
2113 * target.c (target_resume): New. Call set_running.
2114 * target.h (target_resume): Convert from macro to
2115 a function.
2116
2117 * mi/mi-interp.c (mi_on_resume): New.
2118 (mi_interpreter_init): Register mi_on_resume.
2119
2120 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2121
2122 Use observers to report stop events in MI.
2123 * mi/mi-interp.c (mi_on_normal_stop): New.
2124 (mi_interpreter_init): Register mi_on_normal_stop.
2125 (mi_interpreter_exec_continuation): Remove.
2126 (mi_cmd_interpreter_exec): Don't register the above.
2127 * mi/mi-main.c (captured_mi_execute_command): Don't care
2128 about sync_execution.
2129 (mi_execute_async_cli_command): Don't install continuation. Don't
2130 print *stopped.
2131 (mi_exec_async_cli_cmd_continuation): Remove.
2132
2133 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2134
2135 Suppress normal stop observer when it's problematic.
2136 * inferior.h (suppress_normal_stop_observer): New.
2137 * infcall.c (call_function_by_hand): Disable stop events when
2138 doing function calls.
2139 * infmcd.c (suppress_normal_stop_observer): New.
2140 (finish_command_continuation): Call normal_stop observer
2141 explicitly.
2142 (finish_command): Disable stop events inside proceed.
2143 * infrun.c (normal_stop): Don't call normal stop observer if
2144 suppressed of if multi-step is in progress.
2145
2146 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2147
2148 Remove stale code.
2149 * infrun.c (finish_command): Don't pass cleanup
2150 to continuation.
2151 (finish_command_continuation): Don't grab cleanup from
2152 the passed data, as we don't use, and cannot, use it anyway.
2153
2154 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
2155
2156 Introduce common cleanup for restoring integers.
2157 * defs.h (make_cleanup_restore_integer): New declaration.
2158 (struct cleanup): New field free_arg.
2159 (make_my_cleanup_2): New.
2160 * utils.c (restore_integer_closure, restore_integer)
2161 (make_cleanup_restore_integer): New.
2162 (make_my_cleanup): Initialize the free_arg field and
2163 renamed to make_my_cleanup_2.
2164 (do_my_cleanups): Call free_arg.
2165 (discard_cleanups): Call free_arg.
2166 * breakpoint.c (restore_always_inserted_mode): Remove.
2167 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
2168
2169 2008-06-09 Doug Evans <dje@google.com>
2170
2171 * remote.c (remote_wait): Include beginning of malformed packet
2172 in error output.
2173
2174 2008-06-09 Tom Tromey <tromey@redhat.com>
2175
2176 * completer.c (complete_line): Don't special-case
2177 expression_completer.
2178 (expression_completer): Only pass last word to
2179 location_completer.
2180 * c-exp.y (yylex): Check 'token', not 'operator'.
2181
2182 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
2183
2184 * configure.ac (build_warnings): Add -Wno-format for mingw.
2185 * configure: Regenerated.
2186
2187 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
2188
2189 * NEWS: Make indentation consistent. Move exec tracing entry out
2190 of remote packet list.
2191
2192 2008-06-06 Tom Tromey <tromey@redhat.com>
2193
2194 * value.h (evaluate_subexpression_type, extract_field_op):
2195 Declare.
2196 * printcmd.c (_initialize_printcmd): Use expression_completer for
2197 'p', 'inspect', 'call'.
2198 * parser-defs.h (parse_field_expression): Declare.
2199 * parse.c: Include exceptions.h.
2200 (in_parse_field, expout_last_struct): New globals.
2201 (mark_struct_expression): New function.
2202 (prefixify_expression): Return int.
2203 (prefixify_subexp): Return int. Use expout_last_struct.
2204 (parse_exp_1): Update.
2205 (parse_exp_in_context): Add 'out_subexp' argument. Handle
2206 in_parse_field.
2207 (parse_field_expression): New function.
2208 * expression.h (parse_field_expression): Declare.
2209 (in_parse_field): Likewise.
2210 * eval.c (evaluate_subexpression_type): New function.
2211 (extract_field_op): Likewise.
2212 * completer.h (expression_completer): Declare.
2213 * completer.c (expression_completer): New function.
2214 (count_struct_fields, add_struct_fields): New functions.
2215 * c-exp.y (yyparse): Redefine.
2216 (COMPLETE): New token.
2217 (exp): New productions.
2218 (saw_name_at_eof, last_was_structop): New globals.
2219 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
2220 (c_parse): New function.
2221 * breakpoint.c (_initialize_breakpoint): Use expression_completer
2222 for watch, awatch, and rwatch.
2223 * Makefile.in (parse.o): Depend on exceptions_h.
2224
2225 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2226
2227 PR gdb/1147
2228 * gdb/valopts.c (find_overload_match): Handle references
2229 to pointers.
2230
2231 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
2232
2233 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2234 account the bitsize of the 'from' operand.
2235
2236 2008-06-06 Pedro Alves <pedro@codesourcery.com>
2237
2238 * annotate.h (annotate_thread_changed): Declare.
2239
2240 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
2241
2242 * annotate.c (annotate_thread_changed): New function.
2243 * thread.c (thread_command) : Use it.
2244 * infrun.c (normal_stop): Use it.
2245
2246 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
2247 Nathan Sidwell <nathan@codesourcery.com>
2248 Joseph Myers <joseph@codesourcery.com>
2249
2250 * acinclude.m4: Include ../config/acx.m4.
2251 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2252 * configure, config.in: Regenerate.
2253 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2254 address.
2255 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2256
2257 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2258
2259 Replace 'target async' by 'maintenance set remote-async' and
2260 'target remote' combination.
2261
2262 * remote.c (remote_async_wait): Merge into remote_wait, and
2263 remove.
2264 (remote_async_permitted, remote_async_permitted_set): New
2265 variables.
2266 (set_maintenance_remote_async_permitted)
2267 (show_maintenance_remote_async_permitted): New functions.
2268 (remote_async_ops, extended_async_remote_ops): Delete.
2269 (remote_async_open, extended_remote_async_open): Delete.
2270 (remote_open_1): Drop async_p parameter. Update callers. Replace
2271 async_p with remote_async_permitted checks.
2272 (extended_async_remote_attach): Delete.
2273 (remote_resume, remote_async_resume): Merge and leave remote_resume.
2274 (remote_async_terminal_inferior): Rename to...
2275 (remote_terminal_inferior): ... this, and add
2276 remote_async_termitted check.
2277 (remote_async_terminal_ours): Rename to...
2278 (remote_terminal_ours): ... this, and add remote_async_termitted
2279 check.
2280 (remote_wait, remote_async_wait): Merge and leave remote_wait
2281 only.
2282 (remote_kill, remote_async_kill): Merge and leave remote_kill
2283 only.
2284 (remote_async_mourn, extended_async_remote_mourn): Delete.
2285 (extended_remote_create_inferior_1): Drop async_p parameter.
2286 Update callers. Always use extended_remote_ops.
2287 (extended_remote_async_create_inferior): Delete.
2288 (remote_return_zero): Delete.
2289 (init_remote_ops): Register remote_can_async_p, remote_async,
2290 remote_async_mask, remote_terminal_inferior and
2291 remote_terminal_ours.
2292 (remote_can_async_p, remote_is_async_p): Check for
2293 remote_async_permitted.
2294 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
2295 (set_remote_cmd): Don't add async and extended-async targets.
2296 (_initialize_remote): Add set/show remote-async maintenance
2297 commands.
2298
2299 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2300
2301 * remote.c (kill_kludge): Delete.
2302 (remote_wait, remote_async_wait): Don't set it.
2303 (remote_kill, remote_async_kill): Don't do anything with it.
2304
2305 2008-06-05 Pedro Alves <pedro@codesourcery.com>
2306
2307 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2308
2309 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2310
2311 * bcache.c (bcache_data): Call deprecated_bcache_added function.
2312 (deprecated_bcache_added): New function name. Body of function
2313 bcache_data is used here with the addition of 'added' argument.
2314 * bcache.h (deprecated_bcache_added): New function.
2315 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
2316 work from add_psymbol_to_list - initialises partial symbol and stashes
2317 it in objfile's cache.
2318 (append_psymbol_to_list): New helper function, takes other part of
2319 work from add_psymbol_to_list - adds partial symbol to the given list.
2320 (add_psymbol_to_list): Call helper functions instead of doing work
2321 here. If adding to global list, do not duplicate partial symbols in the
2322 partial symtab.
2323
2324 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2325
2326 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
2327 'exception caught|thrown' message.
2328
2329 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2330
2331 * Makefile.in: Update dependencies.
2332 * dwarf2expr.c: New include "gdb_assert.h".
2333 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
2334 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
2335 (execute_stack_op): Error out on too large RECURSION_DEPTH.
2336 Increase/decrease RECURSION_DEPTH around the function.
2337
2338 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2339
2340 * remote.c (get_offsets): Handle a single segment.
2341 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
2342 than segments.
2343
2344 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
2345
2346 * solib-svr4.c (struct lm_info): Add lm_addr.
2347 (main_lm_addr): New.
2348 (svr4_default_sos): Set lm_addr.
2349 (svr4_current_sos): Set lm_addr and main_lm_addr.
2350 (svr4_fetch_objfile_link_map): Rewrite.
2351 (svr4_clear_solib): Clear main_lm_addr.
2352
2353 2008-06-03 Michael Snyder <msnyder@redhat.com>
2354 Joseph Myers <joseph@codesourcery.com>
2355
2356 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
2357 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2358
2359 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2360
2361 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2362
2363 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
2364
2365 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2366
2367 2008-06-01 Joel Brobecker <brobecker@adacore.com>
2368
2369 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
2370 treat pointers in data space as function descriptors if the
2371 target address is also in the data space.
2372
2373 2008-05-30 Joel Brobecker <brobecker@adacore.com>
2374
2375 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
2376 the trad-frame register value for the SP register.
2377
2378 2008-05-29 Mark Kettenis <kettenis@gnu.org>
2379
2380 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2381
2382 2008-05-28 Joel Brobecker <brobecker@adacore.com>
2383
2384 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
2385 that identifies function descriptors outside of the .opd section.
2386
2387 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
2388
2389 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
2390 temporary catchpoints. In MI add missing fields 'reason', 'disp',
2391 'bkptno'.
2392 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
2393 catchpoints.
2394 (handle_gnu_v3_exceptions): Use tempflag.
2395
2396 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2397
2398 Refactor varobj_update interface.
2399 * varobj.c (varobj_update): Report changes as vector. Also
2400 return not just a list of varobj, but a list of special structures
2401 that tell what exactly has changed.
2402 * varobj.h (enum varobj_update_error): Rename to
2403 varobj_scope_status.
2404 (struct varobj_update_result_t): New.
2405 (varobj_update): Adjust prototype.
2406 * mi/mi-cmd-var.c: Adjust for changes.
2407
2408 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2409
2410 * varobj.c (varobj_update): Fix comment typo.
2411 Fix indentation.
2412
2413 2008-05-26 Joel Brobecker <brobecker@adacore.com>
2414
2415 Set the symtab field of symbols read from ECOFF debugging entries.
2416 * mdebugread.c (add_symbol): Add new parameter symtab.
2417 (parse_symbol): Update calls to add_symbol throughout.
2418
2419 2008-05-27 Andreas Schwab <schwab@suse.de>
2420
2421 * symtab.h (enum address_class): Remove LOC_REGPARM and
2422 LOC_COMPUTED_ARG.
2423 (struct symbol): Add is_argument.
2424 (SYMBOL_IS_ARGUMENT): Define.
2425
2426 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
2427 * buildsym.c (finish_block): Likewise.
2428 * stack.c (print_frame_args, print_block_frame_locals)
2429 (print_frame_arg_vars): Likewise.
2430 * symtab.c (lookup_block_symbol): Likewise.
2431 * tracepoint.c (add_local_symbols): Likewise.
2432 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2433
2434 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
2435 * dwarf2read.c (new_symbol): Likewise.
2436 * mdebugread.c (parse_symbol): Likewise.
2437 * stabsread.c (define_symbol): Likewise.
2438
2439 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
2440 and LOC_COMPUTED_ARG.
2441 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2442 * ax-gdb.c (gen_var_ref): Likewise.
2443 * eval.c (evaluate_subexp_for_address): Likewise.
2444 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2445 * m2-exp.y (yylex): Likewise.
2446 * printcmd.c (address_info): Likewise.
2447 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2448 * tracepoint.c (collect_symbol, scope_info): Likewise.
2449
2450 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2451
2452 * gdbarch.sh: Added new gdbarch struct
2453 core_regset_sections.
2454 * gdbarch.c: Refreshed.
2455 * gdbarch.h: Refreshed.
2456 * regset.h (core_regset_section): Declared.
2457 * linux-nat.c (linux_nat_do_thread_registers): Added
2458 support for the new gdbarch struct core_regset_sections.
2459 * utils.c (host_address_to_string): New function.
2460 * defs.h (host_address_to_string): New prototype.
2461 * i386-linux-tdep.c (i386_regset_rections): New register
2462 sections list for i386.
2463 (i386_linux_init_abi): Initialized new gdbarch struct
2464 core_regset_sections.
2465 * Makefile.in: Updated to reflect dependency changes.
2466 * ppc-linux-tdep.c (ppc_regset_sections): Register
2467 sections list for ppc.
2468 (ppc_linux_init_abi): Initialized new gdbarch struct
2469 core_regset_sections
2470
2471 2008-05-24 Andreas Schwab <schwab@suse.de>
2472
2473 * linespec.c (decode_objc): Save current language around call to
2474 get_selected_block.
2475
2476 2008-05-23 Joel Brobecker <brobecker@adacore.com>
2477
2478 * valprint.h (get_array_bounds): Renames get_array_low_bound.
2479 * valprint.c (get_array_bounds): Renames get_array_low_bound.
2480 Return the proper bound value if the array index type is an
2481 enumerated type. Compute the high bound if requested.
2482 (val_print_array_elements): Handle the case when the array
2483 element has a null size.
2484 * ada-valprint.c (print_optional_low_bound): Add handling
2485 for empty arrays or arrays of zero-size elements.
2486 (ada_val_print_array): New function, extracted out from
2487 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
2488 handle empty arrays and arrays of zero-size elements.
2489 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
2490 code by call to ada_val_print_array.
2491 (ada_value_print): Remove handling of null array. The handling
2492 was incomplete and is now better handled by ada_val_print_array.
2493
2494 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2495
2496 * annotate.c (annotate_source, annotate_frame_begin): Replace
2497 deprecated_print_address_numeric with paddress.
2498 * cli/cli-cmds.c (list_command, edit_command): Likewise.
2499 * tui/tui-stack.c (tui_make_status_line): Likewise.
2500
2501 * defs.h (deprecated_print_address_numeric): Remove.
2502 * printcmd.c (deprecated_print_address_numeric): Remove.
2503 * maint.c (maint_print_section_info): Fix comment.
2504
2505 2008-05-23 Markus Deuling <deuling@de.ibm.com>
2506
2507 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
2508 print_binary_chars, print_char_chars): Add byte_order parameter and
2509 replace gdbarch_byte_order.
2510 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
2511 expressions and remove them. Remove unused TWO_TO_FOURTH.
2512 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
2513 endianness. Update call to print_hex_chars.
2514 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
2515 print_binary_chars, print_char_chars): Add byte_order parameter.
2516 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
2517 get at the endianness. Update print_*_char calls to use byte_order.
2518
2519 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2520
2521 * symtab.h (struct symbol): Make "aux_value" member a void pointer
2522 instead of a union.
2523 (SYMBOL_LOCATION_BATON): Update.
2524
2525 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2526
2527 * symtab.h (enum address_class): Remove LOC_BASEREG and
2528 LOC_BASEREG_ARG.
2529 (struct symbol): Remove "basereg" member of "aux_value" union.
2530 (SYMBOL_BASEREG): Remove.
2531
2532 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
2533 or LOC_BASEREG_ARG.
2534 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2535 (ada_add_block_symbols): Likewise.
2536 * ax-gdb.c (gen_var_ref): Likewise.
2537 * buildsym.c (finish_block): Likewise.
2538 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2539 * m2-exp.y (yylex): Likewise.
2540 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2541 * printcmd.c (address_info): Likewise.
2542 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
2543 (print_frame_arg_vars): Likewise.
2544 * symmisc.c (print_symbol): Likewise.
2545 * symtab.c (lookup_block_symbol): Likewise.
2546 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2547 (scope_info): Likewise.
2548
2549 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2550
2551 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
2552
2553 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
2554 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2555 (ada_add_block_symbols): Likewise.
2556 * ax-gdb.c (gen_var_ref): Likewise.
2557 * buildsyms.c (finish_block): Likewise.
2558 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2559 * m2-exp.y (yylex): Likewise.
2560 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2561 * printcmd.c (address_info): Likewise.
2562 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
2563 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2564 * symtab.c (lookup_block_symbol): Likewise.
2565 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2566 (scope_info): Likewise.
2567
2568 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2569
2570 * symtab.h (enum address_class): Remove LOC_INDIRECT and
2571 LOC_HP_THREAD_LOCAL_STATIC.
2572
2573 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
2574 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
2575 (read_var_value): Likewise.
2576 * buildsym.c (finish_block): Likewise.
2577 * objfiles.c (objfile_relocate): Likewise.
2578 * printcmd.c (address_info): Likewise.
2579 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2580 * tracepoint.c (scope_info): Likewise.
2581
2582 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2583 Maxim Grigoriev <maxim2405@gmail.com>
2584
2585 * xtensa-tdep.c (xtensa_read_register): Remove.
2586 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
2587 argument litbase to call0_frame_cache().
2588 (call0_track_op, call0_analyze_prologue)
2589 (call0_frame_cache): Use extra argument litbase.
2590
2591 2008-05-21 Joel Brobecker <brobecker@adacore.com>
2592
2593 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
2594
2595 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2596
2597 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
2598
2599 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2600
2601 * alpha-mdebug-tdep.c: Include "trad-frame.h".
2602 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
2603 struct trad_frame_saved_reg *.
2604 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
2605 trad_frame_alloc_saved_regs. Update accesses. Record previous
2606 value of SP as being vfp.
2607 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
2608 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2609
2610 2008-05-21 Markus Deuling <deuling@de.ibm.com>
2611
2612 * score-tdep.c (score_print_insn): Get the current endianess from
2613 disassemble_info instead of gdbarch_byte_order.
2614
2615 2008-05-21 Pedro Alves <pedro@codesourcery.com>
2616
2617 * frame.c (get_prev_frame_1): Build frame id before setting
2618 this_frame->prev_p, not after.
2619
2620 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
2621
2622 * annotate.c (annotate_new_thread): New function for new-thread
2623 annotation.
2624 * annotate.h: (annotate_new_thread): New extern.
2625 * thread.c (add_thread_with_info): Use it.
2626 * Makefile.in (thread.o): Add dependency on annotate.h.
2627
2628 2008-05-20 Joel Brobecker <brobecker@adacore.com>
2629
2630 * win32-nat.c (win32_wait): Block the control-c event while
2631 waiting for a debug event.
2632
2633 2008-05-19 Pedro Alves <pedro@codesourcery.com>
2634
2635 * symtab.h (lookup_symbol_in_language): Update comment.
2636 * symtab.c (lookup_symbol_aux_block): Update comment.
2637 * ada-lang.c (ada_lookup_symbol_list): Update comment.
2638
2639 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2640
2641 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
2642 (lookup_symbol): Likewise.
2643 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
2644 (lookup_symbol): Likewise.
2645 (search_symbols): Update.
2646
2647 * linespec.c (find_methods, collect_methods): Update.
2648 (add_matching_methods, add_constructors): Update.
2649 (decode_compound, decode_dollar, decode_variable): Update.
2650 (lookup_prefix_sym): Update.
2651
2652 (symbol_found): Remove SYM_SYMTAB parameter.
2653 Use SYMBOL_SYMTAB (sym) instead.
2654
2655 * gdbtypes.c (lookup_typename): Update.
2656 (lookup_struct, lookup_union, lookup_enum): Update.
2657 (lookup_template_type): Update.
2658 (check_typedef): Update.
2659 * language.c (lang_bool_type): Update.
2660 * mdebugread.c (parse_procedure): Update.
2661 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2662 * parse.c (write_dollar_variable): Update.
2663 * printcmd.c (address_info): Update.
2664 * source.c (select_source_symtab): Update.
2665 * stack.c (print_frame_args, print_frame_arg_vars): Update.
2666 * valops.c (find_function_in_inferior): Update.
2667 (value_struct_elt_for_reference): Update.
2668 * value.c (value_static_field, value_fn_field): Update.
2669
2670 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2671 * arm-tdep.c (arm_skip_prologue): Update.
2672 * mt-tdep.c (mt_skip_prologue): Update.
2673 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
2674
2675 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
2676 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
2677 (add_defn_to_vec): Likewise.
2678 (ada_add_block_symbols): Likewise.
2679 (lookup_cached_symbol, cache_symbol): Likewise.
2680 (standard_lookup): Update.
2681 (ada_lookup_symbol_list): Update.
2682
2683 * c-valprint.c (c_val_print): Update.
2684 * cp-support.c (cp_lookup_rtti_type): Update.
2685 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
2686 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
2687 * p-valprint.c (pascal_val_print): Update.
2688 * scm-lang.c (scm_lookup_name): Update.
2689
2690 * c-exp.y: Update.
2691 * f-exp.y: Update.
2692 * jv-exp.y: Update.
2693 * m2-exp.y: Update.
2694 * objc-exp.y: Update.
2695 * p-exp.y: Update.
2696
2697 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2698
2699 * language.h (struct language_defn): Remove SYMTAB parameter from
2700 la_lookup_symbol_nonlocal callback function pointer.
2701
2702 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2703 (ada_lookup_encoded_symbol): Likewise.
2704 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2705 Always call fixup_symbol_section.
2706 (ada_lookup_symbol): Remove SYMTAB parameter.
2707 (ada_lookup_symbol_nonlocal): Likewise.
2708 * ada-exp.y (write_object_renaming): Update.
2709 (find_primitive_type): Likewise.
2710
2711 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2712 (cp_lookup_symbol_namespace): Likewise.
2713 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
2714 (lookup_symbol_file): Likewise.
2715 (lookup_possible_namespace_symbol): Likewise.
2716 (cp_lookup_symbol_nonlocal): Likewise.
2717 (cp_lookup_symbol_namespace): Likewise.
2718 (cp_lookup_nested_type): Update.
2719
2720 * scm-valprint.c (scm_inferior_print): Update.
2721 * valops.c (value_maybe_namespace_elt): Update.
2722
2723 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
2724 lookup_lib_global_symbol callback function pointer.
2725 (solib_global_lookup): Remove SYMTAB parameter.
2726 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
2727 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2728
2729 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2730 (lookup_symbol_static): Likewise.
2731 (lookup_symbol_global): Likewise.
2732 (lookup_symbol_aux_block): Likewise.
2733 (lookup_global_symbol_from_objfile): Likewise.
2734 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
2735 (lookup_symbol_aux_local): Likewise.
2736 (lookup_symbol_aux_block): Likewise.
2737 (lookup_symbol_aux_symtabs): Likewise.
2738 (lookup_symbol_aux_psymtabs): Likewise.
2739 (lookup_global_symbol_from_objfile): Likewise.
2740 (basic_lookup_symbol_nonlocal): Likewise.
2741 (lookup_symbol_static): Likewise.
2742 (lookup_symbol_global): Likewise.
2743
2744 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
2745
2746 2008-05-17 Pedro Alves <pedro@codesourcery.com>
2747
2748 * remote.c (init_extended_remote_ops): Fix typo.
2749
2750 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2751
2752 * NEWS: Mention new DICOS x86 target configuration.
2753
2754 2008-05-16 Pedro Alves <pedro@codesourcery.com>
2755 Ulrich Weigand <uweigand@de.ibm.com>
2756
2757 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
2758 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
2759
2760 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
2761 use it instead of ginfo->value.address. Look up minimal symbol by
2762 address and name. Assume OBJFILE is non-NULL.
2763 (fixup_symbol_section): Ensure we always have an objfile to look
2764 into. Extract and pass to fixup_section the symbol's address that
2765 will match the minimal symbol's address.
2766 (fixup_psymbol_section): Likewise.
2767
2768 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
2769 overlays and the addrmap returned the wrong section.
2770
2771 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
2772 calling fixup_symbol_section.
2773
2774 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2775
2776 * minsyms.c: Include "target.h".
2777 (find_solib_trampoline_target): Handle minimal symbols pointing
2778 to function descriptors as well.
2779 * Makefile.in (minsyms.o): Update dependencies.
2780
2781 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
2782 (ppc64_standard_linkage1): ... this. Fix optional instructions.
2783 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
2784 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
2785 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
2786 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
2787 (ppc64_standard_linkage_target): Rename to ...
2788 (ppc64_standard_linkage1_target): ... this.
2789 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
2790 (ppc64_skip_trampoline_code): Support three variants of standard
2791 linkage stubs. Call find_solib_trampoline_target to handle
2792 glink stubs.
2793
2794 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2795
2796 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
2797 ppc64_sysv_abi_adjust_breakpoint_address.
2798 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2799 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2800
2801 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2802
2803 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
2804 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
2805 of ppc_linux_skip_trampoline_code.
2806
2807 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2808
2809 * gdbarch.sh: Delete dwarf_reg_to_regnum.
2810 * gdbarch.c, gdbarch.h: Regenerated.
2811 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
2812 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
2813 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
2814
2815 2008-05-15 Pedro Alves <pedro@codesourcery.com>
2816
2817 * linux-nat.c (trap_ptid): Delete.
2818 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
2819 Adjust.
2820 * linux-thread-db.c (thread_db_wait): Adjust.
2821
2822 2008-05-15 Joel Brobecker <brobecker@adacore.com>
2823
2824 * linespec.c (decode_line_1): Fix a couple of comments.
2825
2826 2008-05-15 Alan Modra <amodra@bigpond.net.au>
2827
2828 * dbxread.c: Formatting.
2829 (INTERNALIZE_SYMBOL): Init n_other.
2830 (set_namestring): Take pointer to nlist arg rather than struct
2831 copy. Update all callers.
2832
2833 2008-05-15 Andreas Schwab <schwab@suse.de>
2834
2835 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
2836 (dwarf2read.o): Add $(addrmap_h).
2837
2838 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2839
2840 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
2841 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
2842 to handle ppc32 PLT entries.
2843 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
2844 only on ppc64.
2845
2846 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2847
2848 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
2849 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
2850 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
2851 (lookup_minimal_symbol_by_pc_section): Use
2852 lookup_minimal_symbol_by_pc_section_1.
2853 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2854
2855 2008-05-13 Joel Brobecker <brobecker@adacore.com>
2856
2857 * findcmd.c: Add #include "gdb_stdint.h".
2858 * Makefile.in (findcmd.o): Update dependencies.
2859
2860 2008-05-11 David S. Miller <davem@davemloft.net>
2861
2862 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
2863 long double size override, Linux does use 128-bit now.
2864
2865 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
2866 (sparc_linux_write_pc): New function.
2867 (sparc32_linux_init_abi): Register it.
2868 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
2869 (sparc64_linux_write_pc): New function.
2870 (sparc64_linux_init_abi): Register it.
2871
2872 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
2873 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2874
2875 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2876
2877 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
2878 and info.tdep_info before calling gdbarch_init_osabi.
2879
2880 2008-05-09 Joel Brobecker <brobecker@adacore.com>
2881
2882 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
2883 the type of the right hand side of the assignment to the type
2884 of the left hand side if the left hand side is a convenience
2885 variable.
2886
2887 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
2888
2889 * NEWS: Mention gdbserver bi-arch capability.
2890
2891 2008-05-09 Doug Evans <dje@google.com>
2892
2893 New "find" command.
2894 * NEWS: Document find command and qSearch:memory packet.
2895 * Makefile.in (SFILES): Add findcmd.c.
2896 (COMMON_OBJS): Add findcmd.o.
2897 (findcmd.o): New rule.
2898 * findcmd.c: New file.
2899 * target.h (target_ops): New member to_search_memory.
2900 (simple_search_memory): Declare.
2901 (target_search_memory): Declare.
2902 * target.c (simple_search_memory): New fn.
2903 (target_search_memory): New fn.
2904 * remote.c (PACKET_qSearch_memory): New packet kind.
2905 (remote_search_memory): New fn.
2906 (init_remote_ops): Init to_search_memory.
2907 (init_extended_remote_ops): Ditto.
2908 (_initialize_remote): Add qSearch:memory packet config command.
2909
2910 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2911
2912 * thread.c (_initialize_thread): Don't use commas and periods in
2913 first line of doc string of "set/show print thread-events".
2914
2915 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2916
2917 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
2918 Update for unwinder changes.
2919
2920 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2921
2922 * frame.c (get_frame_base_address, get_frame_locals_address)
2923 (get_frame_args_address): Pass the correct frame when calling
2924 frame_base_find_by_frame.
2925
2926 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2927
2928 * remote.c (extended_remote_attach_1): Call target_find_description.
2929
2930 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
2931
2932 * remote.c (extended_remote_create_inferior_1): Clean up
2933 before marking the target running.
2934
2935 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2936
2937 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
2938 changes.
2939
2940 2008-05-07 Joel Brobecker <brobecker@adacore.com>
2941
2942 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
2943 sparc64-sol2-tdep.c: Update for unwinder changes.
2944
2945 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2946
2947 * cp-support.c (mangled_name_to_comp): Initialize storage.
2948 (unqualified_name_from_comp): Likewise.
2949
2950 2008-05-07 Jie Zhang <jie.zhang@analog.com>
2951
2952 * remote.c (remote_insert_breakpoint): Call get_remote_state
2953 after gdbarch_breakpoint_from_pc is called.
2954 (remote_insert_hw_breakpoint): Likewise.
2955
2956 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2957
2958 * valprint.c (val_print): Add new language parameter and use it
2959 instead of using the current_language. Update calls to val_print
2960 throughout.
2961 (common_val_print): Add new langauge parameter and pass it to
2962 val_print.
2963 * value.h (struct language_defn): Add opaque declaration.
2964 (val_print, common_val_print): Update declarations.
2965 * stack.c (print_frame_args): Update call to common_val_print
2966 using the appropriate language.
2967 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2968 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
2969 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
2970 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
2971 #include "language.h" if necessary.
2972 Update calls to val_print and common_val_print.
2973 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
2974 Update dependencies.
2975
2976 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2977
2978 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
2979 pointing inside a non-executable section as function descriptors.
2980
2981 2008-05-06 Pedro Alves <pedro@codesourcery.com>
2982
2983 * inf-loop.c (inferior_event_handler): Run all continuations and
2984 print any language change before running the breakpoint commands.
2985
2986 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2987
2988 * frame-unwind.c (frame_unwind_got_bytes): New function.
2989 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
2990 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
2991 for unwinder changes.
2992
2993 2008-05-05 Doug Evans <dje@google.com>
2994
2995 * NEWS: Mention new /m modifier for disassemble command.
2996 * cli/cli-cmds.c (print_disassembly): New function.
2997 (disassemble_current_function): New function
2998 (disassemble_command): Recognize /m modifier, print mixed
2999 source+assembly.
3000 (init_cli_cmds): Update disassemble help text.
3001
3002 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
3003
3004 * xtensa-tdep.c: Update for unwinder changes.
3005
3006 2008-05-05 Andreas Schwab <schwab@suse.de>
3007
3008 Update m68k port for unwinder changes.
3009 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
3010 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
3011 (m68k_frame_unwind): Use default_frame_sniffer.
3012 (m68k_frame_sniffer): Remove.
3013 (m68k_frame_base_address): Expect this_frame.
3014 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
3015 this_frame.
3016 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
3017 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
3018 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
3019 parameter instead of pc value.
3020 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
3021 Expect this_frame.
3022 (m68k_linux_sigtramp_frame_this_id)
3023 (m68k_linux_sigtramp_frame_prev_register)
3024 (m68k_linux_sigtramp_frame_sniffer): Update signature.
3025 (m68k_linux_sigtramp_frame_unwind): Use
3026 m68k_linux_sigtramp_frame_sniffer.
3027 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
3028
3029 * m68klinux-nat.c (store_register): Fix typo.
3030
3031 2008-05-05 Pedro Alves <pedro@codesourcery.com>
3032
3033 * infcmd.c (step_1): Put thread id on the stack to avoid possible
3034 NULL dereferencing.
3035
3036 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
3037
3038 * symfile.c (reread_symbols): Update objfile's entry point.
3039
3040 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
3041 Joel Brobecker <brobecker@adacore.com>
3042
3043 * ada-lang.c: Update throughout to use symbol_matches_domain
3044 instead of matching the symbol domain explictly.
3045 * dwarf2read.c (add_partial_symbol): Do not add new psym for
3046 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
3047 class as typedefs. See lookup_partial_symbol function.
3048 (new_symbol): Similar to add_partial_symbol, do not create
3049 symbol for the typedef. See lookup_block_symbol.
3050 * symtab.c (symbol_matches_domain): New function, takes care
3051 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
3052 (lookup_partial_symbol): Use symbol_matches_domain to see if the
3053 found psym domain matches the given domain.
3054 (lookup_block_symbol): Likewise.
3055
3056 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
3057
3058 * top.c (command_line_handler_continuation): Remove.
3059 (execute_command): Do not install the above.
3060
3061 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
3062
3063 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
3064 and catch all exceptions from it.
3065 * top.c (command_line_handler_continuation): Don't
3066 call bpstat_do_action here.
3067
3068 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
3069
3070 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
3071 (struct die_info): Remove type.
3072 (read_type_die, read_typedef, read_base_type, read_subrange_type)
3073 (read_structure_type, read_enumeration_type, read_array_type)
3074 (read_tag_pointer_type, read_tag_ptr_to_member_type)
3075 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
3076 (read_tag_string_type, read_subroutine_type, read_set_type)
3077 (read_unspecified_type): Delete prototypes. Remove check for
3078 already-loaded type. Return the new type.
3079 (set_die_type): Return the new type.
3080 (reset_die_and_siblings_types): Delete.
3081 (load_comp_unit, load_full_comp_unit): Set type_hash.
3082 (process_queue): Remove call to reset_die_and_siblings_types.
3083 (process_die): Do not read most types here. Use read_type_die
3084 for others.
3085 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
3086 (quirk_gcc_member_function_pointer): Return the new type.
3087 (process_structure_scope, process_enumeration_scope): Use
3088 get_die_type and read the DIE's type.
3089 (read_full_die): Do not initialize die->type.
3090 (tag_type_to_type): Use read_type_die.
3091 (read_type_die): Check for already defined types. Return the
3092 type.
3093 (determine_prefix): Use get_die_type.
3094 (set_die_type): Return the type.
3095 (get_die_type): Take a CU argument. Check for no type_hash.
3096
3097 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
3098
3099 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
3100 locals.
3101
3102 2008-05-04 Pedro Alves <pedro@codesourcery.com>
3103
3104 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
3105 and bp_longjmp_resume breakpoints.
3106 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
3107 meaningful.
3108 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
3109 breakpoints. Create bp_longjmp breakpoints as momentary
3110 breakpoints.
3111 (enable_longjmp_breakpoint): Delete.
3112 (set_longjmp_breakpoint): New.
3113 (disable_longjmp_breakpoint): Delete.
3114 (delete_longjmp_breakpoint): New.
3115 (set_longjmp_resume_breakpoint): Delete.
3116 (set_momentary_breakpoint_at_pc): New.
3117 (breakpoint_re_set_one): Don't delete bp_longjmp and
3118 bp_longjmp_resume breakpoints.
3119 (breakpoint_re_set): Don't create longjmp and longjmp-resume
3120 breakpoints.
3121
3122 * infrun.c (step_resume_breakpoint): Add comment.
3123 (struct execution_control_state): Delete handling_longjmp member.
3124 (init_execution_control_state). Don't clear handling_longjmp.
3125 (context_switch): Don't context switch handling_longjmp.
3126 (handle_inferior_event): If handling a bp_longjmp breakpoint,
3127 create a bp_longjmp_resume breakpoint, and set it as current
3128 step_resume_breakpoint, then step over the longjmp breakpoint. If
3129 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
3130 breakpoint, delete the longjmp-resume breakpoint, and stop
3131 stepping.
3132 (currently_stepping): Remove handling_longjmp from expression.
3133 (insert_step_resume_breakpoint_at_sal): Update comment.
3134 (insert_longjmp_resume_breakpoint): New.
3135
3136 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
3137 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
3138 declarations.
3139 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
3140 (set_longjmp_resume_breakpoint): Delete declaration.
3141
3142 * gdbthread.h (save_infrun_state): Remove handling_longjmp
3143 parameter.
3144 (load_infrun_state): Delete *handling_longjmp parameter.
3145 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
3146 Update body.
3147 (load_infrun_state): Delete *handling_longjmp parameter. Update
3148 body.
3149
3150 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
3151 (delete_longjmp_breakpoint_cleanup): New.
3152 (step_1): Call set_longjmp_breakpoint instead of
3153 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
3154 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
3155 (step_1_continuation): Pass thread id in the continuation args to
3156 step_once.
3157 (step_once): Add thread parameter. Pass thread id the the
3158 continuation.
3159
3160 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3161
3162 Set CU BASE_ADDRESS already from partial DIEs.
3163 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
3164 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
3165 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
3166 from these variables if it was still unset.
3167
3168 * Makefile.in: Update dependencies.
3169 * dwarf2read.c: Include "addrmap.h"
3170 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
3171 (dwarf2_ranges_read): New prototype.
3172 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
3173 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
3174 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
3175 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
3176 comment for it. Add the found ranges to RANGES_PST. New variable
3177 BASEADDR, initialize it the common way.
3178 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
3179 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
3180 HAS_RANGES_OFFSET for the later processing.
3181 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
3182 * symtab.c: Include "addrmap.h"
3183 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
3184 Move the psymtab locator into ...
3185 (find_pc_sect_psymtab_closer): ... a new function.
3186
3187 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3188
3189 * arch-utils.c (gdbarch_update_p): Use default values for
3190 info.abfd and info.target_desc if they are NULL.
3191 (gdbarch_from_bfd): Remove assertion.
3192 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
3193 using the current target description.
3194 (gdbarch_info_fill): Do not use default values for info->abfd
3195 and info->target_desc.
3196
3197 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3198
3199 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
3200
3201 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3202
3203 * inferior.h (read_pc_pid, write_pc_pid): Remove.
3204 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3205
3206 * regcache.c (read_pc_pid): Remove, replace by ...
3207 (regcache_read_pc): ... this function.
3208 (write_pc_pid): Remove, replace by ...
3209 (regcache_write_pc): ... this function.
3210 (read_pc, write_pc): Update.
3211
3212 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3213 write_pc_pid by regcache_read_pc and regcache_write_pc.
3214 (displaced_step_fixup): Likewise.
3215 (resume): Likewise. Use regcache arch instead of current_gdbarch.
3216 (prepare_to_proceed): Likewise.
3217 (proceed): Likewise.
3218 (adjust_pc_after_break): Likewise.
3219 (handle_inferior_event): Likewise.
3220
3221 * linux-nat.c (cancel_breakpoint): Likewise.
3222 * linux-thread-db.c (check_event): Likewise.
3223 * aix-thread.c (aix_thread_wait): Likewise.
3224 * tracepoint.c (trace_dump_command): Likewise.
3225
3226 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3229 SYMBOL_LOCATION_BATON.
3230
3231 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
3232
3233 * target.h (struct target_ops): New field to_auxv_parse.
3234 * auxv.c (default_auxv_parse): New, renamed from previous
3235 target_auxv_parse.
3236 (target_auxv_parse): Try to call target method. Fallback to
3237 default_auxv_parse if not found.
3238 * procfs.c (procfs_auxv_parse): New.
3239 (init_procfs_ops): On Solaris, in 64-bit mode, install
3240 procfs_auxv_parse.
3241
3242 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
3243
3244 * symfile.c (add_symbol_file_command): Use paddress rather than
3245 hex_string to print the address.
3246
3247 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3248
3249 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3250 return the null frame ID to terminate the backtrace.
3251
3252 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3253
3254 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3255 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3256 (SIG_FRAME_PC_OFFSET): Likewise.
3257 (SIG_FRAME_LR_OFFSET): Likewise.
3258 (SIG_FRAME_FP_OFFSET): Likewise.
3259 (rs6000_push_dummy_call): Likewise.
3260 (rs6000_return_value): Likewise.
3261 (rs6000_convert_from_func_ptr_addr): Likewise.
3262 (branch_dest, rs6000_software_single_step): Likewise.
3263 (deal_with_atomic_sequence): Rename to ...
3264 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
3265 Do not call branch_dest; inline required parts of that function.
3266 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3267 with SYMBOL_LINKAGE_NAME.
3268 (struct reg, regsize): Delete.
3269 (read_memory_addr): Delete; inline into callers.
3270 (rs6000_skip_prologue): Move after skip_prologue.
3271 (skip_prologue): Remove prototype.
3272 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3273 initialization as if this variable were true. Do not install
3274 ppc64_sysv_abi_adjust_breakpoint_address.
3275
3276 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3277 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3278 and "breakpoint.h".
3279 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
3280 (SIG_FRAME_PC_OFFSET): Likewise.
3281 (SIG_FRAME_LR_OFFSET): Likewise.
3282 (SIG_FRAME_FP_OFFSET): Likewise.
3283 (rs6000_push_dummy_call): Likewise.
3284 (rs6000_return_value): Likewise.
3285 (rs6000_convert_from_func_ptr_addr): Likewise.
3286 (branch_dest, rs6000_software_single_step): Likewise. Replace
3287 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
3288 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
3289 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
3290 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
3291 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
3292
3293 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
3294 (AIX_TEXT_SEGMENT_BASE): New macro.
3295 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
3296 by AIX_TEXT_SEGMENT_BASE.
3297
3298 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
3299 (struct gdbarch_tdep): Remove text_segment_base member.
3300 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
3301 ppc64_sysv_abi_adjust_breakpoint_address.
3302
3303 * Makefile.in (rs6000-tdep.o): Update dependencies.
3304 (rs6000-aix-tdep.o): Likewise.
3305
3306 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
3307 Thiago Jung Bauermann <bauerman@br.ibm.com>
3308
3309 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
3310 * doublest.c (convert_typed_floating): Fix typo in comment.
3311 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3312 * frame-unwind.h (frame_sniffer_ftype): Likewise.
3313 * frame.c (frame_unwind_address_in_block): Likewise.
3314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
3315 * symtab.h (struct symbol): Likewise.
3316 * tramp-frame.h (struct trad_frame_cache): Likewise.
3317 * value.c (allocate_repeat_value): Likewise.
3318
3319 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3320
3321 * infrun.c (handle_inferior_event): Do not insert breakpoints at
3322 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
3323
3324 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3325
3326 * parse.c (parse_exp_in_context): Don't override
3327 expression_context_pc if get_selected_block returned a valid
3328 block.
3329
3330 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3331
3332 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
3333 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
3334 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
3335 Delete.
3336 * c-typeprint.c (c_type_print_base): Delete handling of template
3337 instantiations.
3338 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3339 (METHOD_PTR_TO_VOFFSET): Delete.
3340 * defs.h (QUIT_FIXME): Delete.
3341 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
3342 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
3343 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
3344 ninstantiations, and instantiations.
3345 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
3346 (TYPE_FN_FIELD_INLINED): Delete.
3347 * srec.h (SREC_BINARY): Delete.
3348 * symtab.c (symbol_init_demangled_name): Delete.
3349 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
3350 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
3351 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
3352 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
3353 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
3354 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
3355 * target.h (enum thread_control_capabilities): Delete tc_switch.
3356 (target_can_switch_threads): Delete.
3357
3358 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3359
3360 * Makefile.in (objfiles.o): Update.
3361 * exec.c (exec_set_section_address): Support p->addr != 0.
3362 * objfiles.c (objfile_relocate): Update exec_ops section
3363 addresses.
3364 * symfile.c (place_section): Move exec_set_section_address call...
3365 (default_symfile_offsets): ...to here.
3366
3367 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3368
3369 * Makefile.in (ppc_linux_tdep_h): New macro.
3370 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
3371 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
3372 (powerpc_e500l_c): Likewise.
3373 (ppc-linux-nat.o): Update dependencies.
3374 (ppc-linux-tdep.o): Update dependencies.
3375 (rs6000-tdep.o): Update dependencies.
3376
3377 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
3378 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
3379 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
3380 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
3381 (tdesc_powerpc_e500): Remove.
3382
3383 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
3384 and "features/rs6000/powerpc-altivec64.c".
3385 (ppc_supply_reg, ppc_collect_reg): Make global.
3386 (variants): Use tdesc_powerpc_32 for "powerpc" and
3387 tdesc_powerpc_altivec64 for "powerpc64".
3388 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
3389
3390 * ppc-linux-tdep.h: New file.
3391
3392 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
3393 Include "features/rs6000/powerpc-32l.c".
3394 Include "features/rs6000/powerpc-altivec32l.c".
3395 Include "features/rs6000/powerpc-64l.c".
3396 Include "features/rs6000/powerpc-altivec64l.c".
3397 Include "features/rs6000/powerpc-e500l.c".
3398 (ppc_linux_supply_gregset): New function.
3399 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
3400 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
3401 (ppc64_linux_gregset): Likewise.
3402 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
3403 (ppc_linux_trap_reg_p): New function.
3404 (ppc_linux_write_pc): New function.
3405 (ppc_linux_core_read_description): New function.
3406 (ppc_linux_init_abi): Install ppc_linux_write_pc and
3407 ppc_linux_core_read_description. Install orig_r3 and trap
3408 registers if present in the target description.
3409 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
3410
3411 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
3412 (PT_ORIG_R3, PT_TRAP): Define if necessary.
3413 (ppc_register_u_addr): Handle orig_r3 and trap registers.
3414 (fetch_ppc_registers): Likewise.
3415 (store_ppc_registers): Likewise.
3416 (store_register): Likewise.
3417 (ppc_linux_read_description): Check whether AltiVec is supported.
3418 Check whether inferior is 32-bit or 64-bit. Return the appropriate
3419 Linux target description.
3420
3421 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
3422 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
3423 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
3424 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
3425 rs6000/powerpc-e500. Update -expedite variables accordingly.
3426
3427 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
3428 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
3429 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
3430 * features/rs6000/powerpc-e500.c: Regenerate.
3431 * features/rs6000/powerpc-32.c: Regenerate.
3432 * features/rs6000/powerpc-64.c: Regenerate.
3433
3434 * features/rs6000/power-linux.xml: New file.
3435 * features/rs6000/power64-linux.xml: New file.
3436 * features/rs6000/powerpc-32l.xml: New file.
3437 * features/rs6000/powerpc-altivec32l.xml: New file.
3438 * features/rs6000/powerpc-64l.xml: New file.
3439 * features/rs6000/powerpc-altivec64l.xml: New file.
3440 * features/rs6000/powerpc-e500l.xml: New file.
3441 * features/rs6000/powerpc-32l.c: New (generated) file.
3442 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
3443 * features/rs6000/powerpc-64l.c: New (generated) file.
3444 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
3445 * features/rs6000/powerpc-e500l.xml: New (generated) file.
3446
3447 * regformats/reg-ppc.dat: Remove.
3448 * regformats/reg-ppc64.dat: Remove.
3449 * regformats/rs6000/powerpc-32.dat: Remove.
3450 * regformats/rs6000/powerpc-64.dat: Remove.
3451 * regformats/rs6000/powerpc-e500.dat: Remove.
3452 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
3453 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
3454 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
3455 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
3456 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
3457
3458 2008-05-03 Pedro Alves <pedro@codesourcery.com>
3459
3460 * thread.c (delete_thread): Call observer_notify_thread_exit.
3461 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
3462 thread_exit observer.
3463 (mi_thread_exit): New.
3464
3465 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3466
3467 * breakpoint.c (create_exception_catchpoint): Remove prototype
3468 for already deleted function.
3469 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
3470 * frame.h (show_stack_frame): Remove prototype.
3471 * stack.c (show_stack_frame): Remove empty, unused function.
3472 * source.c (symtab_to_fullname, print_source_lines): Small fix
3473 in comment.
3474 * value.c (show_values): Update comments to mention "show values"
3475 command instead of "info history".
3476
3477 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3478
3479 * linespec.c: Include "target.h".
3480 (minsym_found): Handle minimal symbols pointing to function
3481 descriptors. Use find_function_start_pc.
3482 * minsyms.c (msymbol_objfile): New function.
3483 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
3484 to function descriptors.
3485 * symtab.c (fixup_section): Only use minimal symbol at the same
3486 address to determine section of a symbol.
3487 (find_function_start_pc): New function.
3488 (find_function_start_sal): Use it.
3489 * symtab.h (msymbol_objfile): Add prototype.
3490 (find_function_start_pc): Likewise.
3491 * value.c: Include "objfiles.h".
3492 (value_fn_field): Handle minimal symbols pointing to function
3493 descriptors.
3494 * Makefile.in (linespec.o): Update dependencies.
3495 (value.o): Likewise.
3496
3497 2008-05-02 Joel Brobecker <brobecker@adacore.com>
3498
3499 * ada-lang.c (unwrap_value): Handle the case where the "F" field
3500 inside a PAD type is a bitfield.
3501
3502 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3503
3504 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
3505 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3506 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3507 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
3508 Allow typedefs when checking for function pointer arguments.
3509 Right-align small structs passed on the stack.
3510 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
3511 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3512 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3513
3514 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3515
3516 * Makefile.in (arm-tdep.o): Update.
3517 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
3518 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
3519 (arm_pc_is_thumb): Use mapping symbols.
3520 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
3521 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
3522 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
3523 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
3524 * gdbarch.sh: Add record_special_symbol.
3525 * gdbarch.c, gdbarch.h: Regenerated.
3526 * objfiles.c (struct objfile_data): Add cleanup member.
3527 (register_objfile_data_with_cleanup): New function, from
3528 register_objfile_data.
3529 (register_objfile_data): Use it.
3530 (objfile_free_data): Call clear_objfile_data.
3531 (clear_objfile_data): Call cleanup functions.
3532 * objfiles.h (register_objfile_data_with_cleanup): Declare.
3533
3534 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3535
3536 * objfiles.c (init_entry_point_info): Handle shared libraries.
3537
3538 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3539
3540 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
3541 lowest_pc.
3542
3543 2008-05-02 Jim Blandy <jimb@codesourcery.com>
3544 Pedro Alves <pedro@codesourcery.com>
3545
3546 Implement displaced stepping.
3547
3548 * gdbarch.sh (max_insn_length): New 'variable'.
3549 (displaced_step_copy, displaced_step_fixup)
3550 (displaced_step_free_closure, displaced_step_location): New
3551 functions.
3552 (struct displaced_step_closure): Add forward declaration.
3553 * gdbarch.c, gdbarch.h: Regenerated.
3554
3555 * arch-utils.c: #include "objfiles.h".
3556 (simple_displaced_step_copy_insn)
3557 (simple_displaced_step_free_closure)
3558 (displaced_step_at_entry_point): New functions.
3559 * arch-utils.h (simple_displaced_step_copy_insn)
3560 (simple_displaced_step_free_closure)
3561 (displaced_step_at_entry_point): New prototypes.
3562
3563 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
3564 (I386_MAX_MATCHED_INSN_LEN): ... this.
3565 (i386_absolute_jmp_p, i386_absolute_call_p)
3566 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
3567 (i386_displaced_step_fixup): New functions.
3568 (struct i386_insn, i386_match_insn): Update.
3569 (i386_gdbarch_init): Set gdbarch_max_insn_length.
3570 * i386-tdep.h (I386_MAX_INSN_LEN): New.
3571 (i386_displaced_step_fixup): New prototype.
3572 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
3573 Register gdbarch_displaced_step_copy,
3574 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
3575 and gdbarch_displaced_step_location functions.
3576
3577 * infrun.c (debug_displaced): New variable.
3578 (show_debug_displaced): New function.
3579 (struct displaced_step_request): New struct.
3580 (displaced_step_request_queue, displaced_step_ptid)
3581 (displaced_step_gdbarch, displaced_step_closure)
3582 (displaced_step_original, displaced_step_copy)
3583 (displaced_step_saved_copy, can_use_displaced_stepping): New
3584 variables.
3585 (show_can_use_displaced_stepping, use_displaced_stepping)
3586 (displaced_step_clear, cleanup_displaced_step_closure)
3587 (displaced_step_dump_bytes, displaced_step_prepare)
3588 (displaced_step_clear_cleanup, write_memory_ptid)
3589 (displaced_step_fixup): New functions.
3590 (resume): Call displaced_step_prepare.
3591 (proceed): Call read_pc once, and remember the value. If using
3592 displaced stepping, don't remove breakpoints.
3593 (handle_inferior_event): Call displaced_step_fixup. Add some
3594 debugging output. When we try to step over a breakpoint, but get
3595 a signal to deliver to the thread instead, ensure the step-resume
3596 breakpoint is actually inserted. If a thread hop is needed, and
3597 displaced stepping is enabled, don't remove breakpoints.
3598 (init_wait_for_inferior): Call displaced_step_clear.
3599 (_initialize_infrun): Add "set debug displaced" command. Add
3600 "maint set can-use-displaced-stepping" command. Clear
3601 displaced_step_ptid.
3602 * inferior.h (debug_displaced): Declare variable.
3603 (displaced_step_dump_bytes): Declare function.
3604
3605 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
3606 dependencies.
3607
3608 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3609
3610 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
3611 (arm_force_mode_string, arm_show_fallback_mode)
3612 (arm_show_force_mode): New.
3613 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
3614 arm_frame_is_thumb.
3615 (_initialize_arm_tdep): Add "set arm fallback-mode"
3616 and "set arm force-mode".
3617 * NEWS: Document new commands.
3618
3619 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
3620
3621 * main.h (batch_silent): Declare.
3622 * event-top.c: Include main.h.
3623 (gdb_setup_readline): Remove extern batch_silent declaration.
3624 * infrun.c (normal_stop): Don't print source location when running in
3625 --batch-silent mode.
3626 * Makefile.in (event-top.o): Add main.h dependency.
3627
3628 2008-05-02 Andreas Schwab <schwab@suse.de>
3629
3630 * target.h (struct target_ops): Add
3631 to_watchpoint_addr_within_range.
3632 (target_watchpoint_addr_within_range): New function.
3633 * target.c (update_current_target): Inherit
3634 to_watchpoint_addr_within_range, defaulting to
3635 default_watchpoint_addr_within_range.
3636 (default_watchpoint_addr_within_range): New function.
3637 (debug_to_watchpoint_addr_within_range): New function.
3638 (setup_target_debug): Set to_watchpoint_addr_within_range.
3639 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
3640 New function.
3641 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
3642 * breakpoint.c (watchpoints_triggered): Use
3643 target_watchpoint_addr_within_range.
3644
3645 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3646
3647 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
3648 (i[34567]86-*-dicos*, x86_64-*-dicos*):
3649 Set gdb_osabi to GDB_OSABI_DICOS.
3650
3651 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
3652 * osabi.c (gdb_osabi_name): Add "DICOS".
3653
3654 * i386-dicos-tdep.c: New file.
3655
3656 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
3657 (ALLDEPFILES): Add i386-dicos-tdep.c.
3658 (i386-dicos-tdep.o): New rule.
3659
3660 2008-05-01 Pedro Alves <pedro@codesourcery.com>
3661
3662 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
3663 and register the fork's PTID as a thread.
3664
3665 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3666
3667 PR gdb/1665
3668 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
3669 assign its value to the breakpoint created.
3670 (create_breakpoints): Add breakpoint_ops argument and pass it
3671 to create_breakpoint call.
3672 (break_command_really): Add breakpoint_ops argument and pass/assign
3673 appropriately.
3674 (break_command_1): Pass NULL as ops argument.
3675 (set_breakpoint): Pass NULL as ops argument.
3676 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
3677 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
3678 catch and throw catchpoints.
3679
3680 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3681
3682 PR gdb/2343
3683 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
3684 translate signal numeric value from the target to GDB's enum
3685 target_signal.
3686 * gdbarch.c, gdbarch.h: Regenerated.
3687 * gdbarch.sh: Added two new functions target_signal_from_host and
3688 target_signal_to_host.
3689 * target.h (default_target_signal_from_host,
3690 default_target_signal_to_host): New functions - declarations.
3691 * signals/signals.c (struct gdbarch): New declaration.
3692 (default_target_signal_to_host, default_target_signal_from_host): New
3693 functions.
3694
3695 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3696 Pedro Alves <pedro@codesourcery.com>
3697
3698 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
3699 Johnston <jjohnstn@redhat.com>.
3700
3701 * NEWS: Mention attach to stopped process fix.
3702 * infcmd.c (detach_command, disconnect_command): Discard the thread
3703 list.
3704 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
3705 attaching. Use signal_stop_state.
3706 (signal_stop_state): Check stop_soon.
3707 * linux-nat.c (kill_lwp): Declare earlier.
3708 (pid_is_stopped, linux_nat_post_attach_wait): New.
3709 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
3710 comments.
3711 (linux_nat_attach): Use linux_nat_post_attach_wait.
3712 (detach_callback, linux_nat_detach): Improve handling for signalled
3713 processes.
3714 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
3715 from the process ID.
3716 * Makefile.in (infcmd.o): Update.
3717
3718 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3719
3720 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
3721 * arm-tdep.c (arm_frame_is_thumb): New.
3722 (arm_pc_is_thumb): Clarify comment.
3723 (thumb_analyze_prologue): Remove PC special case.
3724 (thumb_scan_prologue): Take a block_addr argument. Use it for
3725 find_pc_partial_function. Remove unused variables.
3726 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
3727 for find_pc_partial_function. Remove PC special case.
3728 (arm_prologue_prev_register): Add special handling for PC and CPSR.
3729 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
3730 (arm_get_next_pc): Use arm_frame_is_thumb.
3731 (arm_write_pc): Use CPSR_T instead of 0x20.
3732 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
3733 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
3734 (CPSR_T): Define.
3735 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
3736 DWARF2_FRAME_REG_FN.
3737 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
3738 DWARF2_FRAME_REG_FN.
3739 (struct dwarf2_frame_state_reg): Add FN to loc union.
3740
3741 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
3742
3743 * exec.c (print_section_info): Add missing '\n'.
3744
3745 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
3746
3747 * thread.c (add_thread): Move observer call to ...
3748 (add_thread_silent): ... here.
3749
3750 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3751
3752 * rs6000-tdep.c: Update for unwinder changes.
3753 * ppcobsd-tdep.c: Likewise.
3754
3755 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3756
3757 * s390-tdep.c: Update for unwinder changes.
3758
3759 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3760
3761 * spu-tdep.c: Update for unwinder changes.
3762
3763 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3764
3765 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
3766 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
3767 sparc64-linux-tdep.c: Update for unwinder changes.
3768
3769 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3770
3771 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
3772 for unwinder changes.
3773 * mips-tdep.c: Likewise.
3774 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
3775 raw one.
3776
3777 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3778
3779 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
3780 unwinder changes.
3781
3782 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3783
3784 Update i386 and amd64 ports for unwinder changes.
3785
3786 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
3787 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
3788 (amd64_frame_unwind): Use default_frame_sniffer.
3789 (amd64_frame_sniffer): Delete.
3790 (amd64_sigtramp_frame_cache): Expect this_frame.
3791 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
3792 (amd64_sigtramp_frame_sniffer): Update signature.
3793 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
3794 (amd64_frame_base_address): Expect this_frame.
3795 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
3796 this_frame.
3797 (amd64_init_abi): Use set_gdbarch_dummy_id and
3798 frame_unwind_append_unwinder.
3799 * i386-tdep.c (i386_frame_cache): Expect this_frame.
3800 (i386_frame_this_id, i386_frame_prev_register): Update signature.
3801 (i386_frame_unwind): Use default_frame_sniffer.
3802 (i386_frame_sniffer): Delete.
3803 (i386_sigtramp_frame_cache): Expect this_frame.
3804 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
3805 (i386_sigtramp_frame_sniffer): Update signature.
3806 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
3807 (i386_frame_base_address): Update signature.
3808 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
3809 (i386_push_dummy_call): Update comment.
3810 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
3811 Expect this_frame.
3812 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
3813 and frame_unwind_append_unwinder.
3814 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
3815 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
3816 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
3817 i386nbsd-tdep.c: Update for unwinder changes.
3818
3819 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3820
3821 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
3822 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
3823 this_frame.
3824 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
3825 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
3826 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
3827 signature.
3828 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
3829 this_frame.
3830 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
3831 Update signature.
3832 * tramp-frame.h (struct tramp_frame): Update signature of init.
3833 * Makefile.in (trad-frame.o): Update.
3834
3835 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3836
3837 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
3838 (execute_stack_op): Put this_frame in the baton.
3839 (execute_cfa_program): Take this_frame.
3840 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
3841 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
3842 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
3843 (dwarf2_frame_this_id): Adjust to work on this_frame.
3844 (dwarf2_signal_frame_this_id): Delete.
3845 (dwarf2_frame_prev_register): Update signature. Use new frame
3846 unwind methods.
3847 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
3848 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
3849 dwarf2_frame_sniffer.
3850 (dwarf2_append_unwinders): New.
3851 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
3852 this_frame.
3853 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
3854 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
3855 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
3856 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
3857 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
3858 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
3859 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
3860 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
3861 (dwarf2_append_unwinders): Declare.
3862 (dwarf2_frame_base_sniffer): Update declaration.
3863 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
3864 this_frame.
3865
3866 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3867
3868 Convert frame unwinders to use the current frame and
3869 "struct value".
3870
3871 * frame.c (frame_debug): Make global.
3872 (get_frame_id): Pass this frame to unwinder routines.
3873 (frame_pc_unwind): Remove unused unwind->prev_pc support.
3874 (do_frame_register_read): Do not discard the return value of
3875 frame_register_read.
3876 (frame_register_unwind): Remove debug messages. Use
3877 frame_unwind_register_value.
3878 (frame_unwind_register_value, get_frame_register_value): New
3879 functions.
3880 (create_new_frame, get_frame_base_address, get_frame_locals_address)
3881 (get_frame_args_address, get_frame_type): Pass this frame to
3882 unwinder routines.
3883 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
3884 functions.
3885 * frame.h: Update comments.
3886 (frame_debug, frame_unwind_register_value, get_frame_register_value)
3887 (frame_prepare_for_sniffer): Declare.
3888 * frame-unwind.h: Update comments and parameter names.
3889 (default_frame_sniffer): Declare.
3890 (frame_prev_register_ftype): Return a struct value *.
3891 (struct frame_unwind): Remove prev_pc member.
3892 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
3893 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
3894 (frame_unwind_got_register, frame_unwind_got_memory)
3895 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
3896 * frame-base.h: Update comments and parameter names.
3897 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
3898 if necessary. Add debugging output.
3899 * sentinel-frame.c (sentinel_frame_prev_register)
3900 (sentinel_frame_this_id): Update for new signature.
3901 (sentinel_frame_prev_pc): Delete.
3902 (sentinel_frame_unwinder): Remove prev_pc.
3903 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
3904 prev_pc.
3905 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
3906 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
3907 (frame_unwind_append_sniffer): Delete.
3908 (frame_unwind_append_unwinder): New function.
3909 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
3910 from unwinders. Use frame_prepare_for_sniffer.
3911 (default_frame_sniffer, frame_unwind_got_optimized)
3912 (frame_unwind_got_register, frame_unwind_got_memory)
3913 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
3914 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
3915 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
3916 signature.
3917 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
3918 * gdbarch.c, gdbarch.c: Regenerated.
3919 * frame-base.c (default_frame_base_address)
3920 (default_frame_locals_address, default_frame_args_address): Update
3921 for new signature.
3922 (frame_base_find_by_frame): Pass this frame to unwinder routines.
3923 * infcall.c (call_function_by_hand): Update comments.
3924 * Makefile.in (frame-unwind.o): Update dependencies.
3925
3926 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3927
3928 * ada-lang.c (ada_value_primitive_packed_val): Only check
3929 value_lazy for memory lvals.
3930 * findvar.c (value_of_register_lazy): New function.
3931 (locate_var_value): Only check value_lazy for memory lvals.
3932 * valarith.c (value_subscripted_rvalue): Likewise.
3933 * valops.c (value_fetch_lazy): Handle both memory and register
3934 lvals.
3935 (search_struct_field, value_slice): Only check value_lazy for memory
3936 lvals.
3937 * value.c (struct value): Update comment for lazy.
3938 (value_primitive_field): Only check value_lazy for memory lvals.
3939 * value.h (value_lazy): Update comment.
3940 (value_of_register_lazy): Declare.
3941
3942 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3943
3944 * corefile.c (reopen_exec_file): Close any open files.
3945
3946 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3947
3948 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
3949 show_memory_breakpoints to 1 while reading the instruction bundle.
3950
3951 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3952
3953 * gdbarch.sh: Document the return_value method. Explain that
3954 the FUNCTYPE parameter might be NULL.
3955 * gdbarch.h: Regenerated.
3956 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
3957 type when calling using_struct_return, as this is unnecessary
3958 on this target.
3959
3960 2008-04-28 Joel Brobecker <brobecker@adacore.com>
3961
3962 * terminal.h (create_tty_session): Fix return type.
3963
3964 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
3965
3966 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
3967
3968 2008-04-26 Joel Brobecker <brobecker@adacore.com>
3969
3970 * breakpoint.c (condition_command, commands_from_control_command)
3971 (break_command_really): Minor reformatting.
3972
3973 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3974
3975 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
3976
3977 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3978
3979 * amd64-tdep.c (amd64_get_longjmp_target): New.
3980 (amd64_init_abi): Register amd64_get_longjmp_target as
3981 gdbarch_get_longjmp_target callback.
3982 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
3983
3984 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3985
3986 * breakpoint.h (enum bpstat_what_main_action): Delete
3987 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
3988
3989 * breakpoint.c (clrs): Delete.
3990 (bpstat_what): Update table.
3991
3992 * infrun.c (handle_inferior_event): Remove
3993 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
3994
3995 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3996
3997 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
3998 Adjust all prototypes using mi_cmd_args_ftype to use
3999 mi_cmd_argv_ftype.
4000 (struct mi_cmd): Remove the args_func field.
4001 * mi/mi-cmds.c: Don't provide value for the args_func field.
4002 * mi/mi-main.c (mi_execute_async_cli_command)
4003 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4004 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4005 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
4006 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
4007 (mi_cmd_target_download): Adjust.
4008 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
4009 (mi_cmd_execute): Do not check for args_func.
4010 (mi_execute_async_cli_command): Adjust.
4011 * mi/mi-parse.c: Don't check for args_func.
4012
4013 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4014
4015 * breakpoint.c (bpstat_check_location)
4016 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
4017 New, extracted from bpstat_stop_status.
4018 (bpstat_stop_status): Use the above.
4019
4020 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4021
4022 * mi/mi-main.c (last_async_command): Rename to current_token.
4023 (previous_async_command): Remove.
4024 (mi_cmd_gdb_exit): Adjust.
4025 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
4026 (mi_cmd_target_select): Adjust.
4027 (mi_cmd_execute): Don't set previous_async_command. Free token
4028 here even in async mode.
4029 (mi_execute_async_cli_command): Adjust.
4030 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
4031 token.
4032 (mi_load_progress): Adjust.
4033
4034 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4035
4036 * infcmd.c (step_1_continuation): Always disable longjmp
4037 breakpoint if we're not going to do another step.
4038
4039 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4040
4041 exec_cleanup murder.
4042 * breakpoint.c (until_break_command_continuation): Add
4043 the 'error' parameter. Directly delete the breakoint as
4044 opposed to running cleanups.
4045 (until_break_command): Install continuation only
4046 after starting the target. Don't use exec cleanups,
4047 use ordinary cleanups. Discard cleanups is successfully
4048 started the target in async mode.
4049 (make_cleanup_delete_breakpoint): Remove.
4050 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
4051 declaration.
4052 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
4053 declarations.
4054 (struct continations): Add the 'error' parameter to the
4055 continuation_hook field.
4056 (add_continuation, do_all_continuations)
4057 (add_intermediate_continuation)
4058 (do_all_intermediate_continuations): Add the 'error' parameter.
4059 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
4060 * inf-loop.c (inferior_event_handler): Instead of calling
4061 discard_all_continuations, use do_all_continuations with 1 as
4062 'error' parameter. Pass 0 as 'error' parameter in existing uses
4063 of discard_all_continuations.
4064 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
4065 cleanups.
4066 (step_once): Install continuation only after resuming the target.
4067 (step_1_continuation): Disable longjmp breakpoint on error.
4068 (finish_command_continuation): Add the error parameter. Delete
4069 the finish breakpoint directly, do not use cleanups.
4070 (finish_command): Do not use exec_cleanups. Always setup
4071 continuation. For sync case, immediately run them.
4072 (attach_command_continuation): Add the error parameter.
4073 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
4074 remove step_resume_breakpoint -- adjust delete it directly.
4075 * interps.c (interp_set): Adjust call to do_all_continations.
4076 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
4077 do exec cleanups.
4078 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
4079 cleanups.
4080 (mi_cmd_execute): Do not use exec_cleanup.
4081 (mi_execute_async_cli_command): Simplify the string concatenation
4082 logic. Do no use exec cleanup.
4083 (mi_exec_async_cli_cmd_continuation): New parameter error.
4084 Free last_async_command.
4085 * top.c (command_line_handler_continuation): New parameter error.
4086 * utils.c (exec_cleanup_chain, make_exec_cleanup)
4087 (do_exec_cleanups): Remove.
4088 (add_continuation, do_all_continations)
4089 (add_intermediate_continuation)
4090 (do_all_intermediate_continuations): New parameter error.
4091
4092 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4093
4094 * breakpoint.h (bp_location_p): New typedef.
4095 Register a vector of bp_location_p.
4096 * breakpoint.c (always_inserted_mode)
4097 (show_always_inserted_mode): New.
4098 (unlink_locations_from_global_list): Remove.
4099 (update_global_location_list)
4100 (update_global_location_list_nothrow): New.
4101 (update_watchpoint): Don't free locations.
4102 (should_insert_location): New.
4103 (insert_bp_location): Use should_insert_location.
4104 (insert_breakpoint_locations): Copied from
4105 insert_breakpoints.
4106 (insert_breakpoint): Use insert_breakpoint_locations.
4107 (bpstat_stop_status): Call update_global_location_list
4108 when disabling breakpoint.
4109 (allocate_bp_location): Don't add to bp_location_chain.
4110 (set_raw_breakpoint)
4111 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
4112 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
4113 (enable_overlay_breakpoints, disable_overlay_breakpoints)
4114 (set_longjmp_resume_breakpoint)
4115 (enable_watchpoints_after_interactive_call_stop)
4116 (disable_watchpoints_before_interactive_call_start)
4117 (create_internal_breakpoint)
4118 (create_fork_vfork_event_catchpoint)
4119 (create_exec_event_catchpoint, set_momentary_breakpoint)
4120 (create_breakpoints, break_command_1, watch_command_1)
4121 (create_exception_catchpoint)
4122 (handle_gnu_v3_exceptions)
4123 (disable_breakpoint, breakpoint_re_set_one)
4124 (create_thread_event_breakpoint, create_solib_event_breakpoint)
4125 (create_ada_exception_breakpoint): : Don't call check_duplicates.
4126 Call update_global_location_list.
4127 (delete_breakpoint): Don't remove locations and don't
4128 try to reinsert them. Call update_global_location_list.
4129 (update_breakpoint_locations): Likewise.
4130 (restore_always_inserted_mode): New.
4131 (update_breakpoints_after_exec): Temporary disable
4132 always inserted mode.
4133 * Makefile.in: Update dependencies.
4134
4135 * infrun.c (proceed): Remove breakpoints while stepping
4136 over breakpoint.
4137 (handle_inferior_event): Don't remove or insert
4138 breakpoints.
4139 * linux-fork.c (checkpoint_command): Remove breakpoints
4140 before fork and insert after.
4141 (linux_fork_context): Remove breakpoints before switch
4142 and insert after.
4143 * target.c (target_disconnect, target_detach): Remove
4144 breakpoints from target.
4145
4146
4147 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
4148
4149 * breakpoint.c (print_one_breakpoint_location): In MI
4150 mode, report the location string the breakpoint was
4151 originally created with.
4152
4153 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
4154
4155 * Makefile.in (xtensa-tdep.o): Update dependencies.
4156 * configure.tgt (xtensa*): Update dependencies.
4157 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
4158 Local variable areg renamed to arreg.
4159 (areg_number): New function.
4160 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
4161 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
4162 replaced by arreg_number.
4163 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
4164 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
4165 (xtensa_scan_prologue): New function.
4166 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
4167 when ENTRY instraction hasn't been executed yet. Get the frame pointer
4168 value based on prologue analysis. Fix the bugs preventing WS and
4169 AR4-AR7/A11 registers from getting right values for intermediate frames,
4170 whose registers have been already spilled.
4171 (xtensa_frame_prev_register): Fix WS register value. Use are_number
4172 and arreg_number appropriately.
4173 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4174 svr4_ilp32_fetch_link_map_offsets.
4175
4176 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
4177
4178 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
4179 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
4180
4181 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4182
4183 * acinclude.m4: Add override.m4.
4184 * configure: Regenerate.
4185
4186 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 * ada-lang.c (get_selections): Variable PROMPT made non-const and
4189 initialized with a trailing space now. Use PROMPT_ARG of
4190 COMMAND_LINE_INPUT instead of printing it ourselves.
4191
4192 2008-04-22 Joel Brobecker <brobecker@adacore.com>
4193
4194 * NEWS: Document support for 64-bit core file.
4195
4196 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
4197
4198 * NEWS: Add information on calling convention and new SH CLI options.
4199
4200 * sh-tdep.c (sh_cc_gcc): New static string.
4201 (sh_cc_renesas): Ditto.
4202 (sh_cc_enum): New static string array.
4203 (sh_active_calling_convention): New static string pointer denoting
4204 active user chosen ABI.
4205 (sh_is_renesas_calling_convention): New function to return function
4206 specific ABI, or user choice if necessary.
4207 (sh_use_struct_convention): Rename first argument and turn around its
4208 meaning. Check for renesas ABI and return accordingly.
4209 (sh_use_struct_convention_nofpu): New function.
4210 (sh_next_flt_argreg): Get function type as third parameter. Check
4211 for renesas ABI and choose floating registers accordingly.
4212 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4213 struct return slot accordingly.
4214 (sh_push_dummy_call_nofpu): Ditto.
4215 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4216 Evaluate ABI and give to sh_use_struct_convention_nofpu.
4217 (sh_return_value_fpu): Evaluate ABI and give to
4218 sh_use_struct_convention.
4219 (show_sh_command): New function.
4220 (set_sh_command): Ditto.
4221 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4222 CLI command.
4223
4224 * gdbarch.sh (return_value): Add func_type argument.
4225 * gdbarch.c: Regenerate.
4226 * gdbarch.h: Ditto.
4227 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4228 val_type so as not to collide with value_type function. Call
4229 using_struct_return with additional function type argument.
4230 * infcall.c (call_function_by_hand): Call using_struct_return and
4231 gdbarch_return_value with additional function type argument.
4232 * infcmd.c (print_return_value): Take addition func_type argument.
4233 Call gdbarch_return_value with additional function type argument.
4234 (finish_command_continuation): Call print_return_value with additional
4235 function type argument.
4236 (finish_command): Ditto.
4237 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4238 additional function type argument.
4239 * stack.c (return_command): Call using_struct_return and
4240 gdbarch_return_value with additional function type argument.
4241 * value.c (using_struct_return): Take additional function type argument.
4242 * value.h (using_struct_return): Accommodate declaration.
4243 * alpha-tdep.c (alpha_return_value): Add func_type argument.
4244 * amd64-tdep.c (amd64_return_value): Ditto.
4245 * arm-tdep.c (arm_return_value): Ditto.
4246 * avr-tdep.c (avr_return_value): Ditto.
4247 * cris-tdep.c (cris_return_value): Ditto.
4248 * frv-tdep.c (frv_return_value): Ditto.
4249 * h8300-tdep.c (h8300_return_value): Ditto.
4250 (h8300h_return_value): Ditto.
4251 * hppa-tdep.c (hppa32_return_value): Ditto.
4252 (hppa64_return_value): Ditto.
4253 * i386-tdep.c (i386_return_value): Ditto.
4254 * ia64-tdep.c (ia64_return_value): Ditto.
4255 * iq2000-tdep.c (iq2000_return_value): Ditto.
4256 * m32c-tdep.c (m32c_return_value): Ditto.
4257 * m32r-tdep.c (m32r_return_value): Ditto.
4258 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4259 * m68k-tdep.c (m68k_return_value): Ditto.
4260 (m68k_svr4_return_value): Ditto.
4261 * m88k-tdep.c (m88k_return_value): Ditto.
4262 * mep-tdep.c (mep_return_value): Ditto.
4263 * mips-tdep.c (mips_eabi_return_value): Ditto.
4264 (mips_n32n64_return_value): Ditto.
4265 (mips_o32_return_value): Ditto.
4266 (mips_o64_return_value): Ditto.
4267 * mn10300-tdep.c (mn10300_return_value): Ditto.
4268 * mt-tdep.c (mt_return_value): Ditto.
4269 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4270 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4271 (ppc_sysv_abi_broken_return_value): Ditto.
4272 (ppc64_sysv_abi_return_value): Ditto.
4273 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4274 (ppc_sysv_abi_broken_return_value): Ditto.
4275 (ppc64_sysv_abi_return_value): Ditto.
4276 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4277 * rs6000-tdep.c (rs6000_return_value): Ditto.
4278 * s390-tdep.c (s390_return_value): Ditto.
4279 * score-tdep.c (score_return_value): Ditto.
4280 * sh-tdep.c (sh_return_value_nofpu): Ditto.
4281 (sh_return_value_fpu): Ditto.
4282 * sh64-tdep.c (sh64_return_value): Ditto.
4283 * sparc-tdep.c (sparc32_return_value): Ditto.
4284 * sparc64-tdep.c (sparc64_return_value): Ditto.
4285 * spu-tdep.c (spu_return_value): Ditto.
4286 * v850-tdep.c (v850_return_value): Ditto.
4287 * vax-tdep.c (vax_return_value): Ditto.
4288 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
4289 * xtensa-tdep.c (xtensa_return_value): Ditto.
4290
4291 * gdbtypes.h (struct type): Add calling_convention member.
4292 * dwarf2read.c (read_subroutine_type): Add calling convention read
4293 from DW_AT_calling_convention attribute to function type.
4294
4295 2008-04-22 Markus Deuling <deuling@de.ibm.com>
4296
4297 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
4298 multi_f77_subscript to support values from registers.
4299 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
4300 * value.h (value_subscripted_rvalue): Add prototype.
4301
4302 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
4303 Fix output.
4304 * f-valprint.c (f_val_print): Likewise.
4305
4306 2008-04-21 Craig Silverstein <csilvers@google.com>
4307
4308 * dwarf2read.c (zlib_decompress_section): Define abfd in the
4309 !HAVE_ZLIB_H case.
4310
4311 2008-04-21 Pedro Alves <pedro@codesourcery.com>
4312
4313 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
4314 section is not a code section.
4315
4316 2008-04-19 Craig Silverstein <csilvers@google.com>
4317
4318 * NEWS: Add information on compressed debug sections.
4319
4320 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4321
4322 * mi/mi-cmd-var.c (varobj_update_one): Print new
4323 value for variable objects that changed type.
4324
4325 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4326
4327 * varobj.c (varobj_invalidate): Don't touch floating
4328 varobjs.
4329
4330 2008-04-19 Mark Kettenis <kettenis@gnu.org>
4331
4332 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
4333 (multiple_symbols_cancel): Remove extra const.
4334 * symtab.h: Likewise.
4335
4336 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
4337
4338 * interps.c (top_level_interpreter): Rename static variable...
4339 (top_level_interpreter_ptr): ...to this.
4340 (top_level_interpreter): New function.
4341
4342 * interps.h: New extern for top_level_interpreter.
4343
4344 * linespec.c: Include interps.h and mi/mi-cmds.h.
4345 (decode_line_2): When using MI, always set all breakpoints in menu.
4346
4347 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
4348
4349 2008-04-18 Craig Silverstein <csilvers@google.com>
4350
4351 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
4352 * config.in, configure: Regenerate.
4353 * dwarf2read.c: Include zlib.h if present.
4354 Modified *_SECTION macros.
4355 (section_is_p): New.
4356 (dwarf2_locate_sections): Use section_is_p instead of strcmp
4357 (dwarf2_resize_section): New.
4358 to determine whether a given section has a given name.
4359 (zlib_decompress_section): New.
4360 (dwarf2_read_section): Read the compressed section if present
4361 in the binary.
4362 * MAINTAINERS: Added myself to section Write After Approval.
4363
4364 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
4365
4366 * defs.h (exec_set_section_offsets): Remove prototype.
4367 * exec.c (exec_set_section_offsets): Remove function.
4368
4369 2008-04-18 Joel Brobecker <brobecker@adacore.com>
4370
4371 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
4372 in the search for the matching symbol.
4373
4374 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
4375
4376 * breakpoint.c (update_watchpoint): Always reparse
4377 condition.
4378
4379 2008-04-17 Joel Brobecker <brobecker@adacore.com>
4380
4381 * breakpoint.c (print_one_breakpoint_location): Make sure to print
4382 the breakpoint address only once.
4383
4384 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
4385
4386 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
4387 rather than a hard-coded architecture, for xcoff executables.
4388
4389 2008-04-17 Doug Evans <dje@google.com>
4390
4391 * buildsym.c (watch_main_source_file_lossage): New fn.
4392 (end_symtab): Call it.
4393
4394 * source.c (find_and_open_source): Add some comments clarifying
4395 handling of FULLNAME argument. Make static. Remove pointless
4396 xstrdup/xfree.
4397
4398 2008-04-17 Pedro Alves <pedro@codesourcery.com>
4399
4400 * inf-loop.c (inferior_event_handler): Also run the intermediate
4401 continuations in the INF_EXEC_COMPLETE case.
4402
4403 2008-04-16 Tom Tromey <tromey@redhat.com>
4404
4405 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
4406 (set_cmd_async_ok, get_cmd_async_ok): Declare.
4407 * cli/cli-decode.c (set_cmd_async_ok): New function.
4408 (get_cmd_async_ok): New function.
4409 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
4410 "show" as async-ok.
4411 * top.c (execute_command): Use get_cmd_async_ok.
4412 * infcmd.c: Include cli/cli-decode.h.
4413 (_initialize_infcmd): Mark "interrupt" as async-ok.
4414 * Makefile.in (infcmd.o): Depend on cli_decode_h.
4415
4416 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
4417
4418 PR gdb/2445
4419 * exec.c: Correct "arch-utils.h" include.
4420
4421 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
4422
4423 PR gdb/2424
4424 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
4425 to allow printing to 'see' real reason of stop. This fixes PR 2424.
4426 * breakpoint.c (bpdisp_texst): New function. The function takes over
4427 the role of bpstats static array in print_one_breakpoint_location.
4428 (print_it_typical): Print "Temporary breakpoint" instead
4429 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
4430 protocols, print disp field.
4431 (print_one_breakpoint_location): Removed bpdisps static definition.
4432 Call new bpstat_text function to get value for 'disp' field.
4433 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
4434
4435 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
4436
4437 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
4438 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
4439 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
4440 * gnulib/Makefile.in: Regenerate.
4441
4442 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4443
4444 * Makefile.in (GNULIB_H): New. Trigger all-lib.
4445 (defs_h): Use $(GNULIB_H).
4446 (all-lib): Depend on gnulib/Makefile.
4447 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
4448 * config.in, gnulib/Makefile.in: Regenerated.
4449
4450 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4451
4452 * Makefile.in (LIBGNU, INCGNU): Define.
4453 (INTERNAL_CFLAGS_BASE): Add INCGNU.
4454 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
4455 (CLEANDIRS): New.
4456 ($(LIBGNU), all-lib): New rules.
4457 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
4458 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
4459 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
4460 * gnulib: New directory, from gnulib-tool.
4461 * configure, aclocal.m4: Regenerated.
4462
4463 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4464
4465 * linux-thread-db.c (have_threads_callback): Check thread->private.
4466
4467 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
4468 Vladimir Prus <vladimir@codesourcery.com>
4469
4470 Fix @-varobjs.
4471 * varobj.c (value_of_root): Update the expression for
4472 floating varobjs.
4473 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
4474 report that.
4475
4476 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
4477
4478 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4479 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
4480 (mi_cmd_var_set_format): Use new mi_parse_format.
4481 (mi_cmd_var_evaluate_expression): Support for -f option to specify
4482 format.
4483 * Makefile.in (mi-cmd-var.o): Update dependencies.
4484
4485 * varobj.h (varobj_get_formatted_value): Declare.
4486 * varobj.c (my_value_of_variable): Added format parameter.
4487 (cplus_value_of_variable): Likewise.
4488 (java_value_of_variable): Likewise.
4489 (c_value_of_variable): Likewise. Evaluate expression based
4490 on format parameter.
4491 (struct language_specific): Add format parameter to function member
4492 *value_of_variable.
4493 (varobj_get_formatted_value): New.
4494 (varobj_get_value): Added format parameter to method call.
4495
4496 2008-04-08 Joel Brobecker <brobecker@adacore.com>
4497
4498 * stabsread.c (cleanup_undefined_types_noname): Manually set the
4499 instance flags of the undefined type before calling replace_type.
4500
4501 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
4502
4503 * target.h (enum strata): Remove the download_stratum.
4504
4505 2008-04-07 Doug Evans <dje@google.com>
4506
4507 * buildsym.h (last_source_file): Add dwarf info to comment.
4508 (last_source_start_addr): Ditto.
4509
4510 2008-04-07 Pedro Alves <pedro@codesourcery.com>
4511
4512 * alphanbsd-tdep.c: Include "target.h".
4513 * mn10300-tdep.c: Include "target.h".
4514 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
4515
4516 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
4517
4518 Fix breakpoint condition that use member variables.
4519 * valops.c (check_field): Remove.
4520 (check_field_in): Rename to check_field.
4521 (value_of_this): Use la_name_of_this.
4522 * value.h (check_field): Adjust prototype.
4523
4524 * language.h (la_value_of_this): Rename to la_name_of_this.
4525 * language.c (unknown_language_defn): Specify "this" for
4526 name_of_this.
4527 (auto_language_defn): Likewise.
4528 (local_language_defn): Likewise.
4529 * ada-lang.c (ada_language_defn): Adjust comment.
4530 * c-lang.c (c_language_defn): Adjust comment.
4531 (cplus_language_defn): Specify "this" for name_of_this.
4532 (asm_language_defn): Adjust comment.
4533 (minimal_language_defn): Adjust comment.
4534 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
4535 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
4536 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
4537 * objc-lang.c (objc_language_defn): Specify "self" for
4538 name_of_this.
4539 * p-lang.c (pascal_language_defn): Specify "this" for
4540 name_of_this.
4541 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
4542
4543 * symtab.c (lookup_symbol_aux): Lookup "this" in the
4544 proper scope, and check for field in type of "this", without
4545 trying to create a value.
4546
4547 2008-04-04 Pedro Alves <pedro@codesourcery.com>
4548
4549 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
4550 (mi_error_message): Delete declaration.
4551 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
4552 returning MI_CMD_ERROR.
4553 * mi/mi-main.c (mi_error_message): Delete.
4554 (mi_cmd_exec_interrupt):
4555 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4556 (mi_cmd_thread_info): Call error instead of returning
4557 MI_CMD_ERROR.
4558 (mi_cmd_data_list_register_values): Call error instead of
4559 returning MI_CMD_ERROR. Adapt to new get_register interface.
4560 (get_register): Change return typo to void. Call error instead of
4561 returning MI_CMD_ERROR.
4562 (mi_cmd_data_write_register_values): Call error instead of
4563 returning MI_CMD_ERROR.
4564 (mi_cmd_list_features): Return MI_CMD_DONE.
4565 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
4566 (mi_execute_command): Always print exceptions with -error.
4567
4568 2008-04-04 Joel Brobecker <brobecker@adacore.com>
4569
4570 * NEWS: Mention new commands set/show multiple-symbols.
4571
4572 2008-04-03 Joel Brobecker <brobecker@adacore.com>
4573
4574 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
4575 (multiple_symbols_cancel): New constants.
4576 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
4577 (multiple_symbols_select_mode): New function.
4578 (_initialize_symtab): Add new set/show multiple-symbols commands.
4579 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
4580 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
4581 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
4582 setting.
4583 * linespec.c (decode_line_2): Likewise.
4584
4585 2008-04-03 Doug Evans <dje@sebabeach.org>
4586
4587 * symtab.h (enum free_code): Delete free_contents, unused.
4588 * symmisc.c (free_symtab_block): Delete.
4589 (free_symtab, case free_code): Delete.
4590
4591 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4592
4593 * valops.c (value_cast_structs): New function. Cast related
4594 STRUCT types up/down and return cast value. The body of this
4595 function comes mostly from value_cast_pointers.
4596 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
4597 to value_cast_structs. Now value_cast_pointers needs only create
4598 appropriate reference after using value_cast_structs for actual
4599 casting.
4600 (value_cast): Handle references.
4601
4602 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
4603
4604 * MAINTAINERS: Added myself to section Write After Approval.
4605
4606 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4607
4608 * ia64-tdep.c (examine_prologue): Correct array access.
4609
4610 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4611
4612 * cp-support.c (first_component_command): Return if no arguments.
4613
4614 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
4615
4616 * ser-mingw.c (ser_windows_open): Open requested name.
4617
4618 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4619
4620 * MAINTAINERS: Added myself.
4621
4622 2008-03-28 Pedro Alves <pedro@codesourcery.com>
4623
4624 * target.c (find_default_run_target): Allow a NULL `do_mesg'
4625 parameter. If it is NULL, don't call error.
4626 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
4627 `do_mesg' parameter to find_default_run_target. If no target was
4628 found, return 0.
4629
4630 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4631
4632 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
4633 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
4634 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
4635 Delete.
4636 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
4637
4638 2008-03-27 Joel Brobecker <brobecker@adacore.com>
4639
4640 GDB 6.8 released.
4641
4642 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4643
4644 * features/Makefile (%.dat): Set xmltarget to the base filename
4645 of the XML source, without subdirectory.
4646 * regformats/rs6000/powerpc-32.dat: Regenerate.
4647 * regformats/rs6000/powerpc-64.dat: Regenerate.
4648 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4649
4650 2008-03-27 Markus Deuling <deuling@de.ibm.com>
4651
4652 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
4653 objfile arch.
4654
4655 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
4656
4657 * mi/mi-main.c (enum captured_mi_execute_command_actions):
4658 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
4659
4660 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4661
4662 * objfiles.h (struct objfile): New GDBARCH member.
4663 (get_objfile_arch): Add prototype.
4664 * objfiles.c: Include "arch-utils.h".
4665 (allocate_objfile): Look up gdbarch associated with bfd.
4666 (get_objfile_arch): New function.
4667 * Makefile (objfiles.o): Update dependencies.
4668
4669 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
4670 by objfile arch.
4671 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
4672 by frame arch.
4673 (locexpr_describe_location): Replace current_gdbarch by
4674 objfile arch.
4675 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
4676 (dwarf2_add_field): Likewise.
4677 (read_tag_pointer_type): Likewise.
4678 (read_base_type): Likewise.
4679 (new_symbol): Likewise.
4680
4681 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
4682 (decode_base_type, decode_function_type): Likewise.
4683 (coff_read_struct_type, coff_read_enum_type): Likewise.
4684 (coff_symtab_read): Replace current_gdbarch by objfile arch.
4685 (decode_base_type): Likewise.
4686 (coff_read_enum_type): Likewise.
4687 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
4688 (coff_read_enum_type): Likewise.
4689
4690 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
4691 (end_psymtab): Likewise.
4692 (process_one_symbol): Likewise.
4693
4694 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
4695 (parse_procedure): Likewise.
4696 (parse_partial_symbols): Likewise.
4697
4698 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
4699
4700 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
4701 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
4702 built-in types.
4703 (read_range_type): Replace current_gdbarch by objfile arch. Replace
4704 static range_index_type by built-in type.
4705 (read_one_struct_field): Replace current_gdbarch by objfile arch.
4706 (read_enum_type): Likewise.
4707
4708 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
4709 objfile arch.
4710
4711 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4712
4713 * varobj.h (varobj_floating_p): Declare.
4714 * varobj.c (varobj_floating_p): New.
4715 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
4716 '@' as the name, update all floating varobjs.
4717
4718 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4719
4720 * varobj.c (struct varobj_root): Rename use_selected_frame to
4721 floating, and clarify the meaning.
4722 (varobj_create, varobj_update, new_root_variable): Adjust.
4723 (value_of_root): Don't use type_changed as in variable,
4724 adjust comment.
4725 (c_value_of_root): Adjust.
4726
4727 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4728
4729 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
4730 gdb's thread list.
4731 (linux_nat_wait): Add main lwp to gdb's thread list.
4732 * linux-thread-db.c (find_new_threads_callback): Also attach to
4733 already listed threads which thread_db didn't know about yet.
4734
4735 2008-03-25 Pedro Alves <pedro@codesourcery.com>
4736
4737 * linux-nat.c (drain_queued_events): Fix comment typo.
4738 (linux_nat_attach): In async mode, don't rely on storing a pending
4739 status. Instead place the wait status on the pipe.
4740 (linux_nat_resume): Remove unreacheable shortcut code in async
4741 mode.
4742 (stop_wait_callback): In async mode, don't store pending status.
4743 Instead, cancel breakpoints or resend the signal appropriatelly.
4744 (cancel_breakpoint): New, refactored from
4745 cancel_breakpoints_callback.
4746 (cancel_breakpoints_callback): Call cancel_breakpoint.
4747 (pipe_to_local_event_queue): Remove special token processing.
4748 (linux_nat_wait): Issue an internal error if a pending status is
4749 found in async mode.
4750
4751 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4752
4753 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
4754
4755 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
4756 Vladimir Prus <vladimir@codesourcery.com>
4757
4758 * varobj.c (struct varobj_root): New component thread_id.
4759 (varobj_get_thread_id, check_scope): New functions.
4760 (c_value_of_root): Use check_scope. Switch to the
4761 proper thread if necessary.
4762
4763 * varobj.h (varobj_get_thread_id): New extern.
4764
4765 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
4766
4767 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
4768
4769 PR gdb/544
4770 * top.c: Revert 2008-03-21 changes.
4771
4772 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4773
4774 * thread.c (make_cleanup_restore_current_thread): Make it
4775 globally visible.
4776 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4777 * varobj.c (varobj_update): Don't save/restore frame.
4778 (c_value_of_root): Save/restore thread and frame here,
4779 using make_cleanup_restore_current_thread.
4780 * Makefile.in: Update dependecies.
4781
4782 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4783
4784 * varobj.c (struct varobj_root): Clarify
4785 comment on the frame field.
4786 (varobj_create): Don't set frame if we have no
4787 block.
4788
4789 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4790
4791 PR gdb/544
4792 Suggested by Jan Kratochvil:
4793 * top.c (gdb_rl_operate_and_get_next_completion): Call
4794 rl_redisplay_function.
4795 (gdb_rl_redisplay): New.
4796 (init_main): Set rl_redisplay_function.
4797
4798 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
4799
4800 * aix-thread.c (pdc_read_regs): Fix compiler warning.
4801 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
4802 (store_regs_kernel_thread): Likewise.
4803
4804 2008-03-21 Pedro Alves <pedro@codesourcery.com>
4805
4806 Linux native async support.
4807
4808 * target.h (struct target_ops): Delete to_async_mask_value and add
4809 to_async_mask.
4810 (target_is_async_p, target_async): Formatting.
4811 (target_async_mask_value): Delete.
4812 (target_async_mask): Delete function declaration, and add new
4813 target macro with the same name.
4814
4815 * target.c (update_current_target): Replace to_async_mask_value by
4816 to_async_mask. Default to_async_mask to return_one.
4817 (target_async_mask): Delete.
4818 (find_default_can_async_p, find_default_is_async_p): New.
4819 (init_dummy_target): register find_default_can_async_p and
4820 find_default_is_async_p on the dummy target.
4821
4822 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
4823 (debug_linux_nat_async): New global.
4824 (show_debug_linux_nat_async): New function.
4825 (linux_nat_async_enabled, linux_nat_async_mask_value)
4826 (linux_nat_event_pipe, linux_nat_num_queued_events)
4827 (linux_nat_async_events_enabled): New globals.
4828 (struct waitpid_result): New struct.
4829 (waitpid_queue): New global.
4830 (queued_waitpid, push_waitpid, drain_queued_events): New.
4831 (my_waitpid): Call queued_waitpid.
4832 (linux_child_follow_fork): Disable async events during the call.
4833 (blocked_mask): Delete.
4834 (sync_sigchld_action, async_sigchld_action): New globals.
4835 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
4836 async mode, block events during the call.
4837 (linux_nat_create_inferior): New.
4838 (linux_nat_attach): In sync mode, restore the mask states. In
4839 async mode, wake the event loop immediatelly.
4840 (detach_callback): Drain all queued events of the lwp we're
4841 detaching from.
4842 (linux_nat_detach): Block async mode, and drain events of the main
4843 process.
4844 (linux_nat_resume): If in async mode, mask async events during the
4845 call. If short circuiting, force event loop to wake up. If
4846 resuming, set target_executing, and register target events in the
4847 event loop.
4848 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
4849 (linux_nat_wait): In async mode, block events during the call.
4850 Only enable/disable passing SIGINT to the inferior in sync mode.
4851 Get events from local waitpid queue. If no interesting events was
4852 found, return to events loop. Reregister target events in the
4853 event loop on exit. In sync mode, no need to reblock SIGCHLD.
4854 (linux_nat_kill): Disable events on entry.
4855 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
4856 here. Detach async mode from the event loop if there are no more
4857 forks available, otherwise leave it on.
4858 (sigchld_handler): Assure this is called only in sync mode.
4859 (linux_async_permitted, linux_async_permitted_1): New globals.
4860 (set_maintenance_linux_async_permitted)
4861 (show_maintenance_linux_async_permitted): New functions.
4862 (linux_nat_is_async_p, linux_nat_can_async_p)
4863 (linux_nat_async_mask): New.
4864 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
4865 (get_pending_events, async_sigchld_handler): New.
4866 (linux_nat_async_events): New.
4867 (async_terminal_is_ours): New global.
4868 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
4869 (async_client_callback, async_client_context): New.
4870 (linux_nat_async_file_handler, linux_nat_async)
4871 (linux_nat_disable_async, linux_nat_enable_async): New.
4872 (linux_nat_add_target): Register linux_nat_create_inferior,
4873 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
4874 linux_nat_async_mask, linux_nat_terminal_inferior and
4875 linux_nat_terminal_ours.
4876 (_initialize_linux_nat): Remove local action variable, and update
4877 code that used it to use sync_sigchld_action. Add new
4878 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
4879 set/show command in the maintenance class. Add new "linux-async"
4880 maintenance set/show command. Block SIGCHLD by default. Setup
4881 async_sichld_action, and sync_sigchld_action. Install the default
4882 async mode.
4883 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
4884 the cancel signals.
4885
4886 * linux-thread-db.c (re_check_for_thread_db): New.
4887 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
4888 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4889 (thread_db_async_mask): New.
4890 (init_thread_db_ops): Register thread_db_can_async_p,
4891 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
4892
4893 * remote.c (remote_async_mask_value): New.
4894 (remote_return_zero): New.
4895 (init_remote_ops): Register remote_return_zero as callbacks of
4896 to_can_async_p and to_is_async_p.
4897 (remote_can_async_p, remote_is_async_p, remote_async): Update to
4898 use remote_async_mask_value.
4899 (remote_async_mask): New.
4900 (init_remote_async_ops): Remove to_async_mask_value setting and
4901 register remote_async_mask as to_async_mask callback in
4902 remote_async_ops.
4903
4904 * Makefile.in (linux-nat.o): Update.
4905
4906 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4907
4908 * gdbthread.h (add_thread_with_info): New.
4909 * linux-thread-db.c: Add some documentation.
4910 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
4911 (struct private_thread_info): Remove th_valid and ti_valid.
4912 Replace ti with tid.
4913 (thread_get_info_callback): Do not add TID to the new ptid. Do
4914 not cache th or ti.
4915 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
4916 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
4917 new PTID.
4918 (attach_thread): Handle an already-existing thread. Use
4919 add_thread_with_info. Cache the th and tid.
4920 (detach_thread): Verify that private was set. Remove verbose
4921 argument and printing. Update caller.
4922 (thread_db_detach): Do not adjust inferior_ptid.
4923 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
4924 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
4925 (thread_db_wait): Do not use lwp_from_thread.
4926 (thread_db_pid_to_str): Use the cached TID.
4927 (thread_db_extra_thread_info): Check that private is set.
4928 (same_ptid_callback): Delete.
4929 (thread_db_get_thread_local_address): Do not use it or check
4930 is_thread. Check that private is set. Assume that the thread
4931 handle is already cached.
4932 (init_thread_db_ops): Remove to_resume and to_kill.
4933 * thread.c (add_thread_with_info): New.
4934 (add_thread): Use it.
4935 * linux-nat.c (find_thread_from_lwp): Delete.
4936 (exit_lwp): Do not use it. Check print_thread_events. Print before
4937 deleting the thread.
4938 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
4939 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
4940 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
4941 printf_unfiltered for thread exits.
4942 * procfs.c (procfs_wait): Likewise.
4943
4944 2008-03-21 Chris Demetriou <cgd@google.com>
4945
4946 * symtab.c (rbreak_command): Quote symbol name before passing
4947 it to break_command.
4948
4949 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4950
4951 * eval.c (evaluate_subexp_for_address): Clarify error message.
4952 Use value_must_coerce_to_target.
4953 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
4954 * valops.c (value_assign): Call value_coerce_to_target when
4955 assigning to anything but internalvars. Leave GDB-side arrays
4956 as arrays when assigning to internalvars.
4957 (value_must_coerce_to_target, value_coerce_to_target): New.
4958 (value_coerce_array, value_addr): Call value_coerce_to_target.
4959 (value_array): Create the array in GDB's memory instead of
4960 the inferior's.
4961 * value.h (value_must_coerce_to_target, value_coerce_to_target):
4962 Declare.
4963
4964 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4965
4966 * top.c (quit_confirm): Warn that we will kill the program.
4967
4968 2008-03-19 Pedro Alves <pedro@codesourcery.com>
4969
4970 * inflow.c (terminal_ours_1): Guard access to
4971 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
4972
4973 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4974 Jim Blandy <jimb@codesourcery.com>
4975 Daniel Jacobowitz <drow@false.org>
4976
4977 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
4978 (dwarf2_read_address): Update prototype.
4979
4980 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
4981 (signed_address_type): Likewise.
4982 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
4983 (execute_stack_op): Update calls to unsigned_address_type,
4984 signed_address_type and dwarf2_read_address. Fix implementation
4985 of DW_OP_deref_size.
4986
4987 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
4988 (dwarf2_per_cu_addr_size): Likewise.
4989 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
4990 (struct dwarf2_loclist_baton): Likewise.
4991
4992 * dwarf2loc.c (find_location_expression): Update calls to
4993 dwarf2_read_address. Use dwarf2_per_cu_objfile and
4994 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
4995 (locexpr_describe_location): Likewise.
4996 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
4997 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
4998 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
4999 to dwarf2_per_cu_addr_size (per_cu).
5000 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
5001 (loclist_read_variable): Likewise.
5002 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
5003
5004 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
5005 instead of baton->objfile.
5006 (dwarf2_per_cu_obfile): New function.
5007 (dwarf2_per_cu_addr_size): Likewise.
5008
5009 * dwarf2-frame.c (struct comp_unit): Move higher.
5010 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
5011 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
5012 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
5013 parameter by using fde->eh_frame_p. Use read_encoded_value
5014 to implement DW_CFA_set_loc.
5015 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
5016 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
5017 execute_stack_op and execute_cfa_program.
5018 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
5019 (size_of_encoded_value): Remove.
5020 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
5021 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
5022 (add_cie): Set cie->unit backlink.
5023 (decode_frame_entry_1): Set cie->addr_size. Update calls to
5024 read_encoded_value.
5025 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
5026
5027 2008-03-17 Markus Deuling <deuling@de.ibm.com>
5028
5029 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
5030 gdbarch_bfd_arch_info.
5031
5032 2008-03-17 Joel Brobecker <brobecker@adacore.com>
5033
5034 * aix-thread.c (pdc_read_regs): Minor reformatting.
5035
5036 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
5037
5038 * thread.c (print_thread_info): Don't insist
5039 on having current thread if there are no
5040 threads at all.
5041
5042 2008-03-17 Pedro Alves <pedro@codesourcery.com>
5043
5044 * infcmd.c (attach_command_post_wait)
5045 (attach_command_continuation): New.
5046 (attach_command): Support background async execution, and async
5047 execution in synchronous mode.
5048
5049 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
5050
5051 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
5052 * symmisc.c (dump_symtab_1): Likewise.
5053 * wrapper.c (gdb_value_struct_elt): Likewise.
5054
5055 2008-03-17 Pedro Alves <pedro@codesourcery.com>
5056
5057 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
5058
5059 2008-03-17 Pedro Alves <pedro@codesourcery.com>
5060
5061 * linux-nat.c (linux_nat_filter_event): New, refactored from
5062 linux_nat_wait.
5063 (linux_nat_wait): Call linux_nat_filter_event.
5064
5065 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
5066
5067 * top.c (execute_command): Fix uninitialized variable error.
5068
5069 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
5070
5071 * Makefile.in (amd64nbsd-nat.o): New dependency.
5072 * amd64nbsd-nat.c: Include "nbsd-nat.h".
5073 (_initialize_amd64nbsd_nat): Update target vector to use
5074 nbsd_pid_to_exec_file.
5075 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
5076
5077 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
5078
5079 Remove ignoring leading exec events code.
5080 * fork-child.c (startup_inferior): Do not set
5081 inferior_ignoring_leading_exec_events.
5082 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
5083 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
5084 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
5085 (handle_inferior_event): Remove code for ignoring leading exec
5086 events.
5087 * target.c (update_current_target): Do not inherit, or default,
5088 to_reported_exec_events_per_exec_call.
5089 (debug_to_reported_exec_events_per_exec_call): Remove.
5090 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
5091 * target.h (target_reported_exec_events_per_exec_call): Remove.
5092 (struct target): Remove the to_reported_exec_events_per_exec_call
5093 field.
5094
5095 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
5096
5097 Implement -thread-info.
5098 * gdbthread.h (print_thread_info): Declare.
5099
5100 * thread.c (print_thread_info): New, extracted
5101 from info_threads_command and adjusted to
5102 work for CLI and MI.
5103 (info_threads_command): Use print_thread_info.
5104 * Makefile.in: Update dependencies.
5105
5106 * mi/mi-cmds.c (mi_cmds): Specify a handler
5107 for -thread-info.
5108 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
5109 * mi/mi-main.c (mi_cmd_thread_info): New.
5110 (mi_cmd_list_features): Include 'thread-info'.
5111
5112 2008-03-14 Kevin Buettner <kevinb@redhat.com>
5113
5114 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
5115 to decide whether to match instruction patterns using "sw" and "sd".
5116
5117 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5118
5119 * infcmd.c (jump_command): Postpone disabling stdin until after
5120 the possible query.
5121
5122 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5123
5124 * inflow.c (gdb_getpgrp): New.
5125 (gdb_has_a_terminal): Use get_getpgrp.
5126 (terminal_ours_1): If attach_flag is set, don't refetch
5127 inferior_process_group.
5128
5129 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5130
5131 * features/library-list.dtd: Allow "section" elements as children
5132 of "library". Add "section" element and describe its attributes.
5133
5134 * solib-target.c (struct lm_info): Add section_bases member.
5135 (library_list_start_segment): Error out if seen a section element.
5136 (library_list_start_section): New.
5137 (library_list_end_library): New.
5138 (solib_target_free_library_list): Free section_bases.
5139 (section_attributes): New.
5140 (library_children): Make "segment" optional. Add "section" child.
5141 (library_list_children): Register library_list_end_library.
5142 (solib_target_relocate_section_addresses): Handle section bases.
5143
5144 * NEWS: Mention new qXfer:libraries:read section offsets support.
5145
5146 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5147
5148 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
5149 (make_exec_error_cleanup): Remove declarations.
5150 * utils.c (exec_error_cleanup_chain): Remove.
5151 (do_exec_error_cleanups, discard_exec_error_cleanups)
5152 (make_exec_error_cleanup): Remove.
5153 * event-loop.c (start_event_loop): Adjust call to
5154 async_enable_stdin.
5155 * event-top.c (async_enable_stdin): Remove the paramater dummy.
5156 (async_disable_stdin): Don't register async_enable_stdin via
5157 cleanup.
5158 * inf-loop.c (inferior_event_handler): Don't
5159 call do_exec_error_cleanups. Call async_enable_stdin instead.
5160 * event-loop.c (start_event_loop): Adjust call to
5161 async_enable_stdin.
5162 * tui/tui-interp.c (tui_command_loop): Adjust call to
5163 async_enable_stdin.
5164
5165 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5166
5167 Async mode fixes.
5168 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
5169 * breakpoint.c (bpstat_do_actions): In async mode,
5170 don't jump to top expecting stop_bpstat to be already
5171 updated.
5172 * event-loop.c (start_event_loop): Call async_enable_stdin
5173 on exception.
5174 * event-top.c (async_enable_stdin): Do nothing if sync_execution
5175 is not set.
5176 (command_handler): Do not setup continuation here.
5177 (command_line_handler_continuation): Move to...
5178 * top.c (command_line_handler_continuation): ... here.
5179 (execute_command): In async mode, register continuation.
5180 Don't check frame's language in running in async mode.
5181 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
5182 * inf-loop.c (complete_execution): Inline into...
5183 (inferior_event_handler): ... here. Clear target_executing before
5184 doing any cleanups. Don't try to show prompt if the target was
5185 resumed.
5186 * infcmd.c (signal_command): Add support for async mode.
5187 (finish_command): Only add continuation if the target was
5188 successfully resumed.
5189 * remote.c (init_async_opts): Register to_get_thread_local_address
5190 handler.
5191 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
5192 with sync_execution.
5193 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
5194 on exception.
5195
5196 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5197
5198 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
5199 * exec.c (exec_bfd_mtime): Define.
5200 (exec_close): Clear it.
5201 (exec_file_attach): Set it.
5202 * gdbcore.h (exec_bfd_mtime): Declare.
5203 * source.c (find_source_lines): Do not use bfd_get_mtime.
5204
5205 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5206
5207 * top.c (simplified_command_loop): Remove.
5208
5209 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5210
5211 Remove unused remote.c hooks.
5212 * remote.c (deprecated_target_resume_hook)
5213 (deprecated_target_wait_loop_hook): Remove.
5214 (remote_resume): Do not call deprecated_target_resume_hook.
5215 (remote_wait): Do not call deprecated_target_wait_loop_hook.
5216 (remote_async_wait): Likewise.
5217
5218 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5219
5220 Implement MI notification for new threads.
5221 * doc/observer.texi (new_thread): Document.
5222 * observer.sh: Forward declare struct thread_info.
5223 * thread.c (add_thread): Notify observer.
5224
5225 * interps.h (interp_init_ftype): New parameter
5226 top_level.
5227 (interp_set): Likewise.
5228 (top_level_interpreter_data): Declare.
5229 * interps.c (interp_set): New parameter top_level.
5230 Pass it to interpreter's init function. Remember
5231 top level interpreter.
5232 (interpreter_exec_cmd): Adjust.
5233 (top_level_interpreter_data): New.
5234 * main.c (captured_main): Pass 1 for top_level
5235 parameter of interp_set.
5236 * cli/cli-interp.c (cli_interpreter_init): New
5237 parameter top_level.
5238 * tui/tui-interp.c (tui_init): New parameter top_level.
5239
5240 * mi/mi-interp.c (mi_new_thread): New.
5241 (mi_interpreter_init): If top level, register
5242 observer for new threads.
5243
5244 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
5245
5246 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5247
5248 * top.c (execute_command): Disable break and stop
5249 commands in async mode.
5250
5251 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5252
5253 revert:
5254 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5255 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5256 Call target_stop in the INF_QUIT_REQ case.
5257 * Makefile.in (inf-loop.o): Update.
5258
5259 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5260
5261 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5262 Call target_stop in the INF_QUIT_REQ case.
5263 * Makefile.in (inf-loop.o): Update.
5264
5265 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5266
5267 * top.c (execute_command): Enable break, info and interrupt
5268 commands in async mode.
5269
5270 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
5271 Daniel Jacobowitz <dan@codesourcery.com>
5272
5273 * breakpoint.h (breakpoint_restore_shadows): New
5274 declaration.
5275 * breakpoint.c (breakpoint_restore_shadows): New.
5276 (read_memory_nobpt): Delete.
5277 * gdbcore.h (read_memory_nobpt): Delete declaration.
5278 * target.c (memory_xfer_partial): Call
5279 breakpoint_restore_shadows.
5280 (restore_show_memory_breakpoints)
5281 (make_show_memory_beakpoints_cleanup): New.
5282 (show_memory_breakpoints): New.
5283 * target.h (make_show_memory_beakpoints_cleanup): Declare.
5284 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
5285 Make sure we see memory breakpoints when checking if
5286 breakpoint is still there.
5287 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
5288 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
5289 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
5290 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
5291
5292 2008-03-12 Pedro Alves <pedro@codesourcery.com>
5293
5294 * thread.c (add_thread): Use printf_unfiltered to print.
5295
5296 2008-03-12 Joel Brobecker <brobecker@gnat.com>
5297
5298 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
5299 that is true only on x86-solaris and x86_64-solaris.
5300 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
5301 with proc_get_LDT_entry.
5302
5303 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5304
5305 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
5306 * config.in, configure: Regenerate.
5307 * fork-child.c (fork_inferior): Call create_tty_session.
5308 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
5309 (create_tty_session): New function.
5310 * terminal.h: Declare create_tty_session.
5311
5312 2008-03-12 Alan Modra <amodra@bigpond.net.au>
5313
5314 PR 5900
5315 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
5316 * mipsread.c: Include elf/internal.h.
5317 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
5318 to internal range.
5319
5320 2008-03-11 Markus Deuling <deuling@de.ibm.com>
5321
5322 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
5323 to get at the current architecture and at the target specific vector.
5324 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
5325 remove define of I387_ST0_REGNUM.
5326
5327 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
5328
5329 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
5330 get at the current architecture
5331 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
5332 parameter.
5333
5334 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
5335 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
5336
5337 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
5338 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
5339 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
5340
5341 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
5342 at the target specific vector.
5343
5344 (i386_get_longjmp_target): Use get_frame_arch to get at the current
5345 architecture. Use gdbarch_tdep to get at the target specific vector.
5346
5347 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
5348 update caller. Use gdbarch_tdep to get at the target specific vector.
5349
5350 (i386_register_to_value: Use get_frame_arch to get at the current
5351 architecture.
5352
5353 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
5354 parameter.
5355
5356 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5357 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
5358 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
5359 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
5360
5361 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
5362 undef's.
5363
5364 (i387_convert_register_p, i387_register_to_value,
5365 i387_value_to_register): Update call for i386_fp_regnum_p.
5366
5367 * i387-tdep.h: Remove comment.
5368 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
5369 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5370 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
5371 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
5372 I387_MXCSR_REGNUM): Add target specific vector as parameter.
5373
5374 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
5375
5376 * Makefile.in (fork-child.o): Update.
5377 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
5378 argument. Gather all gdbserver features together.
5379 * fork-child.c (exec_wrapper): New variable.
5380 (fork_inferior): Use it.
5381 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
5382 (unset_exec_wrapper_command, _initialize_fork_child): New.
5383
5384 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5385
5386 * source.c (directory_command): Modify the determination of
5387 condition of terminal "from_tty".
5388
5389 2008-03-10 Matt Rice <ratmice@gmail.com>
5390
5391 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5392
5393 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5394
5395 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
5396 of the data passing to strtoulst function.
5397 (info_spu_signal_command): Likewise.
5398
5399 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
5400
5401 * mi/mi-interp.c (mi_command_loop): Remove
5402 commented-out code.
5403
5404 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5405
5406 * remote.c (extended_remote_attach_1): Make local variable pid an int
5407 instead of a pid_t.
5408
5409 2008-03-07 Joel Brobecker <brobecker@adacore.com>
5410
5411 * solib-svr4.c (svr4_same_1): New function, originally extracted
5412 from svr4_same and expanded to handle the sparc64 case.
5413 (svr4_same): Move up and reimplement using svr4_same_1.
5414 (enable_break): Use svr4_same_1 to do shared library name comparisons.
5415
5416 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
5417
5418 * MAINTAINERS: Move self to Paper trail.
5419
5420 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
5421
5422 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
5423 * event-loop.c (call_async_signal_handler): New.
5424 * event-loop.h (call_async_signal_handler)
5425 (gdb_call_async_signal_handler): Declare.
5426 (mark_async_signal_handler): Add comments.
5427 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
5428 * mingw-hdep.c (sigint_event, sigint_handler): New.
5429 (gdb_select): Use them. Wait for the readline signal handler
5430 to finish.
5431 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
5432 * posix-hdep.c (gdb_call_async_signal_handler): New function.
5433 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
5434 New.
5435 (remote_fileio_ctrl_c_signal_handler): Use
5436 gdb_call_async_signal_handler.
5437 (initialize_remote_fileio): Initialize sigint_fileio_token.
5438 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
5439 not initialize tokens here.
5440 (handle_remote_sigint_twice): Likewise. Reinstall
5441 handle_remote_sigint.
5442 (async_remote_interrupt_twice): Just call interrupt_query.
5443 (cleanup_sigint_signal_handler): Do not delete tokens.
5444 (remote_interrupt, remote_interrupt_twice): Use
5445 gdb_call_async_signal_handler.
5446 (interrupt_query): Reinstall the default signal handler.
5447 (_initialize_remote): Initialize tokens here.
5448
5449 2008-03-04 Joel Brobecker <brobecker@adacore.com>
5450
5451 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
5452 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5453 Change the type of the lr register to code_ptr.
5454 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5455 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5456 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5457 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5458 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5459 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5460 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
5461
5462 2008-03-03 James E. Wilson <wilson@tuliptree.org>
5463
5464 * MAINTAINERS: Update my email address.
5465
5466 2008-03-03 Keith Seitz <keiths@redhat.com>
5467
5468 From Dave Murphy <davem@devkitpro.org>:
5469 * configure.ac: Set tcl configdir to win under mingw.
5470 * configure: Regenerate.
5471
5472 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
5473
5474 * breakpoint.c (fetch_watchpoint_value): New function.
5475 (update_watchpoint): Set and clear val_valid. Use
5476 fetch_watchpoint_value. Handle unreadable values on the
5477 value chain. Correct check for user-requested array watchpoints.
5478 (breakpoint_init_inferior): Clear val_valid.
5479 (watchpoint_value_print): New function.
5480 (print_it_typical): Use it. Do not free or clear old_val. Print
5481 watchpoints even if old_val == NULL.
5482 (watchpoint_check): Use fetch_watchpoint_value. Check for values
5483 becoming readable or unreadable.
5484 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
5485 (do_enable_watchpoint): Likewise.
5486 * breakpoint.h (struct breakpoint): Update comment for val. Add
5487 val_valid.
5488 * NEWS: Mention watchpoints on inaccessible memory.
5489
5490 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
5491
5492 * Makefile.in (i386-nat.o): Update.
5493 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
5494 i386_use_watchpoints.
5495 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
5496 i386_use_watchpoints.
5497 * i386-nat.c (i386_stopped_data_address): Take two arguments.
5498 (i386_stopped_by_watchpoint): Update call.
5499 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
5500 * config/i386/nm-i386.h: Conditionalize definitions on
5501 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
5502 (i386_use_watchpoints): Declare.
5503 (i386_stopped_data_address): Update.
5504 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5505 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5506
5507 2008-02-29 Joel Brobecker <brobecker@adacore.com>
5508
5509 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
5510 * version.in: Bump version to 6.8.50.20080229-cvs.
5511
5512 2008-02-28 Markus Deuling <deuling@de.ibm.com>
5513
5514 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
5515 properly.
5516
5517 2008-02-28 Tom Tromey <tromey@redhat.com>
5518
5519 * infcmd.c (notice_args_read): Print result of get_inferior_args.
5520
5521 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5522
5523 * infcmd.c (kill_if_already_running): Make static. Use
5524 target_require_runnable.
5525 * target.c (target_require_runnable): New.
5526 * target.h (target_require_runnable): Declare.
5527
5528 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5529
5530 * frame.c (reinit_frame_cache): Only annotate if frames were
5531 previously valid.
5532
5533 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5534
5535 * regformats/reg-ppc.dat: Rename "ps" to "msr".
5536 * regformats/reg-ppc64.dat: Likewise.
5537
5538 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5539
5540 * features/Makefile (%.dat): Emit xmltarget statement.
5541
5542 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
5543 Generate code to set gdbserver_xmltarget in init_registers_${name}.
5544
5545 * regformats/arm-with-iwmmxt.dat: Regenerate.
5546 * regformats/mips64-linux.dat: Regenerate.
5547 * regformats/mips-linux.dat: Regenerate.
5548 * regformats/rs6000/powerpc-32.dat: Regenerate.
5549 * regformats/rs6000/powerpc-64.dat: Regenerate.
5550 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5551
5552 * regformats/reg-arm.dat: Add xmlarch statement.
5553 * regformats/reg-i386.dat: Likewise.
5554 * regformats/reg-i386-linux.dat: Likewise.
5555 * regformats/reg-x86-64-linux.dat: Likewise.
5556 * regformats/reg-spu.dat: Likewise.
5557
5558 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5559
5560 * remote.c (remote_wait, remote_async_wait): Stop if we receive
5561 an error.
5562
5563 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5564
5565 * utils.c (debug_timestamp): New.
5566 (vfprintf_unfiltered): Print timestamps if requested.
5567 (show_debug_timestamp): New.
5568 (initialize_utils): Register "set debug timestamp".
5569 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
5570
5571 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5572
5573 * breakpoint.c (skip_prologue_sal): New function.
5574 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
5575 computed from a line number.
5576
5577 2008-02-27 Joel Brobecker <brobecker@adacore.com>
5578
5579 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
5580 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5581 Set PC register type to "code_ptr".
5582 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5583 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5584 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5585 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5586 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5587 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5588 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
5589 Regenerate.
5590
5591 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5592
5593 * regformats/regdat.sh: Rename init_registers function in
5594 generated file to init_registers_${name}.
5595
5596 * regformats/reg-crisv32.dat: Set "name" to crisv32.
5597 * regformats/reg-ppc64.dat: Set "name" to ppc64.
5598 * regformats/reg-s390x.dat: Set "name" to s390x.
5599
5600 2008-02-26 Greg Law <glaw@undo-software.com>
5601
5602 * regcache.c (registers_changed): Call reinit_frame_cache.
5603
5604 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5605
5606 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
5607 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
5608 and svr4_fetch_objfile_link_map.
5609 * Makefile.in (sh-linux-tdep.o): Update.
5610
5611 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
5612
5613 * amd64-tdep.c (amd64_classify): Add support for decimal float
5614 types.
5615 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
5616 use the struct return convention.
5617
5618 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
5619
5620 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
5621 to old format. Discard breakpoint address if shared library is
5622 unloaded.
5623 (breakpoint_1): Adjust formatting of table header accordingly.
5624
5625 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
5626
5627 * remote.c (remote_get_threadlist): If the response
5628 is empty, don't try to parse it.
5629
5630 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
5631
5632 Unbreak 'target async'.
5633 * serial.c (serial_async): Set the
5634 handler function before enabling async
5635 mode.
5636
5637 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
5638
5639 * solib-svr4.c (enable_break): Convert r_brk to a code address.
5640
5641 2008-02-21 Pedro Alves <pedro@codesourcery.com>
5642
5643 * remote.c (extended_remote_attach_1): Set attach_flag.
5644 (extended_remote_create_inferior_1): Clear attach_flag.
5645
5646 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5647
5648 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
5649 r_brk_offset.
5650 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5651 * solib-svr4.c (solib_svr4_r_brk): New.
5652 (open_symbol_file_object, svr4_current_sos): Always check the
5653 debug base.
5654 (svr4_fetch_objfile_link_map): Do not set debug_base.
5655 (enable_break): Use r_brk if it is set.
5656 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
5657 (svr4_lp64_fetch_link_map_offsets): Likewise.
5658 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
5659
5660 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5661 Mark Kettenis <kettenis@gnu.org>
5662
5663 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
5664 trad_frame_saved_reg.
5665 (trad-frame.h): New include.
5666
5667 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
5668 instead of frame_obstack_zalloc.
5669 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
5670
5671 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
5672
5673 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5674
5675 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
5676 from disassemble_info instead of gdbarch_byte_order.
5677
5678 * mips-tdep.c (gdb_print_insn_mips): Likewise.
5679 * arm-tdep.c (gdb_print_insn_arm): Likewise.
5680
5681 2008-02-20 Markus Deuling <deuling@de.ibm.com>
5682
5683 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
5684 gdbarch as parameter.
5685
5686 * gdbarch.{c,h}: Regenerate.
5687
5688 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5689 parameter.
5690 * mem-break.c (default_memory_insert_breakpoint)
5691 (default_memory_remove_breakpoint): Likewise.
5692 * target.h (default_memory_remove_breakpoint)
5693 (default_memory_insert_breakpoint): Likewise.
5694
5695 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5696 parameter. Replace current_gdbarch by gdbarch.
5697 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5698 (m32r_memory_remove_breakpoint): Likewise.
5699
5700 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
5701
5702 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
5703
5704 2008-02-19 Joel Brobecker <brobecker@adacore.com>
5705
5706 * NEWS: Add entry describing Add support improvements.
5707
5708 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5709
5710 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
5711 M68K_FP0_REGNUM.
5712
5713 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5714
5715 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
5716 register_offset_hack anymore.
5717
5718 * regcache.{c,h} (register_offset_hack): Remove.
5719
5720 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5721
5722 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
5723
5724 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
5725 current_gdbarch by gdbarch.
5726 (hppa64_hpux_find_global_pointer): Likewise.
5727 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
5728 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
5729 find_global_pointer.
5730
5731 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
5732 parameter.
5733 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5734
5735 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
5736 of gdbarch_num_regs.
5737
5738 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
5739 replace current_gdbarch by gdbarch.
5740 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
5741
5742 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5743
5744 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
5745 and replace current_gdbarch by gdbarch.
5746
5747 (store_register): Update call for exec_one_dummy_insn.
5748 (fetch_register, store_register): Update call of regmap.
5749
5750 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
5751 parameter and replace current_gdbarch by gdbarch.
5752
5753 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
5754 the current architecture. Update call for getregs_supplies and
5755 getfpregs_supplies.
5756 (ppcnbsd_fetch_inferior_registers): Likewise.
5757
5758 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
5759 replace current_gdbarch by gdbarch.
5760 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
5761 get_regcache_arch to get at the current architecture. Update call for
5762 getfpregs_supplies.
5763
5764 2008-02-18 Markus Deuling <deuling@de.ibm.com>
5765
5766 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
5767 variables.
5768
5769 2008-02-15 Markus Deuling <deuling@de.ibm.com>
5770
5771 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
5772
5773 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
5774
5775 * NEWS: Mention pending breakpints in MI.
5776
5777 2008-02-14 Markus Deuling <deuling@de.ibm.com>
5778
5779 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
5780
5781 2008-02-13 Markus Deuling <deuling@de.ibm.com>
5782
5783 Add script to build and test GDB using enable-targets=all.
5784
5785 * gdb_buildall.sh: New file.
5786
5787 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
5788
5789 * NEWS (New native configurations): Xtensa GNU/Linux.
5790 (New targets): Xtensa GNU/Linux.
5791 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
5792 xtensa-linux-tdep.o
5793 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
5794 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
5795 * configure.tgt (xtensa*-*-linux*): New entry.
5796 * xtensa-config.c (xtensa_tdep): New variable.
5797 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
5798 (rmap): Change format based on new macro XTREG.
5799 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
5800 * xtensa-linux-nat.c: New.
5801 * xtensa-linux-tdep.c: New.
5802 * xtensa-xtregs.c: New.
5803 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
5804 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
5805 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
5806 (xtensa_register_t): New field coprocessor.
5807 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
5808 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
5809 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
5810 Update to handle privileged registers.
5811 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
5812 (xtensa_push_dummy_call): Set windowstart register correctly.
5813 (call0_analyze_prologue): Initialize xtensa_default_isa.
5814 (xtensa_derive_tdep): New.
5815 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
5816 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
5817 Call xtensa_derive_tdep().
5818 * config/xtensa/linux.mh: New.
5819 * regformats/reg-xtensa.dat: New.
5820
5821 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
5822
5823 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
5824 (filenames.h): New include.
5825 * Makefile.in (corelow.o): Add dependency for filenames.h.
5826
5827 2008-02-08 Doug Evans <dje@google.com>
5828
5829 * source.c (find_and_open_source): Always rewrite absolute filenames.
5830
5831 2008-02-07 Doug Evans <dje@google.com>
5832
5833 * breakpoint.c: #include "hashtab.h".
5834 (ambiguous_names_p): New fn.
5835 (update_breakpoint_locations): When restoring bp enable status, don't
5836 compare function names if any functions have same name.
5837 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
5838
5839 2008-02-07 Joel Brobecker <brobecker@adacore.com>
5840
5841 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
5842 instead of just a VEC*. Update use of SV.
5843 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
5844
5845 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5846
5847 * NEWS: Put all new commands since gdb-6.7 together.
5848
5849 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5850
5851 * ada-lang.c: #include "vec.h".
5852 (struct string_vector, new_string_vector, string_vector_append):
5853 Delete.
5854 (char_ptr): New typedef.
5855 (DEF_VEC_P (char_ptr)): New VEC type.
5856 (symbol_completion_add): Update profile to take the new VEC type
5857 instead of the old string_vector structure. Update code accordingly.
5858 (ada_make_symbol_completion_list): Use the new VEC type instead of
5859 the old string_vector structure, and update the code accordingly.
5860 * Makefile.in (ada-lang.o): Add dependency on vec.h.
5861
5862 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5863
5864 * p-exp.y: Set current_type in missing places.
5865 (leftdiv_is_integer): New static variable.
5866 Typecast right operand of BINOP_DIV to long_double if both operands
5867 are integers.
5868
5869 2008-02-06 Maciej W. Rozycki <macro@mips.com>
5870
5871 * remote-mips.c (set_breakpoint): Rename to...
5872 (mips_set_breakpoint): ... this.
5873 (clear_breakpoint): Rename to...
5874 (mips_clear_breakpoint): ... this.
5875 (common_breakpoint): Rename to...
5876 (mips_common_breakpoint): ... this.
5877 (check_lsi_error): Rename to...
5878 (mips_check_lsi_error): ... this.
5879
5880 2007-02-05 Joel Brobecker <brobecker@adacore.com>
5881
5882 * language.h (struct language_defn): Add new field
5883 la_make_symbol_completion_list.
5884 * symtab.c (default_make_symbol_completion_list): Renames
5885 make_symbol_completion_list.
5886 (make_symbol_completion_list): New function.
5887 * symtab.h (default_make_symbol_completion_list): Add declaration.
5888 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
5889 (auto_language, local_language): Likewise.
5890 * objc-lang.c (objc_language_defn): Likewise.
5891 * scm-lang.c (scm_language_defn): Likewise.
5892 * m2-lang.c (m2_language_defn): Likewise.
5893 * f-lang.c (f_language_defn): Likewise.
5894 * jv-lang.c (java_language_defn): Likewise.
5895 * p-lang.c (pascal_language_defn): Likewise.
5896 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
5897 (minimal_language_defn): Likewise.
5898 * ada-lang.c (struct string_vector): New structure.
5899 (new_string_vector, string_vector_append, ada_unqualified_name)
5900 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
5901 (ada_make_symbol_completion_list): New functions.
5902 (ada_language_defn): Set la_make_symbol_completion_list.
5903 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
5904 this function is static.
5905
5906 2008-02-05 Kevin Buettner <kevinb@redhat.com>
5907
5908 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
5909 to account for call site optimizations.
5910
5911 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
5912
5913 * tracepoint.c (read_actions): Handle end-of-text indicator
5914 in action list properly. (Committed by Jim Blandy)
5915
5916 2008-02-05 Jim Blandy <jimb@red-bean.com>
5917
5918 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
5919 pseudoregister, not an internal error.
5920 Reported by: Andrzej Zaborowski
5921
5922 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5923
5924 * varobj.c (c_value_of_variable): Use xstrdup.
5925
5926 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5927
5928 Update stored rendition of varobj value when format changes.
5929 * varobj.c (varobj_set_display_format): Recomputed
5930 print_value.
5931 (c_value_of_variable): Return print_value.
5932
5933 2008-02-03 Doug Evans <dje@google.com>
5934
5935 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
5936 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
5937 * valops.c (value_one): New function.
5938 * value.h (value_one): Declare.
5939
5940 Fix argument promotion for binary arithmetic ops for C.
5941 * valarith.c (unop_result_type): New fn.
5942 (binop_result_type): New fn.
5943 (value_binop): Move result type computation to binop_result_type.
5944 (value_pos, value_neg, value_complement): Move result type
5945 computation to unop_result_type.
5946
5947 PR 2384
5948 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5949 Return basetype, fieldno if found. All callers updated.
5950 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
5951 objfile.
5952 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5953 * symfile.h (fill_in_vptr_fieldno): Delete.
5954
5955 2008-02-02 Doug Evans <dje@google.com>
5956
5957 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
5958
5959 * typeprint.c (*): Whitespace cleanup.
5960
5961 2008-02-02 Mark Kettenis <kettenis@gnu.org>
5962 Luis Machado <luisgpm@br.ibm.com>
5963 Thiago Jung Bauermann <bauerman@br.ibm.com>
5964
5965 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
5966 don't fit into registerson the stack the way GCC does.
5967
5968 2008-02-01 Joel Brobecker <brobecker@adacore.com>
5969
5970 * symtab.c (symbol_set_names): Do not add an entry in the demangling
5971 hash table for Ada symbols. Just store the linkage name as is,
5972 and leave the demangled_name as NULL.
5973
5974 2007-02-01 Joel Brobecker <brobecker@adacore.com>
5975
5976 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
5977 in the global scope.
5978 (new_symbol): Likewise.
5979
5980 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5981
5982 * breakpoint.c (break_command_1): Return void.
5983 (break_command_really): Return void. Rethrow
5984 exceptions instead of returning.
5985 (gdb_breakpoint): Remove the error_message parameter.
5986 Return void. Rename to set_breakpoint.
5987 * gdb.h (gdb_breakpoint): Rename and move to...
5988 * breakpoint.h (set_breakpoint): ...here.
5989 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
5990 event hooks even if exception is thrown. Adjust to
5991 gdb_breakpoint interface changes.
5992
5993
5994 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
5995
5996 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
5997 float in both first and second word in the doubleword, to support
5998 old and new ABIs.
5999
6000 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
6001
6002 Properly rethrow exception. This fixes errors
6003 about non-existent functions for -break-insert.
6004 * breakpoint.c (break_command_really): Use throw_exception
6005 for rethrowing. If rethrowing, don't print the exception.
6006
6007 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6008
6009 * NEWS: Mention Decimal Floating Point support.
6010
6011 2008-01-31 Joel Brobecker <brobecker@adacore.com>
6012
6013 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
6014 value type to builtin_type_void_func_ptr.
6015
6016 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
6017
6018 * s390-tdep.c (is_float_singleton, is_float_like,
6019 alignment_of, s390_return_value): Make checks for
6020 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
6021
6022 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
6023 Thiago Jung Bauermann <bauerman@br.ibm.com>
6024
6025 * infcmd.c (default_print_registers_info): Also print hex
6026 raw contents for TYPE_CODE_DECFLOAT registers.
6027 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
6028 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
6029 (rs6000_register_name): Add support for DFP pseudo-registers.
6030 (rs6000_pseudo_register_type): Likewise.
6031 rs6000_pseudo_register_reggroup_p): Likewise.
6032 (ppc_pseudo_register_read): New function.
6033 (ppc_pseudo_register_write): Likewise.
6034 (rs6000_pseudo_register_read): Likewise.
6035 (rs6000_pseudo_register_write): Likewise.
6036 (e500_pseudo_register_read): Move checks to
6037 rs6000_pseudo_register_read.
6038 (e500_pseudo_register_write): Move checks to
6039 rs6000_pseudo_register_write.
6040 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
6041 rs6000_pseudo_register_read and rs6000_pseudo_register_write
6042 in gdbarch if SPE or DFP is available. Adjust gdbarch's
6043 num_pseudo_regs to account for DFP pseudo regs.
6044
6045 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6046
6047 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
6048 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
6049 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
6050 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
6051 e500_pseudo_register_read, e500_pseudo_register_write): Use
6052 IS_SPE_PSEUDOREG macro.
6053 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
6054 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
6055 Remove initialization of tdep->ppc_ev31_regnum.
6056
6057 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6058
6059 * printcmd.c (print_formatted): Handle references as for unformatted
6060 prints.
6061
6062 2008-01-30 Joel Brobecker <brobecker@adacore.com>
6063
6064 * eval.c (evaluate_subexp_standard): Add handling of user
6065 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
6066
6067 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
6068
6069 * eval.c (evaluate_subexp_standard): Support
6070 BINOP_INTDIV opcode.
6071
6072 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
6073
6074 * valarith.c (value_binop): Add floating-point BINOP_MIN and
6075 BINOP_MAX cases.
6076 For BINOP_EXP, use length and signedness of left operand only for
6077 result, as for shifts.
6078 For integral operands to BINOP_EXP, use new integer_pow and
6079 uinteger_pow functions so as to get full range of results.
6080 (integer_pow): New function.
6081 (uinteger_pow): New function.
6082
6083 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
6084
6085 Use vector for varobj_list_children interface.
6086 * gdb/varobj.c (varobj_list_children): Return vector
6087 of varobjs.
6088 * gdb/varobj.h (varobj_list_children): Adjust
6089 prototype.
6090 (varobj_p): Declare. Declare vector thereof.
6091 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
6092 for varobj_list_children change.
6093 * Makefile.in (varobj_h): Update dependencies.
6094
6095 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6096
6097 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
6098 TYPE_CODE_DECFLOAT arguments.
6099 (ppc64_sysv_abi_push_dummy_call) Likewise.
6100 (get_decimal_float_return_value): New function.
6101 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
6102 values by calling get_decimal_float_return_value.
6103 (ppc64_sysv_abi_return_value): Likewise.
6104
6105 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
6106
6107 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
6108 for preprocessor macro information. Formatting changes.
6109
6110 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6111
6112 * remote.c (struct remote_state): Add cached_wait_status.
6113 (remote_exec_file): New variable.
6114 (PACKET_vAttach, PACKET_vRun): New constants.
6115 (extended_remote_restart): Do not query for status.
6116 (struct start_remote_args): New.
6117 (remote_start_remote): Take it as a second argument. Check
6118 whether the target is running. Issue an error for non-running
6119 non-extended targets. Cache the wait status. Set inferior_ptid
6120 here.
6121 (remote_open_1): Prompt to disconnect non-running targets. Make
6122 sure the target is marked running. Do not set inferior_ptid here.
6123 Update call to remote_start_remote. Do not call remote_check_symbols
6124 if the target is not running.
6125 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
6126 argument. Handle a non-running target.
6127 (remote_detach): Use it.
6128 (extended_remote_detach): New.
6129 (remote_disconnect): Fix typo. Use remoute_mourn_1.
6130 (extended_remote_attach_1, extended_remote_attach)
6131 (extended_async_remote_attach): New.
6132 (remote_vcont_resume): Remove unused variable.
6133 (remote_wait, remote_async_wait): Use any cached wait status.
6134 (putpkt_binary, getpkt): Clear any cached wait status.
6135 (extended_remoute_mourn_1): New.
6136 (extended_remote_mourn): Use it.
6137 (extended_async_remote_mourn, extended_remote_run): New.
6138 (extended_remote_create_inferior_1): New.
6139 (extended_remote_create_inferior): Use it.
6140 (extended_remote_async_create_inferior): Likewise.
6141 (remote_xfer_partial): Skip for non-executing targets.
6142 (init_extended_remote_ops): Set to_detach and to_attach.
6143 (init_extended_async_remote_ops): Likewise. Use
6144 extended_async_remote_mourn.
6145 (_initialize_remote): Register vAttach, vRun, and
6146 set remote exec-file.
6147 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
6148
6149 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6150
6151 * Makefile.in (symfile.o): Update.
6152 * NEWS: Mention exec tracing support.
6153 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
6154 exec events.
6155 * infcmd.c (kill_if_already_running, detach_command)
6156 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
6157 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
6158 (follow_exec): Do not check may_follow_exec. Do not mourn and push
6159 targets. Apply the sysroot path to the loaded executable. Use
6160 no_shared_libraries.
6161 * linux-nat.c (linux_child_follow_fork): Print fork following
6162 messages if verbose.
6163 (kill_wait_callback): Kill again before waiting a second time.
6164 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
6165 no_shared_libraries.
6166
6167 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6168
6169 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
6170
6171 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6172
6173 * nto-tdep.h: Remove #include "defs.h".
6174 * nto-tdep.c: Add #include "defs.h".
6175 * Makefile.in (nto_tdep_h): Update dependencies.
6176 (nto-tdep.o): Likewise.
6177
6178 2008-01-29 Joel Brobecker <brobecker@adacore.com>
6179
6180 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
6181 and use it.
6182 (proceed, start_remote): Update call to wait_for_inferior.
6183 * inferior.h (wait_for_inferior): Update declaration.
6184 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
6185 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
6186 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
6187 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
6188
6189 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
6190
6191 * varobj (adjust_value_for_child_access): Added checking for
6192 returned value from gdb_value_ind.
6193 (c_describe_child): Likewise.
6194 (cplus_describe_child): Fixed a typo.
6195
6196 2008-01-29 Jim Blandy <jimb@red-bean.com>
6197
6198 * MAINTAINERS: Update my info.
6199
6200 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6201
6202 Use multiple locations for hardware watchpoints.
6203 This eliminates the need to traverse value chain, doing
6204 various checks, in three different places.
6205
6206 * breakpoint.h (struct bp_location): New fields
6207 lengths and watchpoint_type.
6208 (struct breakpoint): Remove the val_chain field.
6209 * breakpoint.c (is_hardware_watchpoint): New.
6210 (free_valchain): Remove.
6211 (update_watchpoint): New.
6212 (insert_bp_location): For hardware watchpoint, just
6213 directly insert it.
6214 (insert_breakpoints): Call update_watchpoint_locations
6215 on all watchpoints. If we have failed to insert
6216 any location of a hardware watchpoint, remove all inserted
6217 locations.
6218 (remove_breakpoint): For hardware watchpoints, directly
6219 remove location.
6220 (watchpoints_triggered): Iterate over locations.
6221 (bpstat_stop_status): Use only first location of
6222 a resource watchpoint.
6223 (delete_breakpoint): Don't call free_valchain.
6224 (print_one_breakpoint): Don't print all
6225 locations for watchpoints.
6226 (breakpoint_re_set_one): Use update_watchpoint for
6227 watchpoints.
6228
6229 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6230
6231 Don't reset watchpoint block on solib load.
6232
6233 * breakpoint.c (insert_bp_location): For watchpoints,
6234 recompute condition.
6235 (breakpoint_re_set_one): Instead of recomputing value
6236 and condition for watchpoints, just reset value and
6237 let insert_breakpoints/insert_bp_location recompute it.
6238 Don't do anything about disabled watchpoint.
6239
6240 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
6241
6242 * valarith.c (value_binop): Handle unsigned integer
6243 division by zero.
6244
6245 2008-01-28 Kevin Buettner <kevinb@redhat.com>
6246
6247 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6248 instruction pattern that appears frequently in position
6249 independent code. Fix bug in code which looks for "fmov" and
6250 backtracks if no "fmov" is found.
6251
6252 2008-01-28 Doug Evans <dje@google.com>
6253
6254 * dbxread.c (read_dbx_symtab): Fix indentation.
6255 Reformat comments to 80 columns.
6256 Move local var def closer to only use.
6257
6258 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6259
6260 * fork-child.c (SHELL_FILE): Remove #ifndef.
6261 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6262
6263 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
6264
6265 * i386-tdep.c (i386_skip_noop): New function.
6266 (i386_analyze_prologue): Call i386_skip_noop function.
6267
6268 2008-01-24 Michael Snyder <msnyder@specifix.com>
6269
6270 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6271 * win32-nat.c (win32_xfer_partial): Ditto.
6272 * target.c (default_xfer_partial): Minor whitespace adjustment.
6273
6274 2008-01-24 Pedro Alves <pedro@codesourcery.com>
6275
6276 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6277 strip bit 1 even if pc doesn't point to thumb code.
6278
6279 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
6280
6281 * remote.c (remote_wait): Handle SIGINT between packets.
6282 (remote_async_wait): Likewise.
6283
6284 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
6285 Chris Demetriou <cgd@google.com>
6286
6287 * thread.c (add_thread_silent): Renamed
6288 from add_thread.
6289 (print_thread_events): New variable definition.
6290 (show_print_thread_events): New function.
6291 (_initialize_thread): Add "set print thread-events" and
6292 "show print thread-events" commands.
6293 (add_thread): Announce new thread.
6294 * gdbthread.h (add_thread_silent): Declare.
6295 (print_thread_events): New variable declaration.
6296 * inf-ttrace.c (inf_ttrace_wait): Don't
6297 inform about new thread, as add_thread is always
6298 called too, and will take care of that.
6299 * infrun.c (handle_inferior_event): Likewise.
6300 * procfs.c (procfs_wait): Likewise.
6301 * remote.c (remote_currthread): Likewise.
6302 * sol-thread.c (sol_thread_wait): Likewise.
6303 * win32-nat.c (get_win32_debug_event): Likewise.
6304 * linux-thread-db.c (attach_thread): Likewise.
6305 Remove the verbose parameter.
6306 (check_event): Make detach_thread be verbose
6307 only if print_thread_events is set.
6308 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
6309 about new thread. This is called only from
6310 linux-thread-db.c:attach_thread, which will take care.
6311 Remove the verbose parameter.
6312 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
6313
6314 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
6315
6316 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
6317
6318 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
6319
6320 * breakpoint.c (break_command_really): New parameter
6321 ignore_count.
6322 (break_command_1): Pass 0 as
6323 ignore_count to break_command_really.
6324 (gdb_breakpoint): Pass ignore_count to
6325 break_command_really.
6326
6327 2008-01-21 Kevin Buettner <kevinb@redhat.com>
6328
6329 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
6330 sigcontext struct via pointer.
6331 (struct sigframe comment): Update to show new field `psc'.
6332
6333 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
6334
6335 * infrun.c (handle_inferior_event): If
6336 we failed to remove breakpoints, error,
6337 don't try to increment PC by hand.
6338
6339 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
6340
6341 Add NetBSD/hppa target and host support.
6342
6343 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
6344 (hppabsd_gregset): Move to ...
6345 (hppabsd_regset_from_core_section): Rename
6346 hppaobsd_regset_from_core_section and move to ...
6347 (hppabsd_find_global_pointer): Update comment.
6348 (hppabsd_init_abi): Make global. Do not register
6349 hppabsd_regset_from_core_section.
6350 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
6351 move to ...
6352 (_initialize_hppabsd_tdep): Move to ...
6353 * hppaobsd-tdep.c: ... here. New file.
6354 * hppnbsd-tdep.c: New file.
6355 * hppnbsd-nat.c: New file.
6356 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
6357 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6358 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
6359 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
6360 * configure.host (hppa*-*-netbsd*): New entry.
6361 * configure.tgt (hppa*-*-netbsd*): New entry.
6362 (hppa*-*-openbsd*): Update.
6363 * NEWS (New native configuration): Mention NetBSD/hppa.
6364 (New targets): Mention NetBSD/hppa.
6365
6366 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6367
6368 * gdbarch.sh (function_list): Add new property bits_big_endian to
6369 gdbarch structure.
6370 * gdbarch.{c,h}: Regenerate.
6371
6372 * value.c (struct value): Replace BITS_BIG_ENDIAN by
6373 gdbarch_bits_big_endian (comment).
6374 (unpack_field_as_long, modify_field): Likewise.
6375 * value.h: Likewise (comment).
6376 * valops.c (value_slice): Likewise.
6377 * valarith.c (value_subscript, value_bit_index): Likewise.
6378 * gdbtypes.h (field): Likewise (comment).
6379 * eval.c (evaluate_subexp_standard): Likewise.
6380 * dwarf2read.c (dwarf2_add_field): Likewise.
6381 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
6382 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
6383
6384 * defs.h (BITS_BIG_ENDIAN): Remove.
6385
6386 2008-01-18 Markus Deuling <deuling@de.ibm.com>
6387
6388 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
6389 function calls.
6390 * m2-exp.y (yylex): Likewise.
6391 * objc-exp.y (yylex): Likewise.
6392
6393 * defs.h (DEPRECATED_STREQN): Remove.
6394
6395 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
6396
6397 * MAINTAINERS: Update my email address.
6398
6399 2008-01-17 Jim Blandy <jimb@codesourcery.com>
6400
6401 * README: Mention gdbserver/README.
6402
6403 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6404
6405 * valarith.c (value_binop): Handle BINOP_INTDIV
6406 for unsigned and signed integers.
6407
6408 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6409
6410 * s390-tdep.c (s390_gdbarch_init): Set default long double
6411 type to 128-bit IEEE quad.
6412
6413 2008-01-17 Joel Brobecker <brobecker@adacore.com>
6414
6415 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
6416
6417 2008-01-16 Mark Kettenis <kettenis@gnu.org>
6418
6419 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
6420
6421 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
6422 * value.c: All callers changed.
6423
6424 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6425
6426 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
6427 DEPRECATED_STREQ by its expression.
6428 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
6429 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
6430 (scan_xcoff_symtab): Likewise.
6431 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
6432 * f-lang.c (find_common_for_function): Likewise.
6433 * objc-exp.y (parse_number): Likewise.
6434
6435 * defs.h (DEPRECATED_STREQ): Remove.
6436
6437 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6438
6439 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
6440 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
6441 get_frame_arch to get at the current_architecture. Update AM33_MODE
6442 call.
6443 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
6444 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
6445 architecture.
6446 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
6447
6448 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6449
6450 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
6451 parameter.
6452 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6453
6454 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
6455 current_gdbarch by gdbarch. Update caller.
6456
6457 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
6458 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
6459 the current architecture. Update calls of
6460 amd64_native_gregset_supplies_p.
6461 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
6462 (amd64bsd_store_inferior_registers): Likewise.
6463
6464 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6465
6466 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
6467 Replace current_gdbarch by gdbarch. Update caller.
6468
6469 2008-01-16 Markus Deuling <deuling@de.ibm.com>
6470
6471 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
6472 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
6473 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
6474 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
6475 (stabsect_build_psymtabs): Fix indentation.
6476
6477 2008-01-15 Michael Snyder <msnyder@specifix.com>
6478
6479 * corelow.c (core_xfer_partial): Comment, cut/paste error.
6480
6481 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6482
6483 * win32-nat.c (win32_create_inferior): Restore code calling
6484 CloseHandle on ProcessInformation structure.
6485
6486 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
6487
6488 * configure.ac: Check for void * as 3 argument of ptrace.
6489 * configure: regenerate.
6490
6491 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6492
6493 * alpha-tdep.c (alpha_heuristic_proc_start)
6494 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
6495 current_gdbarch by gdbarch.
6496
6497 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
6498 current architecture by frame_info. Update alpha_heuristic_proc_start
6499 call.
6500
6501 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
6502 get_frame_arch to get at the current architecture by frame_info. Update
6503 alpha_sigtramp_register_address call.
6504
6505 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
6506 current_gdbarch by gdbarch. Update caller.
6507 (convert_to_extended, convert_from_extended): Add endianess parameter
6508 for comparison. Update caller.
6509 (arm_extract_return_value, arm_store_return_value): Use
6510 get_regcache_arch to get at the current architecture.
6511
6512 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
6513 current_gdbarch by gdbarch. Update caller.
6514 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
6515 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
6516
6517 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
6518 gdbarch as parameter. Update caller.
6519 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
6520 current_gdbarch by gdbarch. Update caller.
6521
6522 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
6523 update caller. Replace current_gdbarch by gdbarch.
6524
6525 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
6526 the current architecture. Replace current_gdbarch by gdbarch.
6527 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6528 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
6529 expression. Add gdbarch as parameter and replace current_gdbarch with
6530 it. Update caller.
6531 (M6811_TDEP): Remove.
6532 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
6533 architecture.
6534 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
6535 current_gdbarch by gdbarch. Update caller.
6536
6537 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
6538 update caller.
6539 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
6540 by gdbarch.
6541
6542 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
6543 caller. Relace current_gdbarch by gdbarch.
6544 (altivec_register_p, spe_register_p): Likewise.
6545 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
6546 parameter.
6547 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
6548 altivec_register_p and spe_register_p.
6549
6550 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
6551 caller. Replace current_gdbarch by gdbarch.
6552 (score_analyze_prologue): use get_frame_arch to get at the current
6553 architecture.
6554
6555 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
6556 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
6557 current_gdbarch by gdbarch. Update caller.
6558 (sparc_frame_cache): Use get_frame_arch to get at the current
6559 architecture.
6560 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
6561 sparc_analyze_prologue.
6562
6563 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
6564 parameter.
6565
6566 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6567
6568 * exec.c: #include "arch-utils.h"
6569 (print_section_info): Use gdbarch_from_bfd to get at the
6570 current architecture. Replace current_gdbarch. Fix indention. Replace
6571 deprecated_print_address_numeric by paddress.
6572 * Makefile.in (exec.o) Add dependency to arch-utils.h.
6573
6574 * valprint.c (val_print_string): Replace
6575 deprecated_print_address_numeric.
6576 * tracepoint.c (trace_mention, scope_info): Likewise.
6577 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
6578 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
6579 (maintenance_check_symtabs): Likewise.
6580 * symfile.c (list_overlays_command): Likewise.
6581 * stack.c (frame_info, print_block_frame_labels): Likewise.
6582 * printcmd.c (print_address, print_address_demangle)
6583 (address_info): Likewise.
6584 * corefile.c (memory_error): Likewise.
6585 * infcmd.c (jump_command): Likewise.
6586 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
6587 (mention, delete_breakpoint): Likewise.
6588 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
6589 * dwarf2read.c (dump_die): Likewise.
6590 * ada-valprint.c (ada_val_print_1): Likewise.
6591 * f-valprint.c (f_val_print): Likewise.
6592 * linux-fork.c (info_forks_command): Likewise.
6593 * m32r-com.c (m32r_load_section, m32r_load)
6594 (m32r_upload_command): Likewise.
6595
6596 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
6597
6598 2008-01-11 Markus Deuling <deuling@de.ibm.com>
6599
6600 * gdbarch.sh (skip_prologue): Add gdbarch
6601 as parameter.
6602 * gdbarch.{c,h}: Regenerate.
6603
6604 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
6605 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6606 * avr-tdep.c (avr_skip_prologue): Likewise.
6607 * cris-tdep.c (cris_skip_prologue): Likewise.
6608 * frv-tdep.c (frv_skip_prologue): Likewise.
6609 * h8300-tdep.c (h8300_skip_prologue): Likewise.
6610 * hppa-tdep.c (hppa_skip_prologue): Likewise.
6611 * i386-tdep.c (i386_skip_prologue): Likewise.
6612 * ia64-tdep.c (ia64_skip_prologue): Likewise.
6613 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
6614 * m32r-tdep.c (m32r_skip_prologue): Likewise.
6615 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
6616 * m68k-tdep.c (m68k_skip_prologue): Likewise.
6617 * m88k-tdep.c (m88k_skip_prologue): Likewise.
6618 * mep-tdep.c (mep_skip_prologue): Likewise.
6619 * mips-tdep.c (mips_skip_prologue): Likewise.
6620 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
6621 * mt-tdep.c (mt_skip_prologue): Likewise.
6622 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
6623 * score-tdep.c (score_skip_prologue): Likewise.
6624 * sh64-tdep.c (sh64_skip_prologue): Likewise.
6625 * sh-tdep.c (sh_skip_prologue): Likewise.
6626 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
6627 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
6628 * spu-tdep.c (spu_skip_prologue): Likewise.
6629 * v850-tdep.c (v850_skip_prologue): Likewise.
6630 * vax-tdep.c (vax_skip_prologue): Likewise.
6631 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6632 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
6633
6634 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
6635 current_gdbarch by gdbarch.
6636 * m32c-tdep.c (m32c_skip_prologue): Likewise.
6637 * s390-tdep.c (s390_skip_prologue): Likewise.
6638
6639 2008-01-10 Doug Evans <dje@google.com>
6640
6641 * defs.h (struct continuation_arg): Fix typo in comment.
6642 * target.c (target_translate_tls_address): Fix comment spelling error.
6643
6644 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
6645
6646 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
6647 (DOUBLEST_SCAN_FORMAT): Likewise.
6648 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
6649 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
6650 * c-exp.y (parse_number): Likewise.
6651 * jv-exp.y (parse_number): Likewise.
6652 * objc-exp.y (parse_number): Likewise.
6653 * p-exp.y (parse_number): Likewise.
6654
6655 2008-01-09 Joel Brobecker <brobecker@adacore.com>
6656
6657 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
6658 (check_typedef): Likewise.
6659
6660 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
6661
6662 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
6663 seen_double_big_d, treat the new H, D, and DD modifiers as length
6664 modifiers.
6665
6666 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6667
6668 * dwarf2read.c (read_enumeration_type): Add comment.
6669
6670 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6671
6672 * config.in: Regenerate.
6673
6674 2008-01-08 Joel Brobecker <brobecker@adacore.com>
6675
6676 * ada-lang.c (ada_convert_actual): Renames convert_actual.
6677 Make non-static.
6678 (ada_convert_actuals): Delete.
6679 * ada-lang.h (ada_convert_actual): Add declaration.
6680 (ada_convert_actuals): Remove declaration.
6681 * infcall.c: #include "ada-lang.h".
6682 (value_arg_coerce): Add new parameter sp. Update function
6683 documetnation. Add handling of Ada function call parameters.
6684 * Makefile.in (infcall.o): Update dependencies.
6685
6686 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6687
6688 * ada-lang.c (ensure_lval): Fix value lval kind.
6689 (convert_actual): Add handling for arguments passed by reference.
6690
6691 2008-01-08 Doug Evans <dje@google.com>
6692
6693 * dbxread.c (read_dbx_symtab): Fix indentation.
6694
6695 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6696
6697 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
6698 (valarith.o): Depend on dfp.h.
6699 (valops.o): Likewise.
6700 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
6701 (set_decnumber_context): New function.
6702 (decimal_check_errors): Likewise.
6703 (decimal_from_number): Likewise.
6704 (decimal_to_number): Likewise.
6705 (decimal_from_string): Use set_decnumber_context and
6706 decimal_check_errors.
6707 (decimal_from_integral): New function.
6708 (decimal_from_floating): Likewise.
6709 (decimal_to_double): Likewise.
6710 (promote_decimal): Likewise.
6711 (decimal_binop): Likewise.
6712 (decimal_is_zero): Likewise.
6713 (decimal_compare): Likewise.
6714 (decimal_convert): Likewise.
6715 * dfp.h (decimal_from_integral): New prototype.
6716 (decimal_from_floating): Likewise.
6717 (decimal_to_double): Likewise.
6718 (decimal_binop): Likewise.
6719 (decimal_is_zero): Likewise.
6720 (decimal_compare): Likewise.
6721 (decimal_convert): Likewise.
6722 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
6723 call to value_from_decfloat.
6724 * valarith.c: Include dfp.h.
6725 (value_args_as_decimal): New function.
6726 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
6727 (value_logical_not): Likewise.
6728 (value_equal): Likewise.
6729 (value_less): Likewise.
6730 (value_pos): Likewise.
6731 (value_neg): Formatting fix.
6732 * valops.c: Include dfp.h.
6733 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
6734 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
6735 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
6736 (value_from_decfloat): Remove expect_type argument.
6737 * value.h (value_from_decfloat): Update prototype.
6738
6739 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
6740
6741 Ignore change in name of dynamic linker during
6742 execution on Solaris. This also unbreaks pending breakpoints.
6743
6744 * solist.h (struct target_so_ops): New field same.
6745 * solib-svr4.c (svr4_same): New.
6746 (_initialize_svr4_solib): Register svr4_same.
6747 * solib.c (update_solib_list): Use ops->same, if available.
6748
6749 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
6750
6751 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
6752 when using MS-DOS paths.
6753
6754 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6755
6756 * NEWS: Mention --pid and --core command line behaviour changes.
6757
6758 2008-01-05 Pedro Alves <pedro@codesourcery.com>
6759
6760 * main.c (captured_main): Remove 'count' varible and the
6761 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
6762 --pid options were issued simultaneously. If an explicit pid
6763 option was passed, don't fallback to core file. Detect extra
6764 arguments better in the presence of explicit pid or core
6765 arguments.
6766
6767 2008-01-05 Joel Brobecker <brobecker@adacore.com>
6768
6769 * ada-lang.c (ada_which_variant_applies): Correctly compute
6770 the value of the discriminant when the variant record is packed.
6771
6772 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6773
6774 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
6775 that are used to differentiate homonyms.
6776
6777 2008-01-04 Jerome Guitton <guitton@adacore.com>
6778
6779 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
6780 when the type is an anonymous pointer type.
6781 (ada_check_typedef): Avoid a seg fault when the type is null.
6782 * ada-typeprint.c (print_array_type): Add support for pointer
6783 to packed arrays.
6784
6785 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
6786
6787 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
6788
6789 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6790
6791 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
6792 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
6793
6794 2008-01-04 Joel Brobecker <brobecker@adacore.com>
6795
6796 * ada-exp.y (chop_separator): New function.
6797 (write_selectors): Rewrite to re-use chop_separator.
6798 (ada_nget_field_index, get_symbol_field_type): New functions.
6799 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
6800 expressions.
6801
6802 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6803
6804 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
6805 of SYMBOL_VALUE when working with function symbols.
6806
6807 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6808
6809 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
6810 expressions. These expressions do not need to be rewriten.
6811
6812 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6813
6814 * dwarf2read.c (read_enumeration_type): Flag type as stub if
6815 the given die is a declaration.
6816
6817 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6818
6819 * ada-lang.c (ada_array_bound_from_type): Make non-static.
6820 Handle properly the case when the index type is an enumerated type.
6821 Do not return the subtype of the bounds type, just return the
6822 bounds type directly - this is not needed and is more consistent
6823 with what we do for arrays when no XA parallel type exists.
6824
6825 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6826
6827 * ada-lang.c (static_unwrap_type): Add forward declaration.
6828 (template_to_static_fixed_type): Fields of dynamic types sometimes
6829 also need to be unwrapped. Take this into account.
6830 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
6831 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
6832 * ada-typeprint.c (ada_print_type): Get the typename from
6833 the original type, not the base type.
6834
6835 2008-01-03 Jerome Guitton <guitton@adacore.com>
6836
6837 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
6838 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
6839 Update calls to ada_to_fixed_type.
6840 (ada_template_to_fixed_record_type_1): Ditto, but without looking
6841 for the tag.
6842 (ada_to_fixed_type): Add check_tag parameter; do not look for
6843 tag if null. When looking for a tag, use a fixed record type.
6844 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
6845 * ada-valprint.c (printable_val_type, ada_value_print): Update
6846 calls to ada_to_fixed_type.
6847
6848 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
6849
6850 * doublest.c (convert_floatformat_to_doublest): Call
6851 floatformat_to_doublest instead of floatformat_to_double and use
6852 DOUBLEST variables.
6853 (convert_doublest_to_floatformat): Call floatformat_from_doublest
6854 instead of floatformat_from_double and use DOUBLEST variables.
6855
6856 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
6857
6858 * MAINTAINERS (Write After Approval): Add self.
6859
6860 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6861
6862 * symfile.c (set_initial_language): Make non-static.
6863 * symfile.h (set_initial_language): Add declaration.
6864 * language.c: #include "symfile.h".
6865 (set_language): Call set_initial_language if the frame language
6866 could not be determined.
6867
6868 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
6869
6870 * eval.c (evaluate_subexp_for_address): Provide frame address to
6871 locate_var_value only if it will be needed.
6872
6873 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6874
6875 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
6876
6877 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6878
6879 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
6880 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
6881 This is needed to make sure that any other treatment applied
6882 to the resulting value does not fail for spurious reason,
6883 such as trying to take the address of this value.
6884
6885 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6886
6887 * ada-lang.c (ada_value_equal): Dereference reference types when
6888 comparing arrays.
6889
6890 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
6891
6892 Updated copyright notices for most files.
6893
6894 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
6895
6896 * win32-nat.c (psapi_module_handle): Remove static.
6897 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
6898 return first module found if base_address is zero. Don't initialize
6899 psapi function pointers here. Convert to cygwin paths when
6900 appropriate.
6901 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
6902 executable name. Use get_module_name when that fails or when
6903 !__CYGWIN__.
6904 (_initialize_psapi): New function. Initialize psapi stuff before it is
6905 needed or issue a warning if it is not found. Move psapi_module_handle
6906 here.
6907
6908 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6909
6910 * ada-lang.c (ada_remove_trailing_digits): New function.
6911 (ada_remove_po_subprogram_suffix): New function.
6912 (ada_decode): Improve. Move the description of the algorithm
6913 directly inside the code, instead of in the function global
6914 description.
6915
6916 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6917
6918 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
6919 and always print the dereferenced value.
6920
6921 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6922
6923 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
6924 of the case where the first argument is a reference.
6925 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
6926
6927 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6928
6929 Implement support for Ada interface types.
6930
6931 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
6932 (ada_is_ignored_field): Ignore fields that are a dispatch table
6933 of a tagged type.
6934
6935 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6936
6937 * top.c (print_gdb_version): Update copyright year.
6938
6939 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6940
6941 * ChangeLog-2007: New ChangeLog rotation.
6942 * ChangeLog: Reset for 2008.
6943 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
6944 ChangeLog-2007.
6945
6946 For older changes see ChangeLog-2007.
6947 \f
6948 Local Variables:
6949 mode: change-log
6950 left-margin: 8
6951 fill-column: 74
6952 version-control: never
6953 coding: utf-8
6954 End:
This page took 0.324463 seconds and 4 git commands to generate.