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