* nto-procfs.c (do_attach): Form proper ptid including pid and tid.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
103fd00d
AR
12008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
2
3 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
4 (procfs_create_inferior): Fetch list of threads.
5
3fdfcbf1
AR
62008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
7
8 * nto-procfs.c (procfs_files_info): Fix a typo.
9 (procfs_create_inferior): Make attach_flag per-inferior.
10
997339e8
PP
112008-10-23 Tom Tromey <tromey@redhat.com>
12
13 * python/python-value.c (value_to_value_object): Initialize
14 owned_by_gdb field.
15 (valpy_new): Likewise.
16
d6b67a5e
JK
172008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
18 Joel Brobecker <brobecker@adacore.com>
19
20 * ada-tasks.c (task_states, long_task_states): Use constant N_()
21 initializer. Define the strings as const.
22 (short_task_info, info_task): Translate the strings above.
23
aadc346a
JB
242008-10-22 Joel Brobecker <brobecker@adacore.com>
25
26 * NEWS: Add entry for new feature (Ada tasking support).
27
282008-10-22 Joel Brobecker <brobecker@adacore.com>
77f120bf
JB
29
30 * configure.ac: On alpha-osf, error out if enable_tui is set to
31 "yes", and set enable_tui to "no" if previously set to "auto".
32 Check for waddstr only if TUI support was requested. Move the
33 part of the configure script that updates various Makefile
34 variables up, together with the check for waddstr.
35 * configure: Regenerate.
36
4af88198
JB
372008-10-22 Joel brobecker <brobecker@adacore.com>
38
39 * gdbtypes.c (copy_type): New function.
40 * gdbtypes.h (copy_type): Add declaration.
41 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
42 variable, then use it.
43
0ef643c8
JB
442008-10-22 Joel Brobecker <brobecker@adacore.com>
45
46 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
47 (target_get_ada_task_ptid): New macro.
48 * target.c (default_get_ada_task_ptid): New function.
49 (update_current_target): Inherit field default_get_ada_task_ptid.
50 (update_current_target): Make default_get_ada_task_ptid the default
51 value for field to_get_ada_task_ptid.
52 * ada-lang.h (struct task_control_block): Delete. Never used.
53 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
54 Likewise.
55 (struct ada_task_info): New.
56 (ada_task_is_alive, ada_find_printable_frame)
57 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
58 declarations.
59 (ada_build_task_list): Update prototype.
60 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
61 * ada-lang.c (ada_find_printable_frame): Make non-static.
62 * ada-tasks.c: New file.
63 * Makefile.in (SFILES): Add ada-tasks.c.
64 (COMMON_OBS): Add ada-tasks.o.
65 * linux-thread-db.c (thread_db_find_thread_from_tid)
66 (thread_db_get_ada_task_ptid): New functions.
67 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
68
c209f847
TT
692008-10-22 Tom Tromey <tromey@redhat.com>
70
71 PR gdb/2506:
72 * c-exp.y (string_exp): New production.
73 (exp): Use it.
74
5bc60cfb
JK
752008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
76
77 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
78 removed before.
79
7f99b190
JB
802008-10-20 Joel Brobecker <brobecker@adacore.com>
81
82 * NEWS: Add entry mentioning thread-support on Tru64
83
7a052092
JB
842008-10-19 Joel Brobecker <brobecker@adacore.com>
85
86 * dec-thread.c: New file.
87 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
88 (NAT_CLIBS): Define.
89
40e12b06
HZ
902008-10-19 Hui Zhu <teawater@gmail.com>
91
92 * infrun.c (handle_inferior_event): Set "stop_pc" when
93 TARGET_WAITKIND_NO_HISTORY.
94
f9176c46
PA
952008-10-19 Pedro Alves <pedro@codesourcery.com>
96
97 * python/python-value.c (value_object_methods)
98 (value_object_as_number, value_object_as_mapping): Move to bottom
99 of file.
100 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
101 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
102 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
103 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
104 (valpy_richcompare, valpy_dereference): Don't forward-declare.
105 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
106
4058b839
PA
1072008-10-18 Pedro Alves <pedro@codesourcery.com>
108
109 * infrun.c (adjust_pc_after_break): Do nothing if executing in
110 reverse.
111
f42429a6
PA
1122008-10-17 Pedro Alves <pedro@codesourcery.com>
113
114 * infcmd.c (GO_USAGE): Delete.
115 (go_command): Adjust.
116
b2175913
MS
1172008-10-17 Michael Snyder <msnyder@vmware.com>
118 Target interface for reverse debugging.
119 * target.h (enum target_waitkind):
120 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
121 (struct target_ops): New method to_can_execute_reverse.
122 (target_can_execute_reverse): New macro.
123 * target.c (update_current_target): Inherit to_can_execute_reverse.
124
125 Remote interface for reverse debugging.
126 * remote.c (remote_can_execute_reverse): New target method.
127 (remote_resume): Check for reverse exec direction, and send
128 appropriate command to target.
129 (remote_wait_as): Check target response for NO_HISTORY status.
130 Also check for empty reply (target doesn't understand "bs" or "bc).
131 (remote_vcont_resume): Jump out if attempting reverse execution.
132
133 Event handling interface for reverse debugging.
134 * infrun.c (execution_direction): New state variable.
135 (enum inferior_stop_reason): Add NO_HISTORY reason.
136 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
137 Handle stepping over a function call in reverse.
138 Handle stepping thru a line range in reverse.
139 Handle setting a step-resume breakpoint in reverse.
140 Handle stepping into a function in reverse.
141 Handle stepping between line ranges in reverse.
142 (print_stop_reason): Print reason for NO_HISTORY.
143 (step_into_function): Rename to handle_step_into_function.
144 (handle_step_into_function_backward): New function.
145 (set_exec_direction_func, show_exec_direction_func): New funcs.
146 (proceed): No need to singlestep over a breakpoint
147 when resuming in reverse.
148
149 * inferior.h (enum exec_direction_kind): New enum.
150 (execution_direction): Export new execution state variable.
151
152 * breakpoint.c (make_breakpoint_silent): New function.
153 * breakpoint.h (make_breakpoint_silent): Export.
154 * infcmd.c (finish_command): Check for reverse exec direction.
155 (finish_backward): New function, handle finish cmd in reverse.
156
157 User interface for reverse execution.
158 * Makefile.in (reverse.c): New file.
159 * reverse.c: New file. User interface for reverse execution.
160
153ccabd
PA
1612008-10-17 Pedro Alves <pedro@codesourcery.com>
162
163 * remote.c (record_currthread): Add inferior before child threads.
164 (remote_threads_info): Check for exited threads. Mention
165 notification order.
166
ce78b96d
JB
1672008-10-16 Joel Brobecker <brobecker@adacore.com>
168
169 * breakpoint.h (enum bptype): New enum bp_catchpoint.
170 Delete bp_catch_fork and bp_catch_vfork.
171 (struct breakpoint_ops): Add new methods "insert", "remove"
172 and "breakpoint_hit".
173 * breakpoint.c (create_fork_vfork_event_catchpoint)
174 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
175 (insert_catchpoint): Remove handling of bp_catch_fork and
176 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
177 catchpoints instead.
178 (insert_bp_location, update_breakpoints_after_exec)
179 (remove_breakpoint, bpstat_check_location, bpstat_what)
180 (allocate_bp_location): Likewise.
181 (print_it_typical, print_one_breakpoint_location, mention): Remove
182 handling of bp_catch_fork and bp_catch_vfork breakpoints.
183 (ep_is_catchpoint, user_settable_breakpoint)
184 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
185 (breakpoint_re_set_one, disable_command, enable_command):
186 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
187 bp_catchpoint breakpoints.
188 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
189 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
190 New functions.
191 (catch_fork_breakpoint_ops): New static constant.
192 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
193 (print_it_catch_vfork, print_one_catch_vfork)
194 (print_mention_catch_vfork): New functions.
195 (catch_vfork_breakpoint_ops): New static constant.
196 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
197 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
198 to create the fork and vfork catchpoints.
199 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
200 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
201 fields.
202 (catch_exception_unhandled_breakpoint_ops): Likewise.
203 (catch_assert_breakpoint_ops): Likewise.
204
3c9c4b83
PA
2052008-10-16 Pedro Alves <pedro@codesourcery.com>
206
207 * remote.c (set_general_process): New.
208 (remote_check_symbols): Use it.
209
5c952c9b
PA
2102008-10-16 Pedro Alves <pedro@codesourcery.com>
211
212 * remote.c (push_remote_target): Delete.
213 * target.h (push_remote_target): Delete declaration.
214
ce5ce7ed
PA
2152008-10-15 Pedro Alves <pedro@codesourcery.com>
216
217 * remote.c (remote_close): Unregister remote_desc from the event
218 loop. Always restore the SIGINT handler. Discard all inferiors
219 here.
220 (remote_detach_1, remote_disconnect): Don't unregister the file
221 descriptor from the event loop here.
222 (interrupt_query, readchar, getpkt_sane): Pop the target instead
223 of morning the current inferior.
224 (remote_kill): Don't unregister the file descriptor from the event
225 loop here.
226 (remote_mourn_1): Don't discard inferiors here.
227
1c5cfe86
PA
2282008-10-15 Pedro Alves <pedro@codesourcery.com>
229
230 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
231 locations list.
232 (moribund_breakpoint_here_p): Record the moribund
233 location in the moribund_locations vector.
234 * breakpoint.h (moribund_breakpoint_here_p): Declare.
235 (displaced_step_fixup): Check if the breakpoint the thread was
236 trying to step over has been removed since having been placed in
237 the displaced stepping queue.
238 (adjust_pc_after_break): In non-stop mode, check for a moribund
239 breakpoint at the stop pc.
240 (handle_inferior_event): Don't retire moribund breakpoints on
241 TARGET_WAITKIND_IGNORE.
242
2432008-10-15 Pedro Alves <pedro@codesourcery.com>
ad53cd71
PA
244
245 * infrun.c (displaced_step_prepare): Switch thread temporarily
246 while we're here.
247 (displaced_step_fixup): Make sure target_resume sees ptid as
248 inferior_ptid. Add debug output.
249
63c715c6
PA
2502008-10-14 Pedro Alves <pedro@codesourcery.com>
251
252 Remove dead code.
253
254 * breakpoint.c (show_breakpoint_hit_counts): Delete.
255 (print_one_breakpoint_location): Adjust.
256 (breakpoint_clear_ignore_counts): Delete.
257 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
258 declaration.
259 * target.c (generic_mourn_inferior): Don't clear ignore
260 counts (never reached).
261
c764a876
DE
2622008-10-10 Doug Evans <dje@google.com>
263
264 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
265 for dwarf section offsets and sizes.
266 (dwarf2_cu): Ditto.
267 (dwarf2_per_cu_data): Ditto.
268 (create_all_comp_units): Change offset to unsigned int.
269 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
270 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
271
272 * dwarf2read.c (read_initial_length): Delete cu_header arg.
273 All callers updated.
274 (read_checked_initial_length_and_offset): New function.
275 (read_offset_1): New function.
276 (read_offset): Call it.
277 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
278 instead of read_initial_length. Call read_offset_1 instead of
279 read_offset.
280
281 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
282 All callers updated.
283
284 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
285 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
286 DW_AT_HP_block_index.
287
5fe04517
PA
2882008-10-10 Pedro Alves <pedro@codesourcery.com>
289
290 * remote.c (remote_start_remote): Always tell the stub if we're in
291 extended-remote.
292
c8e38a49
PA
2932008-10-09 Pedro Alves <pedro@codesourcery.com>
294
295 * remote.c (remote_wait): Rename to...
296 (remote_wait_as): ... this. Don't loop here. If the remote
297 didn't stop, return TARGET_WAITKIND_IGNORE.
298 (remote_wait): New, reimplemented on top of remote_wait_as.
299
9ca12bbf
TS
3002008-10-09 Thomas Schwinge <tschwinge@gnu.org>
301
d11d9deb
TS
302 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
303 is fixed upstream.
304
20249808
TS
305 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
306
9ca12bbf
TS
307 * MAINTAINERS (Write After Approval): Add myself.
308
0b62613e
PA
3092008-10-09 Pedro Alves <pedro@codesourcery.com>
310
311 Make it compile without warnings.
312
313 * procfs.c (create_procinfo): Initialize `parent'.
314 (dead_procinfo): Pass a constant string as format to error.
315 (procfs_address_to_host_pointer): Add cast to gdb_type *.
316 (procfs_find_LDT_entry): Adjust format string to long int
317 ptid.tid.
318 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
319 (procfs_xfer_memory): Adjust prototype.
320 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
321 variable as printf_filtered format.
322 (procfs_make_note_section): Change type of auxv local to gdb_byte.
323 * Makefile.in: Remove special rule.
324
c8d104ad
PA
3252008-10-09 Pedro Alves <pedro@codesourcery.com>
326 Daniel Jacobowitz <dan@codesourcery.com>
327
328 * remote.c (remote_open_1): Move acknowledging any pending ack,
329 querying supported features, activating noack mode, finding the
330 target description, enabling extended remote, and checking remote
331 symbols from here ...
332 (remote_start_remote): ... to here.
333 (remote_open_1): Don't pop the target if it is already gone.
334 * target.c (unpush_target): Check for the dummy target.
335
efdb2a86
PA
3362008-10-09 Pedro Alves <pedro@codesourcery.com>
337
338 * ser-mingw.c: Include "command.h".
339 (pipe_windows_open): Declare locals at the beginning of the scope.
340
e24a49d8
PA
3412008-10-08 Pedro Alves <pedro@codesourcery.com>
342
343 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
344 field.
345 (remote_open_1): Clear waiting_for_stop_reply.
346 (remote_resume): Set waiting_for_stop_reply.
347 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
348 (putpkt_binary): If we're in async mode and waiting for a stop
349 reply, bail out with an error.
350 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
351
3084dd77
PA
3522008-10-08 Pedro Alves <pedro@codesourcery.com>
353
354 * remote.c (remote_get_thread_info): If the remote doesn't support
355 the query, bail out.
356
d6a843b5
JK
3572008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
358
359 Convert static_kind into loc_kind enum.
360 * gdbtypes.h (enum field_loc_kind): New.
361 (union field_location): New field dwarf_block.
362 (struct field): Rename static_kind as loc_kind.
363 (FIELD_STATIC_KIND): Rename to ...
364 (FIELD_LOC_KIND): ... here.
365 (TYPE_FIELD_STATIC_KIND): Rename to ...
366 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
367 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
368 (TYPE_FIELD_STATIC): Remove.
369 (TYPE_FIELD_BITPOS): Reformat.
370 (SET_FIELD_BITPOS): New.
371 (FIELD_PHYSADDR): Rename to ...
372 (FIELD_STATIC_PHYSADDR): ... here.
373 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
374 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
375 (FIELD_PHYSNAME): Rename to ...
376 (FIELD_STATIC_PHYSNAME): ... here.
377 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
378 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
379 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
380 (field_is_static): New declaration.
381 * gdbtypes.c (field_is_static): New function.
382 (copy_type_recursive): Update throughout.
383 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
384 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
385 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
386
c289427b
PA
3872008-10-07 Thomas Schwinge <tschwinge@gnu.org>
388 Pedro Alves <pedro@codesourcery.com>
389
390 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
391 avoid a name collision.
392 * gnu-nat.c: Likewise.
393 * i386gnu-nat.c: Likewise.
394
8c1c099f
JB
3952008-10-07 Joel Brobecker <brobecker@adacore.com>
396
397 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
398 of arguments that are references.
399
8a498d38
DE
4002008-10-06 Doug Evans <dje@google.com>
401
d97bc12b
DE
402 * dwarf2read.c (dwarf2_die_debug): New static global.
403 (dump_die_shallow): Renamed from dump_die, New args f, indent.
404 Print to specified file, indented by the specified amount.
405 (dump_die_for_error): New fn. Point all existing callers of
406 dump_die here.
407 (dump_die_die_1,dump_die): New fns, replaces ...
408 (dump_die_list): ... deleted.
409 (read_die_and_children_1): Old contents of read_die_and_children
410 moved here.
411 (read_die_and_children): Rewrite.
412 (read_die_and_siblings): Call read_die_and_children_1 instead of
413 read_die_and_children.
414 (_initialize_dwarf2_read): New option "debug dwarf2-die".
415 * gdbinit.in (pdie): New macro.
416
45452591
DE
417 * dwarf2read.c (offset_in_cu_p): New function.
418 (find_partial_die,follow_die_ref): Use it.
419
8a498d38
DE
420 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
421 (maintenance_info_psymtabs): Ditto.
422
360551e4 4232008-10-05 Michael Snyder <msnyder@vmware.com>
8002d778
MS
424
425 * infrun.c (handle_inferior_event): Fix typo in comment.
426
c1828f25
VP
4272008-10-04 Vladimir Prus <vladimir@codesourcery.com>
428
429 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
430
5ef73790
PP
4312008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
432
433 PR gdb/2384:
434 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
435 different lifetimes.
436
352efb28 4372008-10-03 Joel Brobecker <brobecker@adacore.com>
a7125ea9
JB
438
439 * solib-osf.c: Include "solib.h".
440
d1a41061
PP
4412008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
442
443 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
444 and check for out-of-memory condition.
445 * exec.c (exec_file_command): Call it.
446 * infrun.c (handle_command, xdb_handle_command): Likewise.
447 * interps.c (interpreter_exec_cmd): Likewise.
448 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
449 * procfs.c (info_proc_cmd): Likewise.
450 * remote-mips.c (common_open): Likewise.
451 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
452 (gdbsim_open): Likewise.
453 * remote.c (extended_remote_run, remote_put_command)
454 (remote_get_command, remote_delete_command): Likewise.
455 * ser-mingw.c (pipe_windows_open): Likesise.
456 * source.c (add_path, show_substitute_path_command)
457 (unset_substitute_path_command, set_substitute_path_command):
458 Likewise.
459 * stack.c (backtrace_command): Likewise.
460 * symfile.c (symbol_file_command, generic_load)
461 (add_symbol_file_command): Likesise.
462 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
463 (maintenance_print_msymbols): Likewise.
464
d78df370
JK
4652008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
466
467 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
468 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
469 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
470 valops.c (value_cast), varobj.c (c_number_of_children): Replace
471 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
472 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
473 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
474 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
475 (f77_get_upperbound): ... this function handling now only
476 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
477 (f77_get_dynamic_lowerbound): Replace with ...
478 (f77_get_lowerbound): ... this function handling now only
479 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
480 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
481 Update their callers.
482 * eval.c (evaluate_subexp_standard): Update their callers.
483 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
484 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
485 prototypes.
486 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
487 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
488 the lower_bound_was_default variable. Update the
489 f77_get_dynamic_upperbound, f77_get_upperbound and
490 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
491 * gdbtypes.c (print_bound_type): Remove the function.
492 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
493 LOWER_BOUND_TYPE.
494 * gdbtypes.h (enum array_bound_type): Remove.
495 (struct main_type): Remove the fields upper_bound_type and
496 lower_bound_type. Comment the new overload of the field artificial.
497 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
498 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
499 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
500 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
501
40debb5a
TT
5022008-10-02 Tom Tromey <tromey@redhat.com>
503
504 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
505
db5f024e
DJ
5062008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
507
508 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
509 comments.
510 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
511 (mips_linux_init_abi): Do not override skip_trampoline_code.
512 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
513 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
514 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
515 (mips_skip_mips16_trampoline_code): Rename from
516 mips_skip_trampoline_code.
517 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
518 * infrun.c (handle_inferior_event): Do not pass zero to
519 in_solib_dynsym_resolve_code.
520
9f9d052e
PM
5212008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
522 Pedro Alves <pedro@codesourcery.com>
523
524 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
525
526
bd2e94ce
TT
5272008-10-01 Tom Tromey <tromey@redhat.com>
528
529 * symtab.c (search_symbols): Update.
530 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
531
8b41ec65
TT
5322008-10-01 Tom Tromey <tromey@redhat.com>
533
534 * symfile.c (syms_from_objfile): Update.
535 (reread_symbols): Update.
536 * objfiles.h (OBJF_SYMS): Remove.
537 (OBJF_REORDERED): Renumber.
538 (OBJF_SHARED): Likewise.
539 (OBJF_READNOW): Likewise.
540 (OBJF_USERLOADED): Likewise.
541
712f90be
TT
5422008-10-01 Tom Tromey <tromey@redhat.com>
543
544 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
545 (find_pc_sect_symtab): Likewise.
546 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
547 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
548 MSYMBOL_TYPE, not SYMBOL_TYPE.
549 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
550 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
551 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
552 MSYMBOL_TYPE.
553 * m2-exp.y (yylex): Use SYMBOL_CLASS.
554
b887350f
TT
5552008-10-01 Tom Tromey <tromey@redhat.com>
556
557 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
558 (scan_xcoff_symtab): Update.
559 * mdebugread.c (record_minimal_symbol): Update.
560 (parse_partial_symbols): Update.
561 * elfread.c (record_minimal_symbol): Update.
562 * dbxread.c (record_minimal_symbol): Update.
563 * coffread.c (record_minimal_symbol): Update.
564 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
565 (sh64_elf_make_msymbol_special): Update.
566 * mips-tdep.c (mips_elf_make_msymbol_special): Use
567 MSYMBOL_TARGET_FLAG_1.
568 (mips_elf_make_msymbol_special): Likewise.
569 (msymbol_is_special): Likewise.
570 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
571 (install_minimal_symbols): Likewise.
572 (prim_record_minimal_symbol): Update.
573 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
574 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
575 (MSYMBOL_SET_RTI): Redefine.
576 (MSYMBOL_IS_RTC): Redefine.
577 (MSYMBOL_IS_RTI): Redefine.
578 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
579 (MSYMBOL_IS_SPECIAL): Redefine.
580 * symtab.h (struct minimal_symbol) <info>: Remove.
581 <target_flag_1, target_flag_2>: New fields.
582 (MSYMBOL_INFO): Remove.
583 (MSYMBOL_TARGET_FLAG_1): New macro.
584 (MSYMBOL_TARGET_FLAG_2): Likewise.
585 (prim_record_minimal_symbol_and_info): Update.
586
d35e5795
JB
5872008-09-30 Joel Brobecker <brobecker@adacore.com>
588
589 * ada-lang.c (is_digits_suffix): Delete unused function.
590
d37209fd
JB
5912008-09-30 Paul Hilfinger <hilfinger@adacore.com>
592
593 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
594 moduli >= 2**31.
595
5962008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
597
598 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
599 variant branch.
600 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
601 supposed to be null. Fixes debugger segfaults.
602 (is_unchecked_variant): New function.
603 (to_fixed_variant_branch_type): Modify to leave unchecked unions
604 untouched.
605 (ada_template_to_fixed_record_type_1): Fix comment.
606
3d0b0fa3
JB
6072008-09-30 Joel Brobecker <brobecker@adacore.com>
608
609 * ada-lang.c (standard_exc): New static constant.
610 (ada_exception_catchpoint_cond_string): Add special handling
611 for the predefined exceptions.
612
cdc7bb92
JB
6132008-09-30 Joel Brobecker <brobecker@adacore.com>
614
615 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
616 the code accordingly.
617
6b0d7253
JB
6182008-09-30 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
621 treatment of expect_type. Return the correct type when dereferencing
622 an integer.
623
9a044a89
TT
6242008-09-30 Tom Tromey <tromey@redhat.com>
625
626 PR gdb/2484:
627 * symtab.c (struct add_macro_name_data): New struct.
628 (add_macro_name): New function.
629 (default_make_symbol_completion_list): Complete macro names.
630 * scm-lang.c (scm_language_defn): Update.
631 * p-lang.c (pascal_language_defn): Update.
632 * objc-lang.c (objc_language_defn): Update.
633 * macrotab.h (macro_callback_fn): Add user_data argument.
634 (macro_for_each): Likewise.
635 (macro_for_each_in_scope): Declare.
636 * macrotab.c: (struct macro_for_each_data): New struct.
637 (foreach_macro): Use it.
638 (macro_for_each): Likewise.
639 (foreach_macro_in_scope): New function.
640 (macro_for_each_in_scope): Likewise.
641 * macrocmd.c (print_one_macro): Add argument.
642 (macro_list_command): Pass NULL to macro_for_each.
643 * m2-lang.c (m2_language_defn): Update.
644 * language.h (struct language_defn) <la_macro_expansion>: New
645 field.
646 (macro_expansion): New enum.
647 * language.c (unknown_language_defn): Update. Fix order of
648 initializers.
649 (auto_language_defn): Likewise.
650 (local_language_defn): Update.
651 * jv-lang.c (java_language_defn): Update.
652 * f-lang.c (f_language_defn): Update.
653 * c-lang.c (c_language_defn): Update.
654 (cplus_language_defn): Likewise.
655 (asm_language_defn): Likewise.
656 (minimal_language_defn): Likewise.
657 * ada-lang.c (ada_language_defn): Update.
658
b084d499
JB
6592008-09-30 Joel Brobecker <brobecker@adacore.com>
660
661 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
662 (get_scope_pc_bounds): Use it.
663
2fae03e8
TT
6642008-09-27 Tom Tromey <tromey@redhat.com>
665
666 * NEWS: Update.
667 * macrocmd.c (extract_identifier): Add is_parameter argument.
668 (macro_define_command): Update.
669 (macro_undef_command): Likewise.
670 * macroexp.c (stringify): New function.
671 (find_parameter): Likewise.
672 (gather_arguments): Add nargs argument. Handle varargs.
673 (substitute_args): Add is_varargs and va_arg_name arguments.
674 Handle varargs, splicing, stringification. Use find_parameter.
675 (expand): Handle varargs.
676
5c6ce71d
TT
6772008-09-27 Tom Tromey <tromey@redhat.com>
678
679 * scm-lang.c (scm_language_defn): Update.
680 * p-typeprint.c (pascal_print_typedef): New function.
681 * p-lang.h: (pascal_print_typedef): Declare.
682 * p-lang.c (pascal_language_defn): Update.
683 * objc-lang.c (objc_language_defn): Update.
684 * m2-typeprint.c (m2_print_typedef): New function.
685 * m2-lang.h (m2_print_typedef): Declare.
686 * m2-lang.c (m2_language_defn): Update.
687 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
688 Remove.
689 (struct language_defn) <la_print_typedef>: New field.
690 (default_print_typedef): Declare.
691 (LA_PRINT_TYPEDEF): New define.
692 * language.c (unknown_language_defn): Update.
693 (auto_language_defn): Update.
694 (local_language_defn): Update.
695 * jv-lang.c (java_language_defn): Update.
696 * f-lang.c (f_language_defn): Update.
697 * c-typeprint.c (c_print_typedef): New function.
698 * c-lang.h (c_print_typedef): Declare.
699 * c-lang.c (c_language_defn): Update.
700 (cplus_language_defn): Update.
701 (asm_language_defn): Update.
702 (minimal_language_defn): Update.
703 * ada-lang.c (ada_language_defn): Update.
704 * typeprint.c (default_print_typedef): New function.
705
09be204e
TT
7062008-09-27 Tom Tromey <tromey@redhat.com>
707
708 * jv-exp.y (insert_exp): Define using ISO syntax.
709 (copy_exp): Likewise.
710 (push_expression_name): Likewise.
711 (push_fieldnames): Likewise.
712 (java_type_from_name): Likewise.
713 (yyerror): Likewise.
714 (yylex): Likewise.
715 (parse_number): Likewise.
716
3cd9d164
JB
7172008-09-26 Joel Brobecker <brobecker@adacore.com>
718
719 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
720
e3168615
JB
7212008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
722
723 * stack.c (print_frame_args): Fix typos in comments.
724
8b8655b3
TJB
7252008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
726
727 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
728
6fbd21a1
VP
7292008-09-24 Vladimir Prus <vladimir@codesourcery.com>
730
731 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
732
45ef8ce0
AS
7332008-09-24 Andreas Schwab <schwab@suse.de>
734
735 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 736 account. Avoid excessive function calls.
45ef8ce0 737
9cbfa09e
DE
7382008-09-23 Doug Evans <dje@google.com>
739
07128da0
DE
740 * dcache.c (state_chars): New static global.
741 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
742 All uses updated.
743 (dcache_info): Print cache state as mnemonically useful letters instead
744 of magic numbers.
745
9cbfa09e
DE
746 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
747
d4c0a7a0
TT
7482008-09-22 Tom Tromey <tromey@redhat.com>
749
750 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
751 printf_filtered.
752
6ca15a4b
PA
7532008-09-22 Pedro Alves <pedro@codesourcery.com>
754
755 * infrun.c (follow_exec): Don't do a generic mourn. Instead
756 inline the required bits.
757 * breakpoint.h (enum inf_context): Add inf_execd.
758
795e548f
PA
7592008-09-22 Pedro Alves <pedro@codesourcery.com>
760
761 * infrun.c (handle_inferior_event): In the follow exec case,
762 context-switch before doing anything else.
763
54a012c9
PA
7642008-09-22 Pedro Alves <pedro@codesourcery.com>
765
766 * top.c (any_thread_of, kill_or_detach): New functions.
767 (quit_target): Iterate over all inferiors, killing or detaching
768 accordingly.
769
181e7f93
PA
7702008-09-22 Pedro Alves <pedro@codesourcery.com>
771
772 Remove the attach_flag global, and make it per-inferior.
773
774 * inferior.h (attach_flag): Delete.
775 (inferior_process): Declare.
776 * solib.c (update_solib_list): Adjust.
777 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
778 * inf-ptrace.c (inf_ptrace_detach): Adjust.
779 (inf_ptrace_files_info): Get it from the current inferior.
780 * inf-ttrace.c (inf_ttrace_attach): Adjust.
781 (inf_ttrace_files_info): Get it from the current
782 inferior.
783 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
784 (clear_sigint_trap): Get it from the current process.
785 * remote.c (extended_remote_attach_1)
786 (extended_remote_create_inferior_1): Adjust.
787 * top.c (quit_confirm, quit_target): Get it from the current inferior.
788 * procfs.c (do_detach): Adjust.
789 (procfs_wait): Get it from the event inferior.
790 (procfs_files_info): Get it from the current inferior.
791 * nto-procfs.c (procfs_files_info): Likewise.
792 (procfs_attach): Adjust. Set the attach_flag here.
793 (do_attach): Don't set it here.
794 (procfs_detach): Don't clear it.
795 (procfs_mourn_inferior): Don't clear it.
796 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
797 * target.c (attach_flag): Delete.
798 (generic_mourn_inferior): Don't clear it.
799 * win32-nat.c (get_win32_debug_event): Get it from the event
800 process.
801 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
802 in the inferior accordingly.
803 (win32_attach): Don't set the attach_flag here. Pass 1 to
804 do_intial_win32_stuff.
805 (win32_files_info): Get it from the current inferior.
806 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
807 do_intial_win32_stuff.
808
d6b48e9c
PA
8092008-09-22 Pedro Alves <pedro@codesourcery.com>
810
811 Make the stop_soon global be per-inferior instead.
812
813 * infcmd.c (attach_command_post_wait): Adjust.
814 (attach_command): Likewise.
815
816 * inferior.h (stop_soon): Delete.
817 (struct inferior): Add stop_soon member.
818
819 * infrun.c (stop_soon): Delete.
820 (clear_proceed_status, start_remote)
821 (fetch_inferior_event, handle_inferior_event): Adjust.
822 (signal_stop_state): Don't check stop_soon here. Check in callers
823 instead.
824 (save_inferior_status, restore_inferior_status): Adjust.
825
826 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
827 signals to common code if starting up the inferior.
828
829 * inferior.h (struct inferior_info): Added stop_soon member.
830 * inferior.c (add_inferior) Clear stop_soon.
831
832 * mips-tdep.c (heuristic_proc_start): Adjust.
833 * nto-procfs.c (procfs_create_inferior): Adjust.
834 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
835 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
836 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
837 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
838
839 * win32-nat.c (do_initial_win32_stuff): Adjust.
840
841 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
842
82f73884
PA
8432008-09-22 Pedro Alves <pedro@codesourcery.com>
844
845 Implement remote multi-process extensions.
846
847 * remote.c (struct remote_state): Add extended and
848 multi_process_aware fields.
849 (remote_multi_process_p): New.
850 (PACKET_vKill): New.
851 (record_currthread): Use thread_change_ptid. Notice new
852 inferiors.
853 (set_thread, remote_thread_alive): Use write_ptid.
854 (write_ptid, read_ptid): New.
855 (remote_current_thread, remote_threads_extra_info): Use them.
856 (remote_threads_info): Likewise. Detect new inferiors.
857 (remote_start_remote): Add inferior to inferior list.
858 (remote_multi_process_feature): New.
859 (remote_protocol_features): Add "multiprocess" feature.
860 (remote_query_supported): Pass "multiprocess+" as supported
861 features.
862 (remote_open_1): Clear multi_process_aware. Set extended
863 accordingly.
864 (remote_detach_1): Detach current process. Use extended packet
865 format for extended-remote multi-process. Detach process from the
866 inferior list. Only mourn after printing output.
867 (extended_remote_attach_1): Add process to the inferior list.
868 (remote_vcont_resume): Use write_ptid to pass the thread ids.
869 (remote_wait): Use read_ptid. Implement the extended
870 multi-process extension format of the 'W' and 'X' reply packets.
871 Remove exited inferiors from inferior list.
872 (remote_xfer_memory): Set general thread.
873 (remote_vkill): New.
874 (extended_remote_kill): New.
875 (remote_mourn_1): Discard all inferiors.
876 (select_new_thread_callback): New.
877 (extended_remote_mourn_1): If there are more processes to debug,
878 switch to a thread in another process, and don't pop the target.
879 (extended_remote_create_inferior_1): Add the new process to the
880 inferior list.
881 (remote_stopped_by_watchpoint): Indenting.
882 (remote_xfer_partial): Set the general thread.
883 (remote_pid_to_str): If the remote is multi-process aware, print
884 the process id as well as the thread id.
885 (remote_get_thread_local_address): Use write_ptid.
886 (init_extended_remote_ops): Register extended_remote_kill.
887 (_initialize_remote): Register new packets. Change
888 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
889 member to 42000.
890
891 * thread.c (thread_change_ptid): Also account for the inferior pid
892 changing.
893
894 * inferior.h (discard_all_inferiors): Declare.
895 * inferior.c (discard_all_inferiors): New.
896
7f9f62ba
PA
8972008-09-22 Pedro Alves <pedro@codesourcery.com>
898
899 * gnu-nat.c (gnu_attach): Add process to inferiors table.
900 (gnu_detach): Remove it.
901 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
902 table.
903 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
904 to inferior table accordingly.
905 (inf_ptrace_attach): Add new process to inferior table.
906 (inf_ptrace_detach): Remove it.
907 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
908 to inferior table accordingly.
909 (inf_ttrace_attach): Add process to inferior table.
910 (inf_ttrace_detach): Remove it.
911 * linux-fork.c (init_fork_list): Delete any left over inferior.
912 (linux_fork_mourn_inferior, detach_fork_command): Also delete
913 processes from inferior list.
914 * monitor.c (monitor_open): Add process to inferior list.
915 (monitor_close): Remove it.
916 * nto-procfs.c (procfs_attach): Add process to inferior list.
917 Find threads after pushing the target.
918 (procfs_detach): Remove process from inferior list.
919 (procfs_create_inferior): Add process to inferior list.
920 * procfs.c (procfs_detach): Remove process from inferior list.
921 (do_attach): Add process to inferior list.
922 * remote-sim.c (sim_create_inferior): Add process to inferior list.
923 (gdbsim_close): Remove it.
924 * target.c (generic_mourn_inferior): If inferior_ptid is not
925 null_ptid, remove the corresponding inferior from inferior list.
926 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
927 (win32_detach): Remove it.
928 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
929 to inferior list accordingly.
930 * fork-child.c (fork_inferior): Add process to inferior list.
931 * corelow.c (CORELOW_PID): Define.
932 (core_close): Remove core from inferior list.
933 (core_open): Add it.
934
b77209e0
PA
9352008-09-22 Pedro Alves <pedro@codesourcery.com>
936
937 * inferior.h: Forward declare struct ui_out.
938 Forward declare struct private_inferior.
939 (struct inferior): New.
940 (init_inferior_list, add_inferior, add_inferior_silent)
941 (delete_inferior, delete_inferior_silent, detach_inferior)
942 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
943 (valid_inferior_id, find_inferior_pid): New functions.
944 (inferior_callback_func): New typedef.
945 (iterate_over_inferiors, print_inferior, have_inferiors)
946 (current_inferior): New functions.
947 * inferior.c: New file.
948
949 * Makefile.in (SFILES): Add inferior.c.
950 (COMMON_OBS): Add inferior.o.
951
d8c3d48d
JL
9522008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
953
954 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
955 instead of determining symbol and line info directly.
956 * MAINTAINERS: Update my email address.
957
d54be744
DJ
9582008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
959
960 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
961 at the same address as a prologue marker. Do not skip an entire
962 function.
963
26fae1d6
AS
9642008-09-22 Andrew Stubbs <ams@codesourcery.com>
965
966 * frame.c (get_frame_register_bytes): Comment improvments.
967
1ad15515
PA
9682008-09-22 Pedro Alves <pedro@codesourcery.com>
969
970 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
971 all-stop mode.
972
14fc49fb
AS
9732008-09-19 Andrew Stubbs <ams@codesourcery.com>
974
975 * MAINTAINERS: Update my email address.
976
3f27f2a4
AS
9772008-09-19 Andrew Stubbs <ams@codesourcery.com>
978
979 * frame.c (get_frame_register_bytes): Detect bad debug info.
980
88ed393a
JK
9812008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
982
983 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
984 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
985 initialization ...
986 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
987 ...
988 (handle_inferior_event): ... here after the add_thread call together
989 with the local adjust_pc_after_break and reinit_frame_cache calls.
990
d832cb68
DD
9912008-09-16 David Daney <ddaney@avtrex.com>
992
993 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
994 all hardware bpstats.
995
b1e40a6f
JB
9962008-09-16 Joel Brobecker <brobecker@adacore.com>
997
998 * gstdint.h: Delete.
999
50a834af
MK
10002008-09-15 Mark Kettenis <kettenis@gnu.org>
1001
1002 * infcall.c (generic_push_dummy_code): Remove.
1003 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
1004
9d25dd43
DE
10052008-09-15 Doug Evans <dje@google.com>
1006
1007 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
1008 (struct attribute): Ditto.
1009
85c83e99
DA
10102008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1011
326e541f
DA
1012 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
1013 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
1014
85c83e99
DA
1015 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
1016 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
1017 Correct arguments and improve comments.
1018 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
1019 disabled code.
1020 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
1021 point DBX register, change error to warning, and improve comments.
1022
76815b17
DE
10232008-09-14 Doug Evans <dje@google.com>
1024
1025 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
1026
51e753cf
DA
10272008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1028
1029 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
1030
06e476f5
JB
10312008-09-13 Joel Brobecker <brobecker@adacore.com>
1032
1033 * defs.h (GCC_GENERATED_STDINT_H): Define.
1034
6c761d9c
TT
10352008-09-13 Tom Tromey <tromey@redhat.com>
1036
1037 * varobj.c (varobj_set_display_format): Use xfree.
1038 * tracepoint.c (stringify_collection_list): Use xfree.
1039 * remote-fileio.c (remote_fileio_reset): Use xfree.
1040 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
1041 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
1042 asprintf.
1043 * cp-support.c (mangled_name_to_comp): Use xfree.
1044
339c13b6
JB
10452008-09-13 Joel Brobecker <brobecker@adacore.com>
1046
1047 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
1048 the associated complete symbol is also in the list.
1049 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
1050 extracted out from ada_lookup_symbol_list.
1051 (ada_lookup_symbol_list): Use them. Remove the search through
1052 the minimal symbols.
1053
bc30ff58
JB
10542008-09-13 Joel Brobecker <brobecker@adacore.com>
1055
1056 * dwarf2read.c (add_partial_subprogram): New procedure.
1057 (scan_partial_symbols): Use it.
1058 (load_partial_dies): Read in children of subprogram and lexical
1059 blocks for Ada compilation units.
1060
bb01da77
TT
10612008-09-13 Tom Tromey <tromey@redhat.com>
1062
1063 * symfile.c (build_id_verify): Free 'found'.
1064 (find_separate_debug_file): Use xfree, not free.
1065
d00adf39
DE
10662008-09-12 Doug Evans <dje@google.com>
1067
00630ca8
DE
1068 * corefile.c (write_memory): Remove unnecessary copying.
1069
5d6fa950
DE
1070 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
1071 order of _initialize_* fns.
1072
d00adf39
DE
1073 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
1074 first_die_offset. All uses updated.
1075 Delete unused members cu_head_ptr, next.
1076 Move members base_known, base_address to ...
1077 (dwarf2_cu) ... here. All uses updated.
1078
3d0bb823
PA
10792008-09-12 Pedro Alves <pedro@codesourcery.com>
1080
1081 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
1082 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
1083
3c35e65b
UW
10842008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1085
1086 * fork-child.c (startup_inferior): Use target_wait and target_resume
1087 directly instead of calling wait_for_inferior / resume.
1088
1089 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
1090 or init_wait_for_inferior.
1091 (run_command_1): Call init_wait_for_inferior.
1092
4cca3ac9
UW
10932008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1094
1095 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
1096 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
1097 builtin_type_int, builtin_type_long, builtin_type_signed_char,
1098 builtin_type_unsigned_char, builtin_type_unsigned_short,
1099 builtin_type_unsigned_int, builtin_type_unsigned_long,
1100 builtin_type_float, builtin_type_double, builtin_type_long_double,
1101 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1102 builtin_type_bool, builtin_type_long_long,
1103 builtin_type_unsigned_long_long): Remove macros.
1104
1105 (builtin_type_f_character, builtin_type_f_integer,
1106 builtin_type_f_integer_s2, builtin_type_f_logical,
1107 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1108 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
1109 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1110 builtin_type_f_complex_s32): Likewise.
1111
1112 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
1113 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
1114
1115 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
1116 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
1117
1118 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
1119 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
1120
b6da22b0
UW
11212008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1122
1123 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
1124 target_gdbarch instead of builtin_type_void_data_ptr.
1125 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
1126 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
1127 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
1128 open_symbol_file_object): Likewise.
1129 * nto-tdep.c (LM_ADDR): Likewise.
1130
ff7da468
UW
11312008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1132
1133 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
1134 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
1135 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
1136
4e906f53
UW
11372008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1138
1139 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
1140 and its associated types to perform pointer conversion.
1141 (procfs_can_use_hw_breakpoint): Likewise.
1142 (procfs_auxv_parse): Remove unused variable.
1143
ffe5a37e
UW
11442008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1145
1146 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
1147 instead of builtin_type_void_data_ptr.
1148 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
1149
b806fb9a
UW
11502008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1151
1152 * expprint.c (print_subexp_standard): Compare against builtin type
1153 associated with exp->gdbarch instead of builtin_type_char.
1154
1155 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
1156 extract values of arbitrary logical type. Handle arbitrary
1157 complex types.
1158
1159 * printcmd.c (float_type_from_length): New function.
1160 (print_scalar_formatted, printf_command): Use it.
1161
3e3b026f
UW
11622008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1163
1164 * valops.c: Include "objfiles.h" and "symtab.h".
1165 (find_function_in_inferior): New argument OBJF_P. Use it to return
1166 objfile where function is defined. Use per-objfile arch types
1167 instead of builtin_type_ to define default return type.
1168
1169 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
1170 architecture to define inferior call argument types.
1171 * gcore.c (derive_heap_segment): Likewise.
1172 * objc-lang.c (value_nsstring): Likewise.
1173 * scm-lang.c (scm_lookup_name): Likewise.
1174 * scm-valprint.c (scm_inferior_print): Likewise.
1175 * valops.c (value_allocate_space_in_inferior): Likewise.
1176
1177 * eval.c (evaluate_subexp_standard): Update calls.
1178 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
1179
1180 * linux-fork.c: Include "objfiles.h".
1181 * scm-lang.c: Include "objfiles.h".
1182 * scm-valprint.c: Include "objfiles.h".
1183
f8dcfc0a
UW
11842008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1185
1186 * gdbarch.sh (name_of_malloc): Remove.
1187 * gdbarch.c, gdbarch.h: Re-generate.
1188 * valops.c (value_allocate_space_in_inferior): Do not call
1189 gdbarch_name_of_malloc.
1190
c56324e0
UW
11912008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1192
1193 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
1194 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
1195 (value_bit_index): Use extract_unsigned_integer
1196 instead of unpack_long to read single byte.
1197
7788af6d
UW
11982008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1199
1200 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
1201 associates types instead of builtin_type_ macros.
1202 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
1203 (call_function_by_hand): Use per-architecture "int" type as
1204 fall-back if find_function_addr returns NULL VALUE_TYPE.
1205 Update call to value_arg_coerce.
1206
ad4820ab
UW
12072008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1208
1209 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
1210 (cplus_make_method_ptr): Add TYPE parameter.
1211 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
1212 on to current_cp_abi.method_ptr_size callback.
1213 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
1214 current_cp_abi.make_method_ptr callback.
1215
1216 * gdbtypes.c (lookup_methodptr_type): Pass target type
1217 argument to cplus_method_ptr_size.
1218 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
1219 (value_struct_elt_for_reference): Likewise.
1220
1221 * gnu-v3-abi.c (get_class_arch): New function.
1222 (vtable_address_point_offset): Add GDBARCH parameter. Use it
1223 instead of current_gdbarch. Update all callers.
1224 (gnuv3_get_vtable): Likewise.
1225 (gnuv3_get_virtual_fn): Likewise.
1226 (gnuv3_decode_method_ptr): Likewise.
1227 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
1228 Use it instead of current_gdbarch.
1229 (gnuv3_virtual_fn_field): Likewise.
1230 (gnuv3_baseclass_offset): Likewise.
1231 (gnuv3_print_method_ptr): Likewise.
1232 (gnuv3_method_ptr_to_value): Likewise.
1233 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
1234 class architecture. Use architecture types instead of builtin types.
1235 (gnuv3_make_method_ptr): Likewise.
1236
1237 * cp-valprint.c (cp_print_class_member): Expect pointer type
1238 instead of class type. Use its length when extracting value.
1239 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
1240
5ed92fa8
UW
12412008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1242
1243 * stack.c (return_command): Use frame architecture to determine
1244 default integer return type.
1245
1246 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
1247 to determine pointer types.
1248 (f77_get_dynamic_upperbound): Likewise.
1249
1250 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
1251 (resolve_msgsend): Use architecture of current frame to determine
1252 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
1253 (resolve_msgsend_stret, resolve_msgsend_super,
1254 resolve_msgsend_super_stret): Likewise.
1255
0dfff4cb
UW
12562008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1257
1258 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
1259 instead of builtin_type_ macros.
1260 * amd64-tdep.c (amd64_register_type): Likewise.
1261 (amd64_get_longjmp_target): Likewise.
1262 * arm-tdep.c (arm_register_type): Likewise.
1263 * avr-tdep.c (avr_register_type): Likewise.
1264 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
1265 * frv-tdep.c (frv_register_type): Likewise.
1266 * h8300-tdep.c (h8300_register_type): Likewise.
1267 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
1268 hppa_skip_trampoline_code): Likewise.
1269 * i386-tdep.c (i386_register_type): Likewise.
1270 (i386_unwind_pc, i386_sse_type): Likewise.
1271 * ia64-tdep.c (ia64_register_type): Likewise.
1272 * m32r-tdep.c (m32r_register_type): Likewise.
1273 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1274 * m88k-tdep.c (m88k_register_type): Likewise.
1275 * mep-tdep.c (mep_register_type): Likewise.
1276 * mips-tdep.c (mips_pseudo_register_type): Likewise.
1277 * mn10300-tdep.c (mn10300_register_type): Likewise.
1278 * mt-tdep.c (mt_copro_register_type): Likewise.
1279 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
1280 (rs6000_convert_register_p, rs6000_register_to_value,
1281 rs6000_value_to_register): Likewise.
1282 * s390-tdep.c (s390_register_type): Likewise.
1283 * sh64-tdep.c (sh64_register_type): Likewise.
1284 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
1285 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
1286 sh_sh4_build_float_register_type, sh_sh4_register_type,
1287 sh_default_register_type): Likewise.
1288 * sparc64-tdep.c (sparc64_register_type): Likewise.
1289 * sparc-tdep.c (sparc32_register_type): Likewise.
1290 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
1291 * v850-tdep.c (v850_register_type): Likewise.
1292 * vax-tdep.c (vax_register_type): Likewise.
1293 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
1294 xtensa_push_dummy_call): Likewise.
1295
1296 * std-regs.c (value_of_builtin_frame_fp_reg,
1297 value_of_builtin_frame_pc_reg): Likewise.
1298 * target-descriptions.c (tdesc_register_type): Likewise.
1299
6d84d3d8
UW
13002008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1301
1302 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
1303 instead of builtin_type_int as default unspecified integral type.
1304 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
1305 assign_component, to_fixed_range_type): Likewise.
1306 * ada-typeprint.c (print_range, print_range_bound,
1307 print_range_type_named): Likewise.
1308 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
1309 * eval.c (evaluate_subexp_standard): Likewise.
1310 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1311 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
1312 build_gdb_vtable_type): Likewise.
1313 * jv-lang.c (java_array_type): Likewise.
1314 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
1315 * m2-valprint.c (m2_print_long_set): Likewise.
1316 * parse.c (follow_types): Likewise.
1317 * p-typeprint.c (pascal_type_print_base): Likewise.
1318 * valops.c (value_one, value_array, value_string,
1319 value_bitstring): Likewise.
1320 * value.c (allocate_repeat_value, value_from_string): Likewise.
1321 * varobj.c (c_describe_child): Likewise.
1322 * mt-tdep.c (mt_register_type): Likewise.
1323 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
1324 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
1325
180b9a0e
UW
13262008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1327
1328 * defs.h (struct gdbarch): Add forward declaration.
1329 (set_next_address): Add GDBARCH argument.
1330 * printcmd.c (set_next_address): Use it to find pointer type.
1331 * breakpoint.c (breakpoint_1): Update call.
1332 * source.c (line_info): Likewise.
1333 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
1334
1335 * breakpoint.c (set_breakpoint_count): Use platform-neutral
1336 types for internal variable values.
1337 * infrun.c (handle_inferior_event): Likewise.
1338 * source.c (forward_search_command, reverse_search_command): Likewise.
1339 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
1340 set_tracepoint_num, set_traceframe_context): Likewise.
1341
b769d911
UW
13422008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1343
1344 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
1345 and builtin_true_unsigned_char.
1346 (builtin_type_true_char): Remove macro, add extern declaration.
1347 (builtin_type_true_unsigned_char): Add extern declaration.
1348 * gdbtypes.c (builtin_type_true_char): New global variable.
1349 (builtin_type_true_unsigned_char): Likewise.
1350 (_initialize_gdbtypes): Initialize them.
1351 (gdbtypes_post_init): Do not initialize builtin_true_char
1352 and builtin_true_unsigned_char members of struct builtin_type.
1353
1354 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
1355 use builtin_type_true_unsigned_char instead.
1356
1357 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
1358 instead of builtin_type_char for internal string.
1359
fde6c819
UW
13602008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1361
1362 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
1363 (builtin_type_f_void): Remove macro.
1364 * gdbtypes.c (builtin_type_void): New global variable.
1365 (_initialize_gdbtypes): Initialize it.
1366
1367 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
1368 lookup_pointer_type or lookup_function_type on builtin_type_void.
1369 * printcmd.c (set_next_address): Likewise.
1370 * objc-lang.c (value_nsstring): Likewise.
1371 * mt-tdep.c (mt_copro_register_type): Likewise.
1372 * xtensa-tdep.c (xtensa_register_type): Likewise.
1373
1374 * symfile.c (syms_from_objfile): Remove special handling
1375 of builtin_type_void and builtin_type_char.
1376
d4dbb9c7
UW
13772008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1378
1379 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
1380 of builtin_type_ macros when handling OP_OBJC_ operations.
1381 * objc-lang.c (print_object_command): Likewise.
1382
8ca1c40e
UW
13832008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1384
1385 * ada-valprint.c: Include "objfiles.h".
1386 (ada_val_print_1): Use the gdbarch associated with the objfile whether
1387 a System.Address type is defined to retrieve the proper pointer type
1388 to use to print it.
1389
3cb382c9
UW
13902008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1391
1392 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
1393 result type instead of builtin_type_int.
1394 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
1395 (ada_value_subscript): Update call to value_pos_atr.
1396 (ada_value_ptr_subscript): Likewise.
1397 (ada_evaluate_subexp): Likewise.
1398
a53b7a21
UW
13992008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1400
1401 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
1402 (cast_from_fixed_to_double): Rename to ...
1403 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
1404 of builtin_type_double.
1405 (ada_value_cast): Use cast_from_fixed instead of casting result
1406 of cast_from_fixed_to_double.
1407 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
1408
22fe0fbb
UW
14092008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1410
1411 * valops.c (value_ind): No longer allow dereferencing an
1412 integer type.
1413 * eval.c (evaluate_subexp_standard): Handle deferencing an
1414 integer type here.
1415 * ada-lang.c (ada_evaluate_subexp): Likewise.
1416
d8631d21
UW
14172008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1418
1419 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
1420 a reference type, pass the reference type directly to unpack_pointer.
1421 * c-valprint.c (c_val_print): Likewise.
1422 * f-valprint.c (f_val_print): Likewise.
1423 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
1424 * p-valprint.c (pascal_val_print): Likewise.
1425
cb18ec49
UW
14262008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1427
1428 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
1429 to construct the EVAL_SKIP dummy return value.
1430 * ada-lang.c (ada_evaluate_subexp): Likewise.
1431 * jv-lang.c (evaluate_subexp_java): Likewise.
1432 * m2-lang.c (evaluate_subexp_modula2): Likewise.
1433 * scm-lang.c (evaluate_exp): Likewise.
1434
0ab7ba45
UW
14352008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1436
1437 * value.h (coerce_enum, coerce_number): Remove prototypes.
1438 * value.c (coerce_enum, coerce_number): Remove.
1439 * valarith.c (value_x_binop): Do not call coerce_enum.
1440 (value_x_unop): Likewise.
1441 (value_logical_not): Call coerce_array instead of coerce_number.
1442
f7c79c41
UW
14432008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1444
1445 * ax-gdb.c: Include "language.h".
1446 (gen_frame_args_address): Add GDBARCH parameter; use it
1447 instead of current_gdbarch.
1448 (gen_frame_locals_address): Likewise.
1449 (gen_var_ref): Add GDBARCH parameter. Update calls to
1450 gen_frame_args_address and gen_frame_locals_address. Use
1451 pointer type from gdbarch.
1452 (gen_usual_unary): Add EXP parameter. Use integer type
1453 from exp->gdbarch.
1454 (gen_usual_arithmetic): Likewise.
1455 (gen_integral_promotions): Likewise.
1456 (gen_add, gen_sub): Remove.
1457 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
1458 (gen_logical_not): Use passed-in boolean result type
1459 instead of builtin_type_int.
1460 (gen_complement): Do not call gen_usual_unary or
1461 gen_integral_promotions.
1462 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
1463 (gen_repeat): Add EXP parameter. Update call to gen_expr.
1464 Use builtin_type_int32 as internal range type.
1465 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
1466 as result type. Update call to gen_expr.
1467 (gen_expr): Add EXP parameter. Update calls to gen_expr,
1468 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
1469 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
1470 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
1471 Use exp->gdbarch instead of current_gdbarch.
1472 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
1473
f44316fa
UW
14742008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1475
1476 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
1477 and unop_promote before calling value_binop et. al.
1478 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
1479 and unop_promote before calling value_binop et. al.
1480
1481 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
1482 (value_pos): Do not call unop_promote.
1483 (value_neg, value_complement): Likewise.
1484
4066e646
UW
14852008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1486
1487 * value.h (unop_promote, binop_promote): Add prototypes.
1488 * eval.c (unop_promote, binop_promote): New functions.
1489 * valarith.c (unop_result_type, binop_result_type): Remove.
1490 (value_binop): Call binop_promote or unop_promote.
1491 Inline remaining parts of binop_result_type. Remove special
1492 code to truncate integer values for unsigned operations.
1493 (value_pos): Call unop_promote. Inline remaining parts of
1494 unop_result_type.
1495 (value_neg, value_complement): Likewise.
1496
89eef114
UW
14972008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1498
1499 * value.h (value_add, value_sub): Remove.
1500 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
1501 * valarith.c (value_add, value_sub): Remove.
1502 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
1503 (find_size_for_pointer_math): Add assertion. Update comment.
1504 (value_binop): Update comment.
1505
1506 * eval.c (ptrmath_type_p): New function.
1507 (evaluate_subexp_standard): Replace value_add and value_sub
1508 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
1509 Use builtin_type_uint8 instead of builtin_type_char to hold
1510 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
1511 * valarith.c (value_subscript): Replace value_add by
1512 value_ptradd. Replace value_sub by value_binop.
1513 * ada-lang.c (ada_value_ptr_subscript): Likewise.
1514 (ada_tag_name_2): Replace value_add by value_ptradd.
1515 (ada_evaluate_subexp): Replace value_add and value_sub by
1516 value_binop.
1517 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
1518 by value_ptradd.
1519 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1520 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
1521
98b90dd8
UW
15222008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1523
1524 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
1525 the expression architecture instead of builtin_type_int as the
1526 sizeof return type.
1527
c806c55a
UW
15282008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1529
1530 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
1531 a type parameter as expression element.
1532 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
1533 type as expression element.
1534 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
1535 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
1536
fbb06eb1
UW
15372008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1538
1539 * language.h (struct language_arch_info): New members
1540 bool_type_default and bool_type_symbol.
1541 (lang_bool_type): Remove prototype.
1542 (LA_BOOL_TYPE): Remove macro.
1543 (language_bool_type): Add prototype.
1544 * language.c (lang_bool_type): Remove.
1545 (language_bool_type): New function.
1546
1547 * value.h (value_in): Change return value to int.
1548 * value.c (value_in): Return int instead of struct value *.
1549
1550 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
1551 of using LA_BOOL_TYPE. Update call to value_in.
1552 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
1553 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
1554
1555 * language.c (unknown_language_arch_info): Set bool_type_default member
1556 of struct language_arch_info.
1557 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
1558 bool_type_default members of struct language_arch_info.
1559 * c-lang.c (c_language_arch_info): Set bool_type_default member
1560 of struct language_arch_info.
1561 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
1562 members of struct language_arch_info.
1563 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
1564 bool_type_default members of struct language_arch_info.
1565 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
1566 bool_type_default members of struct language_arch_info.
1567 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
1568 bool_type_default members of struct language_arch_info.
1569 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
1570 bool_type_default members of struct language_arch_info.
1571
de7b6b47
UW
15722008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1573
1574 * jv-lang.c (enum java_primitive_types): New type.
1575 (java_language_arch_info): New function.
1576 (java_language): Use it instead of c_language_arch_info.
1577
afc05acb
UW
15782008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1579
1580 * value.h (value_bitstring_subscript): New prototype.
1581 * valarith.h (value_bitstring_subscript): New function.
1582 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
1583 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
1584 instead of value_subscript to handle TYPE_CODE_BITSTRING.
1585
3e79cecf
UW
15862008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1587
1588 * expression.h (struct expression): New member GDBARCH.
1589 * parse.c (parse_exp_in_context): Initialize it.
1590 * parser-def.h (parse_gdbarch, parse_language): New macros.
1591
1592 * ada-exp.y (parse_type): New macro.
1593 Replace builtin_type_ macros by using parse_type.
1594 Replace current_language by parse_language.
1595 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
1596 Replace builtin_type_ macros.
1597
1598 * c-exp.y (parse_type): New macro.
1599 Replace builtin_type_ macros by using parse_type.
1600 (parse_number): Replace current_gdbarch by parse_gdbarch.
1601 (yylex): Replace current_language by parse_language.
1602
1603 * f-exp.y (parse_type, parse_f_type): New macros.
1604 Replace builtin_type_ macros by using parse_{f_,}type.
1605 (parse_number): Replace current_gdbarch by parse_gdbarch.
1606 (yylex): Replace current_language by parse_language.
1607
1608 * jv-exp.y (parse_type): New macro.
1609 (parse_number): Replace builtin_type_ macros by using parse_type.
1610
1611 * m2-exp.y (parse_type, parse_m2_type): New macros.
1612 Replace builtin_type_ macros by using parse_{m2_,}type.
1613
1614 * objc-exp.y (parse_type): New macro.
1615 Replace builtin_type_ macros by using parse_type.
1616 (parse_number): Replace current_gdbarch by parse_gdbarch.
1617 (yylex): Replace current_language by parse_language.
1618
1619 * p-exp.y (parse_type): New macro.
1620 Replace builtin_type_ macros by using parse_type.
1621 (parse_number): Replace current_gdbarch by parse_gdbarch.
1622 (yylex): Replace current_language by parse_language.
1623
c841afd5
UW
16242008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1625
1626 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
1627 and DATA_SYMBOL_TYPE arguments.
1628 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
1629 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
1630 (write_dollar_variable): Update call.
1631
1632 * ada-exp.y (write_var_or_type): Update call.
1633 * c-exp.y: Likewise.
1634 * f-exp.y: Likewise.
1635 * jv-exp.y: Likewise.
1636 * m2-exp.y: Likewise.
1637 * objc-exp.y: Likewise.
1638 * p-exp.y: Likewise.
1639
0c1f74cf
JB
16402008-09-10 Joel Brobecker <brobecker@adacore.com>
1641
1642 * ada-lang.c (ada_parent_type): Add handling of the case where
1643 the _parent field is a pointer and/or has a parallel XVS type.
1644 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
1645 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
1646 the type of the tag instead of doing forcing an EVAL_NORMAL
1647 expression evaluation.
1648
5823c3ef
JB
16492008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
1650 Joel Brobecker <brobecker@adacore.com>
1651
1652 * ada-lang.c (is_digits_suffix): New function.
1653 (is_dot_digits_suffix): Remove.
1654 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
1655 before looking up in symbol table, and do not use wild matches on them.
1656 (wild_match): Reimplement for speed and to allow matching of operator
1657 symbols.
1658 (is_valid_name_for_wild_match): Return zero for names that do not
1659 follow the GNAT encoding.
1660
1661 (is_name_suffix): Fix typo in comment.
1662 (to_record_with_fixed_variant_part): Ditto.
1663
e5fa8013
PA
16642008-09-10 Pedro Alves <pedro@codesourcery.com>
1665
1666 * Makefile.in (gnu-nat.o): New rule.
1667
6d2e05aa
JB
16682008-09-10 Joel Brobecker <brobecker@adacore.com>
1669
1670 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
1671 archecture-neutral builtin_type_int32 instead of builtin_type_int.
1672
2ac8a782
JB
16732008-09-10 Joel Brobecker <brobecker@adacore.com>
1674
1675 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
1676 Add special handling for pointer types.
1677
b861ac81
PA
16782008-09-10 Pedro Alves <pedro@codesourcery.com>
1679
1680 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
1681 right scope level.
1682 (inf_ttrace_resume, inf_ttrace_wait): Typos.
1683
030b4912
UW
16842008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1685
1686 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
1687 of builtin_type_int.
1688 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
1689 instead of builtin_type_int.
1690
d51fd4c8
PA
16912008-09-09 Pedro Alves <pedro@codesourcery.com>
1692
1693 * infrun.c (normal_stop): Run hook-stop last.
1694
11cb6f65
PA
16952008-09-09 Pedro Alves <pedro@codesourcery.com>
1696
1697 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
1698 (init_gnu_ops): Don't register it.
1699
a9ab7422
PA
17002008-09-09 Pedro Alves <pedro@codesourcery.com>
1701
1702 * gnu-nat.c (gnu_attach): Push target before fetching the list of
1703 threads.
1704
694182d2
DJ
17052008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1706
1707 * valops.c (value_cast_structs): Return NULL for failure.
1708 (value_cast): Handle NULL from value_cast_structs.
1709 (value_fetch_lazy): Call check_typedef. Remove unused variable.
1710
dcf4fbde
PA
17112008-09-08 Pedro Alves <pedro@codesourcery.com>
1712
1713 * inferior.h (context_switch_to): Delete.
1714 * infrun.c (context_switch): Don't save and load infrun state.
1715 (context_switch_to): Delete.
1716
1717 * infcmd.c (proceed_thread_callback): Replace context_switch_to
1718 calls by switch_to_thread calls.
1719
1720 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
1721 * thread.c (main_thread_state, main_thread_executing): Delete.
1722 (inferior_thread): Delete references to them.
1723 (add_thread_silent): Fix case where we're adding a thread with the
1724 same ptid as an exited thread. Remove references to
1725 context-switching.
1726 (load_infrun_state, save_infrun_state): Delete.
1727 (thread_alive, is_thread_state, any_running, is_executing)
1728 (set_executing): Remove the special handling for targets that
1729 don't register any thread.
1730 (restore_current_thread, thread_apply_all_command)
1731 (do_captured_thread_select): Unconditionally call
1732 switch_to_thread.
1733
1734 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
1735 Call switch_to_thread instead of context_switch_to.
1736
95e54da7
PA
17372008-09-08 Pedro Alves <pedro@codesourcery.com>
1738
1739 Remove global continuations in favour of a per-thread
1740 continuations.
1741
1742 * gdbthread.h (struct thread_info): Add comments around
1743 continuations and intermediate_continuations.
1744 (save_infrun_state, load_infrun_state): Delete continuations and
1745 intermediate_continuations arguments.
fedae5ff 1746 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
1747 * thread.c (clear_thread_inferior_resources): Discard all
1748 continuations of the thread we're clearing.
1749 (save_infrun_state, load_infrun_state): Delete continuations and
1750 intermediate_continuations arguments, and the code referencing
1751 them.
1752 * utils.c: Include "gdbthread.h".
1753 (cmd_continuation, intermediate_continuation): Delete.
1754 (add_continuation): Add thread_info* argument. Install the
1755 continuation on it.
1756 (restore_thread_cleanup): New.
1757 (do_all_continuations_ptid, do_all_continuations_thread_callback):
1758 New.
1759 (do_all_continuations): Reimplement.
1760 (discard_all_continuations_thread_callback,
1761 discard_all_continuations_thread): New.
1762 (discard_all_continuations): Reimplement.
1763 (add_intermediate_continuation): Add thread_info* argument.
1764 Install the continuation on it.
1765 (do_all_intermediate_continuations_thread_callback)
1766 (do_all_intermediate_continuations_thread): New.
1767 (do_all_intermediate_continuations): Reimplement.
1768 (discard_all_intermediate_continuations_thread_callback): New.
1769 (discard_all_intermediate_continuations_thread): New.
1770 (discard_all_intermediate_continuations): Reimplement.
1771
1772 * breakpoint.c (until_break_command): Install the continuation on
1773 the current thread.
1774
1775 * defs.h (cmd_continuation, intermediate_continuation): Delete.
1776 (struct thread_info): Forward declare.
1777 (add_continuation, add_intermediate_continuation): Add
1778 thread_info* argument.
1779 (do_all_continuations_thread, discard_all_continuations_thread)
1780 (do_all_intermediate_continuations_thread)
1781 (discard_all_intermediate_continuations_thread): Declare.
1782 * inf-loop.c (inferior_event_handler): In non-stop only run
1783 continuations on the thread that stopped. In all-stop, run
1784 continuations on all threads.
1785 * infcmd.c (step_once, finish_command): Adjust.
1786
414c69f7
PA
17872008-09-08 Pedro Alves <pedro@codesourcery.com>
1788
1789 Remove the global stop_step in favour of a per-thread
1790 stop_step.
1791
1792 * inferior.h (stop_step): Delete.
1793
1794 * gdbthread.h (struct thread_info): Add comments to stop_step.
1795 (save_infrun_state, load_infrun_state): Remove stop_step argument.
1796 * thread.c (load_infrun_state, save_infrun_state): Remove
1797 stop_step argument, and references to it.
1798
1799 * infrun.c (clear_proceed_status): Clear stop_step.
1800 (fetch_inferior_event): Adjust.
1801 (context_switch): Don't context-switch stop_step.
1802 (handle_inferior_event): Adjust.
1803 (normal_stop): Adjust.
1804 (save_inferior_status, restore_inferior_status): Adjust.
1805
1806 * infcmd.c (stop_step): Delete.
1807 (step_1, step_1_continuation, step_once, until_next_command):
1808 Adjust.
1809
af679fd0
PA
18102008-09-08 Pedro Alves <pedro@codesourcery.com>
1811
1812 Remove the global step_multi in favour of a per-thread
1813 step_multi.
1814
1815 * inferior.h (step_multi): Delete.
1816 * gdbthread.h (struct thread_info): Add comments around
1817 step_multi.
1818 (save_infrun_state, load_infrun_state): Remove step_multi
1819 parameter.
1820 * thread.c (load_infrun_state, save_infrun_state): Remove
1821 step_multi argument, and references to it.
1822 * infcmd.c (step_multi): Delete.
1823 (step_1): Adjust.
1824 (step_1_continuation, until_next_command): Adjust.
1825 * infrun.c (fetch_inferior_event): Adjust.
1826 (context_switch): Don't context-switch step_multi.
1827 (print_stop_reason, normal_stop): Adjust.
1828
2020b7ab
PA
18292008-09-08 Pedro Alves <pedro@codesourcery.com>
1830
1831 Remove the global stop_signal in favour of a per-thread
1832 stop_signal.
1833
1834 * inferior.h (stop_signal): Delete.
1835 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1836 stop_signal argument.
1837 * thread.c (load_infrun_state, save_infrun_state): Remove
1838 stop_signal argument. Don't reference it.
1839
1840 * infcmd.c (stop_signal): Delete.
1841 (program_info): Adjust.
1842 * infrun.c (resume): Clear stop_signal.
1843 (proceed): Adjust. Pass the last stop_signal to the thread we're
1844 resuming.
1845 (context_switch): Don't context-switch stop_signal.
1846 (handle_inferior_event, keep_going): Adjust.
1847 (save_inferior_status, restore_inferior_status): Adjust.
1848
1849 * fbsd-nat.c: Include "gdbthread.h".
1850 (find_signalled_thread, find_stop_signal): New.
1851 (fbsd_make_corefile_notes): Use it.
1852 * fork-child.c (startup_inferior): Adjust.
1853
1854 * linux-nat.c (get_pending_status): Adjust.
1855 (linux_nat_do_thread_registers): Adjust.
1856 (find_signalled_thread, find_stop_signal): New.
1857 (linux_nat_do_thread_registers): Add stop_signal parameter.
1858 (struct linux_nat_corefile_thread_data): Add stop_signal member.
1859 (linux_nat_corefile_thread_callback): Pass stop_signal.
1860 (linux_nat_do_registers): Delete.
1861 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
1862 there's always a thread.
1863
1864 * procfs.c (find_signalled_thread, find_stop_signal): New.
1865 (find_stop_signal): New.
1866 (procfs_do_thread_registers): Add stop_signal parameter.
1867 (struct procfs_corefile_thread_data): Add stop_signal member.
1868 (procfs_corefile_thread_callback): Pass args->stop_signal.
1869 (procfs_make_note_section): Find the last stop_signal.
1870
1871 * solib-irix.c: Include gdbthread.h.
1872 (irix_solib_create_inferior_hook): Adjust.
1873 * solib-osf.c: Include gdbthread.h.
1874 (osf_solib_create_inferior_hook): Adjust.
1875 * solib-sunos.c: Include gdbthread.h.
1876 (sunos_solib_create_inferior_hook): Adjust.
1877 * solib-svr4.c: Include gdbthread.h.
1878 (svr4_solib_create_inferior_hook): Adjust.
1879
1880 * win32-nat.c (do_initial_win32_stuff): Adjust.
1881
32400beb
PA
18822008-09-08 Pedro Alves <pedro@codesourcery.com>
1883
1884 * gdbthread.h (struct thread_info): Add comments around
1885 proceed_to_finish.
1886 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
1887 argument.
1888 * thread.c (load_infrun_state, save_infrun_state): Delete
1889 proceed_to_finish argument and references to it.
1890
1891 * infcall.c (call_function_by_hand): Adjust.
1892 * infcmd.c (finish_command): Adjust.
1893 * infrun.c (proceed_to_finish): Delete.
1894 (clear_proceed_status): Adjust.
1895 (context_switch): Don't context-switch proceed_to_finish.
1896 (normal_stop, save_inferior_status, restore_inferior_status):
1897 Adjust.
1898
347bddb7
PA
18992008-09-08 Pedro Alves <pedro@codesourcery.com>
1900
1901 * inferior.h (stop_bpstat): Delete.
1902
1903 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
1904
1905 * breakpoint.c (bpstat_do_actions): Rename to ...
1906 (bpstat_do_actions_1): ... this. Make static. Change return type
1907 to int. Return true if a breakpoint proceeded.
1908 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
1909 (delete_breakpoint): Don't reference the global stop_bpstat; it's
1910 gone.
1911
1912 * gdbthread.h (struct thread_info): Add stop_bpstat.
1913 (save_infrun_state, load_infrun_state): Remove stop_bpstat
1914 argument.
1915 * thread.c (load_infrun_state, save_infrun_state): Remove
1916 stop_bpstat argument, and the code referencing it.
1917
1918 * infcall.c: Include "gdbthread.h".
1919 (call_function_by_hand): Adjust.
1920 * exceptions.c: Include "gdbthread.h".
1921 (throw_exception): Adjust.
1922 * infcmd.c (stop_bpstat): Delete.
1923 (continue_command): In all-stop, set the ignore count on the
1924 thread that reported the stop. In non-stop, set it on the current
1925 thread.
1926 (finish_command_continuation): Adjust.
1927 (program_info): Adjust.
1928 * infrun.c (clear_proceed_status): Adjust.
1929 (context_switch): Don't context-switch stop_bpstat.
1930 (handle_inferior_event): Adjust.
1931 (normal_stop): Adjust.
1932 (save_inferior_status, restore_inferior_status): Adjust.
1933
1934 * inf-loop.c (inferior_event_handler): Remove parameter to
1935 bpstat_do_actions call.
1936 * top.c (command_loop): Remove parameter to bpstat_do_actions
1937 call. Call it unconditionally.
1938 * event-top.c (command_handler): Ditto.
1939 * python/python.c (execute_gdb_command): Ditto.
1940
078130d0
PA
19412008-09-08 Pedro Alves <pedro@codesourcery.com>
1942
1943 * inferior.h (step_over_calls): Delete.
1944
1945 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1946 step_over_calls argument.
1947 * thread.c (save_infrun_state, load_infrun_state): Remove
1948 step_over_calls argument. Adjust.
1949
1950 * infcmd.c (step_over_calls): Delete.
1951 (step_1): Adjust.
1952 * infrun.c (clear_proceed_status): Adjust.
1953 (context_switch): Don't context-switch step_over_calls.
1954 (handle_inferior_event, save_inferior_status)
1955 (restore_inferior_status): Adjust.
1956
4e1c45ea
PA
19572008-09-08 Pedro Alves <pedro@codesourcery.com>
1958
1959 Remove context switching in favour of accessing thread_info fields
1960 directly.
1961
1962 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
1963 Delete.
1964 (struct thread_stepping_state): Delete.
1965 (gtss, tss): Delete.
1966 (follow_inferior_reset_breakpoints, follow_exec)
1967 (resume, clear_proceed_status): Adjust.
1968 (prev_pc): Delete.
1969 (proceed, start_remote, init_wait_for_inferior): Adjust.
1970 (struct execution_control_state): Add event_thread member.
1971 (delete_step_resume_breakpoint_callback)
1972 (delete_step_thread_step_resume_breakpoint)
1973 (delete_step_thread_step_resume_breakpoint_cleanup)
1974 (delete_step_thread_step_resume_breakpoint): New.
1975 (wait_for_inferior, init_execution_control_state): Use
1976 delete_step_thread_step_resume_breakpoint_cleanup.
1977 (wait_for_inferior): Set the event_thread.
1978 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
1979 with delete_step_thread_step_resume_breakpoint.
1980 (init_thread_stepping_state): Change parameter type to
1981 thread_info. Adjust.
1982 (context_switch): Don't context switch prev_pc,
1983 stepping_over_breakpoint, step_resume_breakpoint,
1984 step_range_start, step_range_end, step_frame_id,
1985 tss->stepping_over_breakpoint,
1986 tss->stepping_through_solib_after_catch,
1987 tss->stepping_through_solib_catchpoints, tss->current_line, or
1988 tss->current_symtab.
1989 (adjust_pc_after_break, handle_inferior_event)
1990 (currently_stepping, step_into_function)
1991 (insert_step_resume_breakpoint_at_sal)
1992 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
1993 (clear_stepping_state): New.
1994 (normal_stop): Adjust.
1995 (save_inferior_status, restore_inferior_status): Adjust.
1996
1997 * gdbthread.h (struct thread_info): Comments describing the
1998 members moved here. Add step_after_step_resume_breakpoint.
1999 (delete_step_resume_breakpoint): Add thread_info argument.
2000 (save_infrun_state, load_infrun_state): Remove prev_pc,
2001 trap_expected, step_resume_breakpoint, step_range_start,
2002 step_range_end, step_frame_id, another_trap,
2003 stepping_through_solib_after_catch,
2004 stepping_through_solib_catchpoints, current_line and
2005 current_symtab function arguments.
2006 (inferior_thread): Declare.
2007
2008 * thread.c (inferior_thread): New.
2009 (delete_step_resume_breakpoint): Add a thread_info parameter and
2010 rewrite.
2011 (load_infrun_state, save_infrun_state): Remove prev_pc,
2012 trap_expected, step_resume_breakpoint, step_range_start,
2013 step_range_end, step_frame_id, stepping_over_breakpoint,
2014 stepping_through_solib_after_catch,
2015 stepping_through_solib_catchpoints, current_line and
2016 current_symtab args. Remove code referencing them.
2017
2018 * infcmd.c (step_range_start, step_range_end, step_frame_id):
2019 Delete.
2020 (step_1, step_once, until_next_command): Adjust.
2021
2022 * inferior.h (step_range_start, step_range_end, step_frame_id):
2023 Delete.
2024
2025 * linux-nat.c (linux_child_follow_fork): If following the child,
2026 move the step state to it. Adjust.
2027 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
2028 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2029
757f359d
PA
20302008-09-08 Pedro Alves <pedro@codesourcery.com>
2031
2032 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
2033 thread.
2034
0de3b513
PA
20352008-09-08 Pedro Alves <pedro@codesourcery.com>
2036
2037 * corelow.c (add_to_thread_list): If this is the first time we
2038 hear about thread info, update inferior_ptid.
2039 (core_open): Clear the thread list and set inferior_ptid before
2040 acknowledging a new inferior. Find threads before fetching
2041 register info. Give an upper target layer a chance to find and
2042 claim new threads. Print core generation and stop signal info
2043 after finding new threads.
2044 (get_core_register_section): Look at the lwp member of
2045 inferior_ptid for detecting if we have threads info, instead of
2046 the pid member.
2047 (core_pid_to_str): New.
2048 (init_core_ops): Register core_pid_to_str.
2049
4189d2f8
PA
20502008-09-08 Pedro Alves <pedro@codesourcery.com>
2051
2052 * spu-linux-nat.c (spu_child_post_startup_inferior)
2053 (spu_child_post_attach): Don't add the main thread here.
2054
617fd3b5
PA
20552008-09-08 Pedro Alves <pedro@codesourcery.com>
2056
2057 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2058
2059 * gnu-nat.c (inf_validate_procs): If this is the first time we're
2060 seeing a thread id, extend the main thread's ptid. If we still
2061 have pending execs, don't be verbose about new threads.
2062 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
2063 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
2064 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
2065 Adjust.
2066
2689673f
PA
20672008-09-08 Pedro Alves <pedro@codesourcery.com>
2068
2069 * procfs.c (to_attach): Create a procinfo for the current lwp.
2070 Add it to gdb's thread list.
2071 (procfs_fetch_registers, procfs_store_registers): Assume there's
2072 always an lwp.
2073 (procfs_wait): Don't add the main thread here.
2074 (procfs_init_inferior): Create a procinfo for the main lwp here.
2075 Change main thread's ptid with thread_change_ptid.
2076 (procfs_notice_thread): Check for exited threads.
2077 (procfs_corefile_thread_callback): Remove check for the main
2078 process.
2079 (procfs_make_note_section): Assume there is always a thread.
2080
2081 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
2082 attaching. Change the main thread ptid with thread_change_ptid.
2083 (sol_thread_detach): Clear sol_thread_active.
2084 (sol_thread_wait): Check for exited threads.
2085 (sol_thread_create_inferior): Clear sol_thread_active before
2086 creating a new inferior. Change the main thread ptid with
2087 thread_change_ptid.
2088 (sol_thread_mourn_inferior): Clear sol_thread_active.
2089 (sol_find_new_threads_callback): Check for exited threads.
2090
62a93fa9
PA
20912008-09-08 Pedro Alves <pedro@codesourcery.com>
2092
2093 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
2094 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
2095 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
2096 process, and return TARGET_WAITKIND_IGNORE.
2097
438ac09b
PA
20982008-09-08 Pedro Alves <pedro@codesourcery.com>
2099
2100 * inf-ttrace.c: Include <signal.h>
2101 (inf_ttrace_delete_dead_threads_callback): New.
2102 (inf_ttrace_resume_lwp): New.
2103 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
2104 delete dying threads until they are really dead.
2105 (inf_ttrace_wait): After stopping the whole process, delete any
2106 dying thread that is really dead by now.
2107 (inf_ttrace_thread_alive): Return 1.
2108 (inf_ttrace_extra_thread_info): New.
2109 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
2110
2935f27f
PA
21112008-09-08 Pedro Alves <pedro@codesourcery.com>
2112
2113 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
2114 of the child fork.
2115 (inf_ttrace_attach): Add the main thread.
2116 (inf_ttrace_resume_callback): Check for exited threads. Adjust
2117 for always a thread.
2118 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
2119 using thread_change_ptid, and set its private data. Don't add the
2120 main thread here.
2121 (inf_ttrace_pid_to_str): Adjust.
2122
fb5e7258
PA
21232008-09-08 Pedro Alves <pedro@codesourcery.com>
2124
2125 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
2126 thread_change_ptid. Check for exited threads.
2127 (bsd_uthread_find_new_threads): Check for exited threads.
2128
af990527
PA
21292008-09-08 Pedro Alves <pedro@codesourcery.com>
2130
2131 * inf-ptrace.c: Include "gdbthread.h".
2132 (inf_ptrace_attach): Add the main thread here.
2133 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
2134 Decorate the main thread id with the lwp id.
2135
27c9d204
PA
21362008-09-08 Pedro Alves <pedro@codesourcery.com>
2137
2138 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
2139 thread_change_ptid. Don't add or mark the main thread as running
2140 and executing here.
2141 * fork-child.c (fork_inferior): Add the main thread here.
2142
de9f48f0
JG
21432008-09-08 Jerome Guitton <guitton@adacore.com>
2144
2145 * rs6000-tdep.c (rs6000_fetch_instruction)
2146 (rs6000_skip_stack_check): New functions.
2147 (skip_prologue): Skip stack check sequence.
2148
52163a60
DD
21492008-09-08 David Daney <ddaney@avtrex.com>
2150
2151 * dummy-frame.h (frame.h): Include it.
2152 (struct frame_id): Remove declaration.
2153
87805e63
UW
21542008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2155
2156 * spu-tdep.c (spu_push_dummy_code): New function.
2157 (spu_gdbarch_init): Install it.
2158
0b1553bc
UW
21592008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2160
2161 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
2162 instead of paddr_nz.
2163 * gdbarch.c: Regenerate.
2164
2165 * target.c (target_xfer_partial, debug_print_register): Use
2166 core_addr_to_string_nz instead of paddr_nz.
2167
2454a024
UW
21682008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2169
2170 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
2171 *before* calling gdbarch_init_osabi.
2172 (rs6000_aix_init_osabi): Disable displaced stepping.
2173
b52323fa
UW
21742008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2175
2176 * target.c (update_current_target): Do not inherit to_open
2177 or to_close.
2178 (pop_target): Call target_close on target_stack instead
2179 of current_target.
2180 (pop_all_targets_above): Likewise.
2181
fead6908
UW
21822008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2183
2184 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
2185 (gnuv3_print_method_ptr): Use it.
2186 (gnuv3_method_ptr_to_value): Likewise.
2187
60441ab9
UW
21882008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2189
2190 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
2191 register_area callback function.
2192 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
2193 Use it instead of current_gdbarch.
2194 * nto-procfs.c (procfs_store_registers): Update call.
2195
bb486190
UW
21962008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2197
2198 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
2199 regcache architecture instead of current_gdbarch.
2200
9dacea90
UW
22012008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2202
2203 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
2204 (check_for_saved): Use it instead of current_gdbarch.
2205 (is_arg_spill): Add gdbarch paramter. Use it instead
2206 of current_gdbarch.
2207 (mep_analyze_prologue): Add gdbarch parameter. Pass it
2208 to is_arg_spill and check_for_saved.
2209 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
2210
5db8bbe5
UW
22112008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2212
2213 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
2214 instead of current_gdbarch.
2215
6ba38425
UW
22162008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2217
2218 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
2219 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
2220 Use it instead of current_gdbarch.
2221 (m68kbsd_supply_fpregset): Update call.
2222 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2223 (m68kbsd_collect_fpregset): Likewise.
2224
35488783
UW
22252008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2226
2227 * cris-tdep.c (cris_version, cris_mode): Remove.
2228 (crisv32_single_step_through_delay): Use tdep->cris_mode.
2229 (cris_breakpoint_from_pc): Likewise.
2230 (cris_frame_unwind_cache): Use tdep->cris_version.
2231 (crisv32_scan_prologue): Likewise.
2232 (cris_spec_reg_applicable): Add gdbarch argument.
2233 Use tdep->cris_version.
2234 (cris_register_size, cris_special_register_name): Update calls.
2235 (cris_special_register_name): Add gdbarch argument.
2236 (cris_register_name, crisv32_register_name): Update calls.
2237
9dae60cc
UW
22382008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2239
2240 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
2241 instead of current_gdbarch.
2242
2243 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
2244 (sh64_gdbarch_init): Install print_insn_sh64 directly.
2245 * sh-tdep.c (gdb_print_insn_sh): Remove.
2246 (sh_gdbarch_init): Install print_insn_sh directly.
2247
2248 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
2249 from current_gdbarch.
2250 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
2251 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
2252 depending on mips_abi.
2253
24568a2c
UW
22542008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2255
2256 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
2257 (smash_text_address): Likewise.
2258 * gdbarch.c, gdbarch.h: Regenerate.
2259
2260 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
2261 * arch-utils.h (core_addr_identity): Likewise.
2262 * arm-tdep.c (arm_addr_bits_remove): Likewise.
2263 (arm_smash_text_address): Likewise.
2264 * hppa-tdep.c (hppa_smash_text_address): Likewise.
2265 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
2266 * s390-tdep.c (s390_addr_bits_remove): Likewise.
2267
2268 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
2269 Use it instead of current_gdbarch.
2270
2271 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
2272 arm_dwarf2_prev_register): Update calls.
2273 * m88k-tdep.c (m88k_unwind_pc): Update call.
2274
f7fd4728
UW
22752008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2276
2277 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
2278 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
2279 Call gdbarch_integer_to_address directly instead of converting
2280 to value and back. Update comment.
2281 (execute_stack_op): Update call site.
2282 * dwarf2loc.c (find_location_expression): Likewise.
2283 (locexpr_describe_location): Update
2284
2285 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
2286 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
2287 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
2288 (dwarf2_loc_desc_needs_frame): Likewise.
2289
714835d5
UW
22902008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2291
2292 * breakpoint.h (struct bp_location): Change type of section
2293 member to "struct obj_section *".
2294 * tracepoint.h (struct tracepoint): Likewise.
2295 * symtab.h (struct general_symbol_info): Replace bfd_section
2296 member with obj_section.
2297 (struct symtab_and_line): Change type of section member to
2298 "struct obj_section *".
2299 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
2300 (SYMBOL_OBJ_SECTION): ... this.
2301
2302 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
2303 section as obj_section instead of bfd_section.
2304
2305 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
2306 directly instead of looking of obj_section from bfd_section.
2307
2308 * objfiles.h (find_pc_sect_section): Remove.
2309 * objfiles.c (find_pc_sect_section): Remove.
2310 (find_pc_section): Inline find_pc_sect_section code.
2311
2312 * symfile.h (find_pc_overlay): Return struct obj_section *.
2313 (find_pc_mapped_section): Likewise.
2314 (section_is_overlay, section_is_mapped): Change type of section
2315 argument to struct obj_section *.
2316 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
2317 (overlay_mapped_address, overlay_unmapped_address): Likewise.
2318 (symbol_overlayed_address): Likewise.
2319 * symtab.h (symbol_overlayed_address): Likewise.
2320 * symfile.c (overlay_is_mapped): Remove.
2321 (section_is_mapped): Inline overlay_is_mapped code. Update.
2322 (overlay_invalidate_all): Update.
2323 (section_is_overlay): Change section argument to type
2324 "struct obj_section *". Use bfd_ methods.
2325 (pc_in_unmapped_range): Likewise. Handle relocated sections.
2326 (pc_in_mapped_range): Likewise. Handle relocated sections.
2327 (sections_overlap): Likewise.
2328 (overlay_unmapped_address): Likewise.
2329 (overlay_mapped_address): Likewise.
2330 (symbol_overlayed_address): Likewise.
2331 (find_pc_overlay): Return struct obj_section *.
2332 (find_pc_mapped_section): Likewise.
2333 (list_overlays_command): Update.
2334 (map_overlay_command, unmap_overlay_command): Update.
2335 (simple_overlay_update): Update.
2336
2337 * block.h (blockvector_for_pc_sect): Change section argument
2338 to type "struct obj_section *".
2339 (block_for_pc_sect): Likewise.
2340 * block.c (blockvector_for_pc_sect): Change section argument
2341 to type "struct obj_section *".
2342 (block_for_pc_sect): Likewise.
2343 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
2344 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
2345 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
2346 (matching_bfd_sections): Rename to ...
2347 (matching_obj_sections): ... this. Update argument types.
2348 * blockframe.c (find_pc_sect_function): Likewise.
2349 * breakpoint.c (describe_other_breakpoints): Likewise.
2350 (breakpoint_has_pc, check_duplicates_for): Likewise.
2351 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2352 (lookup_minimal_symbol_by_pc_section): Likewise.
2353 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
2354 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
2355 find_pc_sect_line, find_function_start_pc): Likewise.
2356 (matching_bfd_sections): Rename to ...
2357 (matching_obj_sections): ... this. Update argument types.
2358
2359 * blockframe.c (find_pc_partial_function): Update to section
2360 type changes. No longer call find_pc_sect_section.
2361 (cache_pc_function_section): Change to type "struct obj_section *".
2362 * breakpoint.c (resolve_sal_pc): Update to section type changes.
2363 * exec.c (xfer_memory): Likewise.
2364 * findvar.c (read_var_value): Likewise.
2365 * infcmd.c (jump_command): Likewise.
2366 * linespec.c (minsym_found): Likewise.
2367 * maint.c (maintenance_translate_address): Likewise.
2368 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2369 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2370 * parse.c (write_exp_msymbol): Likewise.
2371 * printcmd.c (build_address_symbolic): Likewise.
2372 (address_info, sym_info): Likewise.
2373 * symmisc.c (dump_msymbols, print_symbol): Likewise.
2374 * symtab.c (fixup_section): Likewise.
2375 (fixup_symbol_section, fixup_psymbol_section): Likewise.
2376 (find_pc_line, find_function_start_sal): Likewise.
2377 * target.c (memory_xfer_partial): Likewise.
2378 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
2379 * spu-tdep.c (spu_overlay_update): Likewise.
2380
623d3eb1
DE
23812008-09-04 Doug Evans <dje@google.com>
2382
2383 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
2384 Change argument of pulongest from CORE_ADDR to ULONGEST.
2385 All callers updated.
2386 * utils.c (plongest): Renamed from paddr_d.
2387 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
2388 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
2389 `CORE_ADDR addr' arg of error message.
2390
8775bb90
MS
23912008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
2392
2393 * ser-tcp.c (ser_tcp_send_break): New function.
2394 (_initialize_ser_tcp): Use ser_tcp_send_break.
2395 * ser-tcp.h (ser_tcp_send_break): New prototype.
2396
9ff3afda
UW
23972008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2398
2399 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
2400 when allocating stack frame for inferior call.
2401
c4891da7
UW
24022008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2403
2404 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
2405 SP or return address if we failed to find a valid frame.
2406
514f746b
AR
24072008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
2408
2409 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
2410 non-permanent breakpoints.
2411 (bpstat_stop_status): Change enable_state to bp_disabled only for
2412 non-permanent breakpoints.
2413 (bp_loc_is_permanent): New function.
2414 (create_breakpoint): Check if the location points to a permanent
2415 breakpoint and if it does, make breakpoint permanent.
2416 (update_breakpoint_locations): Make sure new locations of permanent
2417 breakpoints are properly initialized.
2418 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
2419 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
2420
a12654ce
PA
24212008-09-02 Pedro Alves <pedro@codesourcery.com>
2422
2423 * breakpoint.c (insert_breakpoints, update_global_location_list):
2424 Check breakpoints_always_inserted_mode instead of
2425 always_inserted_mode directly.
2426
8b7a6d61
AS
24272008-09-02 Andreas Schwab <schwab@suse.de>
2428
2429 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
2430
d68209e4
JK
24312008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2432
2433 Stay compatible after the GCC PR fortran/29635 fix.
2434 * dwarf2read.c (process_die <DW_TAG_imported_module>)
2435 (process_die <DW_TAG_imported_module>): Do not assert anything about
2436 these unsupported tags.
2437
ef4cb050
TT
24382008-08-29 Tom Tromey <tromey@redhat.com>
2439
2440 * maint.c (_initialize_maint_cmds): Fix typo.
2441
a683b3c0
TT
24422008-08-29 Tom Tromey <tromey@redhat.com>
2443
2444 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
2445 obstack.
2446
3e88cf8d
UW
24472008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2448
2449 * remote.c: Include "gdb_stat.h".
2450
a45ae3ed
UW
24512008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2452
2453 * dummy-frame.h (dummy_frame_pop): Add prototype.
2454 * dummy-frame.c: Include "observer.h".
2455 (dummy_frame_push): Do not check for stale frames.
2456 (dummy_frame_pop): New function.
2457 (cleanup_dummy_frames): New function.
2458 (_initialize_dummy_frame): Install it as inferior_created observer.
2459
2460 * frame.h (struct frame_id): Update comments.
2461 (frame_id_inner): Remove prototype.
2462 * frame.c (frame_id_inner): Make static. Add comments.
2463 (frame_find_by_id): Update frame_id_inner safety net check to avoid
2464 false positives for targets using non-contiguous stack ranges.
2465 (get_prev_frame_1): Update frame_id_inner safety net check.
2466 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
2467
2468 * stack.c (return_command): Directly pop the selected frame.
2469 * infrun.c (handle_inferior_event): Remove dead code.
2470 * i386-tdep.c (i386_push_dummy_call): Update comment.
2471
879d1e6b
UW
24722008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2473
2474 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
2475 breakpoint from shared library.
2476
97ec2c2f
UW
24772008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2478
2479 * solib-svr4.c (read_program_header): New function.
2480 (scan_dyntag_auxv): New function.
2481 (elf_locate_base): Use it if scan_dyntag fails.
2482 (find_program_interpreter): New function.
2483 (enable_break): Use it instead of .interp section.
2484
f1838a98
UW
24852008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2486
2487 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
2488 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
2489 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
2490 remote_bfd_open): New functions.
2491 (remote_hostio_send_command): Fail safely if remote connection
2492 is not set up.
2493
2494 * solist.h (solib_open): Remove prototype.
2495 (solib_bfd_open): Add prototype.
2496 * solib.c: Include "remote.h".
2497 (solib_open): Remove, replace by ...
2498 (solib_bfd_open): ... this new function. Handle remote BFDs.
2499 (solib_map_sections): Replace solib_open by solib_bfd_open.
2500 * solib-frv.c: Include "exceptions.h".
2501 (enable_break2): Replace solib_open by solib_bfd_open.
2502 * solib-svr4.c: Include "exceptions.h".
2503 (enable_break): Replace solib_open by solib_bfd_open.
2504
2505 * symfile.c: Include "remote.h".
2506 (build_id_verify): Handle remote BFDs.
2507 (separate_debug_file_exists): Use BFD to access file. Handle
2508 remote BFDs.
2509 (symfile_bfd_open): Handle remote BFDs.
2510 (reread_symbols): Handle remote BFDs.
2511
2512 * NEWS: Mention "remote:" argument prefix to "set sysroot".
2513
1cf3db46
UW
25142008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2515
2516 * gdbarch.sh (target_gdbarch): New global variable.
2517 (deprecated_current_gdbarch_select_hack): Set it.
2518 * gdbarch.c, gdbarch.h: Regenerate.
2519
2520 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
2521 of current_gdbarch.
2522 * target-descriptions.c (target_find_description): Likewise.
2523 * arm-tdep.c (arm_update_current_architecture): Likewise.
2524 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
2525 arm_show_force_mode): Likewise.
2526 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
2527 show_mips_abi): Likewise.
2528 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
2529
2530 * target.c (target_translate_tls_address): Use target_gdbarch
2531 instead of current_gdbarch.
2532 * remote.c (struct packet_reg): Likewise.
2533 (get_remote_arch_state, packet_reg_from_regnum,
2534 packet_reg_from_pnum, remote_check_symbols, remote_wait,
2535 remote_address_masked, remote_insert_breakpoint,
2536 remote_insert_hw_breakpoint, remote_read_description): Likewise.
2537 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2538 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
2539 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
2540
2541 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
2542 solib_add, info_sharedlibrary_command, solib_address,
2543 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
2544 solib_global_lookup): Likewise.
2545 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
2546 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
2547 Likewise.
2548 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2549 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
2550 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
2551 Likewise.
2552 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
2553 nto_truncate_ptr): Likewise.
2554 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
2555
6207416c
LM
25562008-08-26 Luis Machado <luisgpm@br.ibm.com>
2557
2558 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
2559 (ppc_linux_vmx_regset_sections): New structure.
2560 (ppc_linux_fp_regset_sections): New structure.
2561 (ppc_linux_init_abi): Select core-file regset based on target
2562 features.
2563
0ff58721
UW
25642008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2565
2566 * target.c (debug_print_register): Use regcache_raw_collect
2567 instead of regcache_cooked_read. Only handle raw registers.
2568
6c5561f9
PA
25692008-08-25 Pedro Alves <pedro@codesourcery.com>
2570
2571 * cp-name-parser.y: Include config.h before system headers.
2572
ed0c3906
UW
25732008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2574
2575 * m88k-tdep.c: Update for unwinder changes.
2576
119ac181
TT
25772008-08-24 Tom Tromey <tromey@redhat.com>
2578
2579 * s390-tdep.c (s390_address_class_type_flags): Use
2580 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
2581 (s390_address_class_type_flags_to_name): Likewise.
2582 (s390_address_class_name_to_type_flags): Likewise.
2583
803e1097
TT
25842008-08-24 Tom Tromey <tromey@redhat.com>
2585
2586 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
2587 TYPE_FLAGS.
2588 * features/rs6000/powerpc-vsx32l.c
2589 (initialize_tdesc_powerpc_vsx32l): Update.
2590 * features/rs6000/powerpc-vsx32.c
2591 (initialize_tdesc_powerpc_vsx32): Update.
2592 * features/rs6000/powerpc-vsx64.c
2593 (initialize_tdesc_powerpc_vsx64): Update.
2594 * features/rs6000/powerpc-vsx64l.c
2595 (initialize_tdesc_powerpc_vsx64l): Update.
2596 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
2597 TYPE_VECTOR, not TYPE_FLAGS.
2598
876cecd0
TT
25992008-08-24 Tom Tromey <tromey@redhat.com>
2600
2601 * xml-tdesc.c (tdesc_end_union): Update.
2602 * stabsread.c (define_symbol): Update.
2603 (read_type): Update.
2604 (read_struct_type): Update.
2605 (read_enum_type): Update.
2606 * spu-tdep.c (spu_builtin_type_vec128): Update.
2607 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
2608 (sh_push_dummy_call_nofpu): Update.
2609 * mdebugread.c (parse_symbol): Update.
2610 (parse_symbol): Update.
2611 (parse_symbol): Update.
2612 (upgrade_type): Update.
2613 * jv-lang.c (java_lookup_class): Update.
2614 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
2615 * i386-tdep.c (i386_mmx_type): Update.
2616 (i386_sse_type): Update.
2617 * gdbtypes.h (enum type_flag_value): New enum.
2618 (enum type_instance_flag_value): New enum.
2619 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
2620 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
2621 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
2622 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
2623 TYPE_FLAG_NOTTEXT): Now enum constants.
2624 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
2625 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
2626 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
2627 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
2628 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
2629 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
2630 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
2631 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
2632 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
2633 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
2634 TYPE_NOTTEXT): Update.
2635 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
2636 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
2637 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
2638 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
2639 TYPE_ADDRESS_CLASS_ALL): Update.
2640 (struct main_type) <flags>: Remove.
2641 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
2642 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
2643 flag_vector, flag_stub_supported, flag_nottext,
2644 flag_fixed_instance>: New fields.
2645 <nfields, vptr_fieldno>: Move earlier.
2646 (TYPE_FLAGS): Remove.
2647 * gdbtypes.c (make_pointer_type): Update.
2648 (address_space_name_to_int): Update.
2649 (address_space_int_to_name): Update.
2650 (make_type_with_address_space): Update.
2651 (make_cv_type): Update.
2652 (create_range_type): Update.
2653 (get_discrete_bounds): Update.
2654 (create_set_type): Update.
2655 (make_vector_type): Update.
2656 (smash_to_method_type): Update.
2657 (check_typedef): Update.
2658 (check_stub_method): Update.
2659 (init_type): Individually assign flag fields.
2660 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
2661 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
2662 (copy_type_recursive): Copy the entire main type. Don't use
2663 TYPE_FLAGS.
2664 * features/rs6000/powerpc-altivec64l.c
2665 (initialize_tdesc_powerpc_altivec64l): Update.
2666 * features/rs6000/powerpc-altivec64.c
2667 (initialize_tdesc_powerpc_altivec64): Update.
2668 * features/rs6000/powerpc-altivec32l.c
2669 (initialize_tdesc_powerpc_altivec32l): Update.
2670 * features/rs6000/powerpc-altivec32.c
2671 (initialize_tdesc_powerpc_altivec32): Update.
2672 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
2673 Update.
2674 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
2675 Update.
2676 * dwarf2read.c (read_structure_type): Update.
2677 (read_enumeration_type): Likewise.
2678 (process_enumeration_scope): Likewise.
2679 (read_tag_pointer_type): Likewise.
2680 (read_subroutine_type): Likewise.
2681 (read_subroutine_type): Likewise.
2682 (read_base_type): Likewise.
2683 * coffread.c (coff_read_enum_type): Update.
2684 * ada-valprint.c (adjust_type_signedness): Update.
2685 * ada-typeprint.c (print_record_field_types): Update.
2686 * ada-lang.c (packed_array_type): Update.
2687 (empty_record): Don't reset TYPE_FLAGS.
2688 (ada_template_to_fixed_record_type_1): Update.
2689 (ada_template_to_fixed_record_type_1): Likewise.
2690 (template_to_static_fixed_type): Likewise.
2691 (to_record_with_fixed_variant_part): Likewise.
2692 (to_fixed_record_type): Likewise.
2693 (to_fixed_array_type): Likewise.
2694 (to_static_fixed_type): Likewise.
2695
d4ce0d3f
TT
26962008-08-23 Jim Blandy <jimb@redhat.com>
2697
2698 PR macros/607:
2699 * symmisc.c (print_symbol_bcache_statistics): Include statistics
2700 for the macro bcache.
2701
2e668a5d
TT
27022008-08-23 Tom Tromey <tromey@redhat.com>
2703
2704 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
2705 (argc): Now 31 bits.
2706
75a2d5e7
TT
27072008-08-22 Tom Tromey <tromey@redhat.com>
2708
2709 * NEWS: Move macro entries back under "New commands".
2710
25db0f1b
UW
27112008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2712
2713 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
2714 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
2715 (create_overlay_event_breakpoint): Loop over all objfiles to install
2716 multiple instances of the overlay event breakpoint if present.
2717
0391f248
UW
27182008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2719
2720 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
2721 (info_spu_event_command): Command only supported on SPU architecture.
2722 (info_spu_signal_command): Likewise.
2723 (info_spu_mailbox_command): Likewise.
2724 (info_spu_dma_command): Likewise.
2725 (info_spu_proxydma_command): Likewise.
2726
24a73cce
UW
27272008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2728
2729 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
2730 if the thread has already exited.
2731
e0bb1c1c
PA
27322008-08-22 Pedro Alves <pedro@codesourcery.com>
2733
2734 * infrun.c (proceed): Move back setting previous_inferior_ptid
2735 from here ...
2736 (wait_for_inferior): ... to here.
2737 (fetch_inferior_event): ... and here.
2738
a3ecef73
UW
27392008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2740
2741 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
2742 (deprecated_current_gdbarch_select_hack): Call registers_changed
2743 instead of reinit_frame_cache.
2744 * gdbarch.c: Regenerate.
2745
45148c2e
UW
27462008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2747
2748 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
2749
6a94242b
DJ
27502008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2751
2752 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
2753
5045add0
UW
27542008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2755
2756 * findvar.c (locate_var_value): Do not call get_frame_arch
2757 with a NULL frame argument.
2758
029a67e4
UW
27592008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2760
2761 * frame.h (frame_map_regnum_to_name): Remove prototype.
2762 (frame_map_name_to_regnum): Remove prototype.
2763 * frame.c (frame_map_regnum_to_name): Remove.
2764 (frame_map_name_to_regnum): Remove.
2765 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
2766 instead of frame_map_regnum_to_name.
2767 * ax-gdb.c: Include "user-regs.h".
2768 (gen_expr): Use user_reg_map_name_to_regnum instead of
2769 frame_map_name_to_regnum.
2770 * eval.c: Include "user-regs.h".
2771 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
2772 instead of frame_map_name_to_regnum.
2773 * infcmd.c (registers_info): Likewise.
2774 * parse.c: Include "user-regs.h".
2775 (write_dollar_variable): Use user_reg_map_name_to_regnum
2776 instead of frame_map_name_to_regnum.
2777 * tracepoint.c: Include "user-regs.h".
2778 (encode_actions): Use user_reg_map_name_to_regnum
2779 instead of frame_map_name_to_regnum.
2780 * valops.c: Include "user-regs.h".
2781 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
2782 of frame_map_regnum_to_name.
2783
e84ee240
UW
27842008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2785
2786 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
2787 and manually relocate .opd contents from BFD instead of reading
2788 them from target memory.
2789
0114d602
DJ
27902008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2791
2792 * dwarf2read.c (processing_current_prefix): Delete static
2793 variable.
2794 (process_full_comp_unit): Do not set processing_current_prefix.
2795 (dwarf2_full_name): New function.
2796 (read_func_scope): Do not set processing_current_prefix. Use
2797 determine_prefix.
2798 (read_structure_type): Do not set processing_current_prefix. Remove
2799 unused inner cleanup.
2800 (process_structure_scope): Do not set processing_current_prefix.
2801 (read_enumeration_type): Use dwarf2_full_name.
2802 (determine_class_name): Return a const char *. Put the result
2803 on the objfile obstack. Use dwarf2_full_name.
2804 (read_namespace_type): New function.
2805 (read_namespace): Do not create the type here. Use
2806 determine_prefix.
2807 (read_typedef): Use dwarf2_full_name. Do not pass the name
2808 to init_type.
2809 (read_base_type): Do not pass the name to init_type. Handle
2810 TYPE_FLAG_NOSIGN.
2811 (read_unspecified_type): Do not pass the name to init_type.
2812 (new_symbol): Use dwarf2_full_name instead of
2813 processing_current_prefix.
2814 (read_type_die): Do not set processing_current_prefix. Handle
2815 DW_TAG_namespace.
2816 (determine_prefix): Handle specifications. Return the result
2817 on the objfile obstack. Handle unions correctly.
2818
df8a16a1
DJ
28192008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2820
2821 * buildsym.c (add_symbol_to_list): Do not call
2822 cp_scan_for_anonymous_namespaces here.
2823 (finish_block): Do not call cp_set_block_scope here.
2824 * cp-namespace.c (processing_has_namespace_info)
2825 (processing_current_prefix): Delete.
2826 (cp_initialize_namespace): Do not initialize
2827 processing_has_namespace_info.
2828 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
2829 not check processing_has_namespace_info.
2830 (cp_set_block_scope): Take prefix and namespace info flag as
2831 arguments. Honor namespaces regardless of a demangled name.
2832 * cp-support.h (processing_has_namespace_info)
2833 (processing_current_prefix): Delete declarations.
2834 (cp_set_block_scope): Update prototype.
2835 * dwarf2read.c (processing_has_namespace_info)
2836 (processing_current_prefix): New static variables.
2837 (read_file_scope): Initialize processing_has_namespace_info.
2838 (read_func_scope): Call cp_set_block_scope for C++.
2839 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
2840 * symtab.c (symbol_demangled_name): Accept a const argument.
2841 * symtab.h (symbol_demangled_name): Update prototype.
2842
3567439c
DJ
28432008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2844
2845 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
2846 * blockframe.c (find_pc_partial_function): Likewise.
2847 * buildsym.c (find_symbol_in_list): Likewise.
2848 * c-valprint.c (c_val_print): Likewise.
2849 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
2850 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
2851 * cp-support.c (cp_remove_params): Renamed from remove_params and
2852 made global.
2853 (overload_list_add_symbol): Update call to remove_params.
2854 * cp-support.h (cp_remove_params): Declare.
2855 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
2856 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
2857 * expprint.c (dump_subexp_body_standard): Likewise.
2858 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
2859 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
2860 for messages.
2861 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
2862 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
2863 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2864 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
2865 symbols and SYMBOL_PRINT_NAME for messages.
2866 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2867 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
2868 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
2869 SYMBOL_SET_LINKAGE_NAME.
2870 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
2871 * minsyms.c (add_minsym_to_demangled_hash_table): Use
2872 SYMBOL_SEARCH_NAME.
2873 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
2874 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
2875 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
2876 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
2877 (address_info): Use SYMBOL_PRINT_NAME for messages and
2878 SYMBOL_LINKAGE_NAME for lookups.
2879 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
2880 * stabsread.c (patch_block_stabs, define_symbol)
2881 (read_type, read_enum_type, common_block_end)
2882 (cleanup_undefined_types_1, scan_file_globals): Use
2883 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
2884 and SYMBOL_PRINT_NAME.
2885 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
2886 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
2887 cp_remove_params instead of cplus_demangle.
2888 (print_block_frame_labels, print_frame_arg_vars): Use
2889 SYMBOL_LINKAGE_NAME.
2890 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
2891 SYMBOL_LINKAGE_NAME.
2892 (dump_symtab_1, print_symbol, print_partial_symbols)
2893 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
2894 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
2895 (SYMBOL_SET_LINKAGE_NAME): New.
2896 (SYMBOL_SET_NAMES): Add a comment.
2897 * tracepoint.c (set_traceframe_context, validate_actionline)
2898 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
2899 lookups and SYMBOL_PRINT_NAME for output.
2900 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
2901 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2902
aded6f54
PA
29032008-08-21 Pedro Alves <pedro@codesourcery.com>
2904
2905 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
2906 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
2907 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
2908 obj_section_addr and obj_section_endaddr.
2909 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
2910 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2911 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
2912 (find_extant_func_descr): Likewise.
2913 * solib-frv.c (frv_relocate_main_executable): Use
2914 obj_section_addr.
2915 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
2916 obj_section_addr and obj_section_endaddr.
2917
158c7665
PH
29182008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
2919
2920 * NEWS: Amplify last entry on boolean types in Ada.
2921
f2f0e013
DJ
29222008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2923
2924 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
2925 Make the dwarf2_cu * parameter output as well as input. Update it if
2926 we follow a reference to another CU.
2927 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
2928 (die_type, die_containing_type): Update calls to changed functions.
2929 Use the returned CU along with the returned DIE.
2930 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
2931
03dd20cc
DJ
29322008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2933
2934 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
2935 in the DIEs here.
2936 (process_queue): Do not read in the DIEs here.
2937 (psymtab_to_symtab_1): Update call to queue_comp_unit.
2938 (read_full_die): Do not call queue_comp_unit from here.
2939 (maybe_queue_comp_unit): New function.
2940 (follow_die_ref): Use it.
2941
b60c80d6
DJ
29422008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2943
2944 * dwarf2read.c (struct attribute): Move earlier.
2945 (struct die_info): Change attrs to a trailing array.
2946 (dwarf_alloc_die): Take the number of attributes. Allocate space
2947 for them.
2948 (read_full_die): Update call to dwarf_alloc_die. Do not manually
2949 allocate attributes.
2950
51545339
DJ
29512008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2952
2953 * dwarf2read.c (REF_HASH_SIZE): Delete.
2954 (struct dwarf2_cu): Replace die_ref_table with die_hash.
2955 (struct die_info): Remove next_ref.
2956 (store_in_ref_table): Remove offset argument. Rewrite to use
2957 htab_find_slot_with_hash.
2958 (die_hash, die_eq): New.
2959 (read_comp_unit): Allocate the die_hash.
2960 (read_die_and_children): Update call to store_die_ref.
2961 (follow_die_ref): Rewrite to use htab_find_with_hash.
2962
7475d072
DJ
29632008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2964
2965 * dwarf2read.c (free_die_list, copy_die): Delete.
2966 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
2967 on the obstack.
2968 (read_full_die): Update call to dwarf_alloc_die. Allocate
2969 attributes on the CU obstack.
2970 (free_one_comp_unit): Do not call free_die_list.
2971
1d325ec1
DJ
29722008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2973
2974 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
2975 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
2976 sibling list.
2977 (read_full_die): Do not allocate DIEs for abbrev 0.
2978 (follow_die_ref): Correct error message.
2979
b96e2927
PA
29802008-08-20 Pedro Alves <pedro@codesourcery.com>
2981
2982 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
2983 there are no symbols loaded, instead of throwing a generic error.
2984 (decode_variable): Likewise.
2985
f1f6aadf
PA
29862008-08-20 Pedro Alves <pedro@codesourcery.com>
2987
2988 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
2989 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
2990 macros.
2991 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
2992 and offset. Use size_t instead of unsigned long.
2993 (build_objfile_section_table): Use size_t instead of unsigned
2994 long.
2995 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
2996 gone.
2997 (find_pc_sect_section): Use obj_section_addr and
2998 obj_section_endaddr.
2999 * symfile.c (symfile.c): Remove code that maps sections
3000 offsets in "addr" to the object's sections.
3001 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
3002 * gcore.c (gcore_create_callback): Use obj_section_addr and
3003 obj_section_endaddr.
3004 * maint.c (print_objfile_section_info): Likewise.
3005 * printcmd.c (sym_info): Use obj_section_addr and
3006 obj_section_endaddr.
3007 * symtab.c (fixup_section): Likewise.
3008
3923a2b2
MK
30092008-08-20 Mark Kettenis <kettenis@gnu.org>
3010
3011 * sparc-tdep.c: Make some comments catch up with reality.
3012
b3eb342c
VP
30132008-08-20 Vladimir Prus <vladimir@codesourcery.com>
3014
3015 * NEWS: Mention 'set target-async'
3016
7f7efbd9
VP
30172008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3018
3019 * infrun.c (resume): If the thread is placed to the deferred step
3020 queue, mark it as running.
3021
9908b566
VP
30222008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3023
3024 Make sure target supports non-stop.
3025 * infcmd.c (run_command_1, attach_command): If non-stop mode
3026 is requested, verify the target supports it.
3027 * linux-nat.c (linux_nat_supports_non_stop): New.
3028 (linux_nat_add_target): Register the above.
3029 * target.c (find_default_supports_non_stop)
3030 (target_supports_non_stop): New.
3031 (init_dummy_target): Register find_default_supports_non_stop.
3032 * target.h (struct target_ops): New field to_supports_non_stop.
3033 (target_supports_non_stop): New.
3034
c6ebd6cf
VP
30352008-08-19 Pedro Alves <pedro@codesourcery.com>
3036 Vladimir Prus <vladimir@codesourcery.com>
3037
3038 * target.c (target_async_permitted, target_async_permitted_1)
3039 (set_maintenance_target_async_permitted)
3040 (show_maintenance_target_async_permitted): New.
3041 (initialize_targets): Register 'set target-async'.
3042 * target.h (target_async_permitted): Declare.
3043 * linux-nat.c (linux_nat_async_enabled)
3044 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
3045 (show_maintenance_linux_async_permitted): Remove.
3046 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
3047 (get_pending_events, linux_nat_async): Use target_async_permitted.
3048 (linux_nat_set_async_mode): Remove, moving the only used bits
3049 into...
3050 (linux_nat_setup_async): This.
3051 (_initialize_linux_nat): Do not register 'maint set linux-async'.
3052 Use linux_nat_setup_async.
3053 * remote.c (remote_async_permitted, remote_async_permitted_set)
3054 (set_maintenance_remote_async_permitted)
3055 (show_maintenance_remote_async_permitted): Remove.
3056 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
3057 (remote_is_async_p): Use target_async_permitted.
3058 (_initialize_remote): Don't register 'main set remote-async'.
3059 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
3060 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
3061 * mi/mi-main.c (mi_cmd_list_target_features): New.
3062
073120b9
VP
30632008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3064
3065 * target.c (maybe_kill_then_attach)
3066 (maybe_kill_then_create_inferior): Remove.
3067 (update_current_target): Do not default to_attach,
3068 to_create_inferiour, to_is_async_p.
3069
690cc4eb 30702008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
3071
3072 Changes for supporting boolean types in debugging data.
690cc4eb
PH
3073 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
3074 API to return LONGEST values rather than struct values.
3075 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
3076 and discrete_type_high_bound.
3077 (to_fixed_range_type): Create a range type in cases where
3078 argument is base type and its limits are representable as ints.
3079 (ada_is_modular_type): Correct so that base type must be integral.
3080 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
3081 keywords when they appear alone, since we are phasing out
bfb8797a 3082 direct representation of these identifiers in debugging data.
690cc4eb
PH
3083 * ada-exp.y: Define 'true' and 'false' as primaries.
3084 (type_boolean): New function.
3085 (type_int,type_long,type_long_long,type_floattype_double)
3086 (type_long_double): Remove uses of current_gdbarch for consistency
3087 with type_boolean.
3088 (write_int): Change comment to indicate that it might write boolean
3089 constant as well.
3090 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
3091 type, since will no longer be represented as enumerated type in
3092 debugging data.
3093 * ada-valprint.c (print_optional_low_bound): Handle boolean case
3094 as well.
bfb8797a
PH
3095 * NEWS: Note support boolean types.
3096
39540081
PA
30972008-08-18 Pedro Alves <pedro@codesourcery.com>
3098
3099 * bsd-uthread.c (bsd_uthread_close): New.
3100 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
3101 target.
3102 (bsd_uthread_solib_loaded): Fix typo.
3103 (bsd_uthread_target): Register bsd_uthread_close.
3104
87ab71f0
PA
31052008-08-18 Pedro Alves <pedro@codesourcery.com>
3106
3107 * corelow.c (core_open): Assume there was no upper layer left
3108 behind from a previous inferior.
3109 * target.c (pop_all_targets): Rename to ...
3110 (pop_all_targets_above): ... this. Add a target stratum
3111 parameter. Use it instead of hardcoding the dummy_stratum.
3112 (pop_all_targets): New, defer to pop_all_targets_above.
3113 (target_preopen): Use pop_all_targets_above.
3114 * target.h (pop_all_targets_above): Declare.
3115
5231c1fd
PA
31162008-08-18 Pedro Alves <pedro@codesourcery.com>
3117
3118 * gdbthread.h (thread_change_ptid): Declare.
3119 * infrun.c (infrun_thread_ptid_changed): New.
3120 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
3121 thread_ptid_changed observer.
3122 * regcache.c (regcache_thread_ptid_changed): New.
3123 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
3124 thread_ptid_changed observer.
3125 * thread.c (thread_change_ptid): New.
3126
f98dfd4b
TT
31272008-08-18 Tom Tromey <tromey@redhat.com>
3128
3129 * symfile.c (reread_symbols): Update.
3130 * solib-sunos.c (allocate_rt_common_objfile): Update.
3131 * objfiles.c (allocate_objfile): Update.
3132 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
3133 Remove.
3134
d87ecdfb
TT
31352008-08-18 Tom Tromey <tromey@redhat.com>
3136
3137 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
3138 obstack.
3139
46a9b8ed
DJ
31402008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
3141
3142 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
3143 lr_register.
3144 (rs6000_in_function_epilogue_p): Check for bctr.
3145 (skip_prologue): Initialize lr_register. Set lr_reg to a register
3146 number. Set gpr_mask and used_bl. Continue scanning while some
3147 expected registers are not saved. Set lr_register if LR is not
3148 stored.
3149 (rs6000_frame_cache): Handle gpr_mask and lr_register.
3150
44feb3ce
TT
31512008-08-17 Tom Tromey <tromey@redhat.com>
3152
3153 PR gdb/1535:
3154 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
3155 (ep_find_event_name_end): Remove.
3156 (catch_fork_temporary, catch_vfork_temporary,
3157 catch_fork_permanent, catch_vfork_permanent): New constants.
3158 (catch_vfork, catch_fork): Remove.
3159 (catch_fork_command_1): Add 'command' argument. Remove
3160 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
3161 all cases.
3162 (catch_exec_command_1): Add 'command' argument; remove
3163 'tempflag'. Handle NULL 'arg'.
3164 (catch_load_command_1): Likewise.
3165 (catch_unload_command_1): Likewise.
3166 (catch_ada_exception_command): Likewise.
3167 (catch_assert_command): Likewise.
3168 (catch_catch_command): New function.
3169 (catch_throw_command): Likewise.
3170 (catch_command_1): Remove.
3171 (catch_command): Just call error.
3172 (tcatch_command): Likewise.
3173 (catch_cmdlist): New global.
3174 (tcatch_cmdlist): Likewise.
3175 (add_catch_command): New function.
3176 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
3177 commands. Create all catch sub-commands.
3178
0d6431e2
PA
31792008-08-17 Pedro Alves <pedro@codesourcery.com>
3180
3181 * gdbthread.h: Add comments.
3182 * stack.c (get_selected_block): Return 0 on an exited thread.
3183 * top.c (execute_command): Check for is_stopped, not !is_running.
3184 * event-top.c (command_handler): Likewise.
3185
8931f526
PA
31862008-08-16 Pedro Alves <pedro@codesourcery.com>
3187
3188 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3189 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3190 (mi_cmd_exec_finish): Remove "return".
3191
aa76d38d
PA
31922008-08-16 Pedro Alves <pedro@codesourcery.com>
3193
3194 * target.h (pop_all_targets): Declare.
3195 * target.c (pop_all_targets): New.
3196 * top.c (quit_target): Pop all targets instead of just closing the
3197 current.
3198
311a4e6b
TJB
31992008-08-16 Vladimir Prus <vladimir@codesourcery.com>
3200 Thiago Jung Bauermann <bauerman@br.ibm.com>
3201
3202 * cli-script.c (read_next_line): Add parse_commands argument.
3203 (recurse_read_control_structure): Adapt to new read_next_line
3204 signature.
3205 (read_command_lines): Add parse_commands argument.
3206 (define_command): Adapt to new read_command_lines signature.
3207 (document_command): Likewise.
3208 * breakpoint.c (commands_command): Likewise.
3209 * defs.h (read_command_lines): Adjust function prototype.
3210
24209737
PH
32112008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
3212
3213 * ada-lang.c (pos_atr): Account for the possibility that the
3214 argument may be a reference.
3215
9f1d5432
PH
32162008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
3217
3218 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
3219 ('F' format) for @FIX names generated by the loader, retaining only
3220 the minimal symbols (and no partial symbol tables) for these names.
3221 Fixes warning messages about symbols that are found in partial
3222 symbol tables, but not full symbol tables.
3223
83c265ab
PA
32242008-08-16 Pedro Alves <pedro@codesourcery.com>
3225
3226 * infrun.c (fetch_inferior_event): Only call normal_stop if not
3227 stopping quietly.
3228
604c2f83
LM
32292008-08-15 Luis Machado <luisgpm@br.ibm.com>
3230
3231 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
3232 Include "features/rs6000/powerpc-vsx64.c".
3233 (ppc_supply_vsxregset): New function.
3234 (ppc_collect_vsxregset): New function.
3235 (IS_VSX_PSEUDOREG): New macro.
3236 (IS_EFP_PSEUDOREG): New macro.
3237 (vsx_register_p): New function.
3238 (ppc_vsx_support_p): New function.
3239 (rs6000_builtin_type_vec128): New function.
3240 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
3241 correct names for VSX registers and EFPR registers.
3242 (rs6000_pseudo_register_type): Return correct types for VSX
3243 and EFPR registers.
3244 (rs6000_pseudo_register_reggroup_p): Return correct group for
3245 VSX and EFPR registers.
3246 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
3247 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
3248 (vsx_pseudo_register_read): New function.
3249 (vsx_pseudo_register_write): New function.
3250 (efpr_pseudo_register_read): New function.
3251 (efpr_pseudo_register_write): New function.
3252 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
3253 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
3254 (rs6000_gdbarch_init): Declare have_vsx.
3255 Initialize new upper half VSX registers.
3256 Initialize VSX-related and EFPR-related pseudo-registers variables.
3257 Adjust the number of pseudo registers accordingly.
3258
3259 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
3260 and SIZEOF_VSRREGS.
3261 (gdb_vsxregset_t): New type.
3262 (have_ptrace_getsetvsxregs): New variable.
3263 (fetch_vsx_register): New function.
3264 (fetch_register): Handle VSX registers.
3265 (fetch_vsx_registers): New function.
3266 (fetch_ppc_registers): Handle VSX registers.
3267 (store_ppc_registers): Handle VSX registers.
3268 (store_vsx_register): New function.
3269 (store_register): Handle VSX registers.
3270 (store_vsx_registers): New function.
3271 (ppc_linux_read_description): Handle VSX-enabled inferiors.
3272 (gdb_vsxregset_t): New type.
3273 (supply_vsxregset): New function.
3274 (fill_vsxregset): New function.
3275
3276 * ppc-tdep.h (vsx_register_p): New prototype.
3277 (vsx_support_p): New prototype.
3278 (ppc_vsr0_regnum): New variable.
3279 (ppc_vsr0_upper_regnum): Likewise.
3280 (ppc_efpr0_regnum): Likewise.
3281 (ppc_builtin_type_vec128): New type.
3282 (ppc_num_vsrs): New constant.
3283 (ppc_num_vshrs): New constant.
3284 (ppc_num_efprs): Likewise.
3285 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
3286 (ppc_supply_vsxregset): New prototype.
3287 (ppc_collect_vsxregset): New prototype.
3288
3289 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
3290 Include "features/rs6000/powerpc-vsx64l.c".
3291 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
3292 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
3293 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
3294 (ppc_linux_regset_from_core_section): Handle VSX core section.
3295 (ppc_linux_core_read_description): Support VSX-enabled core files.
3296
3297 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
3298 Declare tdesc_powerpc_vsx64l
3299
3300 * corelow.c (get_core_register_section): Support VSX-enabled
3301 core files.
3302
3303 * features/rs6000/power-vsx.xml: New VSX descriptions.
3304 * features/rs6000/powerpc-vsx32.xml: New file.
3305 * features/rs6000/powerpc-vsx32l.xml: New file.
3306 * features/rs6000/powerpc-vsx64.xml: New file.
3307 * features/rs6000/powerpc-vsx64l.xml: New file.
3308 * features/rs6000/powerpc-vsx32.c: New file (generated).
3309 * features/rs6000/powerpc-vsx32l.c: New file (generated).
3310 * features/rs6000/powerpc-vsx64.c: New file (generated).
3311 * features/rs6000/powerpc-vsx64l.c: New file (generated).
3312 * features/Makefile: Updated with new descriptions.
3313 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
3314 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
3315
dde7c0a9
VP
33162008-08-15 Vladimir Prus <vladimir@codesourcery.com>
3317
3318 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
3319 call linux_target twice.
3320
ebd67d87
AR
33212008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
3322
3323 * nto-tdep.c (lm_info): Updated struct lm_info definition from
3324 solib-svr4.c
3325 (LM_ADDR): Use l_addr if available; if not, use link map and set
3326 l_addr.
3327
886a217c
TT
33282008-08-14 Tom Tromey <tromey@redhat.com>
3329
3330 * macrocmd.c (macro_define_command): Check for NULL argument.
3331 (macro_undef_command): Likewise.
3332
3d488bfc
PA
33332008-08-14 Pedro Alves <pedro@codesourcery.com>
3334
3335 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
3336
33e5cbd6
PA
33372008-08-13 Pedro Alves <pedro@codesourcery.com>
3338
3339 * breakpoint.c (always_inserted_auto, always_inserted_on)
3340 (always_inserted_off, always_inserted_enums): New.
3341 (always_inserted_mode): Change type to char* and point to
3342 always_inserted_auto.
3343 (show_always_inserted_mode): In auto mode, also show the current
3344 effect of the option.
3345 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
3346 (_initialize_breakpoint): Make the "set breakpoints
3347 always-inserted" command an enum command. Extend help to describe
3348 the auto mode.
3349
8fbde58b
UW
33502008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
3351
3352 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
3353 query valid) bit. Ignore bits outside the condition field.
3354 (info_spu_proxydma_command): Ignore bits outside the field.
3355
11fa8e43
MS
33562008-08-12 Michael Snyder <msnyder@vmware.com>
3357
3358 * MAINTAINERS: Update my email address.
3359
fcb09a75
UW
33602008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
3361
3362 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
3363
a6f3e723
SL
33642008-08-12 Pedro Alves <pedro@codesourcery.com>
3365
3366 Add no-ack mode to the remote protocol --- optionally stop ACKing
3367 packets and responses when we have a reliable communication
3368 medium.
3369
3370 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
3371
3372 * remote.c (struct remote_state): Add noack_mode field.
3373 (PACKET_QStartNoAckMode): New.
3374 (remote_start_remote): Don't any outstanding packet here.
3375 (remote_open_1): Clear noack_mode. Ack any outstanding packet
3376 here. Activate noack mode if requested.
3377 (remote_protocol_features): Add QStartNoAckMode.
3378 (remote_open_1):
3379 (putpkt_binary): Don't send ack in noack mode.
3380 (read_frame): Don't recompute the checksum in noack mode.
3381 (getpkt_sane): Skip sending ack if in noack mode.
3382 (_initialize_remote): Add set/show remote noack mode.
3383 * NEWS: Note the new features.
3384
8ab3d180
KB
33852008-08-11 Kevin Buettner <kevinb@redhat.com>
3386
3387 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
3388 New macros.
3389 (rs6000_skip_main_prologue): New function.
3390 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
3391
63a61bf6
SL
33922008-08-11 Sandra Loosemore <sandra@codesourcery.com>
3393
3394 * MAINTAINERS (Write After Approval): Add self.
3395
9d4fde75
SS
33962008-08-11 Stan Shebs <stan@codesourcery.com>
3397
3398 ARM BE8 support.
3399 * disasm.c (gdb_disassemble_info): Set endian_code.
3400 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
3401 * gdbarch.h, gdbarch.c: Regenerate.
3402 * arch-utils.c (initialize_current_architecture): Set the
3403 default byte_order_for_code.
3404 (gdbarch_info_init): Ditto.
3405 (gdbarch_info_fill): Ditto.
3406 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
3407 (thumb_analyze_prologue): Swap halfword if code endianness is
3408 different from general endianness.
3409 (arm_skip_prologue): Similarly.
3410 (arm_scan_prologue): Ditto.
3411 (thumb_get_next_pc): Ditto.
3412 (arm_get_next_pc): Ditto.
3413 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
3414 choose correct endianness for breakpoints.
3415
6c613132
PA
34162008-08-10 Pedro Alves <pedro@codesourcery.com>
3417
3418 * bsd-kvm.c: Include "gdbthread.h".
3419 (bsd_kvm_ptid): New.
3420 (bsd_kvm_open): Add a main thread.
3421 (bsd_kvm_close): Delete it.
3422 (bsd_kvm_thread_alive): New.
3423 (bsd_kvm_pid_to_str): New.
3424 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
3425 bsd_kvm_pid_to_str.
3426 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
3427
6eb7ee03
PA
34282008-08-09 Pedro Alves <pedro@codesourcery.com>
3429
3430 * buildsym.c (start_subfile): Properly cast sentinel in concat
3431 call.
3432 * cp-name-parser.y: Include "config.h".
3433 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
3434 concat call.
3435 * gdb_select.h: Include sys/time.h if sys/select.h is not
3436 available.
3437
444c3224
PA
34382008-08-09 Pedro Alves <pedro@codesourcery.com>
3439
3440 * go32-nat.c: Include "gdbthread.h".
3441 (go32_stop, go32_kill_inferior): Delete the main thread.
3442 (go32_create_inferior): Add it.
3443 (go32_thread_alive, go32_pid_to_str): New.
3444 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
3445
9d0b3624
PA
34462008-08-09 Pedro Alves <pedro@codesourcery.com>
3447
3448 * go32-nat.c (fetch_register, store_register): Pass the regcache
3449 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
3450 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
3451 (struct seg_descr, struct seg_descr): pack the whole struct
3452 instead of each member individually.
3453
509238d6
AS
34542008-08-09 Andreas Schwab <schwab@suse.de>
3455
3456 * python/python.c (_initialize_python): Use unabbreviated commands
3457 in prefix name.
3458
c068b4e8
DJ
34592008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
3460
3461 * Makefile.in (stamp-h): Also create .deps.
3462
21374e5f
TT
34632008-08-09 Tom Tromey <tromey@redhat.com>
3464
3465 * Makefile.in (generated_files): Add GNULIB_H.
3466
7be67755
DA
34672008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3468
3469 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
3470 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
3471 Revise comment.
3472 (pa64_current_sos): Remove map private warning warning.
3473 * solib-som.c: Include string.h and sys/utsname.h.
3474 (get_hpux_major_release): New function.
3475 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
3476 about shared library private mapping on HP-UX 11 and later. Only force
3477 private mapping of shared libraries on HP-UX 10 and earlier.
3478 (link_map_start): Delete warning.
3479
e0c62198
L
34802008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
3481 H.J. Lu <hongjiu.lu@intel.com>
3482 Mark Kettenis <kettenis@gnu.org>
3483
3484 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
3485 (amd64_init_frame_cache): Initialize saved_sp_reg.
3486 (amd64_analyze_stack_align): New.
3487 (amd64_analyze_prologue): Call it.
3488 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
3489 %rip to 8 when halfway aligning the stack.
3490
3491 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
3492 AMD64_R14_REGNUM.
3493
3494 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
3495 saved_sp_reg.
3496 (i386_alloc_frame_cache): Remove stack_align. Initialize
3497 saved_sp_reg to -1.
3498 (i386_analyze_stack_align): Rewrite.
3499 (i386_frame_cache): Use saved_sp_reg if it is valid.
3500
b9db4ced
UW
35012008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
3502
3503 * target.c: Include "solib.h".
3504 (target_pre_inferior): Call no_shared_libraries.
3505 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
3506 or clear_solib.
3507 (attach_command): Do not call clear_solib.
3508
3979a37f
MK
35092008-08-09 Mark Kettenis <kettenis@gnu.org>
3510
3511 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
3512 the %eip register.
3513
2b26d9fa
TT
35142008-08-08 Tom Tromey <tromey@redhat.com>
3515
3516 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
3517 POSTCOMPILE.
3518 (python-utils.o): Likewise.
3519
f1648876
AS
35202008-08-08 Andreas Schwab <schwab@suse.de>
3521
3522 * corefile.c (_initialize_core): Remove spurious paren from set
3523 gnutarget doc string.
3524
b7622095
LM
35252008-08-08 Luis Machado <luisgpm@br.ibm.com>
3526
3527 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 3528 Define PPC_FEATURE_BOOKE.
b7622095
LM
3529 (ppc_linux_get_hwcap): New function.
3530 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
3531 4-bytes alignment restrictions.
3532 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
3533 positioning of the read/write flags.
3534 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
3535 4-bytes alignment.
3536
2dc38344
PA
35372008-08-08 Pedro Alves <pedro@codesourcery.com>
3538
3539 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3540
3541 * win32-nat.c (win32_add_thread): Change thread argument type to
3542 ptid_t. Adjust.
3543 (win32_add_thread): Adjust.
3544 (win32_delete_thread): Change thread argument type to ptid_t.
3545 Adjust.
3546 (win32_fetch_inferior_registers, win32_store_inferior_registers)
3547 (win32_resume, get_win32_debug_event, get_win32_debug_event)
3548 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
3549 (init_win32_ops): Put to_magic last.
3550 (win32_win32_thread_alive): Adjust.
3551
4d6c6261
PA
35522008-08-08 Pedro Alves <pedro@codesourcery.com>
3553
3554 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
3555 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
3556
e5ef4d75
PA
35572008-08-08 Pedro Alves <pedro@codesourcery.com>
3558
3559 * remote-m32r-sdi.c: Include "gdbthread.h".
3560 (remote_m32r_ptid): New.
3561 (m32r_close): Delete the main thread.
3562 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
3563 main thread.
3564 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
3565 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
3566
a417dc56
RW
35672008-08-07 Tom Tromey <tromey@redhat.com>
3568 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3569
3570 * aclocal.m4, configure: Rebuild.
3571 * configure.in: Call ZW_CREATE_DEPDIR,
3572 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
3573 (MAKE, GMAKE): New substs.
3574 * acinclude.m4: Include depstand.m4.
3575 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
3576 COMPILE, POSTCOMPILE, depcomp): New variables.
3577 Remove all _h variables.
3578 Remove many .o targets.
3579 ($(srcdir)/copying.c): avoid backslash-newline after comment
3580 sign (@maintainer_mode_true@).
3581 (HFILES_NO_SRCDIR): Regenerate.
3582 (generated_files): New variable.
3583 (all_gdbtk_cflags): Likewise.
3584 (.c.o): Rewrote.
3585 (init.o, version.o, copying.o): Remove.
3586 (distclean): Remove DEPDIR.
3587 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
3588 printcmd.o, procfs.o, v850ice.o): Rewrite.
3589 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
3590 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
3591 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
3592 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
3593 gdbtk-wrapper.o): Likewise.
3594 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
3595 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
3596 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
3597 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
3598 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
3599 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
3600 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
3601 tui-wingeneral.o, tui-winsource.o): Likewise.
3602 (all_object_files): New variable.
3603 ($(all_object_files)): New target.
3604 Include dependency files, when using GNU Make.
3605
12ab8a60
UW
36062008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
3607
3608 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
3609 the valid bit set. Ensure display order respects partial
3610 order defined by dependency bits.
3611
6536cc32
DA
36122008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3613
3614 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
3615 setup.
3616
f73a15e4
MK
36172008-08-06 Mark Kettenis <kettenis@gnu.org>
3618
3619 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
3620 OpenBSD 4.3.
3621
d57a3c85
TJB
36222008-08-06 Vladimir Prus <vladimir@codesourcery.com>
3623 Tom Tromey <tromey@redhat.com>
3624 Thiago Jung Bauermann <bauerman@br.ibm.com>
3625 Doug Evans <dje@google.com>
3626
3627 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
3628 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
3629 PYTHON_CFLAGS): New.
3630 (python_h, python_internal_h): New.
3631 (cli-script.o): Depend on python.h
3632 (python.o, python-utils.o): New.
3633 * cli/cli-script.c (print_command_lines): Handle python_control.
3634 (execute_control_command): Handle python_control.
3635 (execute_control_command_untraced): New function.
3636 (while_command): Call execute_control_command_untraced.
3637 (if_command): Likewise.
3638 (get_command_line): Remove static attribute.
3639 (read_next_line): Handle "python".
3640 (recurse_read_control_structure): Handle python_control.
3641 (read_command_lines): Handle python_control.
3642 Include python.h.
3643 * cli/cli-script.h (get_command_line): Add prototype.
3644 (execute_control_command_untraced): Likewise.
3645 * configure.ac: Add --with-python.
3646 * defs.h (enum command_control_type) <python_control>: New
3647 constant.
3648 * python/python-internal.h: New file.
3649 * python/python.c: New file.
3650 * python/python.h: New file.
3651 * python/python-utils.c: New file.
3652 * NEWS: Mention Python scripting support and its new commands.
3653
5141027d
UW
36542008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3655
3656 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
3657
353cfe88
PM
36582008-08-06 Phil Muldoon <pmuldoon@redhat.com>
3659
f1648876 3660 * MAINTAINERS (Write After Approval): Add self.
353cfe88 3661
d6b74ac4
PM
36622008-08-06 Phil Muldoon <pmuldoon@redhat.com>
3663
3664 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
3665 (insert_breakpoint_locations): Likewise.
3666
ef0d312a
MS
36672008-08-05 Phil Muldoon <pmuldoon@redhat.com>
3668
3669 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
3670 breakpoint.
3671 (set_longjmp_breakpoint): Likewise.
3672
fb6d93b2
UW
36732008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3674
3675 PR build/2490
3676 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
3677 defined.
3678
e6ad058a
TT
36792008-08-05 Tom Tromey <tromey@redhat.com>
3680
3681 * bcache.c (deprecated_bcache_added): Initialize obstack.
3682 (bcache_xmalloc): Don't initialize obstack.
3683 (bcache_xfree): Conditionally free obstack.
3684 (bcache_memory_used): Update.
3685
11d31d94
TT
36862008-08-05 Tom Tromey <tromey@redhat.com>
3687
3688 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
3689 bcache_full.
3690 (append_psymbol_to_list): Accept a const pointer.
3691 (add_psymbol_to_list): Fix const correctness.
3692 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
3693 (bcache_full): Declare.
3694 * bcache.c (bcache_data, deprecated_bcache): Remove.
3695 (bcache): Use bcache_full.
3696 (bcache_full): Rename from deprecated_bcache_added. Change return
3697 type.
3698
5be973eb
SS
36992008-08-04 Stan Shebs <stan@codesourcery.com>
3700
3701 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
3702 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
3703 (enable_break): Remove test of BKPT_AT_SYMBOL.
3704
5062cc19
KS
37052008-08-02 Keith Seitz <keiths@redhat.com>
3706
3707 * acinclude.m4: Include ../config/tcl.m4 to pick up
3708 standard Tcl configury bits.
3709 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
3710 * configure.ac: Don't check if ../itcl exists when building
3711 gdbtk. It could be installed.
3712 Rewrite gdbtk configury to allow for using system-supplied
f1648876 3713 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
3714 itcl and itk.
3715 * Makefile.in: Remove everything related to itcl and itk.
3716 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
3717 configure.ac.
3718 Remove v850ice.o build rule.
3719 (ALL_TCL_CFLAGS): New convenience defintion. Change all
3720 gdbtk sources to use it.
3721 * configure: Regenerate.
f1648876 3722
6d76a53d
SS
37232008-07-31 Stan Shebs <stan@codesourcery.com>
3724
3725 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
3726
ed7c5e43
SS
37272008-07-30 Stan Shebs <stan@codesourcery.com>
3728
3729 * objfiles.c (TARGET_KEEP_SECTION): Remove.
3730 (add_to_objfile_sections): Remove use.
3731
22ad7fee
TT
37322008-07-29 Tom Tromey <tromey@redhat.com>
3733
3734 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
3735 (lookup_cmd_composition): Likewise.
3736
d5529a84
TT
37372008-07-29 Tom Tromey <tromey@redhat.com>
3738
3739 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
3740 dead code. Fix indentation.
3741
938f4ca8
SS
37422008-07-29 Stan Shebs <stan@codesourcery.com>
3743
3744 * main.c (captured_main): Remove long-unused #if 0 blocks.
3745
7f4b89d1
TT
37462008-07-28 Tom Tromey <tromey@redhat.com>
3747
3748 * annotate.h (deprecated_annotate_starting_hook): Remove.
3749 (deprecated_annotate_stopped_hook): Remove.
3750 (deprecated_annotate_exited_hook): Remove.
3751 * Makefile.in (annotate.o): Depend on observer_h.
3752 * top.c (deprecated_delete_breakpoint_hook): Remove.
3753 (deprecated_create_breakpoint_hook): Likewise.
3754 (deprecated_modify_breakpoint_hook): Likewise.
3755 * interps.c (clear_interpreter_hooks): Update for removed hooks.
3756 * breakpoint.c (mention): Don't call removed hook.
3757 (delete_breakpoint): Likewise.
3758 (disable_breakpoint): Likewise.
3759 (do_enable_breakpoint): Likewise.
3760 * annotate.c: Include observer.h.
3761 (breakpoint_changed): Change type of argument.
3762 (_initialize_annotate): Register observers.
3763 (deprecated_annotate_starting_hook): Remove.
3764 (deprecated_annotate_stopped_hook): Remove.
3765 (deprecated_annotate_exited_hook): Remove.
3766 (annotate_starting): Update for hook removal.
3767 (annotate_stopped): Likewise.
3768 (annotate_exited): Likewise.
3769 * defs.h (deprecated_delete_breakpoint_hook): Remove.
3770 (deprecated_create_breakpoint_hook): Likewise.
3771 (deprecated_modify_breakpoint_hook): Likewise.
3772
8641e682
TT
37732008-07-28 Tom Tromey <tromey@redhat.com>
3774
3775 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
3776
064ef605
DJ
37772008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3778
3779 * configure.ac: Check for the GNU/Linux ptrace signature.
3780 * configure: Regenerated.
3781
57380f4e
DJ
37822008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3783
3784 * linux-nat.c (resume_callback): Add more debugging output.
3785 (linux_nat_has_pending_sigint): New function, based on
3786 linux_nat_has_pending.
3787 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
3788 (stop_wait_callback): Remove flush_mask handling. Honor
3789 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
3790 to recursive calls.
3791 (linux_nat_has_pending, flush_callback): Remove.
3792 (linux_nat_filter_event): Check for ignore_sigint.
3793 (linux_nat_wait): Remove flush_mask support and call to
3794 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
3795 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
3796
e09490f1
DJ
37972008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3798
3799 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
3800 report events from resumed threads.
3801
e38d4e1a
DJ
38022008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3803
3804 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
3805 (mips_linux_init_abi): Set tdep->syscall_next_pc.
3806 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
3807 mips-tdep.h.
3808 (mips32_next_pc): Handle the syscall instruction.
3809 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
3810 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
3811
fa8de41e
TT
38122008-07-26 Tom Tromey <tromey@redhat.com>
3813
3814 PR gdb/1158:
3815 * valops.c (value_struct_elt): Treat function-valued field as a
3816 static method.
3817
ccb3ac8a
TT
38182008-07-26 Tom Tromey <tromey@redhat.com>
3819
3820 PR gdb/1136:
3821 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
3822 longer tokens first.
3823
d72314c6
VP
38242008-07-26 Vladimir Prus <vladimir@codesourcery.com>
3825
3826 Kill cmd_async_ok.
f1648876
AS
3827 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
3828 (get_cmd_async_ok): Remove.
3829 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
3830 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
3831 * infcmd.c (_initialize_infcmd): Likewise.
3832 * thread.c (_initialize_thread): Likewise.
d72314c6 3833
5b68030f
JM
38342008-07-25 Joseph Myers <joseph@codesourcery.com>
3835
3836 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
3837 128-bit long doubles in even-odd pairs of FPRs. Do not
3838 right-align float arguments for big-endian.
3839 (mips_n32n64_return_value): Apply return value convention for
3840 structs containing one or two floating-point values to soft-float
3841 as well as hard-float. Handle 128-bit long doubles in such
3842 structs.
3843 (mips_o32_push_dummy_call): Only skip one integer register for a
3844 float argument passed in an FPR.
3845
383f836e
TT
38462008-07-25 Tom Tromey <tromey@redhat.com>
3847
3848 * tui/tui-hooks.c: Include observer.h.
3849 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
3850 Remove.
3851 (tui_bp_created_observer, tui_bp_deleted_observer,
3852 tui_bp_modified_observer): New globals.
3853 (tui_install_hooks): Use observers, not events.
3854 (tui_remove_hooks): Likewise.
3855 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
3856 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
3857 globals.
3858 (breakpoint_notify): Check mi_can_breakpoint_notify.
3859 (breakpoint_hooks): Remove.
3860 (mi_cmd_break_insert): Attach observers. Don't use events.
3861 * tracepoint.c: Include observer.h, not gdb-events.h.
3862 (tracepoint_operation, trace_pass_command): Notify observer.
3863 * interps.c: Don't include gdb-events.h.
3864 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
3865 * gdbarch.c: Rebuild.
3866 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
3867 (deprecated_current_gdbarch_select_hack): Notify observer.
3868 * breakpoint.h: Don't include gdb-events.h.
3869 * breakpoint.c: Don't include gdb-events.h.
3870 (condition_command): Notify observer.
3871 (commands_command): Likewise.
3872 (commands_from_control_command): Likewise.
3873 (mention, delete_breakpoint, set_ignore_count): Likewise.
3874 (disable_breakpoint, do_enable_breakpoint): Likewise.
3875 * Makefile.in (gdb_events_h): Remove.
3876 (breakpoint_h): Update.
3877 (COMMON_OBS): Remove gdb-events.o.
3878 (gdb-events.o): Remove.
3879 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
3880 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
3881 * gdb-events.c: Remove.
3882 * gdb-events.h: Remove.
3883 * gdb-events.sh: Remove.
3884
60e569b9
PA
38852008-07-24 Pedro Alves <pedro@codesourcery.com>
3886
3887 * remote.c (remote_threads_extra_info): Don't query the remote
3888 server about info on the internally added main thread.
3889
a6a7f2a5
AR
38902008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
3891
3892 * nto-procfs.c (procfs_attach): Populate initial thread list.
3893 (procfs_wait): Return new pid, built from the inferior status.
3894
e63e4db2
TJB
38952008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3896
3897 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
3898 * configure: Regenerate.
3899
14ef7606
AR
39002008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
3901
3902 * nto-procfs.c (procfs_xfer_memory): Changed signature.
3903 (procfs_resume): Workaround for dereferencing type-punned pointer
3904 warning.
f1648876 3905 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
3906 correct.
3907 * nto-tdep.h (nto_parse_redirection): Likewise.
3908
cfd8ab24
SS
39092008-07-21 Stan Shebs <stan@codesourcery.com>
3910
3911 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
3912 * gdbarch.sh: Adjust comment to refer to
3913 in_solib_dynsym_resolve_code().
3914 * gdbarch.h, gdbarch.c: Update.
3915 * solib-osf.c: Ditto.
3916 * infrun.c: Ditto.
3917 (handle_inferior_event): Use in_solib_dynsym_resolve_code
3918 unconditionally.
3919 * config/mips/nm-irix5.h: Remove undef of
3920 IN_SOLIB_DYNSYM_RESOLVE_CODE.
3921
781b42b0
TT
39222008-07-21 Tom Tromey <tromey@redhat.com>
3923
3924 * symfile.c (reread_symbols): Don't pass argument to observer.
3925 * exec.c (exec_file_attach): Don't pass argument to observer.
3926 * ada-lang.c (ada_executable_changed_observer): Remove argument.
3927 * symtab.c (symtab_observer_executable_changed): Remove argument.
3928 * observer.sh: Handle functions with no arguments.
3929
a366c65a 39302008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 3931 Chris Demetriou <cgd@google.com>
a366c65a
CD
3932
3933 * elfread.c (elf_symfile_segments): Fix the check that each loadable
3934 section fits within an ELF segment to handle ELF segments that hit
3935 the end of the address space.
3936
073d253f
CD
39372008-07-20 Chris Demetriou <cgd@google.com>
3938
3939 * MAINTAINERS (Write After Approval): Add self.
3940
d7d9f01e
TT
39412008-07-18 Tom Tromey <tromey@redhat.com>
3942
3943 PR gdb/855:
3944 * NEWS: Add entry for macro commands.
3945 * Makefile.in (macrocmd.o): Add gdb_string.h.
3946 * macroscope.h (user_macro_scope): Declare.
3947 (default_macro_scope): Update documentation.
3948 (macro_user_macros): Declare.
3949 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
3950 Use user_macro_scope.
3951 (null_macro_lookup): Remove.
3952 * macrotab.h (macro_callback_fn): Declare.
3953 (macro_for_each): Likewise.
3954 (macro_allow_redefinitions): Likewise.
3955 * macrotab.c (foreach_macro): New function
3956 (macro_for_each): Likewise.
3957 (struct macro_table) <redef_ok>: New field.
3958 (macro_allow_redefinitions): New function.
3959 (new_macro_table): Update.
3960 (macro_define_function): Likewise.
3961 (macro_define_object): Likewise.
3962 * macroscope.c (user_macro_scope): New function.
3963 (default_macro_scope): Use it.
3964 (macro_user_macros): New global.
3965 (standard_macro_lookup): Look in macro_user_macros.
3966 (_initialize_macroscope): New function.
3967 * macroexp.h (macro_is_whitespace, macro_is_digit,
3968 macro_is_identifier_nondigit): Declare.
3969 * macroexp.c (macro_is_whitespace): Rename. No longer static.
3970 (macro_is_digit): Likewise.
3971 (macro_is_identifier_nondigit): Likewise.
3972 (get_identifier): Update.
3973 (get_pp_number): Likewise.
3974 (get_token): Likewise.
3975 * macrocmd.c (skip_ws): New function.
3976 (extract_identifier): Likewise.
3977 (free_macro_definition_ptr): Likewise.
3978 (user_macros): Remove.
3979 (macro_define_command): Implement.
3980 (_initialize_macrocmd): Update.
3981 (macro_undef_command): Implement.
3982 (print_one_macro): New function.
3983 (macro_list_command): Implement.
3984
0f72fb1c
JM
39852008-07-18 Joseph Myers <joseph@codesourcery.com>
3986
3987 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
3988 in BFD ELF check.
3989 * configure: Regenerate.
3990
7c6467a4
PP
39912008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3992
3993 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
3994
680b56ce
AS
39952008-07-15 Andreas Schwab <schwab@suse.de>
3996
3997 * valops.c (value_cast_pointers): Follow typedefs when checking
3998 result of coercion.
3999
7f0df278
DJ
40002008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4001
4002 * block.c (block_function): Renamed to ...
4003 (block_linkage_function): ... this. All callers changed.
4004 * block.h (block_function): Renamed to ...
4005 (block_linkage_function): ... this.
4006
ba2c6aec
DJ
40072008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4008
4009 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
4010
d56907c1
DJ
40112008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4012
4013 * frame.c (frame_sp_unwind): Delete.
4014 (get_frame_sp): Do not use it.
4015 * frame.h (frame_sp_unwind): Delete prototype.
4016
f92aeb88
DJ
40172008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4018
4019 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
4020
ad1193e7
DJ
40212008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4022
4023 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
4024 * frame.c (frame_unwind_address_in_block): Delete.
4025 (get_frame_address_in_block): Do not use it. Check the type
4026 of the next frame first.
4027 (frame_cleanup_after_sniffer): Update comment.
4028 * frame.h (frame_unwind_address_in_block): Delete prototype.
4029 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
4030
ef02daa9
DJ
40312008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4032
4033 * frame.c (frame_func_unwind): Delete.
4034 (get_frame_func): Do not use it.
4035 * frame.h (frame_func_unwind): Delete prototype.
4036 * hppa-tdep.c (hppa_frame_cache): Update comment.
4037 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
4038
96e32df8
SS
40392008-07-14 Stan Shebs <stan@codesourcery.com>
4040
4041 * remote-sim.c (init_gdbsim_ops): Remove
4042 TARGET_REDEFINE_DEFAULT_OPS.
4043
ab8650a3
DJ
40442008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4045
4046 * findvar.c (read_var_value): Remove unused variable.
4047
8c90c137
LM
40482008-07-15 Luis Machado <luisgpm@br.ibm.com>
4049
4050 * infrun.c (handle_inferior_event): Tag threads as stopped
4051 before inserting breakpoints.
4052
4098af0f
HZ
40532008-07-15 Hui Zhu <teawater@gmail.com>
4054
4055 * MAINTAINERS: Added myself to section Write After Approval.
4056
7093c834
PP
40572008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
4058
4059 PR gdb/2477
4060 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 4061
56514771
PA
40622008-07-14 Pedro Alves <pedro@codesourcery.com>
4063
4064 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
4065 (i386_dicos_push_dummy_code): New.
4066 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
4067 Register i386_dicos_push_dummy_code.
4068
74ed0bb4
MD
40692008-07-14 Markus Deuling <deuling@de.ibm.com>
4070
4071 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
4072 (mips_n32n64_push_dummy_call, mips_o64_return_value)
4073 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
4074
4075 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
4076 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
4077 (mips_n32n64_fp_arg_chunk_p): Update caller.
4078
4079 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
4080 (mips_n32n64_push_dummy_call): Update caller.
4081
4082 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
4083 current_gdbarch.
4084 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4085 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
4086
4087
4088 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
4089 current_gdbarch.
4090 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
4091 (mips_o64_push_dummy_call): Update caller.
4092
4093 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
4094 (fp_register_arg_p, mips_dump_tdep): Update caller.
4095
4096 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
4097 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
4098
4099 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
4100 current_gdbarch.
4101 (mips32_scan_prologue): Update caller.
4102
4103 (heuristic_proc_start): Add gdbarch as parameter. Replace
4104 current_gdbarch.
4105 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
4106
4107 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4108 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
4109 the current architecture. Update call to getregs_supplies.
4110 (getregs_supplies): Add gdbarch as parameter and replace
4111 current_gdbarch.
4112
4113 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
4114 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
4115 NBSD_MIPS_JB_ELEMENT_SIZE.
4116 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
4117 replace current_gdbarch.
4118
4119 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
4120 current_gdbarch.
4121 (mips_fetch_registers, mips_store_registers): Update call
4122 to mips_map_regno.
4123 (mips_load): Use get_regcache_arch to get at the current_architecture
4124 and replace current_gdbarch.
4125
0c501536
PA
41262008-07-13 Pedro Alves <pedro@codesourcery.com>
4127
4128 * thread.c (restore_selected_frame): On fail to restore, select
4129 the innermost frame, and don't crash when warning the user.
4130
db009c8a
JB
41312008-07-13 Hui Zhu <teawater@gmail.com>
4132
4133 * symtab.c (expand_line_sal): Fix a memory leak.
4134
0ffe5012
PA
41352008-07-13 Pedro Alves <pedro@codesourcery.com>
4136
4137 * utils.c (struct continuation): Define as inheriting struct
4138 cleanup.
4139 (add_continuation, do_all_continuations)
4140 (discard_all_continuations, add_intermediate_continuation)
4141 (do_all_intermediate_continuations)
4142 (discard_all_intermediate_continuations): Adjust.
4143
dbba8251
VP
41442008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4145
4146 Skip varobj in running threads.
680b56ce
AS
4147 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
4148 thread is not stopped, skip the varobj.
4149 * Makefile.in: Update dependencies.
dbba8251 4150
e3d6cd5f
VP
41512008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4152
4153 Enable all commands while inferiour is running
680b56ce
AS
4154 * mi/mi-main.c (mi_cmd_execute): Don't check if
4155 inferiour is executing.
e3d6cd5f 4156
b10a37b1
VP
41572008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4158
4159 Allow all CLI command even if target is executing.
680b56ce
AS
4160 * gdb/top.c (execute_command_1): Don't check if the inferiour
4161 is running.
b10a37b1 4162
ea069267
VP
41632008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4164
4165 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
4166 Fix printing of frame, when frame is wrong.
4167
cdc9523a
UW
41682008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4169
4170 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
4171 backchain is unreadable.
4172
d5b25491
UW
41732008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4174
4175 * spu-linux-nat.c: Include "gdbthread.h".
4176 (spu_child_post_startup_inferior): Register main thread.
4177 (spu_child_post_attach): Likewise.
4178 * Makefile.in (spu-linux-nat.o): Update dependencies.
4179
604ead4a
PA
41802008-07-12 Pedro Alves <pedro@codesourcery.com>
4181
4182 Rewrite continuations internals on top of cleanups and plug
4183 continuation arguments leaks.
4184
4185 * defs.h (struct continuation): Make it opaque.
4186 (add_continuation, add_intermediate_continuation): Drop the int
4187 argument of the continuation hook argument. Add
4188 continuation_free_args argument.
4189 (do_all_continuations, do_all_intermediate_continuations): Drop
4190 the error_p argument.
4191
4192 * utils.c (add_continuation): Drop the int argument of the
4193 continuation hook argument. Add continuation_free_args argument.
4194 Reimplement on top of cleanups.
4195 (do_all_continuations): Drop error argument. Reimplement on top
4196 of cleanups.
4197 (discard_all_continuations): Reimplement on top of cleanups.
4198 (add_intermediate_continuation): Drop the int argument of the
4199 continuation hook argument. Add continuation_free_args argument.
4200 Reimplement on top of cleanups.
4201 (do_all_intermediate_continuations): Drop error argument.
4202 Reimplement on top of cleanups.
4203 (discard_all_intermediate_continuations): Reimplement on top of
4204 cleanups.
4205
4206 * breakpoint.c (until_break_command_continuation): Drop error
4207 argument. Add xfree as continuation argument deleter.
4208
4209 * inf-loop.c (inferior_event_handler): On error, discard all
4210 continuations. Adjust to new do_all_intermediate_continuations
4211 and do_all_continuations interfaces.
4212
4213 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
4214 Pass xfree as continuation argument deleter.
4215 (finish_command_continuation): Drop error_p argument. Adjust.
4216 (finish_command_continuation_free_arg): New.
4217 (finish_command): Pass finish_command_continuation_free_arg as
4218 continuation argument deleter. Adjust to new do_all_continuations
4219 interfaces.
4220 (attach_command_continuation): Drop error_p argument.
4221 (attach_command_continuation_free_args): New.
4222 (attach_command): Pass attach_command_continuation_free_args as
4223 continuation argument deleter.
4224
4225 * interps.c (interp_set): Adjust to new do_all_continuations
4226 interfaces.
4227
4228 * event-top.c (stdin_event_handler): In error, also discard the
4229 intermediate continuations.
4230
bfec99b2
PA
42312008-07-12 Pedro Alves <pedro@codesourcery.com>
4232
4233 Replace struct continuation_args by void* and per command structs.
4234
4235 * top.c (execute_command): Remove unused arg1 and arg2 locals.
4236
4237 * breakpoint.c (struct until_break_command_continuation_args):
4238 New.
4239 (until_break_command_continuation): Take a void* instead of a
4240 continuations_arg. Adjust.
4241 (until_break_command): Adjust to use struct
4242 until_break_command_continuation_args instead of struct
4243 continuation_arg.
4244
4245 * infcmd.c (struct step_1_continuation_args): New.
4246 (step_1_continuation): Take a void* instead of a
4247 continuations_arg. Adjust to use struct step_1_continuation_args.
4248 (step_once): Adjust to use struct step_1_continuation_args.
4249
4250 (struct finish_command_continuation_args): New.
4251 (finish_command_continuation): Take a void* instead of a
4252 continuations_arg. Adjust to use struct
4253 finish_command_continuation_args.
4254 (finish_command): Adjust to use struct
4255 finish_command_continuation_args.
4256 (struct attach_command_continuation_args): New.
4257 (attach_command_continuation): Take a void* instead of a
4258 continuations_arg. Adjust to use struct
4259 attach_command_continuation_args.
4260 (attach_command): Adjust to use struct
4261 attach_command_continuation_args.
4262
4263 * defs.h (struct continuation_arg): Delete.
4264 (struct continuation): Replace the struct continuation_arg*
4265 parameter of continuation_hook by a void*. Replace "arg_list"
4266 member by a new "args" member with void* type.
4267 (add_continuation, add_intermediate_continuation): Replace struct
4268 continuation_arg type usages by void* usages.
4269
4270 * utils.c (add_continuation, do_all_continuations)
4271 (add_intermediate_continuation)
4272 (do_all_intermediate_continuations): Replace struct
4273 continuation_arg type usages by void* usages. Pass "args" instead
4274 of "arg_list".
4275
2afb61aa
PA
42762008-07-12 Pedro Alves <pedro@codesourcery.com>
4277
4278 * infrun.c (struct thread_stepping_state): Delete sal member.
4279 (init_thread_stepping_state): Add local sal. Use it instead of
4280 tss->sal.
4281 (handle_inferior_event): New local stop_pc_sal. Use it instead of
4282 tss->sal.
4283 (step_into_function): Add local stop_func_sal. Use it instead of
4284 tss->sal.
4285
77ebaa5a
VP
42862008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4287
4288 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
4289 * infcmd.c (continue_1): New, extracted from
4290 (continue_command): ...here.
4291 (interrupt_target_1): New, extracted from
4292 (interrupt_target_command): ...here.
4293 * inferior.h (continue_1, interrupt_target_1): New.
4294 * mi/mi-main.c (mi_cmd_exec_continue)
4295 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 4296
1e92afda
VP
42972008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4298
4299 Implement --thread and --frame.
4300 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
4301 * thread.c (find_thread_id): Make non-static.
4302 * mi/mi-main.c (mi_cmd_execute): Switch to the right
4303 thread and frame, if necessary.
4304 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
4305 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 4306
d56b7306
VP
43072008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4308
4309 * infrun.c (resume): Discard cleanups on early exit path.
4310
b1a268e5
VP
43112008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4312
680b56ce 4313 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
4314 were stopped.
4315
90139f7d
VP
43162008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4317
4318 Report thread state in -thread-info output.
680b56ce 4319 * thread.c (print_thread_info): Add new field "state".
90139f7d 4320
a0d21d28
PA
43212008-07-11 Pedro Alves <pedro@codesourcery.com>
4322
4323 * infrun.c (handle_inferior_event): Also ignore a
4324 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
4325
14032a66
TT
43262008-07-11 Tom Tromey <tromey@redhat.com>
4327
4328 * completer.c (complete_line_internal): New function, from
4329 complete_line. Add 'for_help' parameter.
4330 (complete_line): Use it.
4331 (command_completer): Move later. Rewrite.
4332
65fc9b77
PA
43332008-07-11 Pedro Alves <pedro@codesourcery.com>
4334
4335 * thread.c (thread_apply_command): Move making the cleanup out of
4336 the loop.
4337
4f8d22e3
PA
43382008-07-11 Pedro Alves <pedro@codesourcery.com>
4339
4340 Exited threads.
4341
4342 * thread.c (enum thread_state): New.
4343 (thread_state main_thread_running): Delete, in favor of...
4344 (thread_state main_thread_state): ... this. Update throughout.
4345 (clear_thread_inferior_resources): New, split from free_thread.
4346 (free_thread): Call clear_thread_inferior_resources.
4347 (init_thread_list): Set main thread to stopped state.
4348 (add_thread_silent): Take care of PTID reuses.
4349 (delete_thread): If deleting inferior_ptid or a thread with
4350 refcount > 0, mark it as exited, but still keep it in the list.
4351 Only notify of thread exits, if we haven't done so yet.
4352 (iterate_over_threads): Make it safe to delete threads while
4353 iterating over them.
4354 (do_captured_list_thread_ids): Don't account for exited threads.
4355 (thread_alive): Check for the THREAD_EXITED state, and don't set
4356 ptid to -1 on exited threads.
4357 (set_running): Update to account for extra possible states.
4358 (is_thread_state): New.
4359 (is_stopped, is_exited): New.
4360 (is_running): Implement in terms of is_thread_state.
4361 (any_running): Update.
4362 (print_thread_info): Update. Account for exited threads. Don't
4363 warn about missed frame restoring here, its done in the cleanup.
4364 (switch_to_thread): Don't read from a thread that has gone.
4365 (restore_current_thread): In non-stop mode, do a full context
4366 switch.
4367 (restore_selected_frame): Add a frame_level argument. Rewrite.
4368 (struct current_thread_cleanup): Add selected_frame_level and
4369 was_stopped members.
4370 (do_restore_current_thread_cleanup): Check if thread was stopped
4371 and still is, and if the target has registers, stack and memory
4372 before restoring the selected frame. Don't delete the cleanup
4373 argument here.
4374 (restore_current_thread_cleanup_dtor): New.
4375 (make_cleanup_restore_current_thread): Remove all arguments.
4376 Rewrite.
4377 (thread_apply_all_command): Update. Prune threads.
4378 (thread_apply_command): Update.
4379 (thread_command): Account for currently selected exited thread.
4380 (do_captured_thread_select): Check for a running thread. Prune
4381 threads.
4382 (_initialize_thread): Make "info threads", "thread", "thread
4383 apply", and "thread apply all" appliable without a selected thread.
4384 * gdbthread.h (struct thread_info): Replace running_ by state_.
4385 Add refcount.
4386 (is_exited, is_stopped): Declare.
4387 (make_cleanup_restore_current_thread): Remove all arguments.
4388 * infrun.c: Include "event-top.h".
4389 (fetch_inferior_event): In non-stop mode, restore selected thread
4390 and frame after handling the event and running breakpoint
4391 commands. Display GDB prompt if needed.
4392 (normal_stop): In non-stop mode, don't print thread switching
4393 notice.
4394 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
4395 (get_cmd_no_selected_thread_ok): New.
4396 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
4397 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
4398 Declare.
4399 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
4400 no-selected-thread ok.
4401 * top.c (execute_command): Check for non no-selected-thread-ok
4402 commands.
4403 * linux-nat.c (struct saved_ptids, threads_to_delete)
4404 (record_dead_thread, prune_lwps): Delete.
4405 (exit_lwp): Unconditionally delete thread.
4406 (linux_nat_resume): Remove prune_lwps call.
4407 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
4408 of is_running. Adjust to make_cleanup_restore_current_thread
4409 interface change.
4410 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
4411 selected thread has exited.
4412 * inf-loop.c (inferior_event_handler): Don't display the prompt
4413 here.
4414 * varobj.c (c_value_of_root): Update.
4415 * defs.h (make_cleanup_dtor): Declare.
4416 * utils.c (make_cleanup_dtor): New.
4417
4418 * Makefile.in (infrun.o): Depend on $(event_top_h).
4419
8cae4b3f
PA
44202008-07-11 Pedro Alves <pedro@codesourcery.com>
4421
4422 Add "continue -a" and "interrupt -a" options for non-stop mode.
4423
4424 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
4425 (continue_command): Add "-a" option.
4426 (interrupt_target_command): Add "-a" option.
4427 (_initialize_infcmd): Add extend help of continue and interrupt
4428 command to mention the new "-a" option. Mark "continue" async ok.
4429
bf250677
DE
44302008-07-10 Doug Evans <dje@google.com>
4431
4432 Add "set print symbol-loading on|off".
4433 * NEWS: Document new option.
4434 * symfile.h (print_symbol_loading): Declare.
4435 * symfile.c (print_symbol_loading): New global.
4436 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
4437 from ..." if print_symbol_loading.
4438 (_initialize_symfile): Add set/show print symbol-loading.
4439 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
4440 if print_symbol_loading.
4441
4c28f408
PA
44422008-07-10 Pedro Alves <pedro@codesourcery.com>
4443
4444 Non-stop linux native.
4445
4446 * linux-nat.c (linux_test_for_tracefork): Block events while we're
4447 here.
4448 (get_pending_status): Implement non-stop mode.
4449 (linux_nat_detach): Stop threads before detaching.
4450 (linux_nat_resume): In non-stop mode, always resume only a single
4451 PTID.
4452 (linux_handle_extended_wait): On a clone event, in non-stop mode,
4453 add new lwp to GDB's thread table, and mark as running, executing
4454 and stopped appropriately.
4455 (linux_nat_filter_event): Don't assume there are other running
4456 threads when a thread exits.
4457 (linux_nat_wait): Mark the main thread as running and executing.
4458 In non-stop mode, don't stop all lwps.
4459 (linux_nat_kill): Stop lwps before killing them.
4460 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
4461 alive.
4462 (send_sigint_callback): New.
4463 (linux_nat_stop): New.
4464 (linux_nat_add_target): Set to_stop to linux_nat_stop.
4465
4466 * linux-nat.h (thread_db_attach_lwp): Declare.
4467
4468 * linux-thread-db.c (thread_get_info_callback): Check for new
4469 threads if we have none.
4470 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
4471 stopped lwp. Check for new threads if we have none.
4472 (thread_db_attach_lwp): New.
4473 (thread_db_init): Set proc_handle.pid to inferior_ptid.
4474 (check_event): Set proc_handle.pid to the stopped lwp.
4475 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
4476 lwp available, bail out if there is none.
4477
4478 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
4479 PTRACE_KILL.
4480
0aef6ba2
KB
44812008-07-10 Kevin Buettner <kevinb@redhat.com>
4482
a4fafde3
KB
4483 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
4484 `current_pc' from CORE_ADDR to ULONGEST.
4485
0aef6ba2
KB
4486 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
4487 gdbsim_stop().
4488
10568435
JK
44892008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4490
4491 * NEWS (New commands): Mention "set disable-randomization".
4492 * configure.ac: Add check for HAVE_PERSONALITY and
4493 HAVE_DECL_ADDR_NO_RANDOMIZE.
4494 * configure, config.in: Regenerate.
4495 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
4496 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
4497 ADDR_NO_RANDOMIZE.
4498 (disable_randomization, show_disable_randomization)
4499 (set_disable_randomization): New.
4500 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
4501 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
4502 variable DISABLE_RANDOMIZATION.
4503 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
4504 DISABLE_RANDOMIZATION.
4505
f9c72d52
PA
45062008-07-09 Pedro Alves <pedro@codesourcery.com>
4507
4508 Adjust all targets to new target_stop interface.
4509
4510 * gnu-nat.c (gnu_stop): Add ptid argument.
4511 * go32-nat.c (go32_stop): Add ptid argument.
4512 (go32_create_inferior): Pass inferior_ptid to go32_stop.
4513 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
4514 * monitor.c (monitor_stop): Add ptid argument.
4515 (monitor_open): Pass inferior_ptid to monitor_stop.
4516 (monitor_interrupt): Pass inferior_ptid to target_stop.
4517 (monitor_stop): Add ptid argument.
4518 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
4519 (procfs_create_inferior): Add ptid argument.
4520 * procfs.c (procfs_stop): Add ptid argument.
4521 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
4522 * remote-sim.c (gdbsim_stop): Add ptid argument.
4523 * sol-thread.c (sol_thread_stop): Add ptid argument.
4524 * win32-nat.c (win32_stop): Add ptid argument.
4525
94cc34af
PA
45262008-07-09 Pedro Alves <pedro@codesourcery.com>
4527
4528 Non-stop inferior control.
4529
4530 * infrun.c (resume): In non-stop mode, always resume just one
4531 thread.
4532 (proceed): Don't call prepare_to_proceed in non-stop mode.
4533 (fetch_inferior_event): In non-stop mode, switch context before
4534 handling the event.
4535 (error_is_running, ensure_not_running): New.
4536 (handle_inferior_event): In non-stop mode: Mark only the event
4537 thread as stopped. Require that the target module manages adding
4538 threads to the thread list. Assert that there isn't a
4539 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
4540 (normal_stop): Only mark not-running if inferior hasn't exited.
4541 In non-stop mode, only mark the event thread.
4542
4543 * thread.c:Include "cli/cli-decode.h".
4544 (print_thread_info): Don't read from a running thread.
4545 Output "(running)" if thread is running.
4546 (switch_to_thread): Don't read stop_pc if thread is executing.
4547 (do_restore_current_thread_cleanup): Don't write to a running
4548 thread.
4549 (thread_apply_all_command): Don't read from a running thread. In
4550 non-stop mode, do a full context-switch instead of just switching
4551 threads.
4552 (thread_apply_command): In non-stop mode, do a full context-switch
4553 instead of just switching threads.
4554 (do_captured_thread_select): Likewise. Inform user if selected
4555 thread is running.
4556 (_initialize_thread): Mark "info threads" and "thread" and
4557 async_ok.
4558
4559 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
4560 unregister the target from the event loop.
4561
4562 * infcmd.c (continue_command, step_1, jump_command)
4563 (signal_command): Ensure the selected thread isn't running.
4564 (interrupt_target_command): In non-stop mode, interrupt only the
4565 selected thread.
4566
4567 * inferior.h (error_is_running, ensure_not_running): Declare.
4568
4569 * target.h (struct target_ops): Add ptid argument to the to_stop
4570 member.
4571 (target_stop): Add ptid_t argument.
4572
4573 * target.c (update_current_target): Add ptid argument to to_stop's
4574 type.
4575 (debug_to_stop): Add ptid_t argument.
4576 (debug_to_rcmd): Set to_stop_ptid.
4577
4578 * remote.c (remote_stop): Add ptid_t argument.
4579 (async_remote_interrupt): Add inferior_ptid to target_stop.
4580 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
4581
4582 * Makefile.in (thread.o): Depend on $(cli_decode_h).
4583
59f0d5d9
PA
45842008-07-09 Pedro Alves <pedro@codesourcery.com>
4585
4586 Don't rely on ecs->wait_for_more.
4587
4588 * infrun.c (proceed): Clear the stepping state, set
4589 previous_inferior_ptid and clear infwait state.
4590 (wait_for_inferior): Don't clear the stepping state, set
4591 previous_inferior_ptid, or clear the infwait state here.
4592 (fetch_inferior_event): Don't clear the stepping state, set
4593 previous_inferior_ptid, or clear the infwait state here. Don't
4594 condition on wait_for_more.
4595
0d1e5fa7
PA
45962008-07-09 Pedro Alves <pedro@codesourcery.com>
4597
4598 Refactor infrun a bit.
4599
4600 * infrun.c (currently_stepping): Take a struct
4601 thread_stepping_state instead of an execution_control_state.
4602 (struct thread_stepping_state): New, split from
4603 execution_control_state.
4604 (gtss, tss): New globals.
4605 (proceed): Clear the stepping state, set previous_inferior_ptid
4606 and clear infwait state.
4607 (init_wait_for_inferior): Clear the stepping state,
4608 previous_inferior_ptid and infwait state.
4609 (waiton_ptid, infwait_state): New, split from
4610 execution_control_state.
4611 (struct execution_control_state): Members that persist through
4612 events moved out to either struct thred_stepping_state or made
4613 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
4614 (wait_for_inferior, fetch_inferior_event): Use local
4615 execution_control_state. Update to execution_control_state split.
4616 (init_execution_control_state): Adjust.
4617 (init_thread_stepping_state): New, extracted from
4618 init_execution_control_state.
4619 (context_switch): Take a ptid instead of an
4620 execution_control_state.
4621 (context_switch_to): Adjust.
4622 (adjust_pc_after_break): Adjust.
4623 (init_infwait_state): New.
4624 (handle_inferior_event): Adjust.
4625
a474d7c2
PA
46262008-07-09 Pedro Alves <pedro@codesourcery.com>
4627 Vladimir Prus <vladimir@codesourcery.com>
4628
4629 Per-thread commands.
4630
4631 * gdbthread.h: Remove unneeded forward declarations.
4632 Include "inferior.h".
4633 (struct thread_info): Add continuations,
4634 intermediate_continuations, proceed_to_finish, step_over_calls,
4635 stop_step, step_multi and stop_signal members.
4636 (save_infrun_state): Add continuations,
4637 intermediate_continuations, proceed_to_finish, step_over_calls,
4638 stop_step, step_multi, stop_signal and stop_bpstat parameters.
4639 (load_infrun_state): Add continuations,
4640 intermediate_continuations, proceed_to_finish, step_over_calls,
4641 stop_step, step_multi, stop_signal and stop_bpstat parameters.
4642
4643 * thread.c (load_infrun_state): In non-stop mode, load
4644 continuations, intermediate_continuations, proceed_to_finish,
4645 step_over_calls, stop_step, step_multi and stop_signal.
4646 (save_infrun_state): Store continuations,
4647 intermediate_continuations, proceed_to_finish, step_over_calls,
4648 stop_step, step_multi, stop_signal and stop_bpstat.
4649 (save_infrun_state): Store continuations,
4650 intermediate_continuations, proceed_to_finish, step_over_calls,
4651 stop_step, step_multi, stop_signal and stop_bpstat.
4652 (free_thread): Clear The thread's stop_bpstat.
4653
4654 * inferior.h (context_switch_to): Declare.
4655
4656 * infrun.c (ecss): New global.
4657 (context_switch): Context switch continuations,
4658 intermediate_continuations, proceed_to_finish, step_over_calls,
4659 stop_step, step_multi, stop_signal and stop_bpstat.
4660 (wait_for_inferior): Use global ecss.
4661 (async_ecss, async_ecs): Delete.
4662 (fetch_inferior_event): Use global ecss.
4663 (context_switch_to): New.
4664
4665 * top.c (execute_command): In non-stop, only check if the current
4666 thread is running, in all-stop, check if there's any thread
4667 running.
4668
4669 * breakpoint.c (bpstat_remove_breakpoint): New.
4670 (bpstat_remove_breakpoint_callback): New.
4671 (delete_breakpoint): Clear the stop_bpstats of all threads.
4672
4673 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
4674 current thread is running, in all-stop, check if there's any
4675 thread running.
4676
4677 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
4678
ad52ddc6
PA
46792008-07-09 Pedro Alves <pedro@codesourcery.com>
4680
4681 Add non_stop global.
4682
4683 * inferior.h (non_stop): Declare.
4684 * infrun.c (non_stop, non_stop_1): New.
4685 (set_non_stop, show_non_stop): New.
4686 (_initialize_infrun): Add "set/show non-stop" command.
4687
3a3e9ee3
PA
46882008-07-09 Pedro Alves <pedro@codesourcery.com>
4689
4690 Adjust fork/vfork/exec to pass ptids around.
4691
4692 * target.h (struct target_waitstatus): Store related_pid as a ptid.
4693 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
4694 Take a ptid_t.
4695 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
4696 type to ptid.
4697 * breakpoint.c (print_it_typical, bpstat_check_location)
4698 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
4699 (create_fork_vfork_event_catchpoint): Adjust.
4700 * infrun.c (fork_event): Change parent_pid and child_pid types to
4701 ptid.
4702 (follow_exec, inferior_has_forked, inferior_has_vforked)
4703 (inferior_has_execd): Take a ptid_t and don't trim it.
4704 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
4705 * linux-nat.c (linux_child_follow_fork): Adjust.
4706 * inf-ptrace.c (inf_ptrace_wait): Adjust.
4707 * inf-ttrace.c (inf_ttrace_wait): Adjust.
4708 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
4709
8ea051c5
PA
47102008-07-09 Pedro Alves <pedro@codesourcery.com>
4711
4712 Add "executing" property to threads.
4713
4714 * inferior.h (target_executing): Delete.
4715 * gdbthread.h (struct thread_info): Add executing_ field.
4716 (set_executing, is_executing): New.
4717 * thread.c (main_thread_executing): New.
4718 (init_thread_list): Clear it and also main_thread_running.
4719 (is_running): Return false if target has no execution.
4720 (any_running, is_executing, set_executing): New.
4721
4722 * top.c: Include "gdbthread.h".
4723 (target_executing): Delete.
4724 (execute_command): Replace target_executing check by any_running.
4725 * event-top.c: Include "gdbthread.h".
4726 (display_gdb_prompt, command_handler): Replace target_executing by
4727 is_running.
4728 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
4729 here. Replace target_executing by is_running.
4730 * infrun.c (handle_inferior_event): Mark all threads as
4731 not-executing.
4732 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
4733 here.
4734 * stack.c (get_selected_block): Return null if inferior is
4735 executing.
4736 * target.c (target_resume): Mark resumed ptid as executing.
4737 * breakpoint.c (until_break_command): Replace target_executing
4738 check by is_executing.
4739 * remote.c (remote_async_resume): Don't mark inferior as executing
4740 here.
4741 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
4742 by any_running.
680b56ce 4743
8ea051c5
PA
4744 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
4745 (mi_execute_async_cli_command): Replace target_executing by
4746 is_running.
4747
4748 * frame.c (get_current_frame): Error out if the current thread is
4749 executing.
4750 (has_stack_frames): New.
4751 (get_selected_frame, deprecated_safe_get_selected_frame): Check
4752 has_stack_frames.
680b56ce 4753
8ea051c5
PA
4754 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
4755 $(gdbthread_h).
4756
4487aabf
PA
47572008-07-09 Pedro Alves <pedro@codesourcery.com>
4758
4759 * symfile.c (load_command): Reopen the exec file and reread
4760 symbols before anything else.
4761
9de2bdd7
PA
47622008-07-09 Pedro Alves <pedro@codesourcery.com>
4763
4764 * remote-sim.c: Include gdbthread.h.
4765 (remote_sim_ptid): New global.
4766 (gdbsim_create_inferior): Silently add the main task to GDB's
4767 thread list.
4768 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
4769 task from GDB's thread list.
4770 (gdbsim_resume): Adjust to use remote_sim_ptid.
4771 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
4772 (init_gdbsim_ops): Register gdbsim_thread_alive and
4773 gdbsim_pid_to_str.
4774 (_initialize_remote_sim): Initialize remote_sim_ptid.
4775 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
4776
5e0b29c1
PA
47772008-07-09 Pedro Alves <pedro@codesourcery.com>
4778
4779 * monitor (monitor_ptid): New global.
4780 (monitor_open): Silently add the main task to GDB's thread list.
4781 (monitor_close, monitor_mourn_inferior): Silently delete the main
4782 task from GDB's thread list.
4783 (monitor_thread_alive, monitor_pid_to_str): New.
4784 (init_base_monitor_ops): Register monitor_thread_alive and
4785 monitor_pid_to_str.
4786 (_initialize_remote_monitors): Initialize monitor_ptid.
4787
4788 * gdbthread.h (delete_thread_silent): Declare.
4789 * thread.c (delete_thread): Rename to ...
4790 (delete_thread_1): ... this. Add "silent" parameter. If silent,
4791 don't do exit notifications.
4792 (delete_thread, delete_thread_silent): New, as wrappers to
4793 delete_thread_1.
4794
b60e7edf
PA
47952008-07-08 Pedro Alves <pedro@codesourcery.com>
4796
4797 * breakpoint.c (update_global_location_list): Add boolean
4798 "should_insert" argument. Only insert locations if caller told it
4799 too.
4800 (update_global_location_list_nothrow): Add boolean "should_insert"
4801 argument. Pass it to update_global_location_list.
4802 (insert_breakpoints, create_longjmp_breakpoint)
4803 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
4804 (create_thread_event_breakpoint, create_solib_event_breakpoint)
4805 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
4806 (enable_watchpoints_after_interactive_call_stop)
4807 (set_momentary_breakpoint, create_breakpoints)
4808 (break_command_really, watch_command_1)
4809 (create_ada_exception_breakpoint, update_breakpoint_locations)
4810 (do_enable_breakpoint, enable_command): Pass true to
4811 update_global_location_list.
4812 (bpstat_stop_status, disable_overlay_breakpoints)
4813 (disable_watchpoints_before_interactive_call_start)
4814 (delete_breakpoint, disable_breakpoint, disable_command): Pass
4815 false to update_global_location_list.
4816 (update_breakpoints_after_exec): Don't temporarily disable
4817 always-inserted mode.
4818
25b22b0a
PA
48192008-07-08 Pedro Alves <pedro@codesourcery.com>
4820
4821 * breakpoint.c (mark_breakpoints_out): Make public.
4822 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
4823 here. Update comment.
4824 * breakpoint.h (mark_breakpoints_out): Declare.
4825
4826 * linux-nat.c (linux_handle_extended_wait): On
4827 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
4828 * inf-ttrace.c (inf_ttrace_wait): Likewise.
4829
cce9b6bf
PA
48302008-07-08 Pedro Alves <pedro@codesourcery.com>
4831
4832 * infrun.c (follow_exec): Reset shared libraries before adding the
4833 main exec file.
4834
3c3185ac
JK
48352008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4836
4837 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
4838
42f0bc8e
PA
48392008-07-07 Pedro Alves <pedro@codesourcery.com>
4840
4841 * i386-dicos-tdep.c: Include "inferior.h".
4842 (i386_dicos_frame_align): New.
4843 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
4844 dummy location ON_STACK.
4845 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
4846
b7292df3
JB
48472008-07-07 Joel Brobecker <brobecker@adacore.com>
4848
4849 * gstdint.h: New file.
4850
bb599c81
VP
48512008-07-05 Vladimir Prus <vladimir@codesourcery.com>
4852
4853 * mi/mi-interp.c (mi_on_resume): Don't try to report
4854 resumed thread it the thread list is empty.
4855
7f6a6314
PM
48562008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
4857
4858 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
4859 completer for set to filename_completer.
680b56ce 4860
7f6a6314
PM
4861 NEWS: Mention it.
4862
711eabed
VP
48632008-07-04 Vladimir Prus <vladimir@codesourcery.com>
4864
4865 Implement -target-attach.
680b56ce 4866 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 4867
db3b9a10
MS
48682008-06-21 Hui Zhu <teawater@gmail.com>
4869
4870 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
4871
dc177b7a
PA
48722008-07-03 Pedro Alves <pedro@codesourcery.com>
4873
4874 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
4875 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
4876
4877 * target.h (struct target_ops): Add to_attach_no_wait member.
4878 (target_attach_no_wait): New.
4879 * target.c (update_current_target): Inherit to_attach_no_wait.
4880
4881 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
4882 target_attach_no_wait runtime check.
4883
4884 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
4885 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
4886 win32_ops.
4887
caac8896
PA
48882008-07-03 Pedro Alves <pedro@codesourcery.com>
4889
4890 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
4891 on debug_displaced being set.
4892
0d254d6f
DJ
48932008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
4894
4895 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
4896 directly instead of get_frame_id.
4897
f74c6cad
LM
48982008-06-30 Luis Machado <luisgpm@br.ibm.com>
4899
4900 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
4901 (deal_with_atomic_sequence): Update BC masks.
4902 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
4903 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
4904
395f2fc2
DJ
49052008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
4906
4907 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
4908 register, not the previous frame's.
4909
8340a3fb
LM
49102008-06-30 Luis Machado <luisgpm@br.ibm.com>
4911
4912 * source.c (select_source_symtab): Make sure we skip namespace
4913 symtabs when showing cpp source code.
4914
cfefc99a
HPN
49152008-06-30 Hans-Peter Nilsson <hp@axis.com>
4916
4917 * MAINTAINERS (Authorized committers): Fix my email address.
4918
1b98914a
VP
49192008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4920
4921 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
4922 -target-download and -target-select via CLI, so that
4923 the quoting rules are the same as they were (unfortunately)
4924 in all prior gdb releases.
4925 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
4926 (mi_cmd_target_download, mi_cmd_target_select): Remove.
4927 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
4928 (mi_cmd_target_download, mi_cmd_target_select): Remove.
4929 (mi_cmd_execute): Set current_token even for commands
4930 routed via CLI.
4931
94afd7a6
UW
49322008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
4933
4934 * alphafbsd-tdep.c: Update for unwinder changes.
4935 * alpha-linux-tdep.c: Likewise.
4936 * alphanbsd-tdep.c: Likewise.
4937 * alphaobsd-tdep.c: Likewise.
4938 * avr-tdep.c: Likewise.
4939 * cris-tdep.c: Likewise.
4940 * frv-linux-tdep.c: Likewise.
4941 * frv-tdep.c: Likewise.
4942 * h8300-tdep.c: Likewise.
4943 * hppa-linux-tdep.c: Likewise.
4944 * iq2000-tdep.c: Likewise.
4945 * m32c-tdep.c: Likewise.
4946 * m32r-linux-tdep.c: Likewise.
4947 * m32r-tdep.c: Likewise.
4948 * m68hc11-tdep.c: Likewise.
4949 * mep-tdep.c: Likewise.
4950 * mn10300-tdep.c: Likewise.
4951 * mt-tdep.c: Likewise.
4952 * score-tdep.c: Likewise.
4953 * sh64-tdep.c: Likewise.
4954 * sh-tdep.c: Likewise.
4955 * sparc64fbsd-tdep.c: Likewise.
4956 * sparc64nbsd-tdep.c: Likewise.
4957 * sparc64obsd-tdep.c: Likewise.
4958 * v850-tdep.c: Likewise.
4959 * vaxobsd-tdep.c: Likewise.
4960 * vax-tdep.c: Likewise.
4961 * xstormy16-tdep.c: Likewise.
4962
e111d6c9
VP
49632008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4964
4965 * mi/mi-main.c (enum captured_mi_execute_command_actions)
4966 (captured_mi_execute_command_args): Remove.
4967 (captured_mi_execute_command): Cast the closure to mi_parse
4968 pointer, not to captured_mi_execute_command_args, and don't
4969 set the action field thereof.
4970 (mi_execute_command): Pass struct mi_parse, not
4971 captured_mi_execute_command_args to captured_mi_execute_command.
4972 (mi_execute_command): Remove (dead) code for suppressing
4973 printing prompt.
4974
84e46146
PA
49752008-06-28 Pedro Alves <pedro@codesourcery.com>
4976
4977 * linux-nat.c (enum sigchld_state): New.
4978 (linux_nat_async_events_state): Renamed from
4979 linux_nat_async_events_enabled.
4980 (linux_nat_event_pipe_push, my_waitpid): Adjust.
4981 (sigchld_default_action): New.
4982 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
4983 unconditionally.
4984 (linux_nat_create_inferior): Set events state to sigchld_default
4985 state.
4986 (linux_nat_resume): Adjust.
4987 (linux_nat_wait): Call linux_nat_async_events unconditionally.
4988 (sigchld_handler): Adjust.
4989 (linux_nat_async_mask): Don't set SIGCHLD actions here.
4990 (get_pending_events): Adjust.
4991 (linux_nat_async_events): Rewrite to handle enum sigchld_state
4992 instead of a boolean.
4993 (linux_nat_async): Adjust.
4994 (_initialize_linux_nat): Capture default SIGCHLD action into
4995 sigchld_default_action.
4996
20874c92
VP
49972008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4998
680b56ce
AS
4999 * breakpoint.c (moribund_locations): New.
5000 (bpstat_stop_status): Process moribund locations.
5001 (update_global_location_list): Add removed
5002 locations to moribund_locations.
5003 (breakpoint_retire_moribund): New.
5004 * breakpoint.h (struct bp_location): New field
5005 events_till_retirement.
5006 (breakpoint_retire_moribund): Declare.
5007 * thread.c (thread_count): New.
5008 * infrun.c (handle_inferior_event): Call
5009 breakpoint_retire_moribund.
5010 * gdbthread.h (thread_count): Declare.
20874c92 5011
cd0b43b1
JM
50122008-06-27 Joseph Myers <joseph@codesourcery.com>
5013
5014 * dfp.c (decimal_convert): Call match_endianness before and after
5015 conversion.
5016
7c0f6dcc
JL
50172008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
5018
5019 * remote.c (remote_insert_breakpoint): Ensure that if Z0
5020 unsupported and we fall back to memory_insert_breakpoint, we
5021 use the unmodified requested address.
5022
01c66ae6
JB
50232008-06-27 Joel Brobecker <brobecker@adacore.com>
5024
5025 * dwarf2read.c (read_attribute_value): Issue a complaint when
5026 adjusting size attribute values of 0xffffffff as zero.
5027
7ccc1c74
JM
50282008-06-27 Joseph Myers <joseph@codesourcery.com>
5029
5030 * i386-tdep.c (i386_16_byte_align_p): New.
5031 (i386_push_dummy_call): Determine stack space required for
5032 arguments going forwards allowing for 16-byte alignment, then push
5033 arguments going forwards.
5034
c0a2216e
PA
50352008-06-27 Pedro Alves <pedro@codesourcery.com>
5036
5037 * infrun.c (start_remote): Don't clear thread list here.
5038 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
5039 list here.
5040 * remote.c (record_currthread): Upgrade the main thread and its
5041 entry in the thread list if this is the first time we hear about
5042 threads.
5043 (remote_thread_alive): Consider magic_null_ptid or a ptid without
5044 a tid member always alive.
5045 (remote_find_new_threads): Don't update the main thread here.
5046 (remote_start_remote): Clear thread list here. Always add the
5047 main thread.
5048 (extended_remote_attach_1): Add the main thread here.
5049 (extended_remote_mourn_1): Re-add the main thread here.
5050 (extended_remote_create_inferior_1): Add a main thread.
5051
5052 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
5053
87b0e16e 50542008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
5055
5056 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
5057
5058 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
5059 globals.
5060 (general_thread, continue_thread): Change type to ptid_t.
5061 (record_currthread): Take a ptid_t parameter instead of an
5062 integer.
5063 (MAGIC_NULL_PID): Delete.
5064 (set_thread): Take a ptid_t parameter and adjust.
5065 (set_general_thread, set_continue_thread): New.
5066 (remote_thread_alive, remote_newthread_step)
5067 (remote_current_thread, remote_find_new_threads)
5068 (remote_threads_info, remote_start_remote, remote_vcont_resume)
5069 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
5070 (threadalive_test, remote_pid_to_str)
5071 (remote_get_thread_local_address): Adjust.
5072 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
5073 and any_thread_ptid.
5074
3ca64bd3
JK
50752008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5076
5077 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
5078 * configure: Regenerated.
5079
28e94949
JB
50802008-06-26 Joel Brobecker <brobecker@adacore.com>
5081
5082 * dwarf2read.c (read_attribute_value): Treat size attribute
5083 values of 0xffffffff as if the attribute value was zero.
5084
8a77dff3
VP
50852008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5086
5087 * linux-nat.c: Add description of overall logic.
5088
d5af19ba
DJ
50892008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
5090
5091 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
5092 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
5093 all dependencies on $(gdb_stdint_h).
5094 (distclean): Do not delete gdb_stdint.h.
5095 * acinclude.m4: Do not use stdint.m4.
5096 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
5097 uintptr_t, and gdb_stdint.h.
5098 * defs.h: Include <stdint.h>.
5099 * gdb_thread_db.h: Assume stdint.h is already included.
5100 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
5101 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
5102 include gdb_stdint.h.
5103 * configure, config.in: Regenerate.
5104
00fbcec4
JM
51052008-06-26 Joseph Myers <joseph@codesourcery.com>
5106
5107 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
5108 decimal floating-point values in GPRs for soft-float.
5109 (do_ppc_sysv_return_value): Handle returning decimal
5110 floating-point values in GPRs for soft-float.
5111
d5086790
VP
51122008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5113
5114 * target.c (target_read_until_error): New.
680b56ce
AS
5115 * target.h (target_read_until_error): Declare.
5116 * mi/mi-main.c (mi_cmd_data_read_memory): Use
5117 target_read_until_error.
d5086790 5118
fe9441f6
JK
51192008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5120
5121 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
5122 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
5123 after the DECFLOAT detection to fix a memory leak. Remove the
5124 redundant NUM initialization. Protect the DECFLOAT detection memory
5125 access before the P block. Restore the P memory content for the
5126 DECFLOAT detection.
5127
ce8f13f8
VP
51282008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5129
5130 Kill the return value for all MI command functions.
5131 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
5132 (mi_cmd_argv_ftype): Change return type to void.
5133
5134 * mi/mi-main.c: Adjust all function that implement
5135 MI commands to return nothing.
5136 (struct captured_mi_execute_command_actions):
5137 Remove the rc field.
5138 (mi_cmd_execute): Return nothing.
5139 (mi_execute_async_cli_command): Return nothing.
5140 (mi_cmd_exec_interrupt): Don't print ^done here.
5141 (mi_cmd_target_select): Don't print ^connected here.
5142 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
5143 Special-case -target-select and output ^connected, not ^done.
5144
5145 * mi/mi-cmd-break.c: Adjust.
5146 * mi/mi-cmd-disas.c: Adjust.
5147 * mi/mi-cmd-env.c: Adjust.
5148 * mi/mi-cmd-file.c: Adjust.
5149 * mi/mi-cmd-stack.c: Adjust.
5150 * mi/mi-cmd-target.c: Adjust.
5151 * mi/mi-cmd-var.c: Adjust.
5152 * mi/mi-interp.c: Adjust.
5153 * mi/mi-symbol-cmds.c: Adjust.
5154
a2840c35
VP
51552008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5156
5157 Emit ^running via observer.
5158 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
5159 ^running here.
5160 (mi_on_resume): Print ^running if not previously output.
5161 * mi/mi-main.c (running_result_record_printed): New.
5162 (captured_mi_execute_command): Reset
5163 running_result_record_printed. Use running_result_record_printed
5164 to decide if we should skip ^done.
5165 (mi_execute_async_cli_command): Don't print ^running here.
5166 * mi/mi-main.h (current_token, running_result_record_printed):
5167 Declare.
a2840c35 5168
1f41b062
MS
51692008-06-24 Michael Snyder <msnyder@specifix.com>
5170
5171 * infrun.c (_initialize_infrun): White space and typo fix.
5172
eff8332b
CF
51732008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
5174
5175 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
5176 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
5177 when first loading DLL with "dll" command.
5178
e50ce6de 51792008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
5180
5181 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 5182
e50ce6de 51832008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
5184
5185 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 5186
59ddf1e7
JB
51872008-06-18 Joel Brobecker <brobecker@adacore.com>
5188
680b56ce
AS
5189 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5190 the target cannot run.
59ddf1e7
JB
5191
51922008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
5193
5194 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5195 we're attaching to a running process.
5196
e50ce6de 51972008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
5198
5199 * win32-nat.c (handle_load_dll): Give dll name and load address
5200 if debug_events is on.
5201 (handle_unload_dll): Likewise.
5202
8f6a8e84
VP
52032008-06-14 Vladimir Prus <vladimir@codesourcery.com>
5204
5205 Don't suppress *running when doing finish.
680b56ce
AS
5206 * infcall.c (call_function_by_hand): Set both
5207 suppress_resume_observer and suppress_stop_observer.
5208 * infcmd.c (suppress_run_stop_observers): Split into...
5209 (suppress_resume_observer, suppress_stop_observer): ...those.
5210 (finish_command_continuation): Clear suppress_stop_observer.
5211 (finish_command): Set suppress_stop_observer.
5212 * inferior.h (suppress_run_stop_observers): Split into...
5213 (suppress_resume_observer, suppress_stop_observer): ...those.
5214 * infrun.c (normal_stop): Check for suppress_stop_observer.
5215 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 5216
4309257c
PM
52172008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
5218 Pierre Muller <muller@ics.u-strasbg.fr>
5219
5220 * gdbarch.sh (gdbarch_skip_main_prologue): New.
5221 * gdbarch.h, gdbarch.c: Regenerate.
5222 * i386-tdep.h (i386_skip_main_prologue): Declare.
5223 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 5224 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
5225 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
5226 * symtab.c (find_function_start_sal): When pc points at the "main"
5227 function, call gdbarch_skip_main_prologue.
5228
a4e2ee12
DJ
52292008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
5230
5231 * value.c (value_primitive_field): Fetch lazy register values.
5232
060871df
PA
52332008-06-11 Pedro Alves <pedro@codesourcery.com>
5234
5235 * NEWS: Mention support removal of undocumented S AA p PID stop
5236 reply packet.
5237
5238 * remote.c (remote_wait): Remove undocumented S AA p PID support.
5239
336de56d
SS
52402008-06-10 Stan Shebs <stan@codesourcery.com>
5241
5242 * MAINTAINERS: Update my affiliation and address.
5243
7949220d
AS
52442008-06-10 Andreas Schwab <schwab@suse.de>
5245
5246 * top.c (print_gdb_version): Don't print final newline.
5247
e1ac3328
VP
52482008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5249
5250 Implement *running.
680b56ce
AS
5251 * Makefile.in: Update dependencies.
5252 * gdbthread.h (struct thread_info): New field
5253 running_.
5254 (set_running, is_running): New.
5255 * thread.c (set_running, is_running): New.
5256 * inferior.h (suppress_normal_stop_observer): Rename to...
5257 (suppress_run_stop_observers): ..this.
5258 * infcmd.c (suppress_normal_stop_observer): Rename to...
5259 (suppress_run_stop_observers): ..this.
5260 (finish_command_continuation, finish_command): Adjust.
5261 * infcall.c (call_function_by_hand): Adjust.
5262 * infrun.c (normal_stop): Call set_running.
5263 * target.c (target_resume): New. Call set_running.
5264 * target.h (target_resume): Convert from macro to
5265 a function.
5266
5267 * mi/mi-interp.c (mi_on_resume): New.
5268 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 5269
f7f9a841
VP
52702008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5271
5272 Use observers to report stop events in MI.
680b56ce
AS
5273 * mi/mi-interp.c (mi_on_normal_stop): New.
5274 (mi_interpreter_init): Register mi_on_normal_stop.
5275 (mi_interpreter_exec_continuation): Remove.
5276 (mi_cmd_interpreter_exec): Don't register the above.
5277 * mi/mi-main.c (captured_mi_execute_command): Don't care
5278 about sync_execution.
5279 (mi_execute_async_cli_command): Don't install continuation. Don't
5280 print *stopped.
5281 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 5282
f5871ec0
VP
52832008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5284
5285 Suppress normal stop observer when it's problematic.
680b56ce
AS
5286 * inferior.h (suppress_normal_stop_observer): New.
5287 * infcall.c (call_function_by_hand): Disable stop events when
5288 doing function calls.
5289 * infmcd.c (suppress_normal_stop_observer): New.
5290 (finish_command_continuation): Call normal_stop observer
5291 explicitly.
5292 (finish_command): Disable stop events inside proceed.
5293 * infrun.c (normal_stop): Don't call normal stop observer if
5294 suppressed of if multi-step is in progress.
f5871ec0 5295
3d3191a6
VP
52962008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5297
5298 Remove stale code.
680b56ce
AS
5299 * infrun.c (finish_command): Don't pass cleanup
5300 to continuation.
5301 (finish_command_continuation): Don't grab cleanup from
5302 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 5303
0b080f59
VP
53042008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5305
5306 Introduce common cleanup for restoring integers.
680b56ce
AS
5307 * defs.h (make_cleanup_restore_integer): New declaration.
5308 (struct cleanup): New field free_arg.
5309 (make_my_cleanup_2): New.
5310 * utils.c (restore_integer_closure, restore_integer)
5311 (make_cleanup_restore_integer): New.
5312 (make_my_cleanup): Initialize the free_arg field and
5313 renamed to make_my_cleanup_2.
5314 (do_my_cleanups): Call free_arg.
5315 (discard_cleanups): Call free_arg.
5316 * breakpoint.c (restore_always_inserted_mode): Remove.
5317 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 5318
b4f62b57
DE
53192008-06-09 Doug Evans <dje@google.com>
5320
5321 * remote.c (remote_wait): Include beginning of malformed packet
5322 in error output.
5323
37cd5d19
TT
53242008-06-09 Tom Tromey <tromey@redhat.com>
5325
5326 * completer.c (complete_line): Don't special-case
5327 expression_completer.
5328 (expression_completer): Only pass last word to
5329 location_completer.
5330 * c-exp.y (yylex): Check 'token', not 'operator'.
5331
3526781e
DJ
53322008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
5333
5334 * configure.ac (build_warnings): Add -Wno-format for mingw.
5335 * configure: Regenerated.
5336
d001be7a
DJ
53372008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5338
5339 * NEWS: Make indentation consistent. Move exec tracing entry out
5340 of remote packet list.
5341
65d12d83
TT
53422008-06-06 Tom Tromey <tromey@redhat.com>
5343
5344 * value.h (evaluate_subexpression_type, extract_field_op):
5345 Declare.
5346 * printcmd.c (_initialize_printcmd): Use expression_completer for
5347 'p', 'inspect', 'call'.
5348 * parser-defs.h (parse_field_expression): Declare.
5349 * parse.c: Include exceptions.h.
5350 (in_parse_field, expout_last_struct): New globals.
5351 (mark_struct_expression): New function.
5352 (prefixify_expression): Return int.
5353 (prefixify_subexp): Return int. Use expout_last_struct.
5354 (parse_exp_1): Update.
5355 (parse_exp_in_context): Add 'out_subexp' argument. Handle
5356 in_parse_field.
5357 (parse_field_expression): New function.
5358 * expression.h (parse_field_expression): Declare.
5359 (in_parse_field): Likewise.
5360 * eval.c (evaluate_subexpression_type): New function.
5361 (extract_field_op): Likewise.
5362 * completer.h (expression_completer): Declare.
5363 * completer.c (expression_completer): New function.
5364 (count_struct_fields, add_struct_fields): New functions.
5365 * c-exp.y (yyparse): Redefine.
5366 (COMPLETE): New token.
5367 (exp): New productions.
5368 (saw_name_at_eof, last_was_structop): New globals.
5369 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
5370 (c_parse): New function.
5371 * breakpoint.c (_initialize_breakpoint): Use expression_completer
5372 for watch, awatch, and rwatch.
5373 * Makefile.in (parse.o): Depend on exceptions_h.
5374
fed27633
PP
53752008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5376
5377 PR gdb/1147
5378 * gdb/valopts.c (find_overload_match): Handle references
5379 to pointers.
5380
aced2898
PH
53812008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
5382
5383 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
5384 account the bitsize of the 'from' operand.
5385
a2b87ed1
PA
53862008-06-06 Pedro Alves <pedro@codesourcery.com>
5387
5388 * annotate.h (annotate_thread_changed): Declare.
5389
3d6d0b9d
NR
53902008-06-06 Nick Roberts <nickrob@snap.net.nz>
5391
5392 * annotate.c (annotate_thread_changed): New function.
5393 * thread.c (thread_command) : Use it.
5394 * infrun.c (normal_stop): Use it.
5395
c16158bc 53962008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
5397 Nathan Sidwell <nathan@codesourcery.com>
5398 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
5399
5400 * acinclude.m4: Include ../config/acx.m4.
5401 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
5402 * configure, config.in: Regenerate.
5403 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
5404 address.
5405 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
5406
75c99385
PA
54072008-06-05 Pedro Alves <pedro@codesourcery.com>
5408
5409 Replace 'target async' by 'maintenance set remote-async' and
5410 'target remote' combination.
5411
5412 * remote.c (remote_async_wait): Merge into remote_wait, and
5413 remove.
5414 (remote_async_permitted, remote_async_permitted_set): New
5415 variables.
5416 (set_maintenance_remote_async_permitted)
5417 (show_maintenance_remote_async_permitted): New functions.
5418 (remote_async_ops, extended_async_remote_ops): Delete.
5419 (remote_async_open, extended_remote_async_open): Delete.
5420 (remote_open_1): Drop async_p parameter. Update callers. Replace
5421 async_p with remote_async_permitted checks.
5422 (extended_async_remote_attach): Delete.
5423 (remote_resume, remote_async_resume): Merge and leave remote_resume.
5424 (remote_async_terminal_inferior): Rename to...
5425 (remote_terminal_inferior): ... this, and add
5426 remote_async_termitted check.
5427 (remote_async_terminal_ours): Rename to...
5428 (remote_terminal_ours): ... this, and add remote_async_termitted
5429 check.
5430 (remote_wait, remote_async_wait): Merge and leave remote_wait
5431 only.
5432 (remote_kill, remote_async_kill): Merge and leave remote_kill
5433 only.
5434 (remote_async_mourn, extended_async_remote_mourn): Delete.
5435 (extended_remote_create_inferior_1): Drop async_p parameter.
5436 Update callers. Always use extended_remote_ops.
5437 (extended_remote_async_create_inferior): Delete.
5438 (remote_return_zero): Delete.
5439 (init_remote_ops): Register remote_can_async_p, remote_async,
5440 remote_async_mask, remote_terminal_inferior and
5441 remote_terminal_ours.
5442 (remote_can_async_p, remote_is_async_p): Check for
5443 remote_async_permitted.
5444 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
5445 (set_remote_cmd): Don't add async and extended-async targets.
5446 (_initialize_remote): Add set/show remote-async maintenance
5447 commands.
5448
cf30943b
PA
54492008-06-05 Pedro Alves <pedro@codesourcery.com>
5450
5451 * remote.c (kill_kludge): Delete.
5452 (remote_wait, remote_async_wait): Don't set it.
5453 (remote_kill, remote_async_kill): Don't do anything with it.
5454
49fd4a42
PA
54552008-06-05 Pedro Alves <pedro@codesourcery.com>
5456
5457 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
5458
2e618c13
AR
54592008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
5460
5461 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
5462 (deprecated_bcache_added): New function name. Body of function
5463 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
5464 * bcache.h (deprecated_bcache_added): New function.
5465 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
5466 work from add_psymbol_to_list - initialises partial symbol and stashes
5467 it in objfile's cache.
680b56ce 5468 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 5469 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 5470 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
5471 here. If adding to global list, do not duplicate partial symbols in the
5472 partial symtab.
5473
c0b37c48
AR
54742008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
5475
5476 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
5477 'exception caught|thrown' message.
5478
1e3a102a
JK
54792008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5480
5481 * Makefile.in: Update dependencies.
5482 * dwarf2expr.c: New include "gdb_assert.h".
5483 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
5484 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
5485 (execute_stack_op): Error out on too large RECURSION_DEPTH.
5486 Increase/decrease RECURSION_DEPTH around the function.
5487
8d385431
DJ
54882008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5489
5490 * remote.c (get_offsets): Handle a single segment.
5491 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
5492 than segments.
5493
93a57060
DJ
54942008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
5495
5496 * solib-svr4.c (struct lm_info): Add lm_addr.
5497 (main_lm_addr): New.
5498 (svr4_default_sos): Set lm_addr.
5499 (svr4_current_sos): Set lm_addr and main_lm_addr.
5500 (svr4_fetch_objfile_link_map): Rewrite.
5501 (svr4_clear_solib): Clear main_lm_addr.
5502
609ba780 55032008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 5504 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
5505
5506 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
5507 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
5508
c95f5026
JB
55092008-06-02 Roman Zippel <zippel@linux-m68k.org>
5510
5511 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
5512
e4d8bc08
JB
55132008-06-02 Roman Zippel <zippel@linux-m68k.org>
5514
5515 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
5516
40adab56
JB
55172008-06-01 Joel Brobecker <brobecker@adacore.com>
5518
5519 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
5520 treat pointers in data space as function descriptors if the
5521 target address is also in the data space.
5522
bfd66dd9
JB
55232008-05-30 Joel Brobecker <brobecker@adacore.com>
5524
5525 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
5526 the trad-frame register value for the SP register.
5527
7ea566be
MK
55282008-05-29 Mark Kettenis <kettenis@gnu.org>
5529
5530 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
5531
fcac911a
JB
55322008-05-28 Joel Brobecker <brobecker@adacore.com>
5533
5534 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
5535 that identifies function descriptors outside of the .opd section.
5536
ade92717
AR
55372008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
5538
5539 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 5540 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
5541 'bkptno'.
5542 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
5543 catchpoints.
5544 (handle_gnu_v3_exceptions): Use tempflag.
5545
f7f9ae2c
VP
55462008-05-28 Vladimir Prus <vladimir@codesourcery.com>
5547
5548 Refactor varobj_update interface.
680b56ce
AS
5549 * varobj.c (varobj_update): Report changes as vector. Also
5550 return not just a list of varobj, but a list of special structures
5551 that tell what exactly has changed.
5552 * varobj.h (enum varobj_update_error): Rename to
5553 varobj_scope_status.
5554 (struct varobj_update_result_t): New.
5555 (varobj_update): Adjust prototype.
5556 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 5557
ea56f9c2
VP
55582008-05-28 Vladimir Prus <vladimir@codesourcery.com>
5559
5560 * varobj.c (varobj_update): Fix comment typo.
5561 Fix indentation.
5562
c7efd0b9
JB
55632008-05-26 Joel Brobecker <brobecker@adacore.com>
5564
5565 Set the symtab field of symbols read from ECOFF debugging entries.
5566 * mdebugread.c (add_symbol): Add new parameter symtab.
5567 (parse_symbol): Update calls to add_symbol throughout.
5568
2a2d4dc3
AS
55692008-05-27 Andreas Schwab <schwab@suse.de>
5570
5571 * symtab.h (enum address_class): Remove LOC_REGPARM and
5572 LOC_COMPUTED_ARG.
5573 (struct symbol): Add is_argument.
5574 (SYMBOL_IS_ARGUMENT): Define.
5575
5576 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
5577 * buildsym.c (finish_block): Likewise.
5578 * stack.c (print_frame_args, print_block_frame_locals)
5579 (print_frame_arg_vars): Likewise.
5580 * symtab.c (lookup_block_symbol): Likewise.
5581 * tracepoint.c (add_local_symbols): Likewise.
5582 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5583
5584 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
5585 * dwarf2read.c (new_symbol): Likewise.
5586 * mdebugread.c (parse_symbol): Likewise.
5587 * stabsread.c (define_symbol): Likewise.
5588
5589 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
5590 and LOC_COMPUTED_ARG.
5591 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5592 * ax-gdb.c (gen_var_ref): Likewise.
5593 * eval.c (evaluate_subexp_for_address): Likewise.
5594 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5595 * m2-exp.y (yylex): Likewise.
5596 * printcmd.c (address_info): Likewise.
5597 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5598 * tracepoint.c (collect_symbol, scope_info): Likewise.
5599
17ea7499
CES
56002008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5601
5602 * gdbarch.sh: Added new gdbarch struct
5603 core_regset_sections.
5604 * gdbarch.c: Refreshed.
5605 * gdbarch.h: Refreshed.
5606 * regset.h (core_regset_section): Declared.
5607 * linux-nat.c (linux_nat_do_thread_registers): Added
5608 support for the new gdbarch struct core_regset_sections.
5609 * utils.c (host_address_to_string): New function.
5610 * defs.h (host_address_to_string): New prototype.
5611 * i386-linux-tdep.c (i386_regset_rections): New register
5612 sections list for i386.
5613 (i386_linux_init_abi): Initialized new gdbarch struct
5614 core_regset_sections.
5615 * Makefile.in: Updated to reflect dependency changes.
5616 * ppc-linux-tdep.c (ppc_regset_sections): Register
5617 sections list for ppc.
5618 (ppc_linux_init_abi): Initialized new gdbarch struct
5619 core_regset_sections
5620
c4fc331b
AS
56212008-05-24 Andreas Schwab <schwab@suse.de>
5622
5623 * linespec.c (decode_objc): Save current language around call to
5624 get_selected_block.
5625
e936309c
JB
56262008-05-23 Joel Brobecker <brobecker@adacore.com>
5627
5628 * valprint.h (get_array_bounds): Renames get_array_low_bound.
5629 * valprint.c (get_array_bounds): Renames get_array_low_bound.
5630 Return the proper bound value if the array index type is an
5631 enumerated type. Compute the high bound if requested.
5632 (val_print_array_elements): Handle the case when the array
5633 element has a null size.
5634 * ada-valprint.c (print_optional_low_bound): Add handling
5635 for empty arrays or arrays of zero-size elements.
5636 (ada_val_print_array): New function, extracted out from
5637 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
5638 handle empty arrays and arrays of zero-size elements.
5639 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
5640 code by call to ada_val_print_array.
5641 (ada_value_print): Remove handling of null array. The handling
5642 was incomplete and is now better handled by ada_val_print_array.
5643
50ee7535
MD
56442008-05-23 Markus Deuling <deuling@de.ibm.com>
5645
5646 * annotate.c (annotate_source, annotate_frame_begin): Replace
5647 deprecated_print_address_numeric with paddress.
5648 * cli/cli-cmds.c (list_command, edit_command): Likewise.
5649 * tui/tui-stack.c (tui_make_status_line): Likewise.
5650
5651 * defs.h (deprecated_print_address_numeric): Remove.
5652 * printcmd.c (deprecated_print_address_numeric): Remove.
5653 * maint.c (maint_print_section_info): Fix comment.
5654
d44e8473
MD
56552008-05-23 Markus Deuling <deuling@de.ibm.com>
5656
5657 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
5658 print_binary_chars, print_char_chars): Add byte_order parameter and
5659 replace gdbarch_byte_order.
5660 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
5661 expressions and remove them. Remove unused TWO_TO_FOURTH.
5662 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
5663 endianness. Update call to print_hex_chars.
5664 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
5665 print_binary_chars, print_char_chars): Add byte_order parameter.
5666 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
5667 get at the endianness. Update print_*_char calls to use byte_order.
5668
10f4ecb8
UW
56692008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5670
5671 * symtab.h (struct symbol): Make "aux_value" member a void pointer
5672 instead of a union.
5673 (SYMBOL_LOCATION_BATON): Update.
5674
c3b22bd0
UW
56752008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5676
5677 * symtab.h (enum address_class): Remove LOC_BASEREG and
5678 LOC_BASEREG_ARG.
5679 (struct symbol): Remove "basereg" member of "aux_value" union.
5680 (SYMBOL_BASEREG): Remove.
5681
5682 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
5683 or LOC_BASEREG_ARG.
5684 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5685 (ada_add_block_symbols): Likewise.
5686 * ax-gdb.c (gen_var_ref): Likewise.
5687 * buildsym.c (finish_block): Likewise.
5688 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5689 * m2-exp.y (yylex): Likewise.
5690 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5691 * printcmd.c (address_info): Likewise.
5692 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
5693 (print_frame_arg_vars): Likewise.
5694 * symmisc.c (print_symbol): Likewise.
5695 * symtab.c (lookup_block_symbol): Likewise.
5696 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5697 (scope_info): Likewise.
5698
aa59ba6b
UW
56992008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5700
5701 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
5702
5703 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
5704 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5705 (ada_add_block_symbols): Likewise.
5706 * ax-gdb.c (gen_var_ref): Likewise.
5707 * buildsyms.c (finish_block): Likewise.
5708 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5709 * m2-exp.y (yylex): Likewise.
5710 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5711 * printcmd.c (address_info): Likewise.
5712 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
5713 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5714 * symtab.c (lookup_block_symbol): Likewise.
5715 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5716 (scope_info): Likewise.
5717
0bb4e8c4
UW
57182008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5719
5720 * symtab.h (enum address_class): Remove LOC_INDIRECT and
5721 LOC_HP_THREAD_LOCAL_STATIC.
5722
5723 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
5724 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
5725 (read_var_value): Likewise.
5726 * buildsym.c (finish_block): Likewise.
5727 * objfiles.c (objfile_relocate): Likewise.
5728 * printcmd.c (address_info): Likewise.
5729 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5730 * tracepoint.c (scope_info): Likewise.
5731
9f61f19b
MG
57322008-05-21 Markus Deuling <deuling@de.ibm.com>
5733 Maxim Grigoriev <maxim2405@gmail.com>
5734
5735 * xtensa-tdep.c (xtensa_read_register): Remove.
5736 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
5737 argument litbase to call0_frame_cache().
5738 (call0_track_op, call0_analyze_prologue)
5739 (call0_frame_cache): Use extra argument litbase.
5740
0e479716
JB
57412008-05-21 Joel Brobecker <brobecker@adacore.com>
5742
5743 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
5744
214be669
UW
57452008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5746
5747 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
5748
0cd9ab92
UW
57492008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5750
5751 * alpha-mdebug-tdep.c: Include "trad-frame.h".
5752 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
5753 struct trad_frame_saved_reg *.
5754 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
5755 trad_frame_alloc_saved_regs. Update accesses. Record previous
5756 value of SP as being vfp.
5757 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
5758 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
5759
f52cb1b8
MD
57602008-05-21 Markus Deuling <deuling@de.ibm.com>
5761
5762 * score-tdep.c (score_print_insn): Get the current endianess from
5763 disassemble_info instead of gdbarch_byte_order.
5764
8fa75a5d
PA
57652008-05-21 Pedro Alves <pedro@codesourcery.com>
5766
5767 * frame.c (get_prev_frame_1): Build frame id before setting
5768 this_frame->prev_p, not after.
5769
e8e48118
NR
57702008-05-21 Nick Roberts <nickrob@snap.net.nz>
5771
5772 * annotate.c (annotate_new_thread): New function for new-thread
5773 annotation.
5774 * annotate.h: (annotate_new_thread): New extern.
5775 * thread.c (add_thread_with_info): Use it.
5776 * Makefile.in (thread.o): Add dependency on annotate.h.
5777
c57918b2
JB
57782008-05-20 Joel Brobecker <brobecker@adacore.com>
5779
5780 * win32-nat.c (win32_wait): Block the control-c event while
5781 waiting for a debug event.
5782
6c9353d3
PA
57832008-05-19 Pedro Alves <pedro@codesourcery.com>
5784
5785 * symtab.h (lookup_symbol_in_language): Update comment.
5786 * symtab.c (lookup_symbol_aux_block): Update comment.
5787 * ada-lang.c (ada_lookup_symbol_list): Update comment.
5788
2570f2b7
UW
57892008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
5790
5791 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
5792 (lookup_symbol): Likewise.
5793 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
5794 (lookup_symbol): Likewise.
5795 (search_symbols): Update.
5796
5797 * linespec.c (find_methods, collect_methods): Update.
5798 (add_matching_methods, add_constructors): Update.
5799 (decode_compound, decode_dollar, decode_variable): Update.
5800 (lookup_prefix_sym): Update.
5801
5802 (symbol_found): Remove SYM_SYMTAB parameter.
5803 Use SYMBOL_SYMTAB (sym) instead.
5804
5805 * gdbtypes.c (lookup_typename): Update.
5806 (lookup_struct, lookup_union, lookup_enum): Update.
5807 (lookup_template_type): Update.
5808 (check_typedef): Update.
5809 * language.c (lang_bool_type): Update.
5810 * mdebugread.c (parse_procedure): Update.
5811 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5812 * parse.c (write_dollar_variable): Update.
5813 * printcmd.c (address_info): Update.
5814 * source.c (select_source_symtab): Update.
5815 * stack.c (print_frame_args, print_frame_arg_vars): Update.
5816 * valops.c (find_function_in_inferior): Update.
5817 (value_struct_elt_for_reference): Update.
5818 * value.c (value_static_field, value_fn_field): Update.
5819
5820 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5821 * arm-tdep.c (arm_skip_prologue): Update.
5822 * mt-tdep.c (mt_skip_prologue): Update.
5823 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
5824
5825 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
5826 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
5827 (add_defn_to_vec): Likewise.
5828 (ada_add_block_symbols): Likewise.
5829 (lookup_cached_symbol, cache_symbol): Likewise.
5830 (standard_lookup): Update.
5831 (ada_lookup_symbol_list): Update.
5832
5833 * c-valprint.c (c_val_print): Update.
5834 * cp-support.c (cp_lookup_rtti_type): Update.
5835 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
5836 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
5837 * p-valprint.c (pascal_val_print): Update.
5838 * scm-lang.c (scm_lookup_name): Update.
5839
5840 * c-exp.y: Update.
5841 * f-exp.y: Update.
5842 * jv-exp.y: Update.
5843 * m2-exp.y: Update.
5844 * objc-exp.y: Update.
5845 * p-exp.y: Update.
5846
21b556f4
UW
58472008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
5848
5849 * language.h (struct language_defn): Remove SYMTAB parameter from
5850 la_lookup_symbol_nonlocal callback function pointer.
5851
5852 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5853 (ada_lookup_encoded_symbol): Likewise.
5854 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5855 Always call fixup_symbol_section.
5856 (ada_lookup_symbol): Remove SYMTAB parameter.
5857 (ada_lookup_symbol_nonlocal): Likewise.
5858 * ada-exp.y (write_object_renaming): Update.
5859 (find_primitive_type): Likewise.
5860
5861 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5862 (cp_lookup_symbol_namespace): Likewise.
5863 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
5864 (lookup_symbol_file): Likewise.
5865 (lookup_possible_namespace_symbol): Likewise.
5866 (cp_lookup_symbol_nonlocal): Likewise.
5867 (cp_lookup_symbol_namespace): Likewise.
5868 (cp_lookup_nested_type): Update.
5869
5870 * scm-valprint.c (scm_inferior_print): Update.
5871 * valops.c (value_maybe_namespace_elt): Update.
5872
5873 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
5874 lookup_lib_global_symbol callback function pointer.
5875 (solib_global_lookup): Remove SYMTAB parameter.
5876 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
5877 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5878
5879 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5880 (lookup_symbol_static): Likewise.
5881 (lookup_symbol_global): Likewise.
5882 (lookup_symbol_aux_block): Likewise.
5883 (lookup_global_symbol_from_objfile): Likewise.
5884 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
5885 (lookup_symbol_aux_local): Likewise.
5886 (lookup_symbol_aux_block): Likewise.
5887 (lookup_symbol_aux_symtabs): Likewise.
5888 (lookup_symbol_aux_psymtabs): Likewise.
5889 (lookup_global_symbol_from_objfile): Likewise.
5890 (basic_lookup_symbol_nonlocal): Likewise.
5891 (lookup_symbol_static): Likewise.
5892 (lookup_symbol_global): Likewise.
5893
5894 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
5895
39237dd1
PA
58962008-05-17 Pedro Alves <pedro@codesourcery.com>
5897
5898 * remote.c (init_extended_remote_ops): Fix typo.
5899
7c0d47a5
PA
59002008-05-16 Pedro Alves <pedro@codesourcery.com>
5901
5902 * NEWS: Mention new DICOS x86 target configuration.
5903
907fc202
UW
59042008-05-16 Pedro Alves <pedro@codesourcery.com>
5905 Ulrich Weigand <uweigand@de.ibm.com>
5906
5907 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
5908 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
5909
5910 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
5911 use it instead of ginfo->value.address. Look up minimal symbol by
5912 address and name. Assume OBJFILE is non-NULL.
5913 (fixup_symbol_section): Ensure we always have an objfile to look
5914 into. Extract and pass to fixup_section the symbol's address that
5915 will match the minimal symbol's address.
5916 (fixup_psymbol_section): Likewise.
5917
5918 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
5919 overlays and the addrmap returned the wrong section.
5920
5921 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
5922 calling fixup_symbol_section.
5923
42848c96
UW
59242008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5925
5926 * minsyms.c: Include "target.h".
5927 (find_solib_trampoline_target): Handle minimal symbols pointing
5928 to function descriptors as well.
5929 * Makefile.in (minsyms.o): Update dependencies.
5930
5931 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
5932 (ppc64_standard_linkage1): ... this. Fix optional instructions.
5933 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
5934 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
5935 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
5936 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
5937 (ppc64_standard_linkage_target): Rename to ...
5938 (ppc64_standard_linkage1_target): ... this.
5939 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
5940 (ppc64_skip_trampoline_code): Support three variants of standard
5941 linkage stubs. Call find_solib_trampoline_target to handle
5942 glink stubs.
5943
74d1f063
UW
59442008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5945
5946 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
5947 ppc64_sysv_abi_adjust_breakpoint_address.
5948 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5949 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5950
8526f328
UW
59512008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5952
5953 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
5954 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
5955 of ppc_linux_skip_trampoline_code.
5956
ba2b1c56
DJ
59572008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
5958
5959 * gdbarch.sh: Delete dwarf_reg_to_regnum.
5960 * gdbarch.c, gdbarch.h: Regenerated.
5961 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
5962 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
5963 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
5964
4fdebdd0
PA
59652008-05-15 Pedro Alves <pedro@codesourcery.com>
5966
5967 * linux-nat.c (trap_ptid): Delete.
5968 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
5969 Adjust.
5970 * linux-thread-db.c (thread_db_wait): Adjust.
5971
bc882aa9
JB
59722008-05-15 Joel Brobecker <brobecker@adacore.com>
5973
5974 * linespec.c (decode_line_1): Fix a couple of comments.
5975
83b94be5
AM
59762008-05-15 Alan Modra <amodra@bigpond.net.au>
5977
5978 * dbxread.c: Formatting.
5979 (INTERNALIZE_SYMBOL): Init n_other.
5980 (set_namestring): Take pointer to nlist arg rather than struct
5981 copy. Update all callers.
5982
87669130
AS
59832008-05-15 Andreas Schwab <schwab@suse.de>
5984
5985 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
5986 (dwarf2read.o): Add $(addrmap_h).
5987
00d5f93a
UW
59882008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5989
5990 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
5991 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
5992 to handle ppc32 PLT entries.
5993 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
5994 only on ppc64.
5995
2eaf8d2a
DJ
59962008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5997
5998 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
5999 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
6000 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
6001 (lookup_minimal_symbol_by_pc_section): Use
6002 lookup_minimal_symbol_by_pc_section_1.
6003 (lookup_solib_trampoline_symbol_by_pc): Likewise.
6004
20c62566
JB
60052008-05-13 Joel Brobecker <brobecker@adacore.com>
6006
6007 * findcmd.c: Add #include "gdb_stdint.h".
6008 * Makefile.in (findcmd.o): Update dependencies.
6009
87a7da84
DM
60102008-05-11 David S. Miller <davem@davemloft.net>
6011
de0c3d9d
DM
6012 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
6013 long double size override, Linux does use 128-bit now.
6014
e8467b5a
DM
6015 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
6016 (sparc_linux_write_pc): New function.
6017 (sparc32_linux_init_abi): Register it.
6018 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
6019 (sparc64_linux_write_pc): New function.
6020 (sparc64_linux_init_abi): Register it.
6021
87a7da84
DM
6022 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
6023 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
6024
8a4c2d24
UW
60252008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6026
6027 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
6028 and info.tdep_info before calling gdbarch_init_osabi.
6029
003f3813
JB
60302008-05-09 Joel Brobecker <brobecker@adacore.com>
6031
6032 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
6033 the type of the right hand side of the assignment to the type
6034 of the left hand side if the left hand side is a convenience
6035 variable.
6036
7ae0e2a2
UW
60372008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
6038
6039 * NEWS: Mention gdbserver bi-arch capability.
6040
08388c79
DE
60412008-05-09 Doug Evans <dje@google.com>
6042
6043 New "find" command.
6044 * NEWS: Document find command and qSearch:memory packet.
6045 * Makefile.in (SFILES): Add findcmd.c.
6046 (COMMON_OBJS): Add findcmd.o.
6047 (findcmd.o): New rule.
6048 * findcmd.c: New file.
6049 * target.h (target_ops): New member to_search_memory.
6050 (simple_search_memory): Declare.
6051 (target_search_memory): Declare.
6052 * target.c (simple_search_memory): New fn.
6053 (target_search_memory): New fn.
6054 * remote.c (PACKET_qSearch_memory): New packet kind.
6055 (remote_search_memory): New fn.
6056 (init_remote_ops): Init to_search_memory.
6057 (init_extended_remote_ops): Ditto.
6058 (_initialize_remote): Add qSearch:memory packet config command.
6059
11c68c47
EZ
60602008-05-09 Eli Zaretskii <eliz@gnu.org>
6061
6062 * thread.c (_initialize_thread): Don't use commas and periods in
6063 first line of doc string of "set/show print thread-events".
6064
6834c9bb
JB
60652008-05-08 Joel Brobecker <brobecker@adacore.com>
6066
6067 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
6068 Update for unwinder changes.
6069
86c31399
JB
60702008-05-08 Joel Brobecker <brobecker@adacore.com>
6071
6072 * frame.c (get_frame_base_address, get_frame_locals_address)
6073 (get_frame_args_address): Pass the correct frame when calling
6074 frame_base_find_by_frame.
6075
96ef3384
UW
60762008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6077
6078 * remote.c (extended_remote_attach_1): Call target_find_description.
6079
45280a52
DJ
60802008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
6081
6082 * remote.c (extended_remote_create_inferior_1): Clean up
6083 before marking the target running.
6084
227e86ad
JB
60852008-05-08 Joel Brobecker <brobecker@adacore.com>
6086
6087 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
6088 changes.
6089
236369e7
JB
60902008-05-07 Joel Brobecker <brobecker@adacore.com>
6091
6092 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
6093 sparc64-sol2-tdep.c: Update for unwinder changes.
6094
de237128
DJ
60952008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6096
6097 * cp-support.c (mangled_name_to_comp): Initialize storage.
6098 (unqualified_name_from_comp): Likewise.
6099
4fff2411
JZ
61002008-05-07 Jie Zhang <jie.zhang@analog.com>
6101
6102 * remote.c (remote_insert_breakpoint): Call get_remote_state
6103 after gdbarch_breakpoint_from_pc is called.
6104 (remote_insert_hw_breakpoint): Likewise.
6105
d8ca156b
JB
61062008-05-06 Joel Brobecker <brobecker@adacore.com>
6107
6108 * valprint.c (val_print): Add new language parameter and use it
6109 instead of using the current_language. Update calls to val_print
6110 throughout.
6111 (common_val_print): Add new langauge parameter and pass it to
6112 val_print.
6113 * value.h (struct language_defn): Add opaque declaration.
6114 (val_print, common_val_print): Update declarations.
6115 * stack.c (print_frame_args): Update call to common_val_print
6116 using the appropriate language.
6117 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6118 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
6119 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
6120 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
6121 #include "language.h" if necessary.
6122 Update calls to val_print and common_val_print.
6123 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
6124 Update dependencies.
6125
b1e6fd19
JB
61262008-05-06 Joel Brobecker <brobecker@adacore.com>
6127
6128 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
6129 pointing inside a non-executable section as function descriptors.
6130
02b19d84
PA
61312008-05-06 Pedro Alves <pedro@codesourcery.com>
6132
6133 * inf-loop.c (inferior_event_handler): Run all continuations and
6134 print any language change before running the breakpoint commands.
6135
15c1e57f
JB
61362008-05-06 Joel Brobecker <brobecker@adacore.com>
6137
6138 * frame-unwind.c (frame_unwind_got_bytes): New function.
6139 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
6140 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
6141 for unwinder changes.
6142
d14508fe
DE
61432008-05-05 Doug Evans <dje@google.com>
6144
6145 * NEWS: Mention new /m modifier for disassemble command.
6146 * cli/cli-cmds.c (print_disassembly): New function.
6147 (disassemble_current_function): New function
6148 (disassemble_command): Recognize /m modifier, print mixed
6149 source+assembly.
6150 (init_cli_cmds): Update disassemble help text.
6151
5142f611
MG
61522008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
6153
6154 * xtensa-tdep.c: Update for unwinder changes.
6155
f36bf22c
AS
61562008-05-05 Andreas Schwab <schwab@suse.de>
6157
6158 Update m68k port for unwinder changes.
6159 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
6160 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
6161 (m68k_frame_unwind): Use default_frame_sniffer.
6162 (m68k_frame_sniffer): Remove.
6163 (m68k_frame_base_address): Expect this_frame.
6164 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
6165 this_frame.
6166 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
6167 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
6168 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
6169 parameter instead of pc value.
6170 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
6171 Expect this_frame.
6172 (m68k_linux_sigtramp_frame_this_id)
6173 (m68k_linux_sigtramp_frame_prev_register)
6174 (m68k_linux_sigtramp_frame_sniffer): Update signature.
6175 (m68k_linux_sigtramp_frame_unwind): Use
6176 m68k_linux_sigtramp_frame_sniffer.
6177 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
6178
6179 * m68klinux-nat.c (store_register): Fix typo.
6180
b3dc826b
PA
61812008-05-05 Pedro Alves <pedro@codesourcery.com>
6182
6183 * infcmd.c (step_1): Put thread id on the stack to avoid possible
6184 NULL dereferencing.
6185
6528a9ea
LM
61862008-05-05 Luis Machado <luisgpm@br.ibm.com>
6187
6188 * symfile.c (reread_symbols): Update objfile's entry point.
6189
5eeb2539
AR
61902008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
6191 Joel Brobecker <brobecker@adacore.com>
1f906a60 6192
5eeb2539
AR
6193 * ada-lang.c: Update throughout to use symbol_matches_domain
6194 instead of matching the symbol domain explictly.
6195 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 6196 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 6197 class as typedefs. See lookup_partial_symbol function.
f36bf22c 6198 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
6199 symbol for the typedef. See lookup_block_symbol.
6200 * symtab.c (symbol_matches_domain): New function, takes care
6201 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
6202 (lookup_partial_symbol): Use symbol_matches_domain to see if the
6203 found psym domain matches the given domain.
6204 (lookup_block_symbol): Likewise.
6205
e2b7ddea
VP
62062008-05-05 Vladimir Prus <vladimir@codesourcery.com>
6207
680b56ce
AS
6208 * top.c (command_line_handler_continuation): Remove.
6209 (execute_command): Do not install the above.
e2b7ddea 6210
fcfb8b02
VP
62112008-05-05 Vladimir Prus <vladimir@codesourcery.com>
6212
6213 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
6214 and catch all exceptions from it.
6215 * top.c (command_line_handler_continuation): Don't
6216 call bpstat_do_action here.
6217
f792889a
DJ
62182008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
6219
6220 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
6221 (struct die_info): Remove type.
6222 (read_type_die, read_typedef, read_base_type, read_subrange_type)
6223 (read_structure_type, read_enumeration_type, read_array_type)
6224 (read_tag_pointer_type, read_tag_ptr_to_member_type)
6225 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
6226 (read_tag_string_type, read_subroutine_type, read_set_type)
6227 (read_unspecified_type): Delete prototypes. Remove check for
6228 already-loaded type. Return the new type.
6229 (set_die_type): Return the new type.
6230 (reset_die_and_siblings_types): Delete.
6231 (load_comp_unit, load_full_comp_unit): Set type_hash.
6232 (process_queue): Remove call to reset_die_and_siblings_types.
6233 (process_die): Do not read most types here. Use read_type_die
6234 for others.
6235 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
6236 (quirk_gcc_member_function_pointer): Return the new type.
6237 (process_structure_scope, process_enumeration_scope): Use
6238 get_die_type and read the DIE's type.
6239 (read_full_die): Do not initialize die->type.
6240 (tag_type_to_type): Use read_type_die.
6241 (read_type_die): Check for already defined types. Return the
6242 type.
6243 (determine_prefix): Use get_die_type.
6244 (set_die_type): Return the type.
6245 (get_die_type): Take a CU argument. Check for no type_hash.
6246
e7030f15
DJ
62472008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
6248
6249 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
6250 locals.
6251
611c83ae
PA
62522008-05-04 Pedro Alves <pedro@codesourcery.com>
6253
6254 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
6255 and bp_longjmp_resume breakpoints.
6256 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
6257 meaningful.
6258 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
6259 breakpoints. Create bp_longjmp breakpoints as momentary
6260 breakpoints.
6261 (enable_longjmp_breakpoint): Delete.
6262 (set_longjmp_breakpoint): New.
6263 (disable_longjmp_breakpoint): Delete.
6264 (delete_longjmp_breakpoint): New.
6265 (set_longjmp_resume_breakpoint): Delete.
6266 (set_momentary_breakpoint_at_pc): New.
6267 (breakpoint_re_set_one): Don't delete bp_longjmp and
6268 bp_longjmp_resume breakpoints.
6269 (breakpoint_re_set): Don't create longjmp and longjmp-resume
6270 breakpoints.
6271
6272 * infrun.c (step_resume_breakpoint): Add comment.
6273 (struct execution_control_state): Delete handling_longjmp member.
6274 (init_execution_control_state). Don't clear handling_longjmp.
6275 (context_switch): Don't context switch handling_longjmp.
6276 (handle_inferior_event): If handling a bp_longjmp breakpoint,
6277 create a bp_longjmp_resume breakpoint, and set it as current
6278 step_resume_breakpoint, then step over the longjmp breakpoint. If
6279 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
6280 breakpoint, delete the longjmp-resume breakpoint, and stop
6281 stepping.
6282 (currently_stepping): Remove handling_longjmp from expression.
6283 (insert_step_resume_breakpoint_at_sal): Update comment.
6284 (insert_longjmp_resume_breakpoint): New.
6285
6286 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
6287 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
6288 declarations.
6289 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
6290 (set_longjmp_resume_breakpoint): Delete declaration.
6291
6292 * gdbthread.h (save_infrun_state): Remove handling_longjmp
6293 parameter.
6294 (load_infrun_state): Delete *handling_longjmp parameter.
6295 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
6296 Update body.
6297 (load_infrun_state): Delete *handling_longjmp parameter. Update
6298 body.
6299
6300 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
6301 (delete_longjmp_breakpoint_cleanup): New.
6302 (step_1): Call set_longjmp_breakpoint instead of
6303 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
6304 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
6305 (step_1_continuation): Pass thread id in the continuation args to
6306 step_once.
6307 (step_once): Add thread parameter. Pass thread id the the
6308 continuation.
6309
85cbf3d3
JK
63102008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6311
6312 Set CU BASE_ADDRESS already from partial DIEs.
6313 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
6314 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
6315 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
6316 from these variables if it was still unset.
6317
ff013f42
JK
6318 * Makefile.in: Update dependencies.
6319 * dwarf2read.c: Include "addrmap.h"
6320 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
6321 (dwarf2_ranges_read): New prototype.
6322 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
6323 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
6324 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
6325 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
6326 comment for it. Add the found ranges to RANGES_PST. New variable
6327 BASEADDR, initialize it the common way.
6328 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
6329 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
6330 HAS_RANGES_OFFSET for the later processing.
6331 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
6332 * symtab.c: Include "addrmap.h"
6333 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
6334 Move the psymtab locator into ...
6335 (find_pc_sect_psymtab_closer): ... a new function.
6336
a7f1256d
UW
63372008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6338
6339 * arch-utils.c (gdbarch_update_p): Use default values for
6340 info.abfd and info.target_desc if they are NULL.
6341 (gdbarch_from_bfd): Remove assertion.
6342 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
6343 using the current target description.
6344 (gdbarch_info_fill): Do not use default values for info->abfd
6345 and info->target_desc.
6346
b2de52bb
JK
63472008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6348
6349 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
6350
515630c5
UW
63512008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6352
6353 * inferior.h (read_pc_pid, write_pc_pid): Remove.
6354 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
6355
6356 * regcache.c (read_pc_pid): Remove, replace by ...
6357 (regcache_read_pc): ... this function.
6358 (write_pc_pid): Remove, replace by ...
6359 (regcache_write_pc): ... this function.
6360 (read_pc, write_pc): Update.
6361
6362 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
6363 write_pc_pid by regcache_read_pc and regcache_write_pc.
6364 (displaced_step_fixup): Likewise.
6365 (resume): Likewise. Use regcache arch instead of current_gdbarch.
6366 (prepare_to_proceed): Likewise.
6367 (proceed): Likewise.
6368 (adjust_pc_after_break): Likewise.
6369 (handle_inferior_event): Likewise.
6370
6371 * linux-nat.c (cancel_breakpoint): Likewise.
6372 * linux-thread-db.c (check_event): Likewise.
6373 * aix-thread.c (aix_thread_wait): Likewise.
6374 * tracepoint.c (trace_dump_command): Likewise.
6375
ebd3bcc1
JK
63762008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6377
6378 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
6379 SYMBOL_LOCATION_BATON.
6380
c47ffbe3
VP
63812008-05-04 Vladimir Prus <vladimir@codesourcery.com>
6382
f78bff48
VP
6383 * target.h (struct target_ops): New field to_auxv_parse.
6384 * auxv.c (default_auxv_parse): New, renamed from previous
6385 target_auxv_parse.
6386 (target_auxv_parse): Try to call target method. Fallback to
6387 default_auxv_parse if not found.
6388 * procfs.c (procfs_auxv_parse): New.
6389 (init_procfs_ops): On Solaris, in 64-bit mode, install
6390 procfs_auxv_parse.
c47ffbe3 6391
35076fa0
AN
63922008-05-03 Adam Nemet <anemet@caviumnetworks.com>
6393
6394 * symfile.c (add_symbol_file_command): Use paddress rather than
6395 hex_string to print the address.
6396
5b197912
UW
63972008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6398
6399 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
6400 return the null frame ID to terminate the backtrace.
6401
4a7622d1
UW
64022008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6403
6404 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
6405 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
6406 (SIG_FRAME_PC_OFFSET): Likewise.
6407 (SIG_FRAME_LR_OFFSET): Likewise.
6408 (SIG_FRAME_FP_OFFSET): Likewise.
6409 (rs6000_push_dummy_call): Likewise.
6410 (rs6000_return_value): Likewise.
6411 (rs6000_convert_from_func_ptr_addr): Likewise.
6412 (branch_dest, rs6000_software_single_step): Likewise.
6413 (deal_with_atomic_sequence): Rename to ...
6414 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
6415 Do not call branch_dest; inline required parts of that function.
6416 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
6417 with SYMBOL_LINKAGE_NAME.
6418 (struct reg, regsize): Delete.
6419 (read_memory_addr): Delete; inline into callers.
6420 (rs6000_skip_prologue): Move after skip_prologue.
6421 (skip_prologue): Remove prototype.
6422 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
6423 initialization as if this variable were true. Do not install
6424 ppc64_sysv_abi_adjust_breakpoint_address.
6425
6426 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
6427 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
6428 and "breakpoint.h".
6429 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
6430 (SIG_FRAME_PC_OFFSET): Likewise.
6431 (SIG_FRAME_LR_OFFSET): Likewise.
6432 (SIG_FRAME_FP_OFFSET): Likewise.
6433 (rs6000_push_dummy_call): Likewise.
6434 (rs6000_return_value): Likewise.
6435 (rs6000_convert_from_func_ptr_addr): Likewise.
6436 (branch_dest, rs6000_software_single_step): Likewise. Replace
6437 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
6438 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
6439 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
6440 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
6441 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
6442
6443 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
6444 (AIX_TEXT_SEGMENT_BASE): New macro.
6445 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
6446 by AIX_TEXT_SEGMENT_BASE.
6447
6448 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
6449 (struct gdbarch_tdep): Remove text_segment_base member.
6450 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
6451 ppc64_sysv_abi_adjust_breakpoint_address.
6452
6453 * Makefile.in (rs6000-tdep.o): Update dependencies.
6454 (rs6000-aix-tdep.o): Likewise.
6455
938f5214
TJB
64562008-05-03 Luis Machado <luisgpm@br.ibm.com>
6457 Thiago Jung Bauermann <bauerman@br.ibm.com>
6458
6459 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
6460 * doublest.c (convert_typed_floating): Fix typo in comment.
6461 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6462 * frame-unwind.h (frame_sniffer_ftype): Likewise.
6463 * frame.c (frame_unwind_address_in_block): Likewise.
6464 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
6465 * symtab.h (struct symbol): Likewise.
6466 * tramp-frame.h (struct trad_frame_cache): Likewise.
6467 * value.c (allocate_repeat_value): Likewise.
6468
0b02b92d
UW
64692008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6470
6471 * infrun.c (handle_inferior_event): Do not insert breakpoints at
6472 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
6473
d705c43c
PA
64742008-05-03 Pedro Alves <pedro@codesourcery.com>
6475
6476 * parse.c (parse_exp_in_context): Don't override
6477 expression_context_pc if get_selected_block returned a valid
6478 block.
6479
d6350901
DJ
64802008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
6481
6482 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
6483 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
6484 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
6485 Delete.
6486 * c-typeprint.c (c_type_print_base): Delete handling of template
6487 instantiations.
6488 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
6489 (METHOD_PTR_TO_VOFFSET): Delete.
6490 * defs.h (QUIT_FIXME): Delete.
6491 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
6492 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
6493 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
6494 ninstantiations, and instantiations.
6495 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
6496 (TYPE_FN_FIELD_INLINED): Delete.
6497 * srec.h (SREC_BINARY): Delete.
6498 * symtab.c (symbol_init_demangled_name): Delete.
6499 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
6500 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
6501 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
6502 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
6503 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
6504 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
6505 * target.h (enum thread_control_capabilities): Delete tc_switch.
6506 (target_can_switch_threads): Delete.
6507
30510692
DJ
65082008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
6509
6510 * Makefile.in (objfiles.o): Update.
6511 * exec.c (exec_set_section_address): Support p->addr != 0.
6512 * objfiles.c (objfile_relocate): Update exec_ops section
6513 addresses.
6514 * symfile.c (place_section): Move exec_set_section_address call...
6515 (default_symfile_offsets): ...to here.
6516
7284e1be
UW
65172008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6518
6519 * Makefile.in (ppc_linux_tdep_h): New macro.
6520 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
6521 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
6522 (powerpc_e500l_c): Likewise.
6523 (ppc-linux-nat.o): Update dependencies.
6524 (ppc-linux-tdep.o): Update dependencies.
6525 (rs6000-tdep.o): Update dependencies.
6526
6527 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
6528 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
6529 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
6530 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
6531 (tdesc_powerpc_e500): Remove.
6532
6533 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
6534 and "features/rs6000/powerpc-altivec64.c".
6535 (ppc_supply_reg, ppc_collect_reg): Make global.
6536 (variants): Use tdesc_powerpc_32 for "powerpc" and
6537 tdesc_powerpc_altivec64 for "powerpc64".
6538 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
6539
6540 * ppc-linux-tdep.h: New file.
6541
6542 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
6543 Include "features/rs6000/powerpc-32l.c".
6544 Include "features/rs6000/powerpc-altivec32l.c".
6545 Include "features/rs6000/powerpc-64l.c".
6546 Include "features/rs6000/powerpc-altivec64l.c".
6547 Include "features/rs6000/powerpc-e500l.c".
6548 (ppc_linux_supply_gregset): New function.
6549 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
6550 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
6551 (ppc64_linux_gregset): Likewise.
6552 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
6553 (ppc_linux_trap_reg_p): New function.
6554 (ppc_linux_write_pc): New function.
6555 (ppc_linux_core_read_description): New function.
6556 (ppc_linux_init_abi): Install ppc_linux_write_pc and
6557 ppc_linux_core_read_description. Install orig_r3 and trap
6558 registers if present in the target description.
6559 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
6560
6561 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
6562 (PT_ORIG_R3, PT_TRAP): Define if necessary.
6563 (ppc_register_u_addr): Handle orig_r3 and trap registers.
6564 (fetch_ppc_registers): Likewise.
6565 (store_ppc_registers): Likewise.
6566 (store_register): Likewise.
6567 (ppc_linux_read_description): Check whether AltiVec is supported.
6568 Check whether inferior is 32-bit or 64-bit. Return the appropriate
6569 Linux target description.
6570
6571 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
6572 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
6573 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
6574 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
6575 rs6000/powerpc-e500. Update -expedite variables accordingly.
6576
6577 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
6578 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
6579 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
6580 * features/rs6000/powerpc-e500.c: Regenerate.
6581 * features/rs6000/powerpc-32.c: Regenerate.
6582 * features/rs6000/powerpc-64.c: Regenerate.
6583
6584 * features/rs6000/power-linux.xml: New file.
6585 * features/rs6000/power64-linux.xml: New file.
6586 * features/rs6000/powerpc-32l.xml: New file.
6587 * features/rs6000/powerpc-altivec32l.xml: New file.
6588 * features/rs6000/powerpc-64l.xml: New file.
6589 * features/rs6000/powerpc-altivec64l.xml: New file.
6590 * features/rs6000/powerpc-e500l.xml: New file.
6591 * features/rs6000/powerpc-32l.c: New (generated) file.
6592 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
6593 * features/rs6000/powerpc-64l.c: New (generated) file.
6594 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
6595 * features/rs6000/powerpc-e500l.xml: New (generated) file.
6596
6597 * regformats/reg-ppc.dat: Remove.
6598 * regformats/reg-ppc64.dat: Remove.
6599 * regformats/rs6000/powerpc-32.dat: Remove.
6600 * regformats/rs6000/powerpc-64.dat: Remove.
6601 * regformats/rs6000/powerpc-e500.dat: Remove.
6602 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
6603 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
6604 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
6605 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
6606 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
6607
063bfe2e
VP
66082008-05-03 Pedro Alves <pedro@codesourcery.com>
6609
6610 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
6611 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
6612 thread_exit observer.
6613 (mi_thread_exit): New.
063bfe2e 6614
f132ba9d
TJB
66152008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6616
6617 * breakpoint.c (create_exception_catchpoint): Remove prototype
6618 for already deleted function.
6619 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
6620 * frame.h (show_stack_frame): Remove prototype.
6621 * stack.c (show_stack_frame): Remove empty, unused function.
6622 * source.c (symtab_to_fullname, print_source_lines): Small fix
6623 in comment.
6624 * value.c (show_values): Update comments to mention "show values"
6625 command instead of "info history".
6626
bccdca4a
UW
66272008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
6628
6629 * linespec.c: Include "target.h".
6630 (minsym_found): Handle minimal symbols pointing to function
6631 descriptors. Use find_function_start_pc.
6632 * minsyms.c (msymbol_objfile): New function.
6633 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
6634 to function descriptors.
6635 * symtab.c (fixup_section): Only use minimal symbol at the same
6636 address to determine section of a symbol.
6637 (find_function_start_pc): New function.
6638 (find_function_start_sal): Use it.
6639 * symtab.h (msymbol_objfile): Add prototype.
6640 (find_function_start_pc): Likewise.
6641 * value.c: Include "objfiles.h".
6642 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 6643 descriptors.
bccdca4a
UW
6644 * Makefile.in (linespec.o): Update dependencies.
6645 (value.o): Likewise.
6646
de4d072f
JB
66472008-05-02 Joel Brobecker <brobecker@adacore.com>
6648
6649 * ada-lang.c (unwrap_value): Handle the case where the "F" field
6650 inside a PAD type is a bitfield.
6651
93d4208d
UW
66522008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
6653
6654 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
6655 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6656 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6657 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
6658 Allow typedefs when checking for function pointer arguments.
6659 Right-align small structs passed on the stack.
6660 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
6661 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6662 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6663
60c5725c
DJ
66642008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6665
6666 * Makefile.in (arm-tdep.o): Update.
6667 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
6668 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
6669 (arm_pc_is_thumb): Use mapping symbols.
6670 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
6671 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
6672 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
6673 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
6674 * gdbarch.sh: Add record_special_symbol.
6675 * gdbarch.c, gdbarch.h: Regenerated.
6676 * objfiles.c (struct objfile_data): Add cleanup member.
6677 (register_objfile_data_with_cleanup): New function, from
6678 register_objfile_data.
6679 (register_objfile_data): Use it.
6680 (objfile_free_data): Call clear_objfile_data.
6681 (clear_objfile_data): Call cleanup functions.
6682 * objfiles.h (register_objfile_data_with_cleanup): Declare.
6683
574dffa2
DJ
66842008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6685
6686 * objfiles.c (init_entry_point_info): Handle shared libraries.
6687
2c404490
DJ
66882008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6689
6690 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
6691 lowest_pc.
6692
237fc4c9
PA
66932008-05-02 Jim Blandy <jimb@codesourcery.com>
6694 Pedro Alves <pedro@codesourcery.com>
6695
6696 Implement displaced stepping.
6697
6698 * gdbarch.sh (max_insn_length): New 'variable'.
6699 (displaced_step_copy, displaced_step_fixup)
6700 (displaced_step_free_closure, displaced_step_location): New
6701 functions.
6702 (struct displaced_step_closure): Add forward declaration.
6703 * gdbarch.c, gdbarch.h: Regenerated.
6704
6705 * arch-utils.c: #include "objfiles.h".
6706 (simple_displaced_step_copy_insn)
6707 (simple_displaced_step_free_closure)
6708 (displaced_step_at_entry_point): New functions.
6709 * arch-utils.h (simple_displaced_step_copy_insn)
6710 (simple_displaced_step_free_closure)
6711 (displaced_step_at_entry_point): New prototypes.
6712
6713 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
6714 (I386_MAX_MATCHED_INSN_LEN): ... this.
6715 (i386_absolute_jmp_p, i386_absolute_call_p)
6716 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
6717 (i386_displaced_step_fixup): New functions.
6718 (struct i386_insn, i386_match_insn): Update.
6719 (i386_gdbarch_init): Set gdbarch_max_insn_length.
6720 * i386-tdep.h (I386_MAX_INSN_LEN): New.
6721 (i386_displaced_step_fixup): New prototype.
6722 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
6723 Register gdbarch_displaced_step_copy,
6724 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
6725 and gdbarch_displaced_step_location functions.
6726
6727 * infrun.c (debug_displaced): New variable.
6728 (show_debug_displaced): New function.
6729 (struct displaced_step_request): New struct.
6730 (displaced_step_request_queue, displaced_step_ptid)
6731 (displaced_step_gdbarch, displaced_step_closure)
6732 (displaced_step_original, displaced_step_copy)
6733 (displaced_step_saved_copy, can_use_displaced_stepping): New
6734 variables.
6735 (show_can_use_displaced_stepping, use_displaced_stepping)
6736 (displaced_step_clear, cleanup_displaced_step_closure)
6737 (displaced_step_dump_bytes, displaced_step_prepare)
6738 (displaced_step_clear_cleanup, write_memory_ptid)
6739 (displaced_step_fixup): New functions.
6740 (resume): Call displaced_step_prepare.
6741 (proceed): Call read_pc once, and remember the value. If using
6742 displaced stepping, don't remove breakpoints.
6743 (handle_inferior_event): Call displaced_step_fixup. Add some
6744 debugging output. When we try to step over a breakpoint, but get
6745 a signal to deliver to the thread instead, ensure the step-resume
6746 breakpoint is actually inserted. If a thread hop is needed, and
6747 displaced stepping is enabled, don't remove breakpoints.
6748 (init_wait_for_inferior): Call displaced_step_clear.
6749 (_initialize_infrun): Add "set debug displaced" command. Add
6750 "maint set can-use-displaced-stepping" command. Clear
6751 displaced_step_ptid.
6752 * inferior.h (debug_displaced): Declare variable.
6753 (displaced_step_dump_bytes): Declare function.
6754
6755 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
6756 dependencies.
6757
0428b8f5
DJ
67582008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6759
6760 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
6761 (arm_force_mode_string, arm_show_fallback_mode)
6762 (arm_show_force_mode): New.
6763 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
6764 arm_frame_is_thumb.
6765 (_initialize_arm_tdep): Add "set arm fallback-mode"
6766 and "set arm force-mode".
6767 * NEWS: Document new commands.
6768
d01a8610
AS
67692008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
6770
6771 * main.h (batch_silent): Declare.
6772 * event-top.c: Include main.h.
6773 (gdb_setup_readline): Remove extern batch_silent declaration.
6774 * infrun.c (normal_stop): Don't print source location when running in
6775 --batch-silent mode.
6776 * Makefile.in (event-top.o): Add main.h dependency.
6777
5009afc5
AS
67782008-05-02 Andreas Schwab <schwab@suse.de>
6779
6780 * target.h (struct target_ops): Add
6781 to_watchpoint_addr_within_range.
6782 (target_watchpoint_addr_within_range): New function.
6783 * target.c (update_current_target): Inherit
6784 to_watchpoint_addr_within_range, defaulting to
6785 default_watchpoint_addr_within_range.
6786 (default_watchpoint_addr_within_range): New function.
6787 (debug_to_watchpoint_addr_within_range): New function.
6788 (setup_target_debug): Set to_watchpoint_addr_within_range.
6789 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
6790 New function.
6791 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
6792 * breakpoint.c (watchpoints_triggered): Use
6793 target_watchpoint_addr_within_range.
6794
a15c5c83
PA
67952008-05-01 Pedro Alves <pedro@codesourcery.com>
6796
6797 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
6798 (i[34567]86-*-dicos*, x86_64-*-dicos*):
6799 Set gdb_osabi to GDB_OSABI_DICOS.
6800
6801 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
6802 * osabi.c (gdb_osabi_name): Add "DICOS".
6803
6804 * i386-dicos-tdep.c: New file.
6805
6806 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
6807 (ALLDEPFILES): Add i386-dicos-tdep.c.
6808 (i386-dicos-tdep.o): New rule.
6809
728c8f58
PA
68102008-05-01 Pedro Alves <pedro@codesourcery.com>
6811
6812 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
6813 and register the fork's PTID as a thread.
6814
604133b5
AR
68152008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
6816
6817 PR gdb/1665
6818 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
6819 assign its value to the breakpoint created.
6820 (create_breakpoints): Add breakpoint_ops argument and pass it
6821 to create_breakpoint call.
6822 (break_command_really): Add breakpoint_ops argument and pass/assign
6823 appropriately.
6824 (break_command_1): Pass NULL as ops argument.
6825 (set_breakpoint): Pass NULL as ops argument.
6826 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
6827 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
6828 catch and throw catchpoints.
5009afc5 6829
1f906a60 68302008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
6831
6832 PR gdb/2343
6833 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
6834 translate signal numeric value from the target to GDB's enum
6835 target_signal.
6836 * gdbarch.c, gdbarch.h: Regenerated.
6837 * gdbarch.sh: Added two new functions target_signal_from_host and
6838 target_signal_to_host.
680b56ce 6839 * target.h (default_target_signal_from_host,
1cded358
AR
6840 default_target_signal_to_host): New functions - declarations.
6841 * signals/signals.c (struct gdbarch): New declaration.
6842 (default_target_signal_to_host, default_target_signal_from_host): New
6843 functions.
6844
ed5e9466
DJ
68452008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
6846 Pedro Alves <pedro@codesourcery.com>
6847
6848 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
6849 Johnston <jjohnstn@redhat.com>.
6850
6851 * NEWS: Mention attach to stopped process fix.
6852 * infcmd.c (detach_command, disconnect_command): Discard the thread
6853 list.
6854 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
6855 attaching. Use signal_stop_state.
6856 (signal_stop_state): Check stop_soon.
6857 * linux-nat.c (kill_lwp): Declare earlier.
6858 (pid_is_stopped, linux_nat_post_attach_wait): New.
6859 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
6860 comments.
6861 (linux_nat_attach): Use linux_nat_post_attach_wait.
6862 (detach_callback, linux_nat_detach): Improve handling for signalled
6863 processes.
6864 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
6865 from the process ID.
6866 * Makefile.in (infcmd.o): Update.
6867
b39cc962
DJ
68682008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
6869
6870 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
6871 * arm-tdep.c (arm_frame_is_thumb): New.
6872 (arm_pc_is_thumb): Clarify comment.
6873 (thumb_analyze_prologue): Remove PC special case.
6874 (thumb_scan_prologue): Take a block_addr argument. Use it for
6875 find_pc_partial_function. Remove unused variables.
6876 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
6877 for find_pc_partial_function. Remove PC special case.
6878 (arm_prologue_prev_register): Add special handling for PC and CPSR.
6879 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
6880 (arm_get_next_pc): Use arm_frame_is_thumb.
6881 (arm_write_pc): Use CPSR_T instead of 0x20.
6882 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
6883 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
6884 (CPSR_T): Define.
6885 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
6886 DWARF2_FRAME_REG_FN.
6887 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
6888 DWARF2_FRAME_REG_FN.
6889 (struct dwarf2_frame_state_reg): Add FN to loc union.
6890
944f08ab
JB
68912008-05-01 Nick Roberts <nickrob@snap.net.nz>
6892
6893 * exec.c (print_section_info): Add missing '\n'.
6894
cfc01461
VP
68952008-05-01 Vladimir Prus <vladimir@codesourcery.com>
6896
6897 * thread.c (add_thread): Move observer call to ...
680b56ce 6898 (add_thread_silent): ... here.
cfc01461 6899
1af5d7ce
UW
69002008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6901
6902 * rs6000-tdep.c: Update for unwinder changes.
6903 * ppcobsd-tdep.c: Likewise.
6904
f089c433
UW
69052008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6906
6907 * s390-tdep.c: Update for unwinder changes.
6908
8d998b8f
UW
69092008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6910
6911 * spu-tdep.c: Update for unwinder changes.
6912
5366653e
DJ
69132008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6914
6915 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
6916 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
6917 sparc64-linux-tdep.c: Update for unwinder changes.
6918
b8a22b94
DJ
69192008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6920
6921 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
6922 for unwinder changes.
6923 * mips-tdep.c: Likewise.
6924 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
6925 raw one.
6926
a262aec2
DJ
69272008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6928
6929 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
6930 unwinder changes.
6931
10458914
DJ
69322008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6933
6934 Update i386 and amd64 ports for unwinder changes.
6935
6936 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
6937 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
6938 (amd64_frame_unwind): Use default_frame_sniffer.
6939 (amd64_frame_sniffer): Delete.
6940 (amd64_sigtramp_frame_cache): Expect this_frame.
6941 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
6942 (amd64_sigtramp_frame_sniffer): Update signature.
6943 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
6944 (amd64_frame_base_address): Expect this_frame.
6945 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
6946 this_frame.
6947 (amd64_init_abi): Use set_gdbarch_dummy_id and
6948 frame_unwind_append_unwinder.
6949 * i386-tdep.c (i386_frame_cache): Expect this_frame.
6950 (i386_frame_this_id, i386_frame_prev_register): Update signature.
6951 (i386_frame_unwind): Use default_frame_sniffer.
6952 (i386_frame_sniffer): Delete.
6953 (i386_sigtramp_frame_cache): Expect this_frame.
6954 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
6955 (i386_sigtramp_frame_sniffer): Update signature.
6956 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
6957 (i386_frame_base_address): Update signature.
6958 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
6959 (i386_push_dummy_call): Update comment.
6960 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
6961 Expect this_frame.
6962 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
6963 and frame_unwind_append_unwinder.
6964 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
6965 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
6966 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
6967 i386nbsd-tdep.c: Update for unwinder changes.
6968
25492ce3
DJ
69692008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6970
6971 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
6972 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
6973 this_frame.
6974 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
6975 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
6976 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
6977 signature.
6978 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
6979 this_frame.
6980 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
6981 Update signature.
6982 * tramp-frame.h (struct tramp_frame): Update signature of init.
6983 * Makefile.in (trad-frame.o): Update.
6984
4a4e5149
DJ
69852008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6986
6987 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
6988 (execute_stack_op): Put this_frame in the baton.
6989 (execute_cfa_program): Take this_frame.
6990 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
6991 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
6992 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
6993 (dwarf2_frame_this_id): Adjust to work on this_frame.
6994 (dwarf2_signal_frame_this_id): Delete.
6995 (dwarf2_frame_prev_register): Update signature. Use new frame
6996 unwind methods.
6997 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
6998 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
6999 dwarf2_frame_sniffer.
7000 (dwarf2_append_unwinders): New.
7001 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
7002 this_frame.
7003 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
7004 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
7005 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
7006 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
7007 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
7008 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
7009 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
7010 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
7011 (dwarf2_append_unwinders): Declare.
7012 (dwarf2_frame_base_sniffer): Update declaration.
7013 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
7014 this_frame.
7015
669fac23
DJ
70162008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7017
7018 Convert frame unwinders to use the current frame and
7019 "struct value".
7020
7021 * frame.c (frame_debug): Make global.
7022 (get_frame_id): Pass this frame to unwinder routines.
7023 (frame_pc_unwind): Remove unused unwind->prev_pc support.
7024 (do_frame_register_read): Do not discard the return value of
7025 frame_register_read.
7026 (frame_register_unwind): Remove debug messages. Use
7027 frame_unwind_register_value.
7028 (frame_unwind_register_value, get_frame_register_value): New
7029 functions.
7030 (create_new_frame, get_frame_base_address, get_frame_locals_address)
7031 (get_frame_args_address, get_frame_type): Pass this frame to
7032 unwinder routines.
7033 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
7034 functions.
7035 * frame.h: Update comments.
7036 (frame_debug, frame_unwind_register_value, get_frame_register_value)
7037 (frame_prepare_for_sniffer): Declare.
7038 * frame-unwind.h: Update comments and parameter names.
7039 (default_frame_sniffer): Declare.
7040 (frame_prev_register_ftype): Return a struct value *.
7041 (struct frame_unwind): Remove prev_pc member.
7042 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
7043 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
7044 (frame_unwind_got_register, frame_unwind_got_memory)
7045 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
7046 * frame-base.h: Update comments and parameter names.
7047 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
7048 if necessary. Add debugging output.
7049 * sentinel-frame.c (sentinel_frame_prev_register)
7050 (sentinel_frame_this_id): Update for new signature.
7051 (sentinel_frame_prev_pc): Delete.
7052 (sentinel_frame_unwinder): Remove prev_pc.
7053 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
7054 prev_pc.
7055 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
7056 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
7057 (frame_unwind_append_sniffer): Delete.
7058 (frame_unwind_append_unwinder): New function.
7059 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
7060 from unwinders. Use frame_prepare_for_sniffer.
7061 (default_frame_sniffer, frame_unwind_got_optimized)
7062 (frame_unwind_got_register, frame_unwind_got_memory)
7063 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
7064 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
7065 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
7066 signature.
7067 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
7068 * gdbarch.c, gdbarch.c: Regenerated.
7069 * frame-base.c (default_frame_base_address)
7070 (default_frame_locals_address, default_frame_args_address): Update
7071 for new signature.
7072 (frame_base_find_by_frame): Pass this frame to unwinder routines.
7073 * infcall.c (call_function_by_hand): Update comments.
7074 * Makefile.in (frame-unwind.o): Update dependencies.
7075
9214ee5f
DJ
70762008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7077
7078 * ada-lang.c (ada_value_primitive_packed_val): Only check
7079 value_lazy for memory lvals.
7080 * findvar.c (value_of_register_lazy): New function.
7081 (locate_var_value): Only check value_lazy for memory lvals.
7082 * valarith.c (value_subscripted_rvalue): Likewise.
7083 * valops.c (value_fetch_lazy): Handle both memory and register
7084 lvals.
7085 (search_struct_field, value_slice): Only check value_lazy for memory
7086 lvals.
7087 * value.c (struct value): Update comment for lazy.
7088 (value_primitive_field): Only check value_lazy for memory lvals.
7089 * value.h (value_lazy): Update comment.
7090 (value_of_register_lazy): Declare.
7091
939643d7
DJ
70922008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7093
7094 * corefile.c (reopen_exec_file): Close any open files.
7095
1de34ab7
JB
70962008-04-29 Joel Brobecker <brobecker@adacore.com>
7097
7098 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
7099 show_memory_breakpoints to 1 while reading the instruction bundle.
7100
ea42b34a
JB
71012008-04-29 Joel Brobecker <brobecker@adacore.com>
7102
7103 * gdbarch.sh: Document the return_value method. Explain that
7104 the FUNCTYPE parameter might be NULL.
7105 * gdbarch.h: Regenerated.
7106 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
7107 type when calling using_struct_return, as this is unnecessary
7108 on this target.
7109
a0fe373c
JB
71102008-04-28 Joel Brobecker <brobecker@adacore.com>
7111
7112 * terminal.h (create_tty_session): Fix return type.
7113
c6446539
VP
71142008-04-26 Vladimir Prus <vladimir@codesourcery.com>
7115
7116 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
7117
2f069f6f
JB
71182008-04-26 Joel Brobecker <brobecker@adacore.com>
7119
7120 * breakpoint.c (condition_command, commands_from_control_command)
7121 (break_command_really): Minor reformatting.
7122
93b5768b
PA
71232008-04-25 Pedro Alves <pedro@codesourcery.com>
7124
7125 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
7126
436675d3
PA
71272008-04-25 Pedro Alves <pedro@codesourcery.com>
7128
7129 * amd64-tdep.c (amd64_get_longjmp_target): New.
7130 (amd64_init_abi): Register amd64_get_longjmp_target as
7131 gdbarch_get_longjmp_target callback.
7132 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
7133
78b6a731
PA
71342008-04-25 Pedro Alves <pedro@codesourcery.com>
7135
7136 * breakpoint.h (enum bpstat_what_main_action): Delete
7137 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
7138
7139 * breakpoint.c (clrs): Delete.
7140 (bpstat_what): Update table.
7141
7142 * infrun.c (handle_inferior_event): Remove
7143 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
7144
9e22b03a
VP
71452008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7146
7147 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
7148 Adjust all prototypes using mi_cmd_args_ftype to use
7149 mi_cmd_argv_ftype.
7150 (struct mi_cmd): Remove the args_func field.
7151 * mi/mi-cmds.c: Don't provide value for the args_func field.
7152 * mi/mi-main.c (mi_execute_async_cli_command)
7153 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
7154 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
7155 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
7156 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
7157 (mi_cmd_target_download): Adjust.
7158 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
7159 (mi_cmd_execute): Do not check for args_func.
7160 (mi_execute_async_cli_command): Adjust.
7161 * mi/mi-parse.c: Don't check for args_func.
7162
721c02de 71632008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 7164
680b56ce
AS
7165 * breakpoint.c (bpstat_check_location)
7166 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
7167 New, extracted from bpstat_stop_status.
7168 (bpstat_stop_status): Use the above.
18a18393
VP
7169
71702008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7171
680b56ce
AS
7172 * mi/mi-main.c (last_async_command): Rename to current_token.
7173 (previous_async_command): Remove.
7174 (mi_cmd_gdb_exit): Adjust.
7175 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
7176 (mi_cmd_target_select): Adjust.
7177 (mi_cmd_execute): Don't set previous_async_command. Free token
7178 here even in async mode.
7179 (mi_execute_async_cli_command): Adjust.
7180 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
7181 token.
7182 (mi_load_progress): Adjust.
721c02de 7183
f13468d9
VP
71842008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7185
680b56ce
AS
7186 * infcmd.c (step_1_continuation): Always disable longjmp
7187 breakpoint if we're not going to do another step.
f13468d9 7188
f107f563
VP
71892008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7190
7191 exec_cleanup murder.
7192 * breakpoint.c (until_break_command_continuation): Add
7193 the 'error' parameter. Directly delete the breakoint as
7194 opposed to running cleanups.
7195 (until_break_command): Install continuation only
7196 after starting the target. Don't use exec cleanups,
7197 use ordinary cleanups. Discard cleanups is successfully
7198 started the target in async mode.
7199 (make_cleanup_delete_breakpoint): Remove.
7200 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
7201 declaration.
7202 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
7203 declarations.
7204 (struct continations): Add the 'error' parameter to the
7205 continuation_hook field.
7206 (add_continuation, do_all_continuations)
7207 (add_intermediate_continuation)
7208 (do_all_intermediate_continuations): Add the 'error' parameter.
7209 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
7210 * inf-loop.c (inferior_event_handler): Instead of calling
7211 discard_all_continuations, use do_all_continuations with 1 as
7212 'error' parameter. Pass 0 as 'error' parameter in existing uses
7213 of discard_all_continuations.
7214 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
7215 cleanups.
7216 (step_once): Install continuation only after resuming the target.
7217 (step_1_continuation): Disable longjmp breakpoint on error.
7218 (finish_command_continuation): Add the error parameter. Delete
7219 the finish breakpoint directly, do not use cleanups.
7220 (finish_command): Do not use exec_cleanups. Always setup
7221 continuation. For sync case, immediately run them.
7222 (attach_command_continuation): Add the error parameter.
7223 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
7224 remove step_resume_breakpoint -- adjust delete it directly.
7225 * interps.c (interp_set): Adjust call to do_all_continations.
7226 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
7227 do exec cleanups.
7228 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
7229 cleanups.
7230 (mi_cmd_execute): Do not use exec_cleanup.
7231 (mi_execute_async_cli_command): Simplify the string concatenation
7232 logic. Do no use exec cleanup.
7233 (mi_exec_async_cli_cmd_continuation): New parameter error.
7234 Free last_async_command.
7235 * top.c (command_line_handler_continuation): New parameter error.
7236 * utils.c (exec_cleanup_chain, make_exec_cleanup)
7237 (do_exec_cleanups): Remove.
7238 (add_continuation, do_all_continations)
7239 (add_intermediate_continuation)
7240 (do_all_intermediate_continuations): New parameter error.
7241
74960c60
VP
72422008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7243
7244 * breakpoint.h (bp_location_p): New typedef.
7245 Register a vector of bp_location_p.
7246 * breakpoint.c (always_inserted_mode)
7247 (show_always_inserted_mode): New.
7248 (unlink_locations_from_global_list): Remove.
7249 (update_global_location_list)
7250 (update_global_location_list_nothrow): New.
7251 (update_watchpoint): Don't free locations.
7252 (should_insert_location): New.
7253 (insert_bp_location): Use should_insert_location.
7254 (insert_breakpoint_locations): Copied from
7255 insert_breakpoints.
7256 (insert_breakpoint): Use insert_breakpoint_locations.
7257 (bpstat_stop_status): Call update_global_location_list
7258 when disabling breakpoint.
7259 (allocate_bp_location): Don't add to bp_location_chain.
7260 (set_raw_breakpoint)
7261 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
7262 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
7263 (enable_overlay_breakpoints, disable_overlay_breakpoints)
7264 (set_longjmp_resume_breakpoint)
7265 (enable_watchpoints_after_interactive_call_stop)
7266 (disable_watchpoints_before_interactive_call_start)
7267 (create_internal_breakpoint)
7268 (create_fork_vfork_event_catchpoint)
7269 (create_exec_event_catchpoint, set_momentary_breakpoint)
7270 (create_breakpoints, break_command_1, watch_command_1)
7271 (create_exception_catchpoint)
7272 (handle_gnu_v3_exceptions)
7273 (disable_breakpoint, breakpoint_re_set_one)
7274 (create_thread_event_breakpoint, create_solib_event_breakpoint)
7275 (create_ada_exception_breakpoint): : Don't call check_duplicates.
7276 Call update_global_location_list.
7277 (delete_breakpoint): Don't remove locations and don't
7278 try to reinsert them. Call update_global_location_list.
7279 (update_breakpoint_locations): Likewise.
7280 (restore_always_inserted_mode): New.
7281 (update_breakpoints_after_exec): Temporary disable
7282 always inserted mode.
7283 * Makefile.in: Update dependencies.
7284
7285 * infrun.c (proceed): Remove breakpoints while stepping
7286 over breakpoint.
7287 (handle_inferior_event): Don't remove or insert
7288 breakpoints.
7289 * linux-fork.c (checkpoint_command): Remove breakpoints
7290 before fork and insert after.
7291 (linux_fork_context): Remove breakpoints before switch
7292 and insert after.
7293 * target.c (target_disconnect, target_detach): Remove
7294 breakpoints from target.
7295
680b56ce 7296
d24317b4
VP
72972008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7298
7299 * breakpoint.c (print_one_breakpoint_location): In MI
7300 mode, report the location string the breakpoint was
7301 originally created with.
7302
ee967b5f
MG
73032008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
7304
7305 * Makefile.in (xtensa-tdep.o): Update dependencies.
7306 * configure.tgt (xtensa*): Update dependencies.
7307 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
7308 Local variable areg renamed to arreg.
7309 (areg_number): New function.
7310 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
7311 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
7312 replaced by arreg_number.
7313 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
7314 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
7315 (xtensa_scan_prologue): New function.
7316 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
7317 when ENTRY instraction hasn't been executed yet. Get the frame pointer
7318 value based on prologue analysis. Fix the bugs preventing WS and
7319 AR4-AR7/A11 registers from getting right values for intermediate frames,
7320 whose registers have been already spilled.
7321 (xtensa_frame_prev_register): Fix WS register value. Use are_number
7322 and arreg_number appropriately.
7323 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
7324 svr4_ilp32_fetch_link_map_offsets.
7325
09d71d23
AS
73262008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
7327
7328 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
7329 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
7330
fdc59709
PB
73312008-04-23 Paolo Bonzini <bonzini@gnu.org>
7332
680b56ce
AS
7333 * acinclude.m4: Add override.m4.
7334 * configure: Regenerate.
fdc59709 7335
0bcd0149
JK
73362008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7337
7338 * ada-lang.c (get_selections): Variable PROMPT made non-const and
7339 initialized with a trailing space now. Use PROMPT_ARG of
7340 COMMAND_LINE_INPUT instead of printing it ourselves.
7341
88d8a8e0
JB
73422008-04-22 Joel Brobecker <brobecker@adacore.com>
7343
7344 * NEWS: Document support for 64-bit core file.
7345
c055b101
CV
73462008-04-22 Corinna Vinschen <vinschen@redhat.com>
7347
7348 * NEWS: Add information on calling convention and new SH CLI options.
7349
7350 * sh-tdep.c (sh_cc_gcc): New static string.
7351 (sh_cc_renesas): Ditto.
7352 (sh_cc_enum): New static string array.
7353 (sh_active_calling_convention): New static string pointer denoting
7354 active user chosen ABI.
7355 (sh_is_renesas_calling_convention): New function to return function
7356 specific ABI, or user choice if necessary.
7357 (sh_use_struct_convention): Rename first argument and turn around its
7358 meaning. Check for renesas ABI and return accordingly.
7359 (sh_use_struct_convention_nofpu): New function.
7360 (sh_next_flt_argreg): Get function type as third parameter. Check
7361 for renesas ABI and choose floating registers accordingly.
7362 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
7363 struct return slot accordingly.
7364 (sh_push_dummy_call_nofpu): Ditto.
7365 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
7366 Evaluate ABI and give to sh_use_struct_convention_nofpu.
7367 (sh_return_value_fpu): Evaluate ABI and give to
7368 sh_use_struct_convention.
7369 (show_sh_command): New function.
7370 (set_sh_command): Ditto.
7371 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
7372 CLI command.
7373
7374 * gdbarch.sh (return_value): Add func_type argument.
7375 * gdbarch.c: Regenerate.
7376 * gdbarch.h: Ditto.
7377 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
7378 val_type so as not to collide with value_type function. Call
7379 using_struct_return with additional function type argument.
7380 * infcall.c (call_function_by_hand): Call using_struct_return and
7381 gdbarch_return_value with additional function type argument.
7382 * infcmd.c (print_return_value): Take addition func_type argument.
7383 Call gdbarch_return_value with additional function type argument.
7384 (finish_command_continuation): Call print_return_value with additional
7385 function type argument.
7386 (finish_command): Ditto.
7387 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
7388 additional function type argument.
7389 * stack.c (return_command): Call using_struct_return and
7390 gdbarch_return_value with additional function type argument.
7391 * value.c (using_struct_return): Take additional function type argument.
7392 * value.h (using_struct_return): Accommodate declaration.
7393 * alpha-tdep.c (alpha_return_value): Add func_type argument.
7394 * amd64-tdep.c (amd64_return_value): Ditto.
7395 * arm-tdep.c (arm_return_value): Ditto.
7396 * avr-tdep.c (avr_return_value): Ditto.
7397 * cris-tdep.c (cris_return_value): Ditto.
7398 * frv-tdep.c (frv_return_value): Ditto.
7399 * h8300-tdep.c (h8300_return_value): Ditto.
7400 (h8300h_return_value): Ditto.
7401 * hppa-tdep.c (hppa32_return_value): Ditto.
7402 (hppa64_return_value): Ditto.
7403 * i386-tdep.c (i386_return_value): Ditto.
7404 * ia64-tdep.c (ia64_return_value): Ditto.
7405 * iq2000-tdep.c (iq2000_return_value): Ditto.
7406 * m32c-tdep.c (m32c_return_value): Ditto.
7407 * m32r-tdep.c (m32r_return_value): Ditto.
7408 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
7409 * m68k-tdep.c (m68k_return_value): Ditto.
7410 (m68k_svr4_return_value): Ditto.
7411 * m88k-tdep.c (m88k_return_value): Ditto.
7412 * mep-tdep.c (mep_return_value): Ditto.
7413 * mips-tdep.c (mips_eabi_return_value): Ditto.
7414 (mips_n32n64_return_value): Ditto.
7415 (mips_o32_return_value): Ditto.
7416 (mips_o64_return_value): Ditto.
7417 * mn10300-tdep.c (mn10300_return_value): Ditto.
7418 * mt-tdep.c (mt_return_value): Ditto.
7419 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
7420 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
7421 (ppc_sysv_abi_broken_return_value): Ditto.
7422 (ppc64_sysv_abi_return_value): Ditto.
7423 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
7424 (ppc_sysv_abi_broken_return_value): Ditto.
7425 (ppc64_sysv_abi_return_value): Ditto.
7426 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
7427 * rs6000-tdep.c (rs6000_return_value): Ditto.
7428 * s390-tdep.c (s390_return_value): Ditto.
7429 * score-tdep.c (score_return_value): Ditto.
7430 * sh-tdep.c (sh_return_value_nofpu): Ditto.
7431 (sh_return_value_fpu): Ditto.
7432 * sh64-tdep.c (sh64_return_value): Ditto.
7433 * sparc-tdep.c (sparc32_return_value): Ditto.
7434 * sparc64-tdep.c (sparc64_return_value): Ditto.
7435 * spu-tdep.c (spu_return_value): Ditto.
7436 * v850-tdep.c (v850_return_value): Ditto.
7437 * vax-tdep.c (vax_return_value): Ditto.
7438 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
7439 * xtensa-tdep.c (xtensa_return_value): Ditto.
7440
7441 * gdbtypes.h (struct type): Add calling_convention member.
7442 * dwarf2read.c (read_subroutine_type): Add calling convention read
7443 from DW_AT_calling_convention attribute to function type.
7444
9eec4d1e
MD
74452008-04-22 Markus Deuling <deuling@de.ibm.com>
7446
7447 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
7448 multi_f77_subscript to support values from registers.
7449 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
7450 * value.h (value_subscripted_rvalue): Add prototype.
7451
7452 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
7453 Fix output.
7454 * f-valprint.c (f_val_print): Likewise.
7455
ef72380d
CS
74562008-04-21 Craig Silverstein <csilvers@google.com>
7457
7458 * dwarf2read.c (zlib_decompress_section): Define abfd in the
7459 !HAVE_ZLIB_H case.
7460
ff8e85c3
PA
74612008-04-21 Pedro Alves <pedro@codesourcery.com>
7462
7463 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
7464 section is not a code section.
7465
31fffb02
CS
74662008-04-19 Craig Silverstein <csilvers@google.com>
7467
7468 * NEWS: Add information on compressed debug sections.
7469
8e91f023
VP
74702008-04-19 Vladimir Prus <vladimir@codesourcery.com>
7471
7472 * mi/mi-cmd-var.c (varobj_update_one): Print new
7473 value for variable objects that changed type.
7474
603ba1de
VP
74752008-04-19 Vladimir Prus <vladimir@codesourcery.com>
7476
7477 * varobj.c (varobj_invalidate): Don't touch floating
7478 varobjs.
7479
7fc830e2
MK
74802008-04-19 Mark Kettenis <kettenis@gnu.org>
7481
7482 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
7483 (multiple_symbols_cancel): Remove extra const.
7484 * symtab.h: Likewise.
7485
bcbf8b68
NR
74862008-04-19 Nick Roberts <nickrob@snap.net.nz>
7487
7488 * interps.c (top_level_interpreter): Rename static variable...
7489 (top_level_interpreter_ptr): ...to this.
7490 (top_level_interpreter): New function.
7491
7492 * interps.h: New extern for top_level_interpreter.
7493
7494 * linespec.c: Include interps.h and mi/mi-cmds.h.
7495 (decode_line_2): When using MI, always set all breakpoints in menu.
7496
7497 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
7498
31fffb02 74992008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
7500
7501 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
7502 * config.in, configure: Regenerate.
7503 * dwarf2read.c: Include zlib.h if present.
7504 Modified *_SECTION macros.
7505 (section_is_p): New.
7506 (dwarf2_locate_sections): Use section_is_p instead of strcmp
7507 (dwarf2_resize_section): New.
7508 to determine whether a given section has a given name.
7509 (zlib_decompress_section): New.
7510 (dwarf2_read_section): Read the compressed section if present
7511 in the binary.
7512 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 7513
a03b3a97
TJB
75142008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
7515
7516 * defs.h (exec_set_section_offsets): Remove prototype.
7517 * exec.c (exec_set_section_offsets): Remove function.
7518
9e386756
JB
75192008-04-18 Joel Brobecker <brobecker@adacore.com>
7520
7521 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
7522 in the search for the matching symbol.
7523
2ec93238
MK
75242008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
7525
7526 * breakpoint.c (update_watchpoint): Always reparse
7527 condition.
7528
e9bbd7c5
JB
75292008-04-17 Joel Brobecker <brobecker@adacore.com>
7530
7531 * breakpoint.c (print_one_breakpoint_location): Make sure to print
7532 the breakpoint address only once.
7533
475bbd17
JB
75342008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
7535
7536 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
7537 rather than a hard-coded architecture, for xcoff executables.
7538
86991504
DE
75392008-04-17 Doug Evans <dje@google.com>
7540
4584e32e
DE
7541 * buildsym.c (watch_main_source_file_lossage): New fn.
7542 (end_symtab): Call it.
7543
86991504
DE
7544 * source.c (find_and_open_source): Add some comments clarifying
7545 handling of FULLNAME argument. Make static. Remove pointless
7546 xstrdup/xfree.
7547
0a320680
PA
75482008-04-17 Pedro Alves <pedro@codesourcery.com>
7549
7550 * inf-loop.c (inferior_event_handler): Also run the intermediate
7551 continuations in the INF_EXEC_COMPLETE case.
7552
700b53b1
TT
75532008-04-16 Tom Tromey <tromey@redhat.com>
7554
7555 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
7556 (set_cmd_async_ok, get_cmd_async_ok): Declare.
7557 * cli/cli-decode.c (set_cmd_async_ok): New function.
7558 (get_cmd_async_ok): New function.
7559 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
7560 "show" as async-ok.
7561 * top.c (execute_command): Use get_cmd_async_ok.
7562 * infcmd.c: Include cli/cli-decode.h.
7563 (_initialize_infcmd): Mark "interrupt" as async-ok.
7564 * Makefile.in (infcmd.o): Depend on cli_decode_h.
7565
dacec2a8
DJ
75662008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
7567
7568 PR gdb/2445
7569 * exec.c: Correct "arch-utils.h" include.
7570
1f906a60 75712008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
7572
7573 PR gdb/2424
7574 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
7575 to allow printing to 'see' real reason of stop. This fixes PR 2424.
7576 * breakpoint.c (bpdisp_texst): New function. The function takes over
7577 the role of bpstats static array in print_one_breakpoint_location.
7578 (print_it_typical): Print "Temporary breakpoint" instead
7579 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
7580 protocols, print disp field.
7581 (print_one_breakpoint_location): Removed bpdisps static definition.
7582 Call new bpstat_text function to get value for 'disp' field.
7583 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
7584
4d7b71aa
DJ
75852008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
7586
7587 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
7588 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
7589 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
7590 * gnulib/Makefile.in: Regenerate.
7591
aa11fd3f
DJ
75922008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7593
7594 * Makefile.in (GNULIB_H): New. Trigger all-lib.
7595 (defs_h): Use $(GNULIB_H).
7596 (all-lib): Depend on gnulib/Makefile.
7597 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
7598 * config.in, gnulib/Makefile.in: Regenerated.
7599
e28b3332
DJ
76002008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7601
7602 * Makefile.in (LIBGNU, INCGNU): Define.
7603 (INTERNAL_CFLAGS_BASE): Add INCGNU.
7604 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
7605 (CLEANDIRS): New.
7606 ($(LIBGNU), all-lib): New rules.
7607 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
7608 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
7609 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
7610 * gnulib: New directory, from gnulib-tool.
7611 * configure, aclocal.m4: Regenerated.
7612
e3bc4218
DJ
76132008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7614
7615 * linux-thread-db.c (have_threads_callback): Check thread->private.
7616
fcacd99f
VP
76172008-04-13 Nick Roberts <nickrob@snap.net.nz>
7618 Vladimir Prus <vladimir@codesourcery.com>
7619
7620 Fix @-varobjs.
680b56ce
AS
7621 * varobj.c (value_of_root): Update the expression for
7622 floating varobjs.
7623 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
7624 report that.
fcacd99f 7625
de051565
MK
76262008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
7627
7628 * mi/mi-cmd-var.c: Include "mi-getopt.h".
7629 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
7630 (mi_cmd_var_set_format): Use new mi_parse_format.
7631 (mi_cmd_var_evaluate_expression): Support for -f option to specify
7632 format.
7633 * Makefile.in (mi-cmd-var.o): Update dependencies.
7634
7635 * varobj.h (varobj_get_formatted_value): Declare.
7636 * varobj.c (my_value_of_variable): Added format parameter.
7637 (cplus_value_of_variable): Likewise.
7638 (java_value_of_variable): Likewise.
7639 (c_value_of_variable): Likewise. Evaluate expression based
7640 on format parameter.
7641 (struct language_specific): Add format parameter to function member
7642 *value_of_variable.
7643 (varobj_get_formatted_value): New.
7644 (varobj_get_value): Added format parameter to method call.
680b56ce 7645
56953f80
JB
76462008-04-08 Joel Brobecker <brobecker@adacore.com>
7647
7648 * stabsread.c (cleanup_undefined_types_noname): Manually set the
7649 instance flags of the undefined type before calling replace_type.
7650
e4e33b9e
VP
76512008-04-08 Vladimir Prus <vladimir@codesourcery.com>
7652
7653 * target.h (enum strata): Remove the download_stratum.
680b56ce 7654
92b5c263
DE
76552008-04-07 Doug Evans <dje@google.com>
7656
7657 * buildsym.h (last_source_file): Add dwarf info to comment.
7658 (last_source_start_addr): Ditto.
7659
effa26a9
PA
76602008-04-07 Pedro Alves <pedro@codesourcery.com>
7661
7662 * alphanbsd-tdep.c: Include "target.h".
7663 * mn10300-tdep.c: Include "target.h".
7664 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
7665
2b2d9e11
VP
76662008-04-06 Vladimir Prus <vladimir@codesourcery.com>
7667
7668 Fix breakpoint condition that use member variables.
680b56ce
AS
7669 * valops.c (check_field): Remove.
7670 (check_field_in): Rename to check_field.
7671 (value_of_this): Use la_name_of_this.
7672 * value.h (check_field): Adjust prototype.
7673
7674 * language.h (la_value_of_this): Rename to la_name_of_this.
7675 * language.c (unknown_language_defn): Specify "this" for
7676 name_of_this.
7677 (auto_language_defn): Likewise.
7678 (local_language_defn): Likewise.
7679 * ada-lang.c (ada_language_defn): Adjust comment.
7680 * c-lang.c (c_language_defn): Adjust comment.
7681 (cplus_language_defn): Specify "this" for name_of_this.
7682 (asm_language_defn): Adjust comment.
7683 (minimal_language_defn): Adjust comment.
7684 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
7685 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
7686 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
7687 * objc-lang.c (objc_language_defn): Specify "self" for
7688 name_of_this.
7689 * p-lang.c (pascal_language_defn): Specify "this" for
7690 name_of_this.
7691 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
7692
7693 * symtab.c (lookup_symbol_aux): Lookup "this" in the
7694 proper scope, and check for field in type of "this", without
7695 trying to create a value.
2b2d9e11 7696
a13e061a
PA
76972008-04-04 Pedro Alves <pedro@codesourcery.com>
7698
7699 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
7700 (mi_error_message): Delete declaration.
7701 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
7702 returning MI_CMD_ERROR.
7703 * mi/mi-main.c (mi_error_message): Delete.
7704 (mi_cmd_exec_interrupt):
7705 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7706 (mi_cmd_thread_info): Call error instead of returning
7707 MI_CMD_ERROR.
7708 (mi_cmd_data_list_register_values): Call error instead of
7709 returning MI_CMD_ERROR. Adapt to new get_register interface.
7710 (get_register): Change return typo to void. Call error instead of
7711 returning MI_CMD_ERROR.
7712 (mi_cmd_data_write_register_values): Call error instead of
7713 returning MI_CMD_ERROR.
7714 (mi_cmd_list_features): Return MI_CMD_DONE.
7715 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
7716 (mi_execute_command): Always print exceptions with -error.
7717
aad4b048
JB
77182008-04-04 Joel Brobecker <brobecker@adacore.com>
7719
7720 * NEWS: Mention new commands set/show multiple-symbols.
7721
717d2f5a
JB
77222008-04-03 Joel Brobecker <brobecker@adacore.com>
7723
7724 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
7725 (multiple_symbols_cancel): New constants.
7726 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
7727 (multiple_symbols_select_mode): New function.
7728 (_initialize_symtab): Add new set/show multiple-symbols commands.
7729 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
7730 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
7731 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
7732 setting.
7733 * linespec.c (decode_line_2): Likewise.
7734
f73634e5
DE
77352008-04-03 Doug Evans <dje@sebabeach.org>
7736
7737 * symtab.h (enum free_code): Delete free_contents, unused.
7738 * symmisc.c (free_symtab_block): Delete.
7739 (free_symtab, case free_code): Delete.
7740
1f906a60 77412008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
7742
7743 * valops.c (value_cast_structs): New function. Cast related
680b56ce 7744 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
7745 function comes mostly from value_cast_pointers.
7746 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
7747 to value_cast_structs. Now value_cast_pointers needs only create
7748 appropriate reference after using value_cast_structs for actual
7749 casting.
7750 (value_cast): Handle references.
7751
61ad90e1
MK
77522008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
7753
7754 * MAINTAINERS: Added myself to section Write After Approval.
7755
b7d038ae
DJ
77562008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7757
7758 * ia64-tdep.c (examine_prologue): Correct array access.
7759
1f906a60 77602008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
7761
7762 * cp-support.c (first_component_command): Return if no arguments.
7763
df3ac606
CD
77642008-03-28 Carlos O'Donell <carlos@codesourcery.com>
7765
7766 * ser-mingw.c (ser_windows_open): Open requested name.
7767
ca933485
AR
77682008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
7769
7770 * MAINTAINERS: Added myself.
7771
5f667f2d
PA
77722008-03-28 Pedro Alves <pedro@codesourcery.com>
7773
7774 * target.c (find_default_run_target): Allow a NULL `do_mesg'
7775 parameter. If it is NULL, don't call error.
7776 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
7777 `do_mesg' parameter to find_default_run_target. If no target was
7778 found, return 0.
7779
e741f4d4
DJ
77802008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
7781
7782 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
7783 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
7784 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
7785 Delete.
7786 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
7787
f66d8205 77882008-03-27 Joel Brobecker <brobecker@adacore.com>
7789
7790 GDB 6.8 released.
7791
221c031f
UW
77922008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7793
7794 * features/Makefile (%.dat): Set xmltarget to the base filename
7795 of the XML source, without subdirectory.
7796 * regformats/rs6000/powerpc-32.dat: Regenerate.
7797 * regformats/rs6000/powerpc-64.dat: Regenerate.
7798 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7799
40c58d95
MD
78002008-03-27 Markus Deuling <deuling@de.ibm.com>
7801
7802 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
7803 objfile arch.
7804
bb1ec7d2
NR
78052008-03-27 Nick Roberts <nickrob@snap.net.nz>
7806
7807 * mi/mi-main.c (enum captured_mi_execute_command_actions):
7808 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
7809
5e2b427d
UW
78102008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7811
7812 * objfiles.h (struct objfile): New GDBARCH member.
7813 (get_objfile_arch): Add prototype.
7814 * objfiles.c: Include "arch-utils.h".
7815 (allocate_objfile): Look up gdbarch associated with bfd.
7816 (get_objfile_arch): New function.
7817 * Makefile (objfiles.o): Update dependencies.
7818
7819 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
7820 by objfile arch.
7821 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
7822 by frame arch.
7823 (locexpr_describe_location): Replace current_gdbarch by
7824 objfile arch.
7825 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
7826 (dwarf2_add_field): Likewise.
7827 (read_tag_pointer_type): Likewise.
7828 (read_base_type): Likewise.
7829 (new_symbol): Likewise.
7830
7831 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
7832 (decode_base_type, decode_function_type): Likewise.
7833 (coff_read_struct_type, coff_read_enum_type): Likewise.
7834 (coff_symtab_read): Replace current_gdbarch by objfile arch.
7835 (decode_base_type): Likewise.
7836 (coff_read_enum_type): Likewise.
7837 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
7838 (coff_read_enum_type): Likewise.
7839
7840 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
7841 (end_psymtab): Likewise.
7842 (process_one_symbol): Likewise.
7843
7844 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
7845 (parse_procedure): Likewise.
7846 (parse_partial_symbols): Likewise.
7847
7848 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
7849
7850 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
7851 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
7852 built-in types.
7853 (read_range_type): Replace current_gdbarch by objfile arch. Replace
7854 static range_index_type by built-in type.
7855 (read_one_struct_field): Replace current_gdbarch by objfile arch.
7856 (read_enum_type): Likewise.
7857
7858 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
7859 objfile arch.
7860
5a413362
VP
78612008-03-26 Vladimir Prus <vladimir@codesourcery.com>
7862
7863 * varobj.h (varobj_floating_p): Declare.
7864 * varobj.c (varobj_floating_p): New.
7865 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
7866 '@' as the name, update all floating varobjs.
7867
a5defcdc
VP
78682008-03-26 Vladimir Prus <vladimir@codesourcery.com>
7869
7870 * varobj.c (struct varobj_root): Rename use_selected_frame to
7871 floating, and clarify the meaning.
7872 (varobj_create, varobj_update, new_root_variable): Adjust.
7873 (value_of_root): Don't use type_changed as in variable,
7874 adjust comment.
7875 (c_value_of_root): Adjust.
5a413362 7876
403fe197
PA
78772008-03-25 Pedro Alves <pedro@codesourcery.com>
7878
7879 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
7880 gdb's thread list.
7881 (linux_nat_wait): Add main lwp to gdb's thread list.
7882 * linux-thread-db.c (find_new_threads_callback): Also attach to
7883 already listed threads which thread_db didn't know about yet.
7884
710151dd
PA
78852008-03-25 Pedro Alves <pedro@codesourcery.com>
7886
7887 * linux-nat.c (drain_queued_events): Fix comment typo.
7888 (linux_nat_attach): In async mode, don't rely on storing a pending
7889 status. Instead place the wait status on the pipe.
7890 (linux_nat_resume): Remove unreacheable shortcut code in async
7891 mode.
7892 (stop_wait_callback): In async mode, don't store pending status.
7893 Instead, cancel breakpoints or resend the signal appropriatelly.
7894 (cancel_breakpoint): New, refactored from
7895 cancel_breakpoints_callback.
7896 (cancel_breakpoints_callback): Call cancel_breakpoint.
7897 (pipe_to_local_event_queue): Remove special token processing.
7898 (linux_nat_wait): Issue an internal error if a pending status is
7899 found in async mode.
7900
807bddf3
DJ
79012008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7902
7903 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
7904
c5b48eac
VP
79052008-03-24 Nick Roberts <nickrob@snap.net.nz>
7906 Vladimir Prus <vladimir@codesourcery.com>
7907
680b56ce
AS
7908 * varobj.c (struct varobj_root): New component thread_id.
7909 (varobj_get_thread_id, check_scope): New functions.
7910 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
7911 proper thread if necessary.
7912
680b56ce 7913 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 7914
680b56ce 7915 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 7916
12f4afab
DJ
79172008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
7918
7919 PR gdb/544
7920 * top.c: Revert 2008-03-21 changes.
7921
6208b47d
VP
79222008-03-23 Vladimir Prus <vladimir@codesourcery.com>
7923
7924 * thread.c (make_cleanup_restore_current_thread): Make it
7925 globally visible.
7926 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7927 * varobj.c (varobj_update): Don't save/restore frame.
7928 (c_value_of_root): Save/restore thread and frame here,
7929 using make_cleanup_restore_current_thread.
7930 * Makefile.in: Update dependecies.
7931
44a67aa7
VP
79322008-03-23 Vladimir Prus <vladimir@codesourcery.com>
7933
680b56ce
AS
7934 * varobj.c (struct varobj_root): Clarify
7935 comment on the frame field.
7936 (varobj_create): Don't set frame if we have no
7937 block.
44a67aa7 7938
b562a0cb
DJ
79392008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7940
7941 PR gdb/544
7942 Suggested by Jan Kratochvil:
7943 * top.c (gdb_rl_operate_and_get_next_completion): Call
7944 rl_redisplay_function.
7945 (gdb_rl_redisplay): New.
7946 (init_main): Set rl_redisplay_function.
7947
ed1bd5f5
JB
79482008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
7949
7950 * aix-thread.c (pdc_read_regs): Fix compiler warning.
7951 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
7952 (store_regs_kernel_thread): Likewise.
7953
b84876c2
PA
79542008-03-21 Pedro Alves <pedro@codesourcery.com>
7955
7956 Linux native async support.
7957
7958 * target.h (struct target_ops): Delete to_async_mask_value and add
7959 to_async_mask.
7960 (target_is_async_p, target_async): Formatting.
7961 (target_async_mask_value): Delete.
7962 (target_async_mask): Delete function declaration, and add new
7963 target macro with the same name.
7964
7965 * target.c (update_current_target): Replace to_async_mask_value by
7966 to_async_mask. Default to_async_mask to return_one.
7967 (target_async_mask): Delete.
7968 (find_default_can_async_p, find_default_is_async_p): New.
7969 (init_dummy_target): register find_default_can_async_p and
7970 find_default_is_async_p on the dummy target.
7971
7972 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
7973 (debug_linux_nat_async): New global.
7974 (show_debug_linux_nat_async): New function.
7975 (linux_nat_async_enabled, linux_nat_async_mask_value)
7976 (linux_nat_event_pipe, linux_nat_num_queued_events)
7977 (linux_nat_async_events_enabled): New globals.
7978 (struct waitpid_result): New struct.
7979 (waitpid_queue): New global.
7980 (queued_waitpid, push_waitpid, drain_queued_events): New.
7981 (my_waitpid): Call queued_waitpid.
7982 (linux_child_follow_fork): Disable async events during the call.
7983 (blocked_mask): Delete.
7984 (sync_sigchld_action, async_sigchld_action): New globals.
7985 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
7986 async mode, block events during the call.
7987 (linux_nat_create_inferior): New.
7988 (linux_nat_attach): In sync mode, restore the mask states. In
7989 async mode, wake the event loop immediatelly.
7990 (detach_callback): Drain all queued events of the lwp we're
7991 detaching from.
7992 (linux_nat_detach): Block async mode, and drain events of the main
7993 process.
7994 (linux_nat_resume): If in async mode, mask async events during the
7995 call. If short circuiting, force event loop to wake up. If
7996 resuming, set target_executing, and register target events in the
7997 event loop.
7998 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
7999 (linux_nat_wait): In async mode, block events during the call.
8000 Only enable/disable passing SIGINT to the inferior in sync mode.
8001 Get events from local waitpid queue. If no interesting events was
8002 found, return to events loop. Reregister target events in the
8003 event loop on exit. In sync mode, no need to reblock SIGCHLD.
8004 (linux_nat_kill): Disable events on entry.
8005 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
8006 here. Detach async mode from the event loop if there are no more
8007 forks available, otherwise leave it on.
8008 (sigchld_handler): Assure this is called only in sync mode.
8009 (linux_async_permitted, linux_async_permitted_1): New globals.
8010 (set_maintenance_linux_async_permitted)
8011 (show_maintenance_linux_async_permitted): New functions.
8012 (linux_nat_is_async_p, linux_nat_can_async_p)
8013 (linux_nat_async_mask): New.
8014 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
8015 (get_pending_events, async_sigchld_handler): New.
8016 (linux_nat_async_events): New.
8017 (async_terminal_is_ours): New global.
8018 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
8019 (async_client_callback, async_client_context): New.
8020 (linux_nat_async_file_handler, linux_nat_async)
8021 (linux_nat_disable_async, linux_nat_enable_async): New.
8022 (linux_nat_add_target): Register linux_nat_create_inferior,
8023 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
8024 linux_nat_async_mask, linux_nat_terminal_inferior and
8025 linux_nat_terminal_ours.
8026 (_initialize_linux_nat): Remove local action variable, and update
8027 code that used it to use sync_sigchld_action. Add new
8028 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
8029 set/show command in the maintenance class. Add new "linux-async"
8030 maintenance set/show command. Block SIGCHLD by default. Setup
8031 async_sichld_action, and sync_sigchld_action. Install the default
8032 async mode.
8033 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
8034 the cancel signals.
8035
8036 * linux-thread-db.c (re_check_for_thread_db): New.
8037 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
8038 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
8039 (thread_db_async_mask): New.
8040 (init_thread_db_ops): Register thread_db_can_async_p,
8041 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
8042
8043 * remote.c (remote_async_mask_value): New.
8044 (remote_return_zero): New.
8045 (init_remote_ops): Register remote_return_zero as callbacks of
8046 to_can_async_p and to_is_async_p.
8047 (remote_can_async_p, remote_is_async_p, remote_async): Update to
8048 use remote_async_mask_value.
8049 (remote_async_mask): New.
8050 (init_remote_async_ops): Remove to_async_mask_value setting and
8051 register remote_async_mask as to_async_mask callback in
8052 remote_async_ops.
8053
8054 * Makefile.in (linux-nat.o): Update.
8055
17faa917
DJ
80562008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8057
8058 * gdbthread.h (add_thread_with_info): New.
8059 * linux-thread-db.c: Add some documentation.
8060 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
8061 (struct private_thread_info): Remove th_valid and ti_valid.
8062 Replace ti with tid.
8063 (thread_get_info_callback): Do not add TID to the new ptid. Do
8064 not cache th or ti.
8065 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
8066 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
8067 new PTID.
8068 (attach_thread): Handle an already-existing thread. Use
8069 add_thread_with_info. Cache the th and tid.
8070 (detach_thread): Verify that private was set. Remove verbose
8071 argument and printing. Update caller.
8072 (thread_db_detach): Do not adjust inferior_ptid.
8073 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
8074 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
8075 (thread_db_wait): Do not use lwp_from_thread.
8076 (thread_db_pid_to_str): Use the cached TID.
8077 (thread_db_extra_thread_info): Check that private is set.
8078 (same_ptid_callback): Delete.
8079 (thread_db_get_thread_local_address): Do not use it or check
8080 is_thread. Check that private is set. Assume that the thread
8081 handle is already cached.
8082 (init_thread_db_ops): Remove to_resume and to_kill.
8083 * thread.c (add_thread_with_info): New.
8084 (add_thread): Use it.
8085 * linux-nat.c (find_thread_from_lwp): Delete.
8086 (exit_lwp): Do not use it. Check print_thread_events. Print before
8087 deleting the thread.
8088 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
8089 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
8090 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
8091 printf_unfiltered for thread exits.
8092 * procfs.c (procfs_wait): Likewise.
8093
6214f497
DJ
80942008-03-21 Chris Demetriou <cgd@google.com>
8095
8096 * symtab.c (rbreak_command): Quote symbol name before passing
8097 it to break_command.
8098
63092375
DJ
80992008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8100
8101 * eval.c (evaluate_subexp_for_address): Clarify error message.
8102 Use value_must_coerce_to_target.
8103 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
8104 * valops.c (value_assign): Call value_coerce_to_target when
8105 assigning to anything but internalvars. Leave GDB-side arrays
8106 as arrays when assigning to internalvars.
8107 (value_must_coerce_to_target, value_coerce_to_target): New.
8108 (value_coerce_array, value_addr): Call value_coerce_to_target.
8109 (value_array): Create the array in GDB's memory instead of
8110 the inferior's.
8111 * value.h (value_must_coerce_to_target, value_coerce_to_target):
8112 Declare.
8113
b21991b0
DJ
81142008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8115
8116 * top.c (quit_confirm): Warn that we will kill the program.
8117
49a834f9
PA
81182008-03-19 Pedro Alves <pedro@codesourcery.com>
8119
8120 * inflow.c (terminal_ours_1): Guard access to
8121 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
8122
ae0d2f24
UW
81232008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8124 Jim Blandy <jimb@codesourcery.com>
8125 Daniel Jacobowitz <drow@false.org>
8126
8127 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
8128 (dwarf2_read_address): Update prototype.
8129
8130 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
8131 (signed_address_type): Likewise.
8132 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
8133 (execute_stack_op): Update calls to unsigned_address_type,
8134 signed_address_type and dwarf2_read_address. Fix implementation
8135 of DW_OP_deref_size.
8136
8137 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
8138 (dwarf2_per_cu_addr_size): Likewise.
8139 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
8140 (struct dwarf2_loclist_baton): Likewise.
8141
8142 * dwarf2loc.c (find_location_expression): Update calls to
8143 dwarf2_read_address. Use dwarf2_per_cu_objfile and
8144 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
8145 (locexpr_describe_location): Likewise.
8146 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
8147 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
8148 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
8149 to dwarf2_per_cu_addr_size (per_cu).
8150 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
8151 (loclist_read_variable): Likewise.
8152 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
8153
8154 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
8155 instead of baton->objfile.
8156 (dwarf2_per_cu_obfile): New function.
8157 (dwarf2_per_cu_addr_size): Likewise.
8158
8159 * dwarf2-frame.c (struct comp_unit): Move higher.
8160 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
8161 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
8162 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
8163 parameter by using fde->eh_frame_p. Use read_encoded_value
8164 to implement DW_CFA_set_loc.
8165 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
8166 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
8167 execute_stack_op and execute_cfa_program.
8168 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
8169 (size_of_encoded_value): Remove.
8170 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
8171 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
8172 (add_cie): Set cie->unit backlink.
8173 (decode_frame_entry_1): Set cie->addr_size. Update calls to
8174 read_encoded_value.
8175 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
8176
1c8201d1
MD
81772008-03-17 Markus Deuling <deuling@de.ibm.com>
8178
8179 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
8180 gdbarch_bfd_arch_info.
8181
46bba1ef
JB
81822008-03-17 Joel Brobecker <brobecker@adacore.com>
8183
8184 * aix-thread.c (pdc_read_regs): Minor reformatting.
8185
0bcd3e20
VP
81862008-03-17 Vladimir Prus <vladimir@codesourcery.com>
8187
8188 * thread.c (print_thread_info): Don't insist
8189 on having current thread if there are no
8190 threads at all.
8191
9356cf8d
PA
81922008-03-17 Pedro Alves <pedro@codesourcery.com>
8193
8194 * infcmd.c (attach_command_post_wait)
8195 (attach_command_continuation): New.
8196 (attach_command): Support background async execution, and async
8197 execution in synchronous mode.
8198
5c3ce3f7
DJ
81992008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8200
8201 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
8202 * symmisc.c (dump_symtab_1): Likewise.
8203 * wrapper.c (gdb_value_struct_elt): Likewise.
8204
fa2c6a57
PA
82052008-03-17 Pedro Alves <pedro@codesourcery.com>
8206
8207 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
8208
02f3fc28
PA
82092008-03-17 Pedro Alves <pedro@codesourcery.com>
8210
8211 * linux-nat.c (linux_nat_filter_event): New, refactored from
8212 linux_nat_wait.
8213 (linux_nat_wait): Call linux_nat_filter_event.
8214
2f77b315
UW
82152008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
8216
8217 * top.c (execute_command): Fix uninitialized variable error.
8218
f01be29b
NH
82192008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
8220
680b56ce
AS
8221 * Makefile.in (amd64nbsd-nat.o): New dependency.
8222 * amd64nbsd-nat.c: Include "nbsd-nat.h".
8223 (_initialize_amd64nbsd_nat): Update target vector to use
8224 nbsd_pid_to_exec_file.
8225 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 8226
6cf32704
VP
82272008-03-15 Vladimir Prus <vladimir@codesourcery.com>
8228
8229 Remove ignoring leading exec events code.
680b56ce
AS
8230 * fork-child.c (startup_inferior): Do not set
8231 inferior_ignoring_leading_exec_events.
8232 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
8233 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
8234 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
8235 (handle_inferior_event): Remove code for ignoring leading exec
8236 events.
8237 * target.c (update_current_target): Do not inherit, or default,
8238 to_reported_exec_events_per_exec_call.
8239 (debug_to_reported_exec_events_per_exec_call): Remove.
8240 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
8241 * target.h (target_reported_exec_events_per_exec_call): Remove.
8242 (struct target): Remove the to_reported_exec_events_per_exec_call
8243 field.
6cf32704 8244
8e8901c5
VP
82452008-03-15 Vladimir Prus <vladimir@codesourcery.com>
8246
8247 Implement -thread-info.
680b56ce 8248 * gdbthread.h (print_thread_info): Declare.
8e8901c5 8249
680b56ce
AS
8250 * thread.c (print_thread_info): New, extracted
8251 from info_threads_command and adjusted to
8252 work for CLI and MI.
8253 (info_threads_command): Use print_thread_info.
8e8901c5
VP
8254 * Makefile.in: Update dependencies.
8255
680b56ce
AS
8256 * mi/mi-cmds.c (mi_cmds): Specify a handler
8257 for -thread-info.
8258 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
8259 * mi/mi-main.c (mi_cmd_thread_info): New.
8260 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 8261
7d1e6fb8
KB
82622008-03-14 Kevin Buettner <kevinb@redhat.com>
8263
8264 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
8265 to decide whether to match instruction patterns using "sw" and "sd".
8266
89113898
PA
82672008-03-14 Pedro Alves <pedro@codesourcery.com>
8268
8269 * infcmd.c (jump_command): Postpone disabling stdin until after
8270 the possible query.
8271
64a0ac84
PA
82722008-03-14 Pedro Alves <pedro@codesourcery.com>
8273
8274 * inflow.c (gdb_getpgrp): New.
8275 (gdb_has_a_terminal): Use get_getpgrp.
8276 (terminal_ours_1): If attach_flag is set, don't refetch
8277 inferior_process_group.
8278
1fddbabb
PA
82792008-03-14 Pedro Alves <pedro@codesourcery.com>
8280
8281 * features/library-list.dtd: Allow "section" elements as children
8282 of "library". Add "section" element and describe its attributes.
8283
8284 * solib-target.c (struct lm_info): Add section_bases member.
8285 (library_list_start_segment): Error out if seen a section element.
8286 (library_list_start_section): New.
8287 (library_list_end_library): New.
8288 (solib_target_free_library_list): Free section_bases.
8289 (section_attributes): New.
8290 (library_children): Make "segment" optional. Add "section" child.
8291 (library_list_children): Register library_list_end_library.
8292 (solib_target_relocate_section_addresses): Handle section bases.
8293
8294 * NEWS: Mention new qXfer:libraries:read section offsets support.
8295
712af3be
VP
82962008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8297
8298 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
8299 (make_exec_error_cleanup): Remove declarations.
8300 * utils.c (exec_error_cleanup_chain): Remove.
8301 (do_exec_error_cleanups, discard_exec_error_cleanups)
8302 (make_exec_error_cleanup): Remove.
8303 * event-loop.c (start_event_loop): Adjust call to
8304 async_enable_stdin.
8305 * event-top.c (async_enable_stdin): Remove the paramater dummy.
8306 (async_disable_stdin): Don't register async_enable_stdin via
8307 cleanup.
8308 * inf-loop.c (inferior_event_handler): Don't
8309 call do_exec_error_cleanups. Call async_enable_stdin instead.
8310 * event-loop.c (start_event_loop): Adjust call to
8311 async_enable_stdin.
8312 * tui/tui-interp.c (tui_command_loop): Adjust call to
8313 async_enable_stdin.
8314
32c1e744
VP
83152008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8316
8317 Async mode fixes.
680b56ce
AS
8318 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
8319 * breakpoint.c (bpstat_do_actions): In async mode,
8320 don't jump to top expecting stop_bpstat to be already
8321 updated.
8322 * event-loop.c (start_event_loop): Call async_enable_stdin
8323 on exception.
8324 * event-top.c (async_enable_stdin): Do nothing if sync_execution
8325 is not set.
8326 (command_handler): Do not setup continuation here.
8327 (command_line_handler_continuation): Move to...
8328 * top.c (command_line_handler_continuation): ... here.
8329 (execute_command): In async mode, register continuation.
8330 Don't check frame's language in running in async mode.
8331 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
8332 * inf-loop.c (complete_execution): Inline into...
8333 (inferior_event_handler): ... here. Clear target_executing before
8334 doing any cleanups. Don't try to show prompt if the target was
8335 resumed.
8336 * infcmd.c (signal_command): Add support for async mode.
8337 (finish_command): Only add continuation if the target was
8338 successfully resumed.
8339 * remote.c (init_async_opts): Register to_get_thread_local_address
8340 handler.
8341 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
8342 with sync_execution.
8343 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
8344 on exception.
32c1e744 8345
c04ea773
DJ
83462008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8347
8348 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
8349 * exec.c (exec_bfd_mtime): Define.
8350 (exec_close): Clear it.
8351 (exec_file_attach): Set it.
8352 * gdbcore.h (exec_bfd_mtime): Declare.
8353 * source.c (find_source_lines): Do not use bfd_get_mtime.
8354
952dc227
VP
83552008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8356
8357 * top.c (simplified_command_loop): Remove.
8358
4cf46804
VP
83592008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8360
8361 Remove unused remote.c hooks.
680b56ce
AS
8362 * remote.c (deprecated_target_resume_hook)
8363 (deprecated_target_wait_loop_hook): Remove.
8364 (remote_resume): Do not call deprecated_target_resume_hook.
8365 (remote_wait): Do not call deprecated_target_wait_loop_hook.
8366 (remote_async_wait): Likewise.
4cf46804 8367
683f2885
VP
83682008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8369
8370 Implement MI notification for new threads.
680b56ce
AS
8371 * doc/observer.texi (new_thread): Document.
8372 * observer.sh: Forward declare struct thread_info.
8373 * thread.c (add_thread): Notify observer.
8374
8375 * interps.h (interp_init_ftype): New parameter
8376 top_level.
8377 (interp_set): Likewise.
8378 (top_level_interpreter_data): Declare.
8379 * interps.c (interp_set): New parameter top_level.
8380 Pass it to interpreter's init function. Remember
8381 top level interpreter.
8382 (interpreter_exec_cmd): Adjust.
8383 (top_level_interpreter_data): New.
8384 * main.c (captured_main): Pass 1 for top_level
8385 parameter of interp_set.
683f2885 8386 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
8387 parameter top_level.
8388 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 8389
680b56ce
AS
8390 * mi/mi-interp.c (mi_new_thread): New.
8391 (mi_interpreter_init): If top level, register
8392 observer for new threads.
683f2885 8393
680b56ce 8394 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 8395
ff9b3928
PA
83962008-03-14 Pedro Alves <pedro@codesourcery.com>
8397
8398 * top.c (execute_command): Disable break and stop
8399 commands in async mode.
8400
b18392ef
PA
84012008-03-14 Pedro Alves <pedro@codesourcery.com>
8402
8403 revert:
8404 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8405 * inf-loop.c (inferior_event_handler): Don't include remote.h.
8406 Call target_stop in the INF_QUIT_REQ case.
8407 * Makefile.in (inf-loop.o): Update.
8408
0aca9f07
PA
84092008-03-14 Pedro Alves <pedro@codesourcery.com>
8410
8411 * inf-loop.c (inferior_event_handler): Don't include remote.h.
8412 Call target_stop in the INF_QUIT_REQ case.
8413 * Makefile.in (inf-loop.o): Update.
8414
0b4e556c
PA
84152008-03-14 Pedro Alves <pedro@codesourcery.com>
8416
8417 * top.c (execute_command): Enable break, info and interrupt
8418 commands in async mode.
8419
8defab1a
DJ
84202008-03-13 Vladimir Prus <vladimir@codesourcery.com>
8421 Daniel Jacobowitz <dan@codesourcery.com>
8422
8423 * breakpoint.h (breakpoint_restore_shadows): New
8424 declaration.
8425 * breakpoint.c (breakpoint_restore_shadows): New.
8426 (read_memory_nobpt): Delete.
8427 * gdbcore.h (read_memory_nobpt): Delete declaration.
8428 * target.c (memory_xfer_partial): Call
8429 breakpoint_restore_shadows.
8430 (restore_show_memory_breakpoints)
8431 (make_show_memory_beakpoints_cleanup): New.
8432 (show_memory_breakpoints): New.
8433 * target.h (make_show_memory_beakpoints_cleanup): Declare.
8434 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
8435 Make sure we see memory breakpoints when checking if
8436 breakpoint is still there.
8437 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
8438 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
8439 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
8440 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
8441
fd532e2e
PA
84422008-03-12 Pedro Alves <pedro@codesourcery.com>
8443
8444 * thread.c (add_thread): Use printf_unfiltered to print.
8445
f749779f 84462008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
8447
8448 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
8449 that is true only on x86-solaris and x86_64-solaris.
8450 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
8451 with proc_get_LDT_entry.
8452
84532008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
8454
8455 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
8456 * config.in, configure: Regenerate.
8457 * fork-child.c (fork_inferior): Call create_tty_session.
8458 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
8459 (create_tty_session): New function.
8460 * terminal.h: Declare create_tty_session.
8461
4fbb74a6
AM
84622008-03-12 Alan Modra <amodra@bigpond.net.au>
8463
8464 PR 5900
8465 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
8466 * mipsread.c: Include elf/internal.h.
8467 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
8468 to internal range.
8469
20a6ec49
MD
84702008-03-11 Markus Deuling <deuling@de.ibm.com>
8471
8472 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
8473 to get at the current architecture and at the target specific vector.
8474 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
8475 remove define of I387_ST0_REGNUM.
8476
8477 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
8478
8479 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
8480 get at the current architecture
8481 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
8482 parameter.
8483
8484 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
8485 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
8486
8487 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
8488 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
8489 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
8490
8491 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
8492 at the target specific vector.
8493
8494 (i386_get_longjmp_target): Use get_frame_arch to get at the current
8495 architecture. Use gdbarch_tdep to get at the target specific vector.
8496
8497 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
8498 update caller. Use gdbarch_tdep to get at the target specific vector.
8499
8500 (i386_register_to_value: Use get_frame_arch to get at the current
8501 architecture.
8502
8503 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
8504 parameter.
8505
8506 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8507 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
8508 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
8509 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
8510
8511 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
8512 undef's.
8513
8514 (i387_convert_register_p, i387_register_to_value,
8515 i387_value_to_register): Update call for i386_fp_regnum_p.
8516
8517 * i387-tdep.h: Remove comment.
8518 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
8519 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8520 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
8521 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
8522 I387_MXCSR_REGNUM): Add target specific vector as parameter.
8523
ccd213ac
DJ
85242008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
8525
8526 * Makefile.in (fork-child.o): Update.
8527 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
8528 argument. Gather all gdbserver features together.
8529 * fork-child.c (exec_wrapper): New variable.
8530 (fork_inferior): Use it.
8531 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
8532 (unset_exec_wrapper_command, _initialize_fork_child): New.
8533
85342008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
8535
8536 * source.c (directory_command): Modify the determination of
8537 condition of terminal "from_tty".
8538
22566fbd
DJ
85392008-03-10 Matt Rice <ratmice@gmail.com>
8540
8541 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
8542
9971ac47
UW
85432008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
8544
8545 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
8546 of the data passing to strtoulst function.
8547 (info_spu_signal_command): Likewise.
8548
835670cf
VP
85492008-03-08 Vladimir Prus <vladimir@codesourcery.com>
8550
8551 * mi/mi-interp.c (mi_command_loop): Remove
8552 commented-out code.
680b56ce 8553
be86555c
JB
85542008-03-07 Joel Brobecker <brobecker@adacore.com>
8555
8556 * remote.c (extended_remote_attach_1): Make local variable pid an int
8557 instead of a pid_t.
8558
4d7b2d5b
JB
85592008-03-07 Joel Brobecker <brobecker@adacore.com>
8560
8561 * solib-svr4.c (svr4_same_1): New function, originally extracted
8562 from svr4_same and expanded to handle the sparc64 case.
8563 (svr4_same): Move up and reimplement using svr4_same_1.
8564 (enable_break): Use svr4_same_1 to do shared library name comparisons.
8565
61fed90e
RR
85662008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
8567
8568 * MAINTAINERS: Move self to Paper trail.
8569
b803fb0f
DJ
85702008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
8571
8572 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
8573 * event-loop.c (call_async_signal_handler): New.
8574 * event-loop.h (call_async_signal_handler)
8575 (gdb_call_async_signal_handler): Declare.
8576 (mark_async_signal_handler): Add comments.
8577 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
8578 * mingw-hdep.c (sigint_event, sigint_handler): New.
8579 (gdb_select): Use them. Wait for the readline signal handler
8580 to finish.
8581 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
8582 * posix-hdep.c (gdb_call_async_signal_handler): New function.
8583 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
8584 New.
8585 (remote_fileio_ctrl_c_signal_handler): Use
8586 gdb_call_async_signal_handler.
8587 (initialize_remote_fileio): Initialize sigint_fileio_token.
8588 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
8589 not initialize tokens here.
8590 (handle_remote_sigint_twice): Likewise. Reinstall
8591 handle_remote_sigint.
8592 (async_remote_interrupt_twice): Just call interrupt_query.
8593 (cleanup_sigint_signal_handler): Do not delete tokens.
8594 (remote_interrupt, remote_interrupt_twice): Use
8595 gdb_call_async_signal_handler.
8596 (interrupt_query): Reinstall the default signal handler.
8597 (_initialize_remote): Initialize tokens here.
8598
8f4d54ed
JB
85992008-03-04 Joel Brobecker <brobecker@adacore.com>
8600
8601 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
8602 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8603 Change the type of the lr register to code_ptr.
8604 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8605 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8606 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8607 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8608 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8609 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8610 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
8611
95ece428
JW
86122008-03-03 James E. Wilson <wilson@tuliptree.org>
8613
8614 * MAINTAINERS: Update my email address.
8615
686a5eed
KS
86162008-03-03 Keith Seitz <keiths@redhat.com>
8617
8618 From Dave Murphy <davem@devkitpro.org>:
8619 * configure.ac: Set tcl configdir to win under mingw.
8620 * configure: Regenerate.
8621
fa4727a6
DJ
86222008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
8623
8624 * breakpoint.c (fetch_watchpoint_value): New function.
8625 (update_watchpoint): Set and clear val_valid. Use
8626 fetch_watchpoint_value. Handle unreadable values on the
8627 value chain. Correct check for user-requested array watchpoints.
8628 (breakpoint_init_inferior): Clear val_valid.
8629 (watchpoint_value_print): New function.
8630 (print_it_typical): Use it. Do not free or clear old_val. Print
8631 watchpoints even if old_val == NULL.
8632 (watchpoint_check): Use fetch_watchpoint_value. Check for values
8633 becoming readable or unreadable.
8634 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
8635 (do_enable_watchpoint): Likewise.
8636 * breakpoint.h (struct breakpoint): Update comment for val. Add
8637 val_valid.
8638 * NEWS: Mention watchpoints on inaccessible memory.
8639
c03374d5
DJ
86402007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
8641
8642 * Makefile.in (i386-nat.o): Update.
8643 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
8644 i386_use_watchpoints.
8645 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
8646 i386_use_watchpoints.
8647 * i386-nat.c (i386_stopped_data_address): Take two arguments.
8648 (i386_stopped_by_watchpoint): Update call.
8649 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
8650 * config/i386/nm-i386.h: Conditionalize definitions on
8651 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
8652 (i386_use_watchpoints): Declare.
8653 (i386_stopped_data_address): Update.
8654 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8655 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8656
c24d7425 86572008-02-29 Joel Brobecker <brobecker@adacore.com>
8658
8659 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
8660 * version.in: Bump version to 6.8.50.20080229-cvs.
8661
a7dfd010
MD
86622008-02-28 Markus Deuling <deuling@de.ibm.com>
8663
8664 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
8665 properly.
8666
258c00cc
TT
86672008-02-28 Tom Tromey <tromey@redhat.com>
8668
8669 * infcmd.c (notice_args_read): Print result of get_inferior_args.
8670
8edfe269
DJ
86712008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8672
8673 * infcmd.c (kill_if_already_running): Make static. Use
8674 target_require_runnable.
8675 * target.c (target_require_runnable): New.
8676 * target.h (target_require_runnable): Declare.
8677
0d6ba1b1
DJ
86782008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8679
8680 * frame.c (reinit_frame_cache): Only annotate if frames were
8681 previously valid.
8682
6fe305f7
UW
86832008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8684
8685 * regformats/reg-ppc.dat: Rename "ps" to "msr".
8686 * regformats/reg-ppc64.dat: Likewise.
8687
9b4b61c8
UW
86882008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8689
8690 * features/Makefile (%.dat): Emit xmltarget statement.
8691
8692 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
8693 Generate code to set gdbserver_xmltarget in init_registers_${name}.
8694
8695 * regformats/arm-with-iwmmxt.dat: Regenerate.
8696 * regformats/mips64-linux.dat: Regenerate.
8697 * regformats/mips-linux.dat: Regenerate.
8698 * regformats/rs6000/powerpc-32.dat: Regenerate.
8699 * regformats/rs6000/powerpc-64.dat: Regenerate.
8700 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8701
8702 * regformats/reg-arm.dat: Add xmlarch statement.
8703 * regformats/reg-i386.dat: Likewise.
8704 * regformats/reg-i386-linux.dat: Likewise.
8705 * regformats/reg-x86-64-linux.dat: Likewise.
8706 * regformats/reg-spu.dat: Likewise.
8707
20b4711e
DJ
87082008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8709
8710 * remote.c (remote_wait, remote_async_wait): Stop if we receive
8711 an error.
8712
1843f87b
DJ
87132008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8714
8715 * utils.c (debug_timestamp): New.
8716 (vfprintf_unfiltered): Print timestamps if requested.
8717 (show_debug_timestamp): New.
8718 (initialize_utils): Register "set debug timestamp".
8719 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
8720
6a048695
JB
87212008-02-27 Joel Brobecker <brobecker@adacore.com>
8722
8723 * breakpoint.c (skip_prologue_sal): New function.
8724 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
8725 computed from a line number.
8726
0b998f49
JB
87272008-02-27 Joel Brobecker <brobecker@adacore.com>
8728
8729 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
8730 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8731 Set PC register type to "code_ptr".
8732 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8733 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8734 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8735 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8736 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8737 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8738 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
8739 Regenerate.
8740
d05b4ac3
UW
87412008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8742
8743 * regformats/regdat.sh: Rename init_registers function in
8744 generated file to init_registers_${name}.
8745
8746 * regformats/reg-crisv32.dat: Set "name" to crisv32.
8747 * regformats/reg-ppc64.dat: Set "name" to ppc64.
8748 * regformats/reg-s390x.dat: Set "name" to s390x.
8749
a5d9d57d
DJ
87502008-02-26 Greg Law <glaw@undo-software.com>
8751
8752 * regcache.c (registers_changed): Call reinit_frame_cache.
8753
e25c958c
DJ
87542008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8755
8756 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
8757 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
8758 and svr4_fetch_objfile_link_map.
8759 * Makefile.in (sh-linux-tdep.o): Update.
8760
5daa78cc
TJB
87612008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
8762
8763 * amd64-tdep.c (amd64_classify): Add support for decimal float
8764 types.
8765 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
8766 use the struct return convention.
8767
54e52265
VP
87682008-02-26 Nick Roberts <nickrob@snap.net.nz>
8769
8770 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
8771 to old format. Discard breakpoint address if shared library is
8772 unloaded.
8773 (breakpoint_1): Adjust formatting of table header accordingly.
8774
d8f2712d
VP
87752008-02-25 Vladimir Prus <vladimir@codesourcery.com>
8776
8777 * remote.c (remote_get_threadlist): If the response
8778 is empty, don't try to parse it.
8779
05ce04a4
VP
87802008-02-23 Vladimir Prus <vladimir@codesourcery.com>
8781
8782 Unbreak 'target async'.
680b56ce
AS
8783 * serial.c (serial_async): Set the
8784 handler function before enabling async
8785 mode.
05ce04a4 8786
b36ec657
DJ
87872008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
8788
8789 * solib-svr4.c (enable_break): Convert r_brk to a code address.
8790
df7df359
PA
87912008-02-21 Pedro Alves <pedro@codesourcery.com>
8792
8793 * remote.c (extended_remote_attach_1): Set attach_flag.
8794 (extended_remote_create_inferior_1): Clear attach_flag.
8795
7cd25cfc
DJ
87962008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8797
8798 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
8799 r_brk_offset.
8800 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
8801 * solib-svr4.c (solib_svr4_r_brk): New.
8802 (open_symbol_file_object, svr4_current_sos): Always check the
8803 debug base.
8804 (svr4_fetch_objfile_link_map): Do not set debug_base.
8805 (enable_break): Use r_brk if it is set.
8806 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
8807 (svr4_lp64_fetch_link_map_offsets): Likewise.
8808 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
8809
07ea644b
MD
88102008-02-20 Markus Deuling <deuling@de.ibm.com>
8811 Mark Kettenis <kettenis@gnu.org>
8812
8813 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
8814 trad_frame_saved_reg.
680b56ce 8815 (trad-frame.h): New include.
07ea644b
MD
8816
8817 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 8818 instead of frame_obstack_zalloc.
07ea644b
MD
8819 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
8820
680b56ce 8821 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 8822
40887e1a
MD
88232008-02-20 Markus Deuling <deuling@de.ibm.com>
8824
8825 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
8826 from disassemble_info instead of gdbarch_byte_order.
8827
8828 * mips-tdep.c (gdb_print_insn_mips): Likewise.
8829 * arm-tdep.c (gdb_print_insn_arm): Likewise.
8830
ae4b2284
MD
88312008-02-20 Markus Deuling <deuling@de.ibm.com>
8832
8833 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
8834 gdbarch as parameter.
8835
8836 * gdbarch.{c,h}: Regenerate.
8837
8838 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8839 parameter.
8840 * mem-break.c (default_memory_insert_breakpoint)
8841 (default_memory_remove_breakpoint): Likewise.
8842 * target.h (default_memory_remove_breakpoint)
8843 (default_memory_insert_breakpoint): Likewise.
8844
8845 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8846 parameter. Replace current_gdbarch by gdbarch.
8847 * m32r-tdep.c (m32r_memory_insert_breakpoint)
8848 (m32r_memory_remove_breakpoint): Likewise.
8849
d9bf65d5
DJ
88502008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
8851
8852 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
8853
b93b6ca7
JB
88542008-02-19 Joel Brobecker <brobecker@adacore.com>
8855
8856 * NEWS: Add entry describing Add support improvements.
8857
4ed226fe
MD
88582008-02-18 Markus Deuling <deuling@de.ibm.com>
8859
8860 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
8861 M68K_FP0_REGNUM.
8862
caaa79ad
MD
88632008-02-18 Markus Deuling <deuling@de.ibm.com>
8864
8865 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
8866 register_offset_hack anymore.
8867
8868 * regcache.{c,h} (register_offset_hack): Remove.
8869
e38c262f
MD
88702008-02-18 Markus Deuling <deuling@de.ibm.com>
8871
8872 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
8873
8874 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
8875 current_gdbarch by gdbarch.
8876 (hppa64_hpux_find_global_pointer): Likewise.
8877 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
8878 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
8879 find_global_pointer.
8880
8881 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
8882 parameter.
8883 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
8884
8885 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
8886 of gdbarch_num_regs.
8887
8888 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 8889 replace current_gdbarch by gdbarch.
e38c262f
MD
8890 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
8891
206988c4
MD
88922008-02-18 Markus Deuling <deuling@de.ibm.com>
8893
8894 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
8895 and replace current_gdbarch by gdbarch.
8896
8897 (store_register): Update call for exec_one_dummy_insn.
8898 (fetch_register, store_register): Update call of regmap.
8899
8900 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
8901 parameter and replace current_gdbarch by gdbarch.
680b56ce 8902
206988c4
MD
8903 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
8904 the current architecture. Update call for getregs_supplies and
8905 getfpregs_supplies.
8906 (ppcnbsd_fetch_inferior_registers): Likewise.
8907
680b56ce 8908 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
8909 replace current_gdbarch by gdbarch.
8910 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
8911 get_regcache_arch to get at the current architecture. Update call for
8912 getfpregs_supplies.
8913
f642be6b
MD
89142008-02-18 Markus Deuling <deuling@de.ibm.com>
8915
8916 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 8917 variables.
f642be6b 8918
b1f2bf01
MD
89192008-02-15 Markus Deuling <deuling@de.ibm.com>
8920
8921 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
8922
ee163bf5
VP
89232008-02-14 Vladimir Prus <vladimir@codesourcery.com>
8924
8925 * NEWS: Mention pending breakpints in MI.
680b56ce 8926
f6fbcbf9
MD
89272008-02-14 Markus Deuling <deuling@de.ibm.com>
8928
8929 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
8930
36af4ef6
MD
89312008-02-13 Markus Deuling <deuling@de.ibm.com>
8932
8933 Add script to build and test GDB using enable-targets=all.
8934
8935 * gdb_buildall.sh: New file.
8936
94a0e877
MG
89372008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
8938
8939 * NEWS (New native configurations): Xtensa GNU/Linux.
8940 (New targets): Xtensa GNU/Linux.
8941 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
8942 xtensa-linux-tdep.o
8943 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
8944 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
8945 * configure.tgt (xtensa*-*-linux*): New entry.
8946 * xtensa-config.c (xtensa_tdep): New variable.
8947 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
8948 (rmap): Change format based on new macro XTREG.
8949 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
8950 * xtensa-linux-nat.c: New.
8951 * xtensa-linux-tdep.c: New.
8952 * xtensa-xtregs.c: New.
8953 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
8954 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
8955 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
8956 (xtensa_register_t): New field coprocessor.
8957 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
8958 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
8959 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
8960 Update to handle privileged registers.
8961 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
8962 (xtensa_push_dummy_call): Set windowstart register correctly.
8963 (call0_analyze_prologue): Initialize xtensa_default_isa.
8964 (xtensa_derive_tdep): New.
8965 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
8966 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
8967 Call xtensa_derive_tdep().
8968 * config/xtensa/linux.mh: New.
8969 * regformats/reg-xtensa.dat: New.
8970
b7ee1b0a 89712008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
8972
8973 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
8974 (filenames.h): New include.
8975 * Makefile.in (corelow.o): Add dependency for filenames.h.
8976
8da2a1df
DJ
89772008-02-08 Doug Evans <dje@google.com>
8978
8979 * source.c (find_and_open_source): Always rewrite absolute filenames.
8980
776592bf
DE
89812008-02-07 Doug Evans <dje@google.com>
8982
8983 * breakpoint.c: #include "hashtab.h".
8984 (ambiguous_names_p): New fn.
8985 (update_breakpoint_locations): When restoring bp enable status, don't
8986 compare function names if any functions have same name.
8987 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
8988
d6565258
JB
89892008-02-07 Joel Brobecker <brobecker@adacore.com>
8990
8991 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
8992 instead of just a VEC*. Update use of SV.
8993 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
8994
6d53d0af
JB
89952007-02-07 Joel Brobecker <brobecker@adacore.com>
8996
8997 * NEWS: Put all new commands since gdb-6.7 together.
8998
2ba95b9b
JB
89992007-02-07 Joel Brobecker <brobecker@adacore.com>
9000
9001 * ada-lang.c: #include "vec.h".
9002 (struct string_vector, new_string_vector, string_vector_append):
9003 Delete.
9004 (char_ptr): New typedef.
9005 (DEF_VEC_P (char_ptr)): New VEC type.
9006 (symbol_completion_add): Update profile to take the new VEC type
9007 instead of the old string_vector structure. Update code accordingly.
9008 (ada_make_symbol_completion_list): Use the new VEC type instead of
9009 the old string_vector structure, and update the code accordingly.
9010 * Makefile.in (ada-lang.o): Add dependency on vec.h.
9011
4ae0885a
PM
90122008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9013
9014 * p-exp.y: Set current_type in missing places.
9015 (leftdiv_is_integer): New static variable.
9016 Typecast right operand of BINOP_DIV to long_double if both operands
9017 are integers.
9018
06b1d59c
MR
90192008-02-06 Maciej W. Rozycki <macro@mips.com>
9020
9021 * remote-mips.c (set_breakpoint): Rename to...
9022 (mips_set_breakpoint): ... this.
9023 (clear_breakpoint): Rename to...
9024 (mips_clear_breakpoint): ... this.
9025 (common_breakpoint): Rename to...
9026 (mips_common_breakpoint): ... this.
9027 (check_lsi_error): Rename to...
9028 (mips_check_lsi_error): ... this.
9029
41d27058
JB
90302007-02-05 Joel Brobecker <brobecker@adacore.com>
9031
9032 * language.h (struct language_defn): Add new field
9033 la_make_symbol_completion_list.
9034 * symtab.c (default_make_symbol_completion_list): Renames
9035 make_symbol_completion_list.
9036 (make_symbol_completion_list): New function.
9037 * symtab.h (default_make_symbol_completion_list): Add declaration.
9038 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
9039 (auto_language, local_language): Likewise.
9040 * objc-lang.c (objc_language_defn): Likewise.
9041 * scm-lang.c (scm_language_defn): Likewise.
9042 * m2-lang.c (m2_language_defn): Likewise.
9043 * f-lang.c (f_language_defn): Likewise.
9044 * jv-lang.c (java_language_defn): Likewise.
9045 * p-lang.c (pascal_language_defn): Likewise.
9046 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
9047 (minimal_language_defn): Likewise.
9048 * ada-lang.c (struct string_vector): New structure.
9049 (new_string_vector, string_vector_append, ada_unqualified_name)
9050 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
9051 (ada_make_symbol_completion_list): New functions.
9052 (ada_language_defn): Set la_make_symbol_completion_list.
9053 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
9054 this function is static.
9055
ee3a2f01
KB
90562008-02-05 Kevin Buettner <kevinb@redhat.com>
9057
9058 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
9059 to account for call site optimizations.
9060
d844e34b
JB
90612008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
9062
9063 * tracepoint.c (read_actions): Handle end-of-text indicator
9064 in action list properly. (Committed by Jim Blandy)
9065
02e4669d
JB
90662008-02-05 Jim Blandy <jimb@red-bean.com>
9067
9068 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
9069 pseudoregister, not an internal error.
85ecb32b 9070 Reported by: Andrzej Zaborowski
02e4669d 9071
c39c8256
VP
90722008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9073
9074 * varobj.c (c_value_of_variable): Use xstrdup.
9075
ae7d22a6
VP
90762008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9077
9078 Update stored rendition of varobj value when format changes.
9079 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
9080 print_value.
9081 (c_value_of_variable): Return print_value.
ae7d22a6 9082
81fe8080
DE
90832008-02-03 Doug Evans <dje@google.com>
9084
301f0ecf
DE
9085 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
9086 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
9087 * valops.c (value_one): New function.
9088 * value.h (value_one): Declare.
9089
9090 Fix argument promotion for binary arithmetic ops for C.
9091 * valarith.c (unop_result_type): New fn.
9092 (binop_result_type): New fn.
9093 (value_binop): Move result type computation to binop_result_type.
9094 (value_pos, value_neg, value_complement): Move result type
9095 computation to unop_result_type.
9096
81fe8080
DE
9097 PR 2384
9098 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9099 Return basetype, fieldno if found. All callers updated.
9100 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
9101 objfile.
9102 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9103 * symfile.h (fill_in_vptr_fieldno): Delete.
9104
41808ebe
DE
91052008-02-02 Doug Evans <dje@google.com>
9106
f8597ac3
DE
9107 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
9108
41808ebe
DE
9109 * typeprint.c (*): Whitespace cleanup.
9110
f964a756
MK
91112008-02-02 Mark Kettenis <kettenis@gnu.org>
9112 Luis Machado <luisgpm@br.ibm.com>
680b56ce 9113 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
9114
9115 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
9116 don't fit into registerson the stack the way GCC does.
9117
b06ead72
JB
91182008-02-01 Joel Brobecker <brobecker@adacore.com>
9119
9120 * symtab.c (symbol_set_names): Do not add an entry in the demangling
9121 hash table for Ada symbols. Just store the linkage name as is,
9122 and leave the demangled_name as NULL.
9123
2cfa0c8d
JB
91242007-02-01 Joel Brobecker <brobecker@adacore.com>
9125
9126 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
9127 in the global scope.
9128 (new_symbol): Likewise.
9129
98deb0da 91302008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
9131
9132 * breakpoint.c (break_command_1): Return void.
9133 (break_command_really): Return void. Rethrow
9134 exceptions instead of returning.
9135 (gdb_breakpoint): Remove the error_message parameter.
9136 Return void. Rename to set_breakpoint.
9137 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 9138 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
9139 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
9140 event hooks even if exception is thrown. Adjust to
9141 gdb_breakpoint interface changes.
9142
98deb0da 9143
ce0451ad
TJB
91442008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
9145
9146 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
9147 float in both first and second word in the doubleword, to support
9148 old and new ABIs.
9149
723a2275
VP
91502008-02-01 Vladimir Prus <vladimir@codesourcery.com>
9151
9152 Properly rethrow exception. This fixes errors
9153 about non-existent functions for -break-insert.
680b56ce
AS
9154 * breakpoint.c (break_command_really): Use throw_exception
9155 for rethrowing. If rethrowing, don't print the exception.
723a2275 9156
d64a946d
TJB
91572008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
9158
9159 * NEWS: Mention Decimal Floating Point support.
9160
02b156f5
JB
91612008-01-31 Joel Brobecker <brobecker@adacore.com>
9162
9163 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
9164 value type to builtin_type_void_func_ptr.
9165
a16b8bcd
UW
91662008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
9167
9168 * s390-tdep.c (is_float_singleton, is_float_like,
9169 alignment_of, s390_return_value): Make checks for
9170 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
9171
f949c649
TJB
91722008-01-31 Luis Machado <luisgpm@br.ibm.com>
9173 Thiago Jung Bauermann <bauerman@br.ibm.com>
9174
9175 * infcmd.c (default_print_registers_info): Also print hex
9176 raw contents for TYPE_CODE_DECFLOAT registers.
9177 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
9178 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
9179 (rs6000_register_name): Add support for DFP pseudo-registers.
9180 (rs6000_pseudo_register_type): Likewise.
9181 rs6000_pseudo_register_reggroup_p): Likewise.
9182 (ppc_pseudo_register_read): New function.
9183 (ppc_pseudo_register_write): Likewise.
9184 (rs6000_pseudo_register_read): Likewise.
9185 (rs6000_pseudo_register_write): Likewise.
9186 (e500_pseudo_register_read): Move checks to
9187 rs6000_pseudo_register_read.
9188 (e500_pseudo_register_write): Move checks to
9189 rs6000_pseudo_register_write.
9190 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
9191 rs6000_pseudo_register_read and rs6000_pseudo_register_write
9192 in gdbarch if SPE or DFP is available. Adjust gdbarch's
9193 num_pseudo_regs to account for DFP pseudo regs.
9194
5a9e69ba
TJB
91952008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
9196
9197 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
9198 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
9199 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
9200 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
9201 e500_pseudo_register_read, e500_pseudo_register_write): Use
9202 IS_SPE_PSEUDOREG macro.
9203 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
9204 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
9205 Remove initialization of tdep->ppc_ev31_regnum.
9206
4e885b20
JB
92072008-01-08 Paul Hilfinger <hilfinger@adacore.com>
9208
9209 * printcmd.c (print_formatted): Handle references as for unformatted
9210 prints.
9211
80f064a2
JB
92122008-01-30 Joel Brobecker <brobecker@adacore.com>
9213
9214 * eval.c (evaluate_subexp_standard): Add handling of user
9215 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
9216
9b3442ee
PM
92172008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
9218
9219 * eval.c (evaluate_subexp_standard): Support
9220 BINOP_INTDIV opcode.
9221
d118ef87
PH
92222008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
9223
9224 * valarith.c (value_binop): Add floating-point BINOP_MIN and
9225 BINOP_MAX cases.
9226 For BINOP_EXP, use length and signedness of left operand only for
9227 result, as for shifts.
9228 For integral operands to BINOP_EXP, use new integer_pow and
9229 uinteger_pow functions so as to get full range of results.
9230 (integer_pow): New function.
9231 (uinteger_pow): New function.
9232
d56d46f5
VP
92332008-01-30 Vladimir Prus <vladimir@codesourcery.com>
9234
9235 Use vector for varobj_list_children interface.
680b56ce
AS
9236 * gdb/varobj.c (varobj_list_children): Return vector
9237 of varobjs.
9238 * gdb/varobj.h (varobj_list_children): Adjust
9239 prototype.
9240 (varobj_p): Declare. Declare vector thereof.
9241 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
9242 for varobj_list_children change.
d56d46f5
VP
9243 * Makefile.in (varobj_h): Update dependencies.
9244
1300a2f4
TJB
92452008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
9246
9247 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
9248 TYPE_CODE_DECFLOAT arguments.
9249 (ppc64_sysv_abi_push_dummy_call) Likewise.
9250 (get_decimal_float_return_value): New function.
9251 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
9252 values by calling get_decimal_float_return_value.
9253 (ppc64_sysv_abi_return_value): Likewise.
9254
95ef687d
NR
92552008-01-30 Nick Roberts <nickrob@snap.net.nz>
9256
9257 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
9258 for preprocessor macro information. Formatting changes.
9259
2d717e4f
DJ
92602008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9261
9262 * remote.c (struct remote_state): Add cached_wait_status.
9263 (remote_exec_file): New variable.
9264 (PACKET_vAttach, PACKET_vRun): New constants.
9265 (extended_remote_restart): Do not query for status.
9266 (struct start_remote_args): New.
9267 (remote_start_remote): Take it as a second argument. Check
9268 whether the target is running. Issue an error for non-running
9269 non-extended targets. Cache the wait status. Set inferior_ptid
9270 here.
9271 (remote_open_1): Prompt to disconnect non-running targets. Make
9272 sure the target is marked running. Do not set inferior_ptid here.
9273 Update call to remote_start_remote. Do not call remote_check_symbols
9274 if the target is not running.
9275 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
9276 argument. Handle a non-running target.
9277 (remote_detach): Use it.
9278 (extended_remote_detach): New.
9279 (remote_disconnect): Fix typo. Use remoute_mourn_1.
9280 (extended_remote_attach_1, extended_remote_attach)
9281 (extended_async_remote_attach): New.
9282 (remote_vcont_resume): Remove unused variable.
9283 (remote_wait, remote_async_wait): Use any cached wait status.
9284 (putpkt_binary, getpkt): Clear any cached wait status.
9285 (extended_remoute_mourn_1): New.
9286 (extended_remote_mourn): Use it.
9287 (extended_async_remote_mourn, extended_remote_run): New.
9288 (extended_remote_create_inferior_1): New.
9289 (extended_remote_create_inferior): Use it.
9290 (extended_remote_async_create_inferior): Likewise.
9291 (remote_xfer_partial): Skip for non-executing targets.
9292 (init_extended_remote_ops): Set to_detach and to_attach.
9293 (init_extended_async_remote_ops): Likewise. Use
9294 extended_async_remote_mourn.
9295 (_initialize_remote): Register vAttach, vRun, and
9296 set remote exec-file.
9297 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
9298
e85a822c
DJ
92992008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9300
9301 * Makefile.in (symfile.o): Update.
9302 * NEWS: Mention exec tracing support.
9303 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
9304 exec events.
9305 * infcmd.c (kill_if_already_running, detach_command)
9306 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
9307 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
9308 (follow_exec): Do not check may_follow_exec. Do not mourn and push
9309 targets. Apply the sysroot path to the loaded executable. Use
9310 no_shared_libraries.
9311 * linux-nat.c (linux_child_follow_fork): Print fork following
9312 messages if verbose.
9313 (kill_wait_callback): Kill again before waiting a second time.
9314 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
9315 no_shared_libraries.
9316
9db13498
JB
93172008-01-29 Joel Brobecker <brobecker@adacore.com>
9318
9319 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
9320
b4d5ed91
JB
93212008-01-29 Joel Brobecker <brobecker@adacore.com>
9322
9323 * nto-tdep.h: Remove #include "defs.h".
9324 * nto-tdep.c: Add #include "defs.h".
9325 * Makefile.in (nto_tdep_h): Update dependencies.
9326 (nto-tdep.o): Likewise.
9327
107313f7 93282008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
9329
9330 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
9331 and use it.
9332 (proceed, start_remote): Update call to wait_for_inferior.
9333 * inferior.h (wait_for_inferior): Update declaration.
9334 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
9335 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
9336 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
9337 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
9338
3f4178d6
DJ
93392008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
9340
680b56ce 9341 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
9342 returned value from gdb_value_ind.
9343 (c_describe_child): Likewise.
9344 (cplus_describe_child): Fixed a typo.
9345
5eeba8d4
JB
93462008-01-29 Jim Blandy <jimb@red-bean.com>
9347
9348 * MAINTAINERS: Update my info.
9349
a5606eee
VP
93502008-01-29 Vladimir Prus <vladimir@codesourcery.com>
9351
9352 Use multiple locations for hardware watchpoints.
9353 This eliminates the need to traverse value chain, doing
9354 various checks, in three different places.
9355
680b56ce
AS
9356 * breakpoint.h (struct bp_location): New fields
9357 lengths and watchpoint_type.
9358 (struct breakpoint): Remove the val_chain field.
9359 * breakpoint.c (is_hardware_watchpoint): New.
9360 (free_valchain): Remove.
9361 (update_watchpoint): New.
9362 (insert_bp_location): For hardware watchpoint, just
9363 directly insert it.
9364 (insert_breakpoints): Call update_watchpoint_locations
9365 on all watchpoints. If we have failed to insert
9366 any location of a hardware watchpoint, remove all inserted
9367 locations.
9368 (remove_breakpoint): For hardware watchpoints, directly
9369 remove location.
9370 (watchpoints_triggered): Iterate over locations.
9371 (bpstat_stop_status): Use only first location of
9372 a resource watchpoint.
9373 (delete_breakpoint): Don't call free_valchain.
9374 (print_one_breakpoint): Don't print all
9375 locations for watchpoints.
9376 (breakpoint_re_set_one): Use update_watchpoint for
9377 watchpoints.
a5606eee 9378
0b3de036
VP
93792008-01-29 Vladimir Prus <vladimir@codesourcery.com>
9380
9381 Don't reset watchpoint block on solib load.
9382
680b56ce
AS
9383 * breakpoint.c (insert_bp_location): For watchpoints,
9384 recompute condition.
9385 (breakpoint_re_set_one): Instead of recomputing value
9386 and condition for watchpoints, just reset value and
9387 let insert_breakpoints/insert_bp_location recompute it.
9388 Don't do anything about disabled watchpoint.
0b3de036 9389
c3940723
PM
93902008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
9391
9392 * valarith.c (value_binop): Handle unsigned integer
9393 division by zero.
9394
83845630
KB
93952008-01-28 Kevin Buettner <kevinb@redhat.com>
9396
9397 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
9398 instruction pattern that appears frequently in position
9399 independent code. Fix bug in code which looks for "fmov" and
9400 backtracks if no "fmov" is found.
9401
9ce5d3bb
DE
94022008-01-28 Doug Evans <dje@google.com>
9403
9404 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
9405 Reformat comments to 80 columns.
9406 Move local var def closer to only use.
9ce5d3bb 9407
c78d192c
DJ
94082008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9409
9410 * fork-child.c (SHELL_FILE): Remove #ifndef.
9411 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
9412
e11481da
PM
94132008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
9414
9415 * i386-tdep.c (i386_skip_noop): New function.
9416 (i386_analyze_prologue): Call i386_skip_noop function.
9417
244e85c8
MS
94182008-01-24 Michael Snyder <msnyder@specifix.com>
9419
9420 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
9421 * win32-nat.c (win32_xfer_partial): Ditto.
9422 * target.c (default_xfer_partial): Minor whitespace adjustment.
9423
dd6be234
PA
94242008-01-24 Pedro Alves <pedro@codesourcery.com>
9425
9426 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
9427 strip bit 1 even if pc doesn't point to thumb code.
9428
9fa2223d
DJ
94292008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
9430
9431 * remote.c (remote_wait): Handle SIGINT between packets.
9432 (remote_async_wait): Likewise.
9433
93815fbf
VP
94342008-01-23 Vladimir Prus <vladimir@codesourcery.com>
9435 Chris Demetriou <cgd@google.com>
9436
680b56ce
AS
9437 * thread.c (add_thread_silent): Renamed
9438 from add_thread.
9439 (print_thread_events): New variable definition.
9440 (show_print_thread_events): New function.
9441 (_initialize_thread): Add "set print thread-events" and
9442 "show print thread-events" commands.
9443 (add_thread): Announce new thread.
9444 * gdbthread.h (add_thread_silent): Declare.
9445 (print_thread_events): New variable declaration.
9446 * inf-ttrace.c (inf_ttrace_wait): Don't
9447 inform about new thread, as add_thread is always
9448 called too, and will take care of that.
9449 * infrun.c (handle_inferior_event): Likewise.
9450 * procfs.c (procfs_wait): Likewise.
9451 * remote.c (remote_currthread): Likewise.
9452 * sol-thread.c (sol_thread_wait): Likewise.
9453 * win32-nat.c (get_win32_debug_event): Likewise.
9454 * linux-thread-db.c (attach_thread): Likewise.
9455 Remove the verbose parameter.
9456 (check_event): Make detach_thread be verbose
9457 only if print_thread_events is set.
9458 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
9459 about new thread. This is called only from
9460 linux-thread-db.c:attach_thread, which will take care.
9461 Remove the verbose parameter.
9462 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 9463
b4d7c9a6
NR
94642008-01-23 Nick Roberts <nickrob@snap.net.nz>
9465
9466 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
9467
60c46647
VP
94682008-01-22 Vladimir Prus <vladimir@codesourcery.com>
9469
9470 * breakpoint.c (break_command_really): New parameter
9471 ignore_count.
9472 (break_command_1): Pass 0 as
9473 ignore_count to break_command_really.
9474 (gdb_breakpoint): Pass ignore_count to
9475 break_command_really.
9476
e84605cd
KB
94772008-01-21 Kevin Buettner <kevinb@redhat.com>
9478
9479 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
9480 sigcontext struct via pointer.
9481 (struct sigframe comment): Update to show new field `psc'.
9482
9d9cd7ac
VP
94832008-01-21 Vladimir Prus <vladimir@codesourcery.com>
9484
9485 * infrun.c (handle_inferior_event): If
9486 we failed to remove breakpoints, error,
9487 don't try to increment PC by hand.
9488
af5ca30d
NH
94892008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
9490
9491 Add NetBSD/hppa target and host support.
9492
9493 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
9494 (hppabsd_gregset): Move to ...
9495 (hppabsd_regset_from_core_section): Rename
9496 hppaobsd_regset_from_core_section and move to ...
9497 (hppabsd_find_global_pointer): Update comment.
9498 (hppabsd_init_abi): Make global. Do not register
9499 hppabsd_regset_from_core_section.
9500 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
9501 move to ...
9502 (_initialize_hppabsd_tdep): Move to ...
9503 * hppaobsd-tdep.c: ... here. New file.
9504 * hppnbsd-tdep.c: New file.
9505 * hppnbsd-nat.c: New file.
680b56ce 9506 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 9507 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
9508 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
9509 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
9510 * configure.host (hppa*-*-netbsd*): New entry.
9511 * configure.tgt (hppa*-*-netbsd*): New entry.
9512 (hppa*-*-openbsd*): Update.
9513 * NEWS (New native configuration): Mention NetBSD/hppa.
9514 (New targets): Mention NetBSD/hppa.
9515
32c9a795
MD
95162008-01-18 Markus Deuling <deuling@de.ibm.com>
9517
9518 * gdbarch.sh (function_list): Add new property bits_big_endian to
9519 gdbarch structure.
9520 * gdbarch.{c,h}: Regenerate.
9521
9522 * value.c (struct value): Replace BITS_BIG_ENDIAN by
9523 gdbarch_bits_big_endian (comment).
9524 (unpack_field_as_long, modify_field): Likewise.
9525 * value.h: Likewise (comment).
9526 * valops.c (value_slice): Likewise.
9527 * valarith.c (value_subscript, value_bit_index): Likewise.
9528 * gdbtypes.h (field): Likewise (comment).
9529 * eval.c (evaluate_subexp_standard): Likewise.
9530 * dwarf2read.c (dwarf2_add_field): Likewise.
9531 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
9532 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 9533
32c9a795
MD
9534 * defs.h (BITS_BIG_ENDIAN): Remove.
9535
1e5e79d0
MD
95362008-01-18 Markus Deuling <deuling@de.ibm.com>
9537
9538 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
9539 function calls.
9540 * m2-exp.y (yylex): Likewise.
9541 * objc-exp.y (yylex): Likewise.
9542
9543 * defs.h (DEPRECATED_STREQN): Remove.
9544
fabda5a7
L
95452008-01-17 H.J. Lu <hjl.tools@gmail.com>
9546
9547 * MAINTAINERS: Update my email address.
9548
92726479
JB
95492008-01-17 Jim Blandy <jimb@codesourcery.com>
9550
9551 * README: Mention gdbserver/README.
9552
ef80d18e
PM
95532008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9554
9555 * valarith.c (value_binop): Handle BINOP_INTDIV
9556 for unsigned and signed integers.
9557
1de90795
UW
95582008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
9559
9560 * s390-tdep.c (s390_gdbarch_init): Set default long double
9561 type to 128-bit IEEE quad.
9562
c70bd6f3
JB
95632008-01-17 Joel Brobecker <brobecker@adacore.com>
9564
9565 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
9566
ba759613
MK
95672008-01-16 Mark Kettenis <kettenis@gnu.org>
9568
77d49ac6
MK
9569 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
9570
ba759613
MK
9571 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
9572 * value.c: All callers changed.
9573
7ecb6532
MD
95742008-01-16 Markus Deuling <deuling@de.ibm.com>
9575
9576 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
9577 DEPRECATED_STREQ by its expression.
9578 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
9579 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
9580 (scan_xcoff_symtab): Likewise.
9581 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
9582 * f-lang.c (find_common_for_function): Likewise.
9583 * objc-exp.y (parse_number): Likewise.
9584
9585 * defs.h (DEPRECATED_STREQ): Remove.
9586
d15cf01c
MD
95872008-01-16 Markus Deuling <deuling@de.ibm.com>
9588
9589 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
9590 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
9591 get_frame_arch to get at the current_architecture. Update AM33_MODE
9592 call.
9593 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
9594 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
9595 architecture.
9596 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
9597
f8028488
MD
95982008-01-16 Markus Deuling <deuling@de.ibm.com>
9599
680b56ce 9600 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
9601 parameter.
9602 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
9603
9604 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
9605 current_gdbarch by gdbarch. Update caller.
9606
9607 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
9608 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
9609 the current architecture. Update calls of
9610 amd64_native_gregset_supplies_p.
9611 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
9612 (amd64bsd_store_inferior_registers): Likewise.
9613
e101270f
MD
96142008-01-16 Markus Deuling <deuling@de.ibm.com>
9615
9616 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
9617 Replace current_gdbarch by gdbarch. Update caller.
9618
063e58ba
MD
96192008-01-16 Markus Deuling <deuling@de.ibm.com>
9620
9621 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
9622 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
9623 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
9624 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
9625 (stabsect_build_psymtabs): Fix indentation.
9626
662fb31b
MS
96272008-01-15 Michael Snyder <msnyder@specifix.com>
9628
9629 * corelow.c (core_xfer_partial): Comment, cut/paste error.
9630
c1766e7d
PM
96312008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9632
9633 * win32-nat.c (win32_create_inferior): Restore code calling
9634 CloseHandle on ProcessInformation structure.
9635
5ed10e6e
NH
96362008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
9637
9638 * configure.ac: Check for void * as 3 argument of ptrace.
9639 * configure: regenerate.
9640
be8626e0
MD
96412008-01-11 Markus Deuling <deuling@de.ibm.com>
9642
9643 * alpha-tdep.c (alpha_heuristic_proc_start)
9644 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
9645 current_gdbarch by gdbarch.
9646
9647 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 9648 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
9649 call.
9650
9651 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
9652 get_frame_arch to get at the current architecture by frame_info. Update
9653 alpha_sigtramp_register_address call.
9654
9655 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
9656 current_gdbarch by gdbarch. Update caller.
9657 (convert_to_extended, convert_from_extended): Add endianess parameter
9658 for comparison. Update caller.
9659 (arm_extract_return_value, arm_store_return_value): Use
9660 get_regcache_arch to get at the current architecture.
9661
9662 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
9663 current_gdbarch by gdbarch. Update caller.
9664 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
9665 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
9666
9667 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 9668 gdbarch as parameter. Update caller.
be8626e0
MD
9669 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
9670 current_gdbarch by gdbarch. Update caller.
9671
680b56ce 9672 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
9673 update caller. Replace current_gdbarch by gdbarch.
9674
9675 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
9676 the current architecture. Replace current_gdbarch by gdbarch.
9677 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
9678 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
9679 expression. Add gdbarch as parameter and replace current_gdbarch with
9680 it. Update caller.
9681 (M6811_TDEP): Remove.
9682 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
9683 architecture.
680b56ce 9684 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
9685 current_gdbarch by gdbarch. Update caller.
9686
9687 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
9688 update caller.
9689 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
9690 by gdbarch.
9691
9692 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
9693 caller. Relace current_gdbarch by gdbarch.
9694 (altivec_register_p, spe_register_p): Likewise.
9695 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
9696 parameter.
9697 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
9698 altivec_register_p and spe_register_p.
9699
680b56ce 9700 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
9701 caller. Replace current_gdbarch by gdbarch.
9702 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 9703 architecture.
be8626e0
MD
9704
9705 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
9706 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
9707 current_gdbarch by gdbarch. Update caller.
9708 (sparc_frame_cache): Use get_frame_arch to get at the current
9709 architecture.
9710 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
9711 sparc_analyze_prologue.
9712
9713 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
9714 parameter.
9715
ed49a04f
MD
97162008-01-11 Markus Deuling <deuling@de.ibm.com>
9717
9718 * exec.c: #include "arch-utils.h"
9719 (print_section_info): Use gdbarch_from_bfd to get at the
9720 current architecture. Replace current_gdbarch. Fix indention. Replace
9721 deprecated_print_address_numeric by paddress.
9722 * Makefile.in (exec.o) Add dependency to arch-utils.h.
9723
680b56ce 9724 * valprint.c (val_print_string): Replace
ed49a04f
MD
9725 deprecated_print_address_numeric.
9726 * tracepoint.c (trace_mention, scope_info): Likewise.
9727 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
9728 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
9729 (maintenance_check_symtabs): Likewise.
9730 * symfile.c (list_overlays_command): Likewise.
9731 * stack.c (frame_info, print_block_frame_labels): Likewise.
9732 * printcmd.c (print_address, print_address_demangle)
9733 (address_info): Likewise.
9734 * corefile.c (memory_error): Likewise.
9735 * infcmd.c (jump_command): Likewise.
9736 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
9737 (mention, delete_breakpoint): Likewise.
9738 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
9739 * dwarf2read.c (dump_die): Likewise.
9740 * ada-valprint.c (ada_val_print_1): Likewise.
9741 * f-valprint.c (f_val_print): Likewise.
680b56ce 9742 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
9743 * m32r-com.c (m32r_load_section, m32r_load)
9744 (m32r_upload_command): Likewise.
9745
9746 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
9747
6093d2eb
MD
97482008-01-11 Markus Deuling <deuling@de.ibm.com>
9749
9750 * gdbarch.sh (skip_prologue): Add gdbarch
9751 as parameter.
9752 * gdbarch.{c,h}: Regenerate.
9753
9754 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
9755 * amd64-tdep.c (amd64_skip_prologue): Likewise.
9756 * avr-tdep.c (avr_skip_prologue): Likewise.
9757 * cris-tdep.c (cris_skip_prologue): Likewise.
9758 * frv-tdep.c (frv_skip_prologue): Likewise.
9759 * h8300-tdep.c (h8300_skip_prologue): Likewise.
9760 * hppa-tdep.c (hppa_skip_prologue): Likewise.
9761 * i386-tdep.c (i386_skip_prologue): Likewise.
9762 * ia64-tdep.c (ia64_skip_prologue): Likewise.
9763 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
9764 * m32r-tdep.c (m32r_skip_prologue): Likewise.
9765 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
9766 * m68k-tdep.c (m68k_skip_prologue): Likewise.
9767 * m88k-tdep.c (m88k_skip_prologue): Likewise.
9768 * mep-tdep.c (mep_skip_prologue): Likewise.
9769 * mips-tdep.c (mips_skip_prologue): Likewise.
9770 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
9771 * mt-tdep.c (mt_skip_prologue): Likewise.
9772 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
9773 * score-tdep.c (score_skip_prologue): Likewise.
9774 * sh64-tdep.c (sh64_skip_prologue): Likewise.
9775 * sh-tdep.c (sh_skip_prologue): Likewise.
9776 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
9777 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
9778 * spu-tdep.c (spu_skip_prologue): Likewise.
9779 * v850-tdep.c (v850_skip_prologue): Likewise.
9780 * vax-tdep.c (vax_skip_prologue): Likewise.
9781 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
9782 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
9783
9784 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
9785 current_gdbarch by gdbarch.
9786 * m32c-tdep.c (m32c_skip_prologue): Likewise.
9787 * s390-tdep.c (s390_skip_prologue): Likewise.
9788
72f5cf0e
DE
97892008-01-10 Doug Evans <dje@google.com>
9790
9791 * defs.h (struct continuation_arg): Fix typo in comment.
9792 * target.c (target_translate_tls_address): Fix comment spelling error.
9793
689e4e2d
TJB
97942008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
9795
9796 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
9797 (DOUBLEST_SCAN_FORMAT): Likewise.
9798 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
9799 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
9800 * c-exp.y (parse_number): Likewise.
9801 * jv-exp.y (parse_number): Likewise.
9802 * objc-exp.y (parse_number): Likewise.
9803 * p-exp.y (parse_number): Likewise.
9804
ab0d6e0d
JB
98052008-01-09 Joel Brobecker <brobecker@adacore.com>
9806
9807 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
9808 (check_typedef): Likewise.
9809
0aea4bf3
LM
98102008-01-09 Luis Machado <luisgpm@br.ibm.com>
9811
9812 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
9813 seen_double_big_d, treat the new H, D, and DD modifiers as length
9814 modifiers.
9815
137033e9
JB
98162008-01-08 Joel Brobecker <brobecker@adacore.com>
9817
9818 * dwarf2read.c (read_enumeration_type): Add comment.
9819
dda297ec
TJB
98202008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9821
9822 * config.in: Regenerate.
9823
a93c0eb6
JB
98242008-01-08 Joel Brobecker <brobecker@adacore.com>
9825
9826 * ada-lang.c (ada_convert_actual): Renames convert_actual.
9827 Make non-static.
9828 (ada_convert_actuals): Delete.
9829 * ada-lang.h (ada_convert_actual): Add declaration.
9830 (ada_convert_actuals): Remove declaration.
9831 * infcall.c: #include "ada-lang.h".
9832 (value_arg_coerce): Add new parameter sp. Update function
9833 documetnation. Add handling of Ada function call parameters.
9834 * Makefile.in (infcall.o): Update dependencies.
9835
a84a8a0d
JB
98362008-01-08 Paul Hilfinger <hilfinger@adacore.com>
9837
9838 * ada-lang.c (ensure_lval): Fix value lval kind.
9839 (convert_actual): Add handling for arguments passed by reference.
9840
d7f98cce
DE
98412008-01-08 Doug Evans <dje@google.com>
9842
9843 * dbxread.c (read_dbx_symtab): Fix indentation.
9844
4ef30785
TJB
98452008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9846
9847 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
9848 (valarith.o): Depend on dfp.h.
9849 (valops.o): Likewise.
9850 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
9851 (set_decnumber_context): New function.
9852 (decimal_check_errors): Likewise.
9853 (decimal_from_number): Likewise.
9854 (decimal_to_number): Likewise.
9855 (decimal_from_string): Use set_decnumber_context and
9856 decimal_check_errors.
9857 (decimal_from_integral): New function.
9858 (decimal_from_floating): Likewise.
9859 (decimal_to_double): Likewise.
9860 (promote_decimal): Likewise.
9861 (decimal_binop): Likewise.
9862 (decimal_is_zero): Likewise.
9863 (decimal_compare): Likewise.
9864 (decimal_convert): Likewise.
9865 * dfp.h (decimal_from_integral): New prototype.
9866 (decimal_from_floating): Likewise.
9867 (decimal_to_double): Likewise.
9868 (decimal_binop): Likewise.
9869 (decimal_is_zero): Likewise.
9870 (decimal_compare): Likewise.
9871 (decimal_convert): Likewise.
9872 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
9873 call to value_from_decfloat.
9874 * valarith.c: Include dfp.h.
9875 (value_args_as_decimal): New function.
9876 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
9877 (value_logical_not): Likewise.
9878 (value_equal): Likewise.
9879 (value_less): Likewise.
9880 (value_pos): Likewise.
9881 (value_neg): Formatting fix.
9882 * valops.c: Include dfp.h.
9883 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
9884 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
9885 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
9886 (value_from_decfloat): Remove expect_type argument.
9887 * value.h (value_from_decfloat): Update prototype.
9888
a7c02bc8
VP
98892008-01-07 Vladimir Prus <vladimir@codesourcery.com>
9890
9891 Ignore change in name of dynamic linker during
9892 execution on Solaris. This also unbreaks pending breakpoints.
9893
9894 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
9895 * solib-svr4.c (svr4_same): New.
9896 (_initialize_svr4_solib): Register svr4_same.
9897 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 9898
610dd7f9
CF
98992008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
9900
9901 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
9902 when using MS-DOS paths.
9903
7a404eba
PA
99042008-01-05 Pedro Alves <pedro@codesourcery.com>
9905
9906 * NEWS: Mention --pid and --core command line behaviour changes.
9907
a4d9b460
PA
99082008-01-05 Pedro Alves <pedro@codesourcery.com>
9909
9910 * main.c (captured_main): Remove 'count' varible and the
9911 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
9912 --pid options were issued simultaneously. If an explicit pid
9913 option was passed, don't fallback to core file. Detect extra
9914 arguments better in the presence of explicit pid or core
9915 arguments.
9916
0c281816
JB
99172008-01-05 Joel Brobecker <brobecker@adacore.com>
9918
9919 * ada-lang.c (ada_which_variant_applies): Correctly compute
9920 the value of the discriminant when the variant record is packed.
9921
babe1480
JB
99222008-01-04 Joel Brobecker <brobecker@adacore.com>
9923
9924 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
9925 that are used to differentiate homonyms.
9926
727e3d2e
JB
99272008-01-04 Jerome Guitton <guitton@adacore.com>
9928
9929 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
9930 when the type is an anonymous pointer type.
9931 (ada_check_typedef): Avoid a seg fault when the type is null.
9932 * ada-typeprint.c (print_array_type): Add support for pointer
9933 to packed arrays.
9934
bb28a9dc
JB
99352008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
9936
680b56ce 9937 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 9938
6799def4
JB
99392008-01-04 Joel Brobecker <brobecker@adacore.com>
9940
9941 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
9942 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
9943
d3353bbd
JB
99442008-01-04 Joel Brobecker <brobecker@adacore.com>
9945
9946 * ada-exp.y (chop_separator): New function.
9947 (write_selectors): Rewrite to re-use chop_separator.
9948 (ada_nget_field_index, get_symbol_field_type): New functions.
9949 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
9950 expressions.
9951
82cf6c60
TJB
99522008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
9953
9954 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
9955 of SYMBOL_VALUE when working with function symbols.
9956
b3dbf008
JB
99572008-01-03 Joel Brobecker <brobecker@adacore.com>
9958
9959 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
9960 expressions. These expressions do not need to be rewriten.
9961
02eb380e
JB
99622008-01-03 Joel Brobecker <brobecker@adacore.com>
9963
9964 * dwarf2read.c (read_enumeration_type): Flag type as stub if
9965 the given die is a declaration.
9966
abb68b3e
JB
99672008-01-03 Joel Brobecker <brobecker@adacore.com>
9968
9969 * ada-lang.c (ada_array_bound_from_type): Make non-static.
9970 Handle properly the case when the index type is an enumerated type.
9971 Do not return the subtype of the bounds type, just return the
9972 bounds type directly - this is not needed and is more consistent
9973 with what we do for arrays when no XA parallel type exists.
9974
f192137b
JB
99752008-01-03 Joel Brobecker <brobecker@adacore.com>
9976
9977 * ada-lang.c (static_unwrap_type): Add forward declaration.
9978 (template_to_static_fixed_type): Fields of dynamic types sometimes
9979 also need to be unwrapped. Take this into account.
9980 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
9981 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
9982 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 9983 the original type, not the base type.
f192137b 9984
1ed6ede0
JB
99852008-01-03 Jerome Guitton <guitton@adacore.com>
9986
9987 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 9988 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
9989 Update calls to ada_to_fixed_type.
9990 (ada_template_to_fixed_record_type_1): Ditto, but without looking
9991 for the tag.
9992 (ada_to_fixed_type): Add check_tag parameter; do not look for
9993 tag if null. When looking for a tag, use a fixed record type.
9994 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
9995 * ada-valprint.c (printable_val_type, ada_value_print): Update
9996 calls to ada_to_fixed_type.
9997
542a88d0
LM
99982008-01-03 Luis Machado <luisgpm@br.ibm.com>
9999
680b56ce 10000 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
10001 floatformat_to_doublest instead of floatformat_to_double and use
10002 DOUBLEST variables.
10003 (convert_doublest_to_floatformat): Call floatformat_from_doublest
10004 instead of floatformat_from_double and use DOUBLEST variables.
10005
dc2bbab2
NH
100062008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
10007
10008 * MAINTAINERS (Write After Approval): Add self.
10009
8b60591b
JB
100102008-01-03 Joel Brobecker <brobecker@adacore.com>
10011
10012 * symfile.c (set_initial_language): Make non-static.
10013 * symfile.h (set_initial_language): Add declaration.
10014 * language.c: #include "symfile.h".
10015 (set_language): Call set_initial_language if the frame language
10016 could not be determined.
10017
ceef53c1
JB
100182008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
10019
10020 * eval.c (evaluate_subexp_for_address): Provide frame address to
10021 locate_var_value only if it will be needed.
10022
ef29ce1a
JK
100232008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10024
10025 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
10026
0a07e705
JB
100272008-01-02 Joel Brobecker <brobecker@adacore.com>
10028
10029 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
10030 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
10031 This is needed to make sure that any other treatment applied
10032 to the resulting value does not fail for spurious reason,
10033 such as trying to take the address of this value.
10034
f58b38bf
JB
100352008-01-02 Joel Brobecker <brobecker@adacore.com>
10036
10037 * ada-lang.c (ada_value_equal): Dereference reference types when
10038 comparing arrays.
680b56ce 10039
9b254dd1
DJ
100402008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
10041
10042 Updated copyright notices for most files.
10043
33605d39
CF
100442008-01-01 Christopher Faylor <me+gdb@cgf.cx>
10045
10046 * win32-nat.c (psapi_module_handle): Remove static.
10047 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
10048 return first module found if base_address is zero. Don't initialize
10049 psapi function pointers here. Convert to cygwin paths when
10050 appropriate.
10051 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
10052 executable name. Use get_module_name when that fails or when
10053 !__CYGWIN__.
10054 (_initialize_psapi): New function. Initialize psapi stuff before it is
10055 needed or issue a warning if it is not found. Move psapi_module_handle
10056 here.
10057
29480c32
JB
100582008-01-01 Joel Brobecker <brobecker@adacore.com>
10059
10060 * ada-lang.c (ada_remove_trailing_digits): New function.
10061 (ada_remove_po_subprogram_suffix): New function.
10062 (ada_decode): Improve. Move the description of the algorithm
10063 directly inside the code, instead of in the function global
10064 description.
10065
969a1360
JB
100662008-01-01 Joel Brobecker <brobecker@adacore.com>
10067
10068 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
10069 and always print the dereferenced value.
10070
b7789565
JB
100712008-01-01 Joel Brobecker <brobecker@adacore.com>
10072
10073 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
10074 of the case where the first argument is a reference.
10075 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
10076
73fb9985
JB
100772008-01-01 Joel Brobecker <brobecker@adacore.com>
10078
10079 Implement support for Ada interface types.
10080
10081 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
10082 (ada_is_ignored_field): Ignore fields that are a dispatch table
10083 of a tagged type.
10084
636265b6
JB
100852008-01-01 Joel Brobecker <brobecker@adacore.com>
10086
10087 * top.c (print_gdb_version): Update copyright year.
10088
9d200a2e 100892008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 10090
9d200a2e
JB
10091 * ChangeLog-2007: New ChangeLog rotation.
10092 * ChangeLog: Reset for 2008.
10093 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
10094 ChangeLog-2007.
b7589f7d 10095
9d200a2e 10096For older changes see ChangeLog-2007.
c906108c
SS
10097\f
10098Local Variables:
10099mode: change-log
10100left-margin: 8
10101fill-column: 74
10102version-control: never
57da7796 10103coding: utf-8
c906108c 10104End:
This page took 1.349807 seconds and 4 git commands to generate.