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