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