* ada-valprint.c: Include "objfiles.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8ca1c40e
UW
12008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * ada-valprint.c: Include "objfiles.h".
4 (ada_val_print_1): Use the gdbarch associated with the objfile whether
5 a System.Address type is defined to retrieve the proper pointer type
6 to use to print it.
7
3cb382c9
UW
82008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
9
10 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
11 result type instead of builtin_type_int.
12 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
13 (ada_value_subscript): Update call to value_pos_atr.
14 (ada_value_ptr_subscript): Likewise.
15 (ada_evaluate_subexp): Likewise.
16
a53b7a21
UW
172008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
18
19 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
20 (cast_from_fixed_to_double): Rename to ...
21 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
22 of builtin_type_double.
23 (ada_value_cast): Use cast_from_fixed instead of casting result
24 of cast_from_fixed_to_double.
25 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
26
22fe0fbb
UW
272008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
28
29 * valops.c (value_ind): No longer allow dereferencing an
30 integer type.
31 * eval.c (evaluate_subexp_standard): Handle deferencing an
32 integer type here.
33 * ada-lang.c (ada_evaluate_subexp): Likewise.
34
d8631d21
UW
352008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
36
37 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
38 a reference type, pass the reference type directly to unpack_pointer.
39 * c-valprint.c (c_val_print): Likewise.
40 * f-valprint.c (f_val_print): Likewise.
41 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
42 * p-valprint.c (pascal_val_print): Likewise.
43
cb18ec49
UW
442008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
45
46 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
47 to construct the EVAL_SKIP dummy return value.
48 * ada-lang.c (ada_evaluate_subexp): Likewise.
49 * jv-lang.c (evaluate_subexp_java): Likewise.
50 * m2-lang.c (evaluate_subexp_modula2): Likewise.
51 * scm-lang.c (evaluate_exp): Likewise.
52
0ab7ba45
UW
532008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
54
55 * value.h (coerce_enum, coerce_number): Remove prototypes.
56 * value.c (coerce_enum, coerce_number): Remove.
57 * valarith.c (value_x_binop): Do not call coerce_enum.
58 (value_x_unop): Likewise.
59 (value_logical_not): Call coerce_array instead of coerce_number.
60
f7c79c41
UW
612008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
62
63 * ax-gdb.c: Include "language.h".
64 (gen_frame_args_address): Add GDBARCH parameter; use it
65 instead of current_gdbarch.
66 (gen_frame_locals_address): Likewise.
67 (gen_var_ref): Add GDBARCH parameter. Update calls to
68 gen_frame_args_address and gen_frame_locals_address. Use
69 pointer type from gdbarch.
70 (gen_usual_unary): Add EXP parameter. Use integer type
71 from exp->gdbarch.
72 (gen_usual_arithmetic): Likewise.
73 (gen_integral_promotions): Likewise.
74 (gen_add, gen_sub): Remove.
75 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
76 (gen_logical_not): Use passed-in boolean result type
77 instead of builtin_type_int.
78 (gen_complement): Do not call gen_usual_unary or
79 gen_integral_promotions.
80 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
81 (gen_repeat): Add EXP parameter. Update call to gen_expr.
82 Use builtin_type_int32 as internal range type.
83 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
84 as result type. Update call to gen_expr.
85 (gen_expr): Add EXP parameter. Update calls to gen_expr,
86 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
87 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
88 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
89 Use exp->gdbarch instead of current_gdbarch.
90 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
91
f44316fa
UW
922008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
93
94 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
95 and unop_promote before calling value_binop et. al.
96 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
97 and unop_promote before calling value_binop et. al.
98
99 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
100 (value_pos): Do not call unop_promote.
101 (value_neg, value_complement): Likewise.
102
4066e646
UW
1032008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
104
105 * value.h (unop_promote, binop_promote): Add prototypes.
106 * eval.c (unop_promote, binop_promote): New functions.
107 * valarith.c (unop_result_type, binop_result_type): Remove.
108 (value_binop): Call binop_promote or unop_promote.
109 Inline remaining parts of binop_result_type. Remove special
110 code to truncate integer values for unsigned operations.
111 (value_pos): Call unop_promote. Inline remaining parts of
112 unop_result_type.
113 (value_neg, value_complement): Likewise.
114
89eef114
UW
1152008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
116
117 * value.h (value_add, value_sub): Remove.
118 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
119 * valarith.c (value_add, value_sub): Remove.
120 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
121 (find_size_for_pointer_math): Add assertion. Update comment.
122 (value_binop): Update comment.
123
124 * eval.c (ptrmath_type_p): New function.
125 (evaluate_subexp_standard): Replace value_add and value_sub
126 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
127 Use builtin_type_uint8 instead of builtin_type_char to hold
128 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
129 * valarith.c (value_subscript): Replace value_add by
130 value_ptradd. Replace value_sub by value_binop.
131 * ada-lang.c (ada_value_ptr_subscript): Likewise.
132 (ada_tag_name_2): Replace value_add by value_ptradd.
133 (ada_evaluate_subexp): Replace value_add and value_sub by
134 value_binop.
135 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
136 by value_ptradd.
137 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
138 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
139
98b90dd8
UW
1402008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
141
142 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
143 the expression architecture instead of builtin_type_int as the
144 sizeof return type.
145
c806c55a
UW
1462008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
147
148 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
149 a type parameter as expression element.
150 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
151 type as expression element.
152 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
153 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
154
fbb06eb1
UW
1552008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
156
157 * language.h (struct language_arch_info): New members
158 bool_type_default and bool_type_symbol.
159 (lang_bool_type): Remove prototype.
160 (LA_BOOL_TYPE): Remove macro.
161 (language_bool_type): Add prototype.
162 * language.c (lang_bool_type): Remove.
163 (language_bool_type): New function.
164
165 * value.h (value_in): Change return value to int.
166 * value.c (value_in): Return int instead of struct value *.
167
168 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
169 of using LA_BOOL_TYPE. Update call to value_in.
170 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
171 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
172
173 * language.c (unknown_language_arch_info): Set bool_type_default member
174 of struct language_arch_info.
175 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
176 bool_type_default members of struct language_arch_info.
177 * c-lang.c (c_language_arch_info): Set bool_type_default member
178 of struct language_arch_info.
179 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
180 members of struct language_arch_info.
181 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
182 bool_type_default members of struct language_arch_info.
183 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
184 bool_type_default members of struct language_arch_info.
185 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
186 bool_type_default members of struct language_arch_info.
187 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
188 bool_type_default members of struct language_arch_info.
189
de7b6b47
UW
1902008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
191
192 * jv-lang.c (enum java_primitive_types): New type.
193 (java_language_arch_info): New function.
194 (java_language): Use it instead of c_language_arch_info.
195
afc05acb
UW
1962008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
197
198 * value.h (value_bitstring_subscript): New prototype.
199 * valarith.h (value_bitstring_subscript): New function.
200 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
201 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
202 instead of value_subscript to handle TYPE_CODE_BITSTRING.
203
3e79cecf
UW
2042008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
205
206 * expression.h (struct expression): New member GDBARCH.
207 * parse.c (parse_exp_in_context): Initialize it.
208 * parser-def.h (parse_gdbarch, parse_language): New macros.
209
210 * ada-exp.y (parse_type): New macro.
211 Replace builtin_type_ macros by using parse_type.
212 Replace current_language by parse_language.
213 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
214 Replace builtin_type_ macros.
215
216 * c-exp.y (parse_type): New macro.
217 Replace builtin_type_ macros by using parse_type.
218 (parse_number): Replace current_gdbarch by parse_gdbarch.
219 (yylex): Replace current_language by parse_language.
220
221 * f-exp.y (parse_type, parse_f_type): New macros.
222 Replace builtin_type_ macros by using parse_{f_,}type.
223 (parse_number): Replace current_gdbarch by parse_gdbarch.
224 (yylex): Replace current_language by parse_language.
225
226 * jv-exp.y (parse_type): New macro.
227 (parse_number): Replace builtin_type_ macros by using parse_type.
228
229 * m2-exp.y (parse_type, parse_m2_type): New macros.
230 Replace builtin_type_ macros by using parse_{m2_,}type.
231
232 * objc-exp.y (parse_type): New macro.
233 Replace builtin_type_ macros by using parse_type.
234 (parse_number): Replace current_gdbarch by parse_gdbarch.
235 (yylex): Replace current_language by parse_language.
236
237 * p-exp.y (parse_type): New macro.
238 Replace builtin_type_ macros by using parse_type.
239 (parse_number): Replace current_gdbarch by parse_gdbarch.
240 (yylex): Replace current_language by parse_language.
241
c841afd5
UW
2422008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
243
244 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
245 and DATA_SYMBOL_TYPE arguments.
246 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
247 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
248 (write_dollar_variable): Update call.
249
250 * ada-exp.y (write_var_or_type): Update call.
251 * c-exp.y: Likewise.
252 * f-exp.y: Likewise.
253 * jv-exp.y: Likewise.
254 * m2-exp.y: Likewise.
255 * objc-exp.y: Likewise.
256 * p-exp.y: Likewise.
257
0c1f74cf
JB
2582008-09-10 Joel Brobecker <brobecker@adacore.com>
259
260 * ada-lang.c (ada_parent_type): Add handling of the case where
261 the _parent field is a pointer and/or has a parallel XVS type.
262 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
263 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
264 the type of the tag instead of doing forcing an EVAL_NORMAL
265 expression evaluation.
266
5823c3ef
JB
2672008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
268 Joel Brobecker <brobecker@adacore.com>
269
270 * ada-lang.c (is_digits_suffix): New function.
271 (is_dot_digits_suffix): Remove.
272 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
273 before looking up in symbol table, and do not use wild matches on them.
274 (wild_match): Reimplement for speed and to allow matching of operator
275 symbols.
276 (is_valid_name_for_wild_match): Return zero for names that do not
277 follow the GNAT encoding.
278
279 (is_name_suffix): Fix typo in comment.
280 (to_record_with_fixed_variant_part): Ditto.
281
e5fa8013
PA
2822008-09-10 Pedro Alves <pedro@codesourcery.com>
283
284 * Makefile.in (gnu-nat.o): New rule.
285
6d2e05aa
JB
2862008-09-10 Joel Brobecker <brobecker@adacore.com>
287
288 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
289 archecture-neutral builtin_type_int32 instead of builtin_type_int.
290
2ac8a782
JB
2912008-09-10 Joel Brobecker <brobecker@adacore.com>
292
293 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
294 Add special handling for pointer types.
295
b861ac81
PA
2962008-09-10 Pedro Alves <pedro@codesourcery.com>
297
298 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
299 right scope level.
300 (inf_ttrace_resume, inf_ttrace_wait): Typos.
301
030b4912
UW
3022008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
303
304 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
305 of builtin_type_int.
306 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
307 instead of builtin_type_int.
308
d51fd4c8
PA
3092008-09-09 Pedro Alves <pedro@codesourcery.com>
310
311 * infrun.c (normal_stop): Run hook-stop last.
312
11cb6f65
PA
3132008-09-09 Pedro Alves <pedro@codesourcery.com>
314
315 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
316 (init_gnu_ops): Don't register it.
317
a9ab7422
PA
3182008-09-09 Pedro Alves <pedro@codesourcery.com>
319
320 * gnu-nat.c (gnu_attach): Push target before fetching the list of
321 threads.
322
694182d2
DJ
3232008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
324
325 * valops.c (value_cast_structs): Return NULL for failure.
326 (value_cast): Handle NULL from value_cast_structs.
327 (value_fetch_lazy): Call check_typedef. Remove unused variable.
328
dcf4fbde
PA
3292008-09-08 Pedro Alves <pedro@codesourcery.com>
330
331 * inferior.h (context_switch_to): Delete.
332 * infrun.c (context_switch): Don't save and load infrun state.
333 (context_switch_to): Delete.
334
335 * infcmd.c (proceed_thread_callback): Replace context_switch_to
336 calls by switch_to_thread calls.
337
338 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
339 * thread.c (main_thread_state, main_thread_executing): Delete.
340 (inferior_thread): Delete references to them.
341 (add_thread_silent): Fix case where we're adding a thread with the
342 same ptid as an exited thread. Remove references to
343 context-switching.
344 (load_infrun_state, save_infrun_state): Delete.
345 (thread_alive, is_thread_state, any_running, is_executing)
346 (set_executing): Remove the special handling for targets that
347 don't register any thread.
348 (restore_current_thread, thread_apply_all_command)
349 (do_captured_thread_select): Unconditionally call
350 switch_to_thread.
351
352 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
353 Call switch_to_thread instead of context_switch_to.
354
95e54da7
PA
3552008-09-08 Pedro Alves <pedro@codesourcery.com>
356
357 Remove global continuations in favour of a per-thread
358 continuations.
359
360 * gdbthread.h (struct thread_info): Add comments around
361 continuations and intermediate_continuations.
362 (save_infrun_state, load_infrun_state): Delete continuations and
363 intermediate_continuations arguments.
fedae5ff 364 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
365 * thread.c (clear_thread_inferior_resources): Discard all
366 continuations of the thread we're clearing.
367 (save_infrun_state, load_infrun_state): Delete continuations and
368 intermediate_continuations arguments, and the code referencing
369 them.
370 * utils.c: Include "gdbthread.h".
371 (cmd_continuation, intermediate_continuation): Delete.
372 (add_continuation): Add thread_info* argument. Install the
373 continuation on it.
374 (restore_thread_cleanup): New.
375 (do_all_continuations_ptid, do_all_continuations_thread_callback):
376 New.
377 (do_all_continuations): Reimplement.
378 (discard_all_continuations_thread_callback,
379 discard_all_continuations_thread): New.
380 (discard_all_continuations): Reimplement.
381 (add_intermediate_continuation): Add thread_info* argument.
382 Install the continuation on it.
383 (do_all_intermediate_continuations_thread_callback)
384 (do_all_intermediate_continuations_thread): New.
385 (do_all_intermediate_continuations): Reimplement.
386 (discard_all_intermediate_continuations_thread_callback): New.
387 (discard_all_intermediate_continuations_thread): New.
388 (discard_all_intermediate_continuations): Reimplement.
389
390 * breakpoint.c (until_break_command): Install the continuation on
391 the current thread.
392
393 * defs.h (cmd_continuation, intermediate_continuation): Delete.
394 (struct thread_info): Forward declare.
395 (add_continuation, add_intermediate_continuation): Add
396 thread_info* argument.
397 (do_all_continuations_thread, discard_all_continuations_thread)
398 (do_all_intermediate_continuations_thread)
399 (discard_all_intermediate_continuations_thread): Declare.
400 * inf-loop.c (inferior_event_handler): In non-stop only run
401 continuations on the thread that stopped. In all-stop, run
402 continuations on all threads.
403 * infcmd.c (step_once, finish_command): Adjust.
404
414c69f7
PA
4052008-09-08 Pedro Alves <pedro@codesourcery.com>
406
407 Remove the global stop_step in favour of a per-thread
408 stop_step.
409
410 * inferior.h (stop_step): Delete.
411
412 * gdbthread.h (struct thread_info): Add comments to stop_step.
413 (save_infrun_state, load_infrun_state): Remove stop_step argument.
414 * thread.c (load_infrun_state, save_infrun_state): Remove
415 stop_step argument, and references to it.
416
417 * infrun.c (clear_proceed_status): Clear stop_step.
418 (fetch_inferior_event): Adjust.
419 (context_switch): Don't context-switch stop_step.
420 (handle_inferior_event): Adjust.
421 (normal_stop): Adjust.
422 (save_inferior_status, restore_inferior_status): Adjust.
423
424 * infcmd.c (stop_step): Delete.
425 (step_1, step_1_continuation, step_once, until_next_command):
426 Adjust.
427
af679fd0
PA
4282008-09-08 Pedro Alves <pedro@codesourcery.com>
429
430 Remove the global step_multi in favour of a per-thread
431 step_multi.
432
433 * inferior.h (step_multi): Delete.
434 * gdbthread.h (struct thread_info): Add comments around
435 step_multi.
436 (save_infrun_state, load_infrun_state): Remove step_multi
437 parameter.
438 * thread.c (load_infrun_state, save_infrun_state): Remove
439 step_multi argument, and references to it.
440 * infcmd.c (step_multi): Delete.
441 (step_1): Adjust.
442 (step_1_continuation, until_next_command): Adjust.
443 * infrun.c (fetch_inferior_event): Adjust.
444 (context_switch): Don't context-switch step_multi.
445 (print_stop_reason, normal_stop): Adjust.
446
2020b7ab
PA
4472008-09-08 Pedro Alves <pedro@codesourcery.com>
448
449 Remove the global stop_signal in favour of a per-thread
450 stop_signal.
451
452 * inferior.h (stop_signal): Delete.
453 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
454 stop_signal argument.
455 * thread.c (load_infrun_state, save_infrun_state): Remove
456 stop_signal argument. Don't reference it.
457
458 * infcmd.c (stop_signal): Delete.
459 (program_info): Adjust.
460 * infrun.c (resume): Clear stop_signal.
461 (proceed): Adjust. Pass the last stop_signal to the thread we're
462 resuming.
463 (context_switch): Don't context-switch stop_signal.
464 (handle_inferior_event, keep_going): Adjust.
465 (save_inferior_status, restore_inferior_status): Adjust.
466
467 * fbsd-nat.c: Include "gdbthread.h".
468 (find_signalled_thread, find_stop_signal): New.
469 (fbsd_make_corefile_notes): Use it.
470 * fork-child.c (startup_inferior): Adjust.
471
472 * linux-nat.c (get_pending_status): Adjust.
473 (linux_nat_do_thread_registers): Adjust.
474 (find_signalled_thread, find_stop_signal): New.
475 (linux_nat_do_thread_registers): Add stop_signal parameter.
476 (struct linux_nat_corefile_thread_data): Add stop_signal member.
477 (linux_nat_corefile_thread_callback): Pass stop_signal.
478 (linux_nat_do_registers): Delete.
479 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
480 there's always a thread.
481
482 * procfs.c (find_signalled_thread, find_stop_signal): New.
483 (find_stop_signal): New.
484 (procfs_do_thread_registers): Add stop_signal parameter.
485 (struct procfs_corefile_thread_data): Add stop_signal member.
486 (procfs_corefile_thread_callback): Pass args->stop_signal.
487 (procfs_make_note_section): Find the last stop_signal.
488
489 * solib-irix.c: Include gdbthread.h.
490 (irix_solib_create_inferior_hook): Adjust.
491 * solib-osf.c: Include gdbthread.h.
492 (osf_solib_create_inferior_hook): Adjust.
493 * solib-sunos.c: Include gdbthread.h.
494 (sunos_solib_create_inferior_hook): Adjust.
495 * solib-svr4.c: Include gdbthread.h.
496 (svr4_solib_create_inferior_hook): Adjust.
497
498 * win32-nat.c (do_initial_win32_stuff): Adjust.
499
32400beb
PA
5002008-09-08 Pedro Alves <pedro@codesourcery.com>
501
502 * gdbthread.h (struct thread_info): Add comments around
503 proceed_to_finish.
504 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
505 argument.
506 * thread.c (load_infrun_state, save_infrun_state): Delete
507 proceed_to_finish argument and references to it.
508
509 * infcall.c (call_function_by_hand): Adjust.
510 * infcmd.c (finish_command): Adjust.
511 * infrun.c (proceed_to_finish): Delete.
512 (clear_proceed_status): Adjust.
513 (context_switch): Don't context-switch proceed_to_finish.
514 (normal_stop, save_inferior_status, restore_inferior_status):
515 Adjust.
516
347bddb7
PA
5172008-09-08 Pedro Alves <pedro@codesourcery.com>
518
519 * inferior.h (stop_bpstat): Delete.
520
521 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
522
523 * breakpoint.c (bpstat_do_actions): Rename to ...
524 (bpstat_do_actions_1): ... this. Make static. Change return type
525 to int. Return true if a breakpoint proceeded.
526 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
527 (delete_breakpoint): Don't reference the global stop_bpstat; it's
528 gone.
529
530 * gdbthread.h (struct thread_info): Add stop_bpstat.
531 (save_infrun_state, load_infrun_state): Remove stop_bpstat
532 argument.
533 * thread.c (load_infrun_state, save_infrun_state): Remove
534 stop_bpstat argument, and the code referencing it.
535
536 * infcall.c: Include "gdbthread.h".
537 (call_function_by_hand): Adjust.
538 * exceptions.c: Include "gdbthread.h".
539 (throw_exception): Adjust.
540 * infcmd.c (stop_bpstat): Delete.
541 (continue_command): In all-stop, set the ignore count on the
542 thread that reported the stop. In non-stop, set it on the current
543 thread.
544 (finish_command_continuation): Adjust.
545 (program_info): Adjust.
546 * infrun.c (clear_proceed_status): Adjust.
547 (context_switch): Don't context-switch stop_bpstat.
548 (handle_inferior_event): Adjust.
549 (normal_stop): Adjust.
550 (save_inferior_status, restore_inferior_status): Adjust.
551
552 * inf-loop.c (inferior_event_handler): Remove parameter to
553 bpstat_do_actions call.
554 * top.c (command_loop): Remove parameter to bpstat_do_actions
555 call. Call it unconditionally.
556 * event-top.c (command_handler): Ditto.
557 * python/python.c (execute_gdb_command): Ditto.
558
078130d0
PA
5592008-09-08 Pedro Alves <pedro@codesourcery.com>
560
561 * inferior.h (step_over_calls): Delete.
562
563 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
564 step_over_calls argument.
565 * thread.c (save_infrun_state, load_infrun_state): Remove
566 step_over_calls argument. Adjust.
567
568 * infcmd.c (step_over_calls): Delete.
569 (step_1): Adjust.
570 * infrun.c (clear_proceed_status): Adjust.
571 (context_switch): Don't context-switch step_over_calls.
572 (handle_inferior_event, save_inferior_status)
573 (restore_inferior_status): Adjust.
574
4e1c45ea
PA
5752008-09-08 Pedro Alves <pedro@codesourcery.com>
576
577 Remove context switching in favour of accessing thread_info fields
578 directly.
579
580 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
581 Delete.
582 (struct thread_stepping_state): Delete.
583 (gtss, tss): Delete.
584 (follow_inferior_reset_breakpoints, follow_exec)
585 (resume, clear_proceed_status): Adjust.
586 (prev_pc): Delete.
587 (proceed, start_remote, init_wait_for_inferior): Adjust.
588 (struct execution_control_state): Add event_thread member.
589 (delete_step_resume_breakpoint_callback)
590 (delete_step_thread_step_resume_breakpoint)
591 (delete_step_thread_step_resume_breakpoint_cleanup)
592 (delete_step_thread_step_resume_breakpoint): New.
593 (wait_for_inferior, init_execution_control_state): Use
594 delete_step_thread_step_resume_breakpoint_cleanup.
595 (wait_for_inferior): Set the event_thread.
596 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
597 with delete_step_thread_step_resume_breakpoint.
598 (init_thread_stepping_state): Change parameter type to
599 thread_info. Adjust.
600 (context_switch): Don't context switch prev_pc,
601 stepping_over_breakpoint, step_resume_breakpoint,
602 step_range_start, step_range_end, step_frame_id,
603 tss->stepping_over_breakpoint,
604 tss->stepping_through_solib_after_catch,
605 tss->stepping_through_solib_catchpoints, tss->current_line, or
606 tss->current_symtab.
607 (adjust_pc_after_break, handle_inferior_event)
608 (currently_stepping, step_into_function)
609 (insert_step_resume_breakpoint_at_sal)
610 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
611 (clear_stepping_state): New.
612 (normal_stop): Adjust.
613 (save_inferior_status, restore_inferior_status): Adjust.
614
615 * gdbthread.h (struct thread_info): Comments describing the
616 members moved here. Add step_after_step_resume_breakpoint.
617 (delete_step_resume_breakpoint): Add thread_info argument.
618 (save_infrun_state, load_infrun_state): Remove prev_pc,
619 trap_expected, step_resume_breakpoint, step_range_start,
620 step_range_end, step_frame_id, another_trap,
621 stepping_through_solib_after_catch,
622 stepping_through_solib_catchpoints, current_line and
623 current_symtab function arguments.
624 (inferior_thread): Declare.
625
626 * thread.c (inferior_thread): New.
627 (delete_step_resume_breakpoint): Add a thread_info parameter and
628 rewrite.
629 (load_infrun_state, save_infrun_state): Remove prev_pc,
630 trap_expected, step_resume_breakpoint, step_range_start,
631 step_range_end, step_frame_id, stepping_over_breakpoint,
632 stepping_through_solib_after_catch,
633 stepping_through_solib_catchpoints, current_line and
634 current_symtab args. Remove code referencing them.
635
636 * infcmd.c (step_range_start, step_range_end, step_frame_id):
637 Delete.
638 (step_1, step_once, until_next_command): Adjust.
639
640 * inferior.h (step_range_start, step_range_end, step_frame_id):
641 Delete.
642
643 * linux-nat.c (linux_child_follow_fork): If following the child,
644 move the step state to it. Adjust.
645 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
646 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
647
757f359d
PA
6482008-09-08 Pedro Alves <pedro@codesourcery.com>
649
650 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
651 thread.
652
0de3b513
PA
6532008-09-08 Pedro Alves <pedro@codesourcery.com>
654
655 * corelow.c (add_to_thread_list): If this is the first time we
656 hear about thread info, update inferior_ptid.
657 (core_open): Clear the thread list and set inferior_ptid before
658 acknowledging a new inferior. Find threads before fetching
659 register info. Give an upper target layer a chance to find and
660 claim new threads. Print core generation and stop signal info
661 after finding new threads.
662 (get_core_register_section): Look at the lwp member of
663 inferior_ptid for detecting if we have threads info, instead of
664 the pid member.
665 (core_pid_to_str): New.
666 (init_core_ops): Register core_pid_to_str.
667
4189d2f8
PA
6682008-09-08 Pedro Alves <pedro@codesourcery.com>
669
670 * spu-linux-nat.c (spu_child_post_startup_inferior)
671 (spu_child_post_attach): Don't add the main thread here.
672
617fd3b5
PA
6732008-09-08 Pedro Alves <pedro@codesourcery.com>
674
675 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
676
677 * gnu-nat.c (inf_validate_procs): If this is the first time we're
678 seeing a thread id, extend the main thread's ptid. If we still
679 have pending execs, don't be verbose about new threads.
680 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
681 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
682 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
683 Adjust.
684
2689673f
PA
6852008-09-08 Pedro Alves <pedro@codesourcery.com>
686
687 * procfs.c (to_attach): Create a procinfo for the current lwp.
688 Add it to gdb's thread list.
689 (procfs_fetch_registers, procfs_store_registers): Assume there's
690 always an lwp.
691 (procfs_wait): Don't add the main thread here.
692 (procfs_init_inferior): Create a procinfo for the main lwp here.
693 Change main thread's ptid with thread_change_ptid.
694 (procfs_notice_thread): Check for exited threads.
695 (procfs_corefile_thread_callback): Remove check for the main
696 process.
697 (procfs_make_note_section): Assume there is always a thread.
698
699 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
700 attaching. Change the main thread ptid with thread_change_ptid.
701 (sol_thread_detach): Clear sol_thread_active.
702 (sol_thread_wait): Check for exited threads.
703 (sol_thread_create_inferior): Clear sol_thread_active before
704 creating a new inferior. Change the main thread ptid with
705 thread_change_ptid.
706 (sol_thread_mourn_inferior): Clear sol_thread_active.
707 (sol_find_new_threads_callback): Check for exited threads.
708
62a93fa9
PA
7092008-09-08 Pedro Alves <pedro@codesourcery.com>
710
711 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
712 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
713 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
714 process, and return TARGET_WAITKIND_IGNORE.
715
438ac09b
PA
7162008-09-08 Pedro Alves <pedro@codesourcery.com>
717
718 * inf-ttrace.c: Include <signal.h>
719 (inf_ttrace_delete_dead_threads_callback): New.
720 (inf_ttrace_resume_lwp): New.
721 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
722 delete dying threads until they are really dead.
723 (inf_ttrace_wait): After stopping the whole process, delete any
724 dying thread that is really dead by now.
725 (inf_ttrace_thread_alive): Return 1.
726 (inf_ttrace_extra_thread_info): New.
727 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
728
2935f27f
PA
7292008-09-08 Pedro Alves <pedro@codesourcery.com>
730
731 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
732 of the child fork.
733 (inf_ttrace_attach): Add the main thread.
734 (inf_ttrace_resume_callback): Check for exited threads. Adjust
735 for always a thread.
736 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
737 using thread_change_ptid, and set its private data. Don't add the
738 main thread here.
739 (inf_ttrace_pid_to_str): Adjust.
740
fb5e7258
PA
7412008-09-08 Pedro Alves <pedro@codesourcery.com>
742
743 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
744 thread_change_ptid. Check for exited threads.
745 (bsd_uthread_find_new_threads): Check for exited threads.
746
af990527
PA
7472008-09-08 Pedro Alves <pedro@codesourcery.com>
748
749 * inf-ptrace.c: Include "gdbthread.h".
750 (inf_ptrace_attach): Add the main thread here.
751 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
752 Decorate the main thread id with the lwp id.
753
27c9d204
PA
7542008-09-08 Pedro Alves <pedro@codesourcery.com>
755
756 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
757 thread_change_ptid. Don't add or mark the main thread as running
758 and executing here.
759 * fork-child.c (fork_inferior): Add the main thread here.
760
de9f48f0
JG
7612008-09-08 Jerome Guitton <guitton@adacore.com>
762
763 * rs6000-tdep.c (rs6000_fetch_instruction)
764 (rs6000_skip_stack_check): New functions.
765 (skip_prologue): Skip stack check sequence.
766
52163a60
DD
7672008-09-08 David Daney <ddaney@avtrex.com>
768
769 * dummy-frame.h (frame.h): Include it.
770 (struct frame_id): Remove declaration.
771
87805e63
UW
7722008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
773
774 * spu-tdep.c (spu_push_dummy_code): New function.
775 (spu_gdbarch_init): Install it.
776
0b1553bc
UW
7772008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
778
779 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
780 instead of paddr_nz.
781 * gdbarch.c: Regenerate.
782
783 * target.c (target_xfer_partial, debug_print_register): Use
784 core_addr_to_string_nz instead of paddr_nz.
785
2454a024
UW
7862008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
787
788 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
789 *before* calling gdbarch_init_osabi.
790 (rs6000_aix_init_osabi): Disable displaced stepping.
791
b52323fa
UW
7922008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
793
794 * target.c (update_current_target): Do not inherit to_open
795 or to_close.
796 (pop_target): Call target_close on target_stack instead
797 of current_target.
798 (pop_all_targets_above): Likewise.
799
fead6908
UW
8002008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
801
802 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
803 (gnuv3_print_method_ptr): Use it.
804 (gnuv3_method_ptr_to_value): Likewise.
805
60441ab9
UW
8062008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
807
808 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
809 register_area callback function.
810 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
811 Use it instead of current_gdbarch.
812 * nto-procfs.c (procfs_store_registers): Update call.
813
bb486190
UW
8142008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
815
816 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
817 regcache architecture instead of current_gdbarch.
818
9dacea90
UW
8192008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
820
821 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
822 (check_for_saved): Use it instead of current_gdbarch.
823 (is_arg_spill): Add gdbarch paramter. Use it instead
824 of current_gdbarch.
825 (mep_analyze_prologue): Add gdbarch parameter. Pass it
826 to is_arg_spill and check_for_saved.
827 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
828
5db8bbe5
UW
8292008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
830
831 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
832 instead of current_gdbarch.
833
6ba38425
UW
8342008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
835
836 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
837 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
838 Use it instead of current_gdbarch.
839 (m68kbsd_supply_fpregset): Update call.
840 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
841 (m68kbsd_collect_fpregset): Likewise.
842
35488783
UW
8432008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
844
845 * cris-tdep.c (cris_version, cris_mode): Remove.
846 (crisv32_single_step_through_delay): Use tdep->cris_mode.
847 (cris_breakpoint_from_pc): Likewise.
848 (cris_frame_unwind_cache): Use tdep->cris_version.
849 (crisv32_scan_prologue): Likewise.
850 (cris_spec_reg_applicable): Add gdbarch argument.
851 Use tdep->cris_version.
852 (cris_register_size, cris_special_register_name): Update calls.
853 (cris_special_register_name): Add gdbarch argument.
854 (cris_register_name, crisv32_register_name): Update calls.
855
9dae60cc
UW
8562008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
857
858 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
859 instead of current_gdbarch.
860
861 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
862 (sh64_gdbarch_init): Install print_insn_sh64 directly.
863 * sh-tdep.c (gdb_print_insn_sh): Remove.
864 (sh_gdbarch_init): Install print_insn_sh directly.
865
866 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
867 from current_gdbarch.
868 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
869 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
870 depending on mips_abi.
871
24568a2c
UW
8722008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
873
874 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
875 (smash_text_address): Likewise.
876 * gdbarch.c, gdbarch.h: Regenerate.
877
878 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
879 * arch-utils.h (core_addr_identity): Likewise.
880 * arm-tdep.c (arm_addr_bits_remove): Likewise.
881 (arm_smash_text_address): Likewise.
882 * hppa-tdep.c (hppa_smash_text_address): Likewise.
883 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
884 * s390-tdep.c (s390_addr_bits_remove): Likewise.
885
886 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
887 Use it instead of current_gdbarch.
888
889 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
890 arm_dwarf2_prev_register): Update calls.
891 * m88k-tdep.c (m88k_unwind_pc): Update call.
892
f7fd4728
UW
8932008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
894
895 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
896 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
897 Call gdbarch_integer_to_address directly instead of converting
898 to value and back. Update comment.
899 (execute_stack_op): Update call site.
900 * dwarf2loc.c (find_location_expression): Likewise.
901 (locexpr_describe_location): Update
902
903 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
904 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
905 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
906 (dwarf2_loc_desc_needs_frame): Likewise.
907
714835d5
UW
9082008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
909
910 * breakpoint.h (struct bp_location): Change type of section
911 member to "struct obj_section *".
912 * tracepoint.h (struct tracepoint): Likewise.
913 * symtab.h (struct general_symbol_info): Replace bfd_section
914 member with obj_section.
915 (struct symtab_and_line): Change type of section member to
916 "struct obj_section *".
917 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
918 (SYMBOL_OBJ_SECTION): ... this.
919
920 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
921 section as obj_section instead of bfd_section.
922
923 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
924 directly instead of looking of obj_section from bfd_section.
925
926 * objfiles.h (find_pc_sect_section): Remove.
927 * objfiles.c (find_pc_sect_section): Remove.
928 (find_pc_section): Inline find_pc_sect_section code.
929
930 * symfile.h (find_pc_overlay): Return struct obj_section *.
931 (find_pc_mapped_section): Likewise.
932 (section_is_overlay, section_is_mapped): Change type of section
933 argument to struct obj_section *.
934 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
935 (overlay_mapped_address, overlay_unmapped_address): Likewise.
936 (symbol_overlayed_address): Likewise.
937 * symtab.h (symbol_overlayed_address): Likewise.
938 * symfile.c (overlay_is_mapped): Remove.
939 (section_is_mapped): Inline overlay_is_mapped code. Update.
940 (overlay_invalidate_all): Update.
941 (section_is_overlay): Change section argument to type
942 "struct obj_section *". Use bfd_ methods.
943 (pc_in_unmapped_range): Likewise. Handle relocated sections.
944 (pc_in_mapped_range): Likewise. Handle relocated sections.
945 (sections_overlap): Likewise.
946 (overlay_unmapped_address): Likewise.
947 (overlay_mapped_address): Likewise.
948 (symbol_overlayed_address): Likewise.
949 (find_pc_overlay): Return struct obj_section *.
950 (find_pc_mapped_section): Likewise.
951 (list_overlays_command): Update.
952 (map_overlay_command, unmap_overlay_command): Update.
953 (simple_overlay_update): Update.
954
955 * block.h (blockvector_for_pc_sect): Change section argument
956 to type "struct obj_section *".
957 (block_for_pc_sect): Likewise.
958 * block.c (blockvector_for_pc_sect): Change section argument
959 to type "struct obj_section *".
960 (block_for_pc_sect): Likewise.
961 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
962 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
963 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
964 (matching_bfd_sections): Rename to ...
965 (matching_obj_sections): ... this. Update argument types.
966 * blockframe.c (find_pc_sect_function): Likewise.
967 * breakpoint.c (describe_other_breakpoints): Likewise.
968 (breakpoint_has_pc, check_duplicates_for): Likewise.
969 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
970 (lookup_minimal_symbol_by_pc_section): Likewise.
971 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
972 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
973 find_pc_sect_line, find_function_start_pc): Likewise.
974 (matching_bfd_sections): Rename to ...
975 (matching_obj_sections): ... this. Update argument types.
976
977 * blockframe.c (find_pc_partial_function): Update to section
978 type changes. No longer call find_pc_sect_section.
979 (cache_pc_function_section): Change to type "struct obj_section *".
980 * breakpoint.c (resolve_sal_pc): Update to section type changes.
981 * exec.c (xfer_memory): Likewise.
982 * findvar.c (read_var_value): Likewise.
983 * infcmd.c (jump_command): Likewise.
984 * linespec.c (minsym_found): Likewise.
985 * maint.c (maintenance_translate_address): Likewise.
986 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
987 (lookup_solib_trampoline_symbol_by_pc): Likewise.
988 * parse.c (write_exp_msymbol): Likewise.
989 * printcmd.c (build_address_symbolic): Likewise.
990 (address_info, sym_info): Likewise.
991 * symmisc.c (dump_msymbols, print_symbol): Likewise.
992 * symtab.c (fixup_section): Likewise.
993 (fixup_symbol_section, fixup_psymbol_section): Likewise.
994 (find_pc_line, find_function_start_sal): Likewise.
995 * target.c (memory_xfer_partial): Likewise.
996 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
997 * spu-tdep.c (spu_overlay_update): Likewise.
998
623d3eb1
DE
9992008-09-04 Doug Evans <dje@google.com>
1000
1001 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
1002 Change argument of pulongest from CORE_ADDR to ULONGEST.
1003 All callers updated.
1004 * utils.c (plongest): Renamed from paddr_d.
1005 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
1006 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
1007 `CORE_ADDR addr' arg of error message.
1008
8775bb90
MS
10092008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
1010
1011 * ser-tcp.c (ser_tcp_send_break): New function.
1012 (_initialize_ser_tcp): Use ser_tcp_send_break.
1013 * ser-tcp.h (ser_tcp_send_break): New prototype.
1014
9ff3afda
UW
10152008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1016
1017 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
1018 when allocating stack frame for inferior call.
1019
c4891da7
UW
10202008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1021
1022 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
1023 SP or return address if we failed to find a valid frame.
1024
514f746b
AR
10252008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
1026
1027 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
1028 non-permanent breakpoints.
1029 (bpstat_stop_status): Change enable_state to bp_disabled only for
1030 non-permanent breakpoints.
1031 (bp_loc_is_permanent): New function.
1032 (create_breakpoint): Check if the location points to a permanent
1033 breakpoint and if it does, make breakpoint permanent.
1034 (update_breakpoint_locations): Make sure new locations of permanent
1035 breakpoints are properly initialized.
1036 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
1037 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
1038
a12654ce
PA
10392008-09-02 Pedro Alves <pedro@codesourcery.com>
1040
1041 * breakpoint.c (insert_breakpoints, update_global_location_list):
1042 Check breakpoints_always_inserted_mode instead of
1043 always_inserted_mode directly.
1044
8b7a6d61
AS
10452008-09-02 Andreas Schwab <schwab@suse.de>
1046
1047 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
1048
d68209e4
JK
10492008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1050
1051 Stay compatible after the GCC PR fortran/29635 fix.
1052 * dwarf2read.c (process_die <DW_TAG_imported_module>)
1053 (process_die <DW_TAG_imported_module>): Do not assert anything about
1054 these unsupported tags.
1055
ef4cb050
TT
10562008-08-29 Tom Tromey <tromey@redhat.com>
1057
1058 * maint.c (_initialize_maint_cmds): Fix typo.
1059
a683b3c0
TT
10602008-08-29 Tom Tromey <tromey@redhat.com>
1061
1062 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
1063 obstack.
1064
3e88cf8d
UW
10652008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1066
1067 * remote.c: Include "gdb_stat.h".
1068
a45ae3ed
UW
10692008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1070
1071 * dummy-frame.h (dummy_frame_pop): Add prototype.
1072 * dummy-frame.c: Include "observer.h".
1073 (dummy_frame_push): Do not check for stale frames.
1074 (dummy_frame_pop): New function.
1075 (cleanup_dummy_frames): New function.
1076 (_initialize_dummy_frame): Install it as inferior_created observer.
1077
1078 * frame.h (struct frame_id): Update comments.
1079 (frame_id_inner): Remove prototype.
1080 * frame.c (frame_id_inner): Make static. Add comments.
1081 (frame_find_by_id): Update frame_id_inner safety net check to avoid
1082 false positives for targets using non-contiguous stack ranges.
1083 (get_prev_frame_1): Update frame_id_inner safety net check.
1084 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
1085
1086 * stack.c (return_command): Directly pop the selected frame.
1087 * infrun.c (handle_inferior_event): Remove dead code.
1088 * i386-tdep.c (i386_push_dummy_call): Update comment.
1089
879d1e6b
UW
10902008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1091
1092 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
1093 breakpoint from shared library.
1094
97ec2c2f
UW
10952008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1096
1097 * solib-svr4.c (read_program_header): New function.
1098 (scan_dyntag_auxv): New function.
1099 (elf_locate_base): Use it if scan_dyntag fails.
1100 (find_program_interpreter): New function.
1101 (enable_break): Use it instead of .interp section.
1102
f1838a98
UW
11032008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1104
1105 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
1106 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
1107 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
1108 remote_bfd_open): New functions.
1109 (remote_hostio_send_command): Fail safely if remote connection
1110 is not set up.
1111
1112 * solist.h (solib_open): Remove prototype.
1113 (solib_bfd_open): Add prototype.
1114 * solib.c: Include "remote.h".
1115 (solib_open): Remove, replace by ...
1116 (solib_bfd_open): ... this new function. Handle remote BFDs.
1117 (solib_map_sections): Replace solib_open by solib_bfd_open.
1118 * solib-frv.c: Include "exceptions.h".
1119 (enable_break2): Replace solib_open by solib_bfd_open.
1120 * solib-svr4.c: Include "exceptions.h".
1121 (enable_break): Replace solib_open by solib_bfd_open.
1122
1123 * symfile.c: Include "remote.h".
1124 (build_id_verify): Handle remote BFDs.
1125 (separate_debug_file_exists): Use BFD to access file. Handle
1126 remote BFDs.
1127 (symfile_bfd_open): Handle remote BFDs.
1128 (reread_symbols): Handle remote BFDs.
1129
1130 * NEWS: Mention "remote:" argument prefix to "set sysroot".
1131
1cf3db46
UW
11322008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1133
1134 * gdbarch.sh (target_gdbarch): New global variable.
1135 (deprecated_current_gdbarch_select_hack): Set it.
1136 * gdbarch.c, gdbarch.h: Regenerate.
1137
1138 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
1139 of current_gdbarch.
1140 * target-descriptions.c (target_find_description): Likewise.
1141 * arm-tdep.c (arm_update_current_architecture): Likewise.
1142 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
1143 arm_show_force_mode): Likewise.
1144 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
1145 show_mips_abi): Likewise.
1146 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
1147
1148 * target.c (target_translate_tls_address): Use target_gdbarch
1149 instead of current_gdbarch.
1150 * remote.c (struct packet_reg): Likewise.
1151 (get_remote_arch_state, packet_reg_from_regnum,
1152 packet_reg_from_pnum, remote_check_symbols, remote_wait,
1153 remote_address_masked, remote_insert_breakpoint,
1154 remote_insert_hw_breakpoint, remote_read_description): Likewise.
1155 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1156 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
1157 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
1158
1159 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
1160 solib_add, info_sharedlibrary_command, solib_address,
1161 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
1162 solib_global_lookup): Likewise.
1163 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
1164 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
1165 Likewise.
1166 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1167 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
1168 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
1169 Likewise.
1170 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
1171 nto_truncate_ptr): Likewise.
1172 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
1173
6207416c
LM
11742008-08-26 Luis Machado <luisgpm@br.ibm.com>
1175
1176 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
1177 (ppc_linux_vmx_regset_sections): New structure.
1178 (ppc_linux_fp_regset_sections): New structure.
1179 (ppc_linux_init_abi): Select core-file regset based on target
1180 features.
1181
0ff58721
UW
11822008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1183
1184 * target.c (debug_print_register): Use regcache_raw_collect
1185 instead of regcache_cooked_read. Only handle raw registers.
1186
6c5561f9
PA
11872008-08-25 Pedro Alves <pedro@codesourcery.com>
1188
1189 * cp-name-parser.y: Include config.h before system headers.
1190
ed0c3906
UW
11912008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1192
1193 * m88k-tdep.c: Update for unwinder changes.
1194
119ac181
TT
11952008-08-24 Tom Tromey <tromey@redhat.com>
1196
1197 * s390-tdep.c (s390_address_class_type_flags): Use
1198 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
1199 (s390_address_class_type_flags_to_name): Likewise.
1200 (s390_address_class_name_to_type_flags): Likewise.
1201
803e1097
TT
12022008-08-24 Tom Tromey <tromey@redhat.com>
1203
1204 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
1205 TYPE_FLAGS.
1206 * features/rs6000/powerpc-vsx32l.c
1207 (initialize_tdesc_powerpc_vsx32l): Update.
1208 * features/rs6000/powerpc-vsx32.c
1209 (initialize_tdesc_powerpc_vsx32): Update.
1210 * features/rs6000/powerpc-vsx64.c
1211 (initialize_tdesc_powerpc_vsx64): Update.
1212 * features/rs6000/powerpc-vsx64l.c
1213 (initialize_tdesc_powerpc_vsx64l): Update.
1214 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
1215 TYPE_VECTOR, not TYPE_FLAGS.
1216
876cecd0
TT
12172008-08-24 Tom Tromey <tromey@redhat.com>
1218
1219 * xml-tdesc.c (tdesc_end_union): Update.
1220 * stabsread.c (define_symbol): Update.
1221 (read_type): Update.
1222 (read_struct_type): Update.
1223 (read_enum_type): Update.
1224 * spu-tdep.c (spu_builtin_type_vec128): Update.
1225 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
1226 (sh_push_dummy_call_nofpu): Update.
1227 * mdebugread.c (parse_symbol): Update.
1228 (parse_symbol): Update.
1229 (parse_symbol): Update.
1230 (upgrade_type): Update.
1231 * jv-lang.c (java_lookup_class): Update.
1232 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
1233 * i386-tdep.c (i386_mmx_type): Update.
1234 (i386_sse_type): Update.
1235 * gdbtypes.h (enum type_flag_value): New enum.
1236 (enum type_instance_flag_value): New enum.
1237 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
1238 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
1239 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
1240 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
1241 TYPE_FLAG_NOTTEXT): Now enum constants.
1242 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
1243 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
1244 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
1245 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
1246 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
1247 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
1248 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
1249 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
1250 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
1251 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
1252 TYPE_NOTTEXT): Update.
1253 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
1254 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
1255 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
1256 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
1257 TYPE_ADDRESS_CLASS_ALL): Update.
1258 (struct main_type) <flags>: Remove.
1259 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
1260 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
1261 flag_vector, flag_stub_supported, flag_nottext,
1262 flag_fixed_instance>: New fields.
1263 <nfields, vptr_fieldno>: Move earlier.
1264 (TYPE_FLAGS): Remove.
1265 * gdbtypes.c (make_pointer_type): Update.
1266 (address_space_name_to_int): Update.
1267 (address_space_int_to_name): Update.
1268 (make_type_with_address_space): Update.
1269 (make_cv_type): Update.
1270 (create_range_type): Update.
1271 (get_discrete_bounds): Update.
1272 (create_set_type): Update.
1273 (make_vector_type): Update.
1274 (smash_to_method_type): Update.
1275 (check_typedef): Update.
1276 (check_stub_method): Update.
1277 (init_type): Individually assign flag fields.
1278 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
1279 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
1280 (copy_type_recursive): Copy the entire main type. Don't use
1281 TYPE_FLAGS.
1282 * features/rs6000/powerpc-altivec64l.c
1283 (initialize_tdesc_powerpc_altivec64l): Update.
1284 * features/rs6000/powerpc-altivec64.c
1285 (initialize_tdesc_powerpc_altivec64): Update.
1286 * features/rs6000/powerpc-altivec32l.c
1287 (initialize_tdesc_powerpc_altivec32l): Update.
1288 * features/rs6000/powerpc-altivec32.c
1289 (initialize_tdesc_powerpc_altivec32): Update.
1290 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
1291 Update.
1292 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
1293 Update.
1294 * dwarf2read.c (read_structure_type): Update.
1295 (read_enumeration_type): Likewise.
1296 (process_enumeration_scope): Likewise.
1297 (read_tag_pointer_type): Likewise.
1298 (read_subroutine_type): Likewise.
1299 (read_subroutine_type): Likewise.
1300 (read_base_type): Likewise.
1301 * coffread.c (coff_read_enum_type): Update.
1302 * ada-valprint.c (adjust_type_signedness): Update.
1303 * ada-typeprint.c (print_record_field_types): Update.
1304 * ada-lang.c (packed_array_type): Update.
1305 (empty_record): Don't reset TYPE_FLAGS.
1306 (ada_template_to_fixed_record_type_1): Update.
1307 (ada_template_to_fixed_record_type_1): Likewise.
1308 (template_to_static_fixed_type): Likewise.
1309 (to_record_with_fixed_variant_part): Likewise.
1310 (to_fixed_record_type): Likewise.
1311 (to_fixed_array_type): Likewise.
1312 (to_static_fixed_type): Likewise.
1313
d4ce0d3f
TT
13142008-08-23 Jim Blandy <jimb@redhat.com>
1315
1316 PR macros/607:
1317 * symmisc.c (print_symbol_bcache_statistics): Include statistics
1318 for the macro bcache.
1319
2e668a5d
TT
13202008-08-23 Tom Tromey <tromey@redhat.com>
1321
1322 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
1323 (argc): Now 31 bits.
1324
75a2d5e7
TT
13252008-08-22 Tom Tromey <tromey@redhat.com>
1326
1327 * NEWS: Move macro entries back under "New commands".
1328
25db0f1b
UW
13292008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1330
1331 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
1332 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
1333 (create_overlay_event_breakpoint): Loop over all objfiles to install
1334 multiple instances of the overlay event breakpoint if present.
1335
0391f248
UW
13362008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1337
1338 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
1339 (info_spu_event_command): Command only supported on SPU architecture.
1340 (info_spu_signal_command): Likewise.
1341 (info_spu_mailbox_command): Likewise.
1342 (info_spu_dma_command): Likewise.
1343 (info_spu_proxydma_command): Likewise.
1344
24a73cce
UW
13452008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1346
1347 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
1348 if the thread has already exited.
1349
e0bb1c1c
PA
13502008-08-22 Pedro Alves <pedro@codesourcery.com>
1351
1352 * infrun.c (proceed): Move back setting previous_inferior_ptid
1353 from here ...
1354 (wait_for_inferior): ... to here.
1355 (fetch_inferior_event): ... and here.
1356
a3ecef73
UW
13572008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1358
1359 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
1360 (deprecated_current_gdbarch_select_hack): Call registers_changed
1361 instead of reinit_frame_cache.
1362 * gdbarch.c: Regenerate.
1363
45148c2e
UW
13642008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1365
1366 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
1367
6a94242b
DJ
13682008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1369
1370 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
1371
5045add0
UW
13722008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1373
1374 * findvar.c (locate_var_value): Do not call get_frame_arch
1375 with a NULL frame argument.
1376
029a67e4
UW
13772008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1378
1379 * frame.h (frame_map_regnum_to_name): Remove prototype.
1380 (frame_map_name_to_regnum): Remove prototype.
1381 * frame.c (frame_map_regnum_to_name): Remove.
1382 (frame_map_name_to_regnum): Remove.
1383 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
1384 instead of frame_map_regnum_to_name.
1385 * ax-gdb.c: Include "user-regs.h".
1386 (gen_expr): Use user_reg_map_name_to_regnum instead of
1387 frame_map_name_to_regnum.
1388 * eval.c: Include "user-regs.h".
1389 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
1390 instead of frame_map_name_to_regnum.
1391 * infcmd.c (registers_info): Likewise.
1392 * parse.c: Include "user-regs.h".
1393 (write_dollar_variable): Use user_reg_map_name_to_regnum
1394 instead of frame_map_name_to_regnum.
1395 * tracepoint.c: Include "user-regs.h".
1396 (encode_actions): Use user_reg_map_name_to_regnum
1397 instead of frame_map_name_to_regnum.
1398 * valops.c: Include "user-regs.h".
1399 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
1400 of frame_map_regnum_to_name.
1401
e84ee240
UW
14022008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1403
1404 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
1405 and manually relocate .opd contents from BFD instead of reading
1406 them from target memory.
1407
0114d602
DJ
14082008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1409
1410 * dwarf2read.c (processing_current_prefix): Delete static
1411 variable.
1412 (process_full_comp_unit): Do not set processing_current_prefix.
1413 (dwarf2_full_name): New function.
1414 (read_func_scope): Do not set processing_current_prefix. Use
1415 determine_prefix.
1416 (read_structure_type): Do not set processing_current_prefix. Remove
1417 unused inner cleanup.
1418 (process_structure_scope): Do not set processing_current_prefix.
1419 (read_enumeration_type): Use dwarf2_full_name.
1420 (determine_class_name): Return a const char *. Put the result
1421 on the objfile obstack. Use dwarf2_full_name.
1422 (read_namespace_type): New function.
1423 (read_namespace): Do not create the type here. Use
1424 determine_prefix.
1425 (read_typedef): Use dwarf2_full_name. Do not pass the name
1426 to init_type.
1427 (read_base_type): Do not pass the name to init_type. Handle
1428 TYPE_FLAG_NOSIGN.
1429 (read_unspecified_type): Do not pass the name to init_type.
1430 (new_symbol): Use dwarf2_full_name instead of
1431 processing_current_prefix.
1432 (read_type_die): Do not set processing_current_prefix. Handle
1433 DW_TAG_namespace.
1434 (determine_prefix): Handle specifications. Return the result
1435 on the objfile obstack. Handle unions correctly.
1436
df8a16a1
DJ
14372008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1438
1439 * buildsym.c (add_symbol_to_list): Do not call
1440 cp_scan_for_anonymous_namespaces here.
1441 (finish_block): Do not call cp_set_block_scope here.
1442 * cp-namespace.c (processing_has_namespace_info)
1443 (processing_current_prefix): Delete.
1444 (cp_initialize_namespace): Do not initialize
1445 processing_has_namespace_info.
1446 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
1447 not check processing_has_namespace_info.
1448 (cp_set_block_scope): Take prefix and namespace info flag as
1449 arguments. Honor namespaces regardless of a demangled name.
1450 * cp-support.h (processing_has_namespace_info)
1451 (processing_current_prefix): Delete declarations.
1452 (cp_set_block_scope): Update prototype.
1453 * dwarf2read.c (processing_has_namespace_info)
1454 (processing_current_prefix): New static variables.
1455 (read_file_scope): Initialize processing_has_namespace_info.
1456 (read_func_scope): Call cp_set_block_scope for C++.
1457 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
1458 * symtab.c (symbol_demangled_name): Accept a const argument.
1459 * symtab.h (symbol_demangled_name): Update prototype.
1460
3567439c
DJ
14612008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1462
1463 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
1464 * blockframe.c (find_pc_partial_function): Likewise.
1465 * buildsym.c (find_symbol_in_list): Likewise.
1466 * c-valprint.c (c_val_print): Likewise.
1467 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
1468 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
1469 * cp-support.c (cp_remove_params): Renamed from remove_params and
1470 made global.
1471 (overload_list_add_symbol): Update call to remove_params.
1472 * cp-support.h (cp_remove_params): Declare.
1473 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
1474 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
1475 * expprint.c (dump_subexp_body_standard): Likewise.
1476 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
1477 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
1478 for messages.
1479 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
1480 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1481 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1482 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
1483 symbols and SYMBOL_PRINT_NAME for messages.
1484 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1485 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
1486 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
1487 SYMBOL_SET_LINKAGE_NAME.
1488 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
1489 * minsyms.c (add_minsym_to_demangled_hash_table): Use
1490 SYMBOL_SEARCH_NAME.
1491 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
1492 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
1493 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
1494 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
1495 (address_info): Use SYMBOL_PRINT_NAME for messages and
1496 SYMBOL_LINKAGE_NAME for lookups.
1497 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
1498 * stabsread.c (patch_block_stabs, define_symbol)
1499 (read_type, read_enum_type, common_block_end)
1500 (cleanup_undefined_types_1, scan_file_globals): Use
1501 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
1502 and SYMBOL_PRINT_NAME.
1503 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
1504 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
1505 cp_remove_params instead of cplus_demangle.
1506 (print_block_frame_labels, print_frame_arg_vars): Use
1507 SYMBOL_LINKAGE_NAME.
1508 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
1509 SYMBOL_LINKAGE_NAME.
1510 (dump_symtab_1, print_symbol, print_partial_symbols)
1511 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
1512 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
1513 (SYMBOL_SET_LINKAGE_NAME): New.
1514 (SYMBOL_SET_NAMES): Add a comment.
1515 * tracepoint.c (set_traceframe_context, validate_actionline)
1516 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
1517 lookups and SYMBOL_PRINT_NAME for output.
1518 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
1519 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1520
aded6f54
PA
15212008-08-21 Pedro Alves <pedro@codesourcery.com>
1522
1523 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
1524 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
1525 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
1526 obj_section_addr and obj_section_endaddr.
1527 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
1528 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1529 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
1530 (find_extant_func_descr): Likewise.
1531 * solib-frv.c (frv_relocate_main_executable): Use
1532 obj_section_addr.
1533 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
1534 obj_section_addr and obj_section_endaddr.
1535
158c7665
PH
15362008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
1537
1538 * NEWS: Amplify last entry on boolean types in Ada.
1539
f2f0e013
DJ
15402008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1541
1542 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
1543 Make the dwarf2_cu * parameter output as well as input. Update it if
1544 we follow a reference to another CU.
1545 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
1546 (die_type, die_containing_type): Update calls to changed functions.
1547 Use the returned CU along with the returned DIE.
1548 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
1549
03dd20cc
DJ
15502008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1551
1552 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
1553 in the DIEs here.
1554 (process_queue): Do not read in the DIEs here.
1555 (psymtab_to_symtab_1): Update call to queue_comp_unit.
1556 (read_full_die): Do not call queue_comp_unit from here.
1557 (maybe_queue_comp_unit): New function.
1558 (follow_die_ref): Use it.
1559
b60c80d6
DJ
15602008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1561
1562 * dwarf2read.c (struct attribute): Move earlier.
1563 (struct die_info): Change attrs to a trailing array.
1564 (dwarf_alloc_die): Take the number of attributes. Allocate space
1565 for them.
1566 (read_full_die): Update call to dwarf_alloc_die. Do not manually
1567 allocate attributes.
1568
51545339
DJ
15692008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1570
1571 * dwarf2read.c (REF_HASH_SIZE): Delete.
1572 (struct dwarf2_cu): Replace die_ref_table with die_hash.
1573 (struct die_info): Remove next_ref.
1574 (store_in_ref_table): Remove offset argument. Rewrite to use
1575 htab_find_slot_with_hash.
1576 (die_hash, die_eq): New.
1577 (read_comp_unit): Allocate the die_hash.
1578 (read_die_and_children): Update call to store_die_ref.
1579 (follow_die_ref): Rewrite to use htab_find_with_hash.
1580
7475d072
DJ
15812008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1582
1583 * dwarf2read.c (free_die_list, copy_die): Delete.
1584 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
1585 on the obstack.
1586 (read_full_die): Update call to dwarf_alloc_die. Allocate
1587 attributes on the CU obstack.
1588 (free_one_comp_unit): Do not call free_die_list.
1589
1d325ec1
DJ
15902008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1591
1592 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
1593 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
1594 sibling list.
1595 (read_full_die): Do not allocate DIEs for abbrev 0.
1596 (follow_die_ref): Correct error message.
1597
b96e2927
PA
15982008-08-20 Pedro Alves <pedro@codesourcery.com>
1599
1600 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
1601 there are no symbols loaded, instead of throwing a generic error.
1602 (decode_variable): Likewise.
1603
f1f6aadf
PA
16042008-08-20 Pedro Alves <pedro@codesourcery.com>
1605
1606 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
1607 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
1608 macros.
1609 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
1610 and offset. Use size_t instead of unsigned long.
1611 (build_objfile_section_table): Use size_t instead of unsigned
1612 long.
1613 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
1614 gone.
1615 (find_pc_sect_section): Use obj_section_addr and
1616 obj_section_endaddr.
1617 * symfile.c (symfile.c): Remove code that maps sections
1618 offsets in "addr" to the object's sections.
1619 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
1620 * gcore.c (gcore_create_callback): Use obj_section_addr and
1621 obj_section_endaddr.
1622 * maint.c (print_objfile_section_info): Likewise.
1623 * printcmd.c (sym_info): Use obj_section_addr and
1624 obj_section_endaddr.
1625 * symtab.c (fixup_section): Likewise.
1626
3923a2b2
MK
16272008-08-20 Mark Kettenis <kettenis@gnu.org>
1628
1629 * sparc-tdep.c: Make some comments catch up with reality.
1630
b3eb342c
VP
16312008-08-20 Vladimir Prus <vladimir@codesourcery.com>
1632
1633 * NEWS: Mention 'set target-async'
1634
7f7efbd9
VP
16352008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1636
1637 * infrun.c (resume): If the thread is placed to the deferred step
1638 queue, mark it as running.
1639
9908b566
VP
16402008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1641
1642 Make sure target supports non-stop.
1643 * infcmd.c (run_command_1, attach_command): If non-stop mode
1644 is requested, verify the target supports it.
1645 * linux-nat.c (linux_nat_supports_non_stop): New.
1646 (linux_nat_add_target): Register the above.
1647 * target.c (find_default_supports_non_stop)
1648 (target_supports_non_stop): New.
1649 (init_dummy_target): Register find_default_supports_non_stop.
1650 * target.h (struct target_ops): New field to_supports_non_stop.
1651 (target_supports_non_stop): New.
1652
c6ebd6cf
VP
16532008-08-19 Pedro Alves <pedro@codesourcery.com>
1654 Vladimir Prus <vladimir@codesourcery.com>
1655
1656 * target.c (target_async_permitted, target_async_permitted_1)
1657 (set_maintenance_target_async_permitted)
1658 (show_maintenance_target_async_permitted): New.
1659 (initialize_targets): Register 'set target-async'.
1660 * target.h (target_async_permitted): Declare.
1661 * linux-nat.c (linux_nat_async_enabled)
1662 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
1663 (show_maintenance_linux_async_permitted): Remove.
1664 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
1665 (get_pending_events, linux_nat_async): Use target_async_permitted.
1666 (linux_nat_set_async_mode): Remove, moving the only used bits
1667 into...
1668 (linux_nat_setup_async): This.
1669 (_initialize_linux_nat): Do not register 'maint set linux-async'.
1670 Use linux_nat_setup_async.
1671 * remote.c (remote_async_permitted, remote_async_permitted_set)
1672 (set_maintenance_remote_async_permitted)
1673 (show_maintenance_remote_async_permitted): Remove.
1674 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
1675 (remote_is_async_p): Use target_async_permitted.
1676 (_initialize_remote): Don't register 'main set remote-async'.
1677 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
1678 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
1679 * mi/mi-main.c (mi_cmd_list_target_features): New.
1680
073120b9
VP
16812008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1682
1683 * target.c (maybe_kill_then_attach)
1684 (maybe_kill_then_create_inferior): Remove.
1685 (update_current_target): Do not default to_attach,
1686 to_create_inferiour, to_is_async_p.
1687
690cc4eb 16882008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
1689
1690 Changes for supporting boolean types in debugging data.
690cc4eb
PH
1691 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
1692 API to return LONGEST values rather than struct values.
1693 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
1694 and discrete_type_high_bound.
1695 (to_fixed_range_type): Create a range type in cases where
1696 argument is base type and its limits are representable as ints.
1697 (ada_is_modular_type): Correct so that base type must be integral.
1698 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
1699 keywords when they appear alone, since we are phasing out
bfb8797a 1700 direct representation of these identifiers in debugging data.
690cc4eb
PH
1701 * ada-exp.y: Define 'true' and 'false' as primaries.
1702 (type_boolean): New function.
1703 (type_int,type_long,type_long_long,type_floattype_double)
1704 (type_long_double): Remove uses of current_gdbarch for consistency
1705 with type_boolean.
1706 (write_int): Change comment to indicate that it might write boolean
1707 constant as well.
1708 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
1709 type, since will no longer be represented as enumerated type in
1710 debugging data.
1711 * ada-valprint.c (print_optional_low_bound): Handle boolean case
1712 as well.
bfb8797a
PH
1713 * NEWS: Note support boolean types.
1714
39540081
PA
17152008-08-18 Pedro Alves <pedro@codesourcery.com>
1716
1717 * bsd-uthread.c (bsd_uthread_close): New.
1718 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
1719 target.
1720 (bsd_uthread_solib_loaded): Fix typo.
1721 (bsd_uthread_target): Register bsd_uthread_close.
1722
87ab71f0
PA
17232008-08-18 Pedro Alves <pedro@codesourcery.com>
1724
1725 * corelow.c (core_open): Assume there was no upper layer left
1726 behind from a previous inferior.
1727 * target.c (pop_all_targets): Rename to ...
1728 (pop_all_targets_above): ... this. Add a target stratum
1729 parameter. Use it instead of hardcoding the dummy_stratum.
1730 (pop_all_targets): New, defer to pop_all_targets_above.
1731 (target_preopen): Use pop_all_targets_above.
1732 * target.h (pop_all_targets_above): Declare.
1733
5231c1fd
PA
17342008-08-18 Pedro Alves <pedro@codesourcery.com>
1735
1736 * gdbthread.h (thread_change_ptid): Declare.
1737 * infrun.c (infrun_thread_ptid_changed): New.
1738 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
1739 thread_ptid_changed observer.
1740 * regcache.c (regcache_thread_ptid_changed): New.
1741 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
1742 thread_ptid_changed observer.
1743 * thread.c (thread_change_ptid): New.
1744
f98dfd4b
TT
17452008-08-18 Tom Tromey <tromey@redhat.com>
1746
1747 * symfile.c (reread_symbols): Update.
1748 * solib-sunos.c (allocate_rt_common_objfile): Update.
1749 * objfiles.c (allocate_objfile): Update.
1750 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
1751 Remove.
1752
d87ecdfb
TT
17532008-08-18 Tom Tromey <tromey@redhat.com>
1754
1755 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
1756 obstack.
1757
46a9b8ed
DJ
17582008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
1759
1760 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
1761 lr_register.
1762 (rs6000_in_function_epilogue_p): Check for bctr.
1763 (skip_prologue): Initialize lr_register. Set lr_reg to a register
1764 number. Set gpr_mask and used_bl. Continue scanning while some
1765 expected registers are not saved. Set lr_register if LR is not
1766 stored.
1767 (rs6000_frame_cache): Handle gpr_mask and lr_register.
1768
44feb3ce
TT
17692008-08-17 Tom Tromey <tromey@redhat.com>
1770
1771 PR gdb/1535:
1772 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
1773 (ep_find_event_name_end): Remove.
1774 (catch_fork_temporary, catch_vfork_temporary,
1775 catch_fork_permanent, catch_vfork_permanent): New constants.
1776 (catch_vfork, catch_fork): Remove.
1777 (catch_fork_command_1): Add 'command' argument. Remove
1778 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
1779 all cases.
1780 (catch_exec_command_1): Add 'command' argument; remove
1781 'tempflag'. Handle NULL 'arg'.
1782 (catch_load_command_1): Likewise.
1783 (catch_unload_command_1): Likewise.
1784 (catch_ada_exception_command): Likewise.
1785 (catch_assert_command): Likewise.
1786 (catch_catch_command): New function.
1787 (catch_throw_command): Likewise.
1788 (catch_command_1): Remove.
1789 (catch_command): Just call error.
1790 (tcatch_command): Likewise.
1791 (catch_cmdlist): New global.
1792 (tcatch_cmdlist): Likewise.
1793 (add_catch_command): New function.
1794 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
1795 commands. Create all catch sub-commands.
1796
0d6431e2
PA
17972008-08-17 Pedro Alves <pedro@codesourcery.com>
1798
1799 * gdbthread.h: Add comments.
1800 * stack.c (get_selected_block): Return 0 on an exited thread.
1801 * top.c (execute_command): Check for is_stopped, not !is_running.
1802 * event-top.c (command_handler): Likewise.
1803
8931f526
PA
18042008-08-16 Pedro Alves <pedro@codesourcery.com>
1805
1806 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
1807 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
1808 (mi_cmd_exec_finish): Remove "return".
1809
aa76d38d
PA
18102008-08-16 Pedro Alves <pedro@codesourcery.com>
1811
1812 * target.h (pop_all_targets): Declare.
1813 * target.c (pop_all_targets): New.
1814 * top.c (quit_target): Pop all targets instead of just closing the
1815 current.
1816
311a4e6b
TJB
18172008-08-16 Vladimir Prus <vladimir@codesourcery.com>
1818 Thiago Jung Bauermann <bauerman@br.ibm.com>
1819
1820 * cli-script.c (read_next_line): Add parse_commands argument.
1821 (recurse_read_control_structure): Adapt to new read_next_line
1822 signature.
1823 (read_command_lines): Add parse_commands argument.
1824 (define_command): Adapt to new read_command_lines signature.
1825 (document_command): Likewise.
1826 * breakpoint.c (commands_command): Likewise.
1827 * defs.h (read_command_lines): Adjust function prototype.
1828
24209737
PH
18292008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
1830
1831 * ada-lang.c (pos_atr): Account for the possibility that the
1832 argument may be a reference.
1833
9f1d5432
PH
18342008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
1835
1836 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
1837 ('F' format) for @FIX names generated by the loader, retaining only
1838 the minimal symbols (and no partial symbol tables) for these names.
1839 Fixes warning messages about symbols that are found in partial
1840 symbol tables, but not full symbol tables.
1841
83c265ab
PA
18422008-08-16 Pedro Alves <pedro@codesourcery.com>
1843
1844 * infrun.c (fetch_inferior_event): Only call normal_stop if not
1845 stopping quietly.
1846
604c2f83
LM
18472008-08-15 Luis Machado <luisgpm@br.ibm.com>
1848
1849 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
1850 Include "features/rs6000/powerpc-vsx64.c".
1851 (ppc_supply_vsxregset): New function.
1852 (ppc_collect_vsxregset): New function.
1853 (IS_VSX_PSEUDOREG): New macro.
1854 (IS_EFP_PSEUDOREG): New macro.
1855 (vsx_register_p): New function.
1856 (ppc_vsx_support_p): New function.
1857 (rs6000_builtin_type_vec128): New function.
1858 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
1859 correct names for VSX registers and EFPR registers.
1860 (rs6000_pseudo_register_type): Return correct types for VSX
1861 and EFPR registers.
1862 (rs6000_pseudo_register_reggroup_p): Return correct group for
1863 VSX and EFPR registers.
1864 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
1865 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
1866 (vsx_pseudo_register_read): New function.
1867 (vsx_pseudo_register_write): New function.
1868 (efpr_pseudo_register_read): New function.
1869 (efpr_pseudo_register_write): New function.
1870 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
1871 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
1872 (rs6000_gdbarch_init): Declare have_vsx.
1873 Initialize new upper half VSX registers.
1874 Initialize VSX-related and EFPR-related pseudo-registers variables.
1875 Adjust the number of pseudo registers accordingly.
1876
1877 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
1878 and SIZEOF_VSRREGS.
1879 (gdb_vsxregset_t): New type.
1880 (have_ptrace_getsetvsxregs): New variable.
1881 (fetch_vsx_register): New function.
1882 (fetch_register): Handle VSX registers.
1883 (fetch_vsx_registers): New function.
1884 (fetch_ppc_registers): Handle VSX registers.
1885 (store_ppc_registers): Handle VSX registers.
1886 (store_vsx_register): New function.
1887 (store_register): Handle VSX registers.
1888 (store_vsx_registers): New function.
1889 (ppc_linux_read_description): Handle VSX-enabled inferiors.
1890 (gdb_vsxregset_t): New type.
1891 (supply_vsxregset): New function.
1892 (fill_vsxregset): New function.
1893
1894 * ppc-tdep.h (vsx_register_p): New prototype.
1895 (vsx_support_p): New prototype.
1896 (ppc_vsr0_regnum): New variable.
1897 (ppc_vsr0_upper_regnum): Likewise.
1898 (ppc_efpr0_regnum): Likewise.
1899 (ppc_builtin_type_vec128): New type.
1900 (ppc_num_vsrs): New constant.
1901 (ppc_num_vshrs): New constant.
1902 (ppc_num_efprs): Likewise.
1903 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
1904 (ppc_supply_vsxregset): New prototype.
1905 (ppc_collect_vsxregset): New prototype.
1906
1907 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
1908 Include "features/rs6000/powerpc-vsx64l.c".
1909 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
1910 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
1911 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
1912 (ppc_linux_regset_from_core_section): Handle VSX core section.
1913 (ppc_linux_core_read_description): Support VSX-enabled core files.
1914
1915 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
1916 Declare tdesc_powerpc_vsx64l
1917
1918 * corelow.c (get_core_register_section): Support VSX-enabled
1919 core files.
1920
1921 * features/rs6000/power-vsx.xml: New VSX descriptions.
1922 * features/rs6000/powerpc-vsx32.xml: New file.
1923 * features/rs6000/powerpc-vsx32l.xml: New file.
1924 * features/rs6000/powerpc-vsx64.xml: New file.
1925 * features/rs6000/powerpc-vsx64l.xml: New file.
1926 * features/rs6000/powerpc-vsx32.c: New file (generated).
1927 * features/rs6000/powerpc-vsx32l.c: New file (generated).
1928 * features/rs6000/powerpc-vsx64.c: New file (generated).
1929 * features/rs6000/powerpc-vsx64l.c: New file (generated).
1930 * features/Makefile: Updated with new descriptions.
1931 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
1932 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
1933
dde7c0a9
VP
19342008-08-15 Vladimir Prus <vladimir@codesourcery.com>
1935
1936 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
1937 call linux_target twice.
1938
ebd67d87
AR
19392008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
1940
1941 * nto-tdep.c (lm_info): Updated struct lm_info definition from
1942 solib-svr4.c
1943 (LM_ADDR): Use l_addr if available; if not, use link map and set
1944 l_addr.
1945
886a217c
TT
19462008-08-14 Tom Tromey <tromey@redhat.com>
1947
1948 * macrocmd.c (macro_define_command): Check for NULL argument.
1949 (macro_undef_command): Likewise.
1950
3d488bfc
PA
19512008-08-14 Pedro Alves <pedro@codesourcery.com>
1952
1953 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
1954
33e5cbd6
PA
19552008-08-13 Pedro Alves <pedro@codesourcery.com>
1956
1957 * breakpoint.c (always_inserted_auto, always_inserted_on)
1958 (always_inserted_off, always_inserted_enums): New.
1959 (always_inserted_mode): Change type to char* and point to
1960 always_inserted_auto.
1961 (show_always_inserted_mode): In auto mode, also show the current
1962 effect of the option.
1963 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
1964 (_initialize_breakpoint): Make the "set breakpoints
1965 always-inserted" command an enum command. Extend help to describe
1966 the auto mode.
1967
8fbde58b
UW
19682008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1969
1970 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
1971 query valid) bit. Ignore bits outside the condition field.
1972 (info_spu_proxydma_command): Ignore bits outside the field.
1973
11fa8e43
MS
19742008-08-12 Michael Snyder <msnyder@vmware.com>
1975
1976 * MAINTAINERS: Update my email address.
1977
fcb09a75
UW
19782008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
1979
1980 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
1981
a6f3e723
SL
19822008-08-12 Pedro Alves <pedro@codesourcery.com>
1983
1984 Add no-ack mode to the remote protocol --- optionally stop ACKing
1985 packets and responses when we have a reliable communication
1986 medium.
1987
1988 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
1989
1990 * remote.c (struct remote_state): Add noack_mode field.
1991 (PACKET_QStartNoAckMode): New.
1992 (remote_start_remote): Don't any outstanding packet here.
1993 (remote_open_1): Clear noack_mode. Ack any outstanding packet
1994 here. Activate noack mode if requested.
1995 (remote_protocol_features): Add QStartNoAckMode.
1996 (remote_open_1):
1997 (putpkt_binary): Don't send ack in noack mode.
1998 (read_frame): Don't recompute the checksum in noack mode.
1999 (getpkt_sane): Skip sending ack if in noack mode.
2000 (_initialize_remote): Add set/show remote noack mode.
2001 * NEWS: Note the new features.
2002
8ab3d180
KB
20032008-08-11 Kevin Buettner <kevinb@redhat.com>
2004
2005 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
2006 New macros.
2007 (rs6000_skip_main_prologue): New function.
2008 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
2009
63a61bf6
SL
20102008-08-11 Sandra Loosemore <sandra@codesourcery.com>
2011
2012 * MAINTAINERS (Write After Approval): Add self.
2013
9d4fde75
SS
20142008-08-11 Stan Shebs <stan@codesourcery.com>
2015
2016 ARM BE8 support.
2017 * disasm.c (gdb_disassemble_info): Set endian_code.
2018 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
2019 * gdbarch.h, gdbarch.c: Regenerate.
2020 * arch-utils.c (initialize_current_architecture): Set the
2021 default byte_order_for_code.
2022 (gdbarch_info_init): Ditto.
2023 (gdbarch_info_fill): Ditto.
2024 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
2025 (thumb_analyze_prologue): Swap halfword if code endianness is
2026 different from general endianness.
2027 (arm_skip_prologue): Similarly.
2028 (arm_scan_prologue): Ditto.
2029 (thumb_get_next_pc): Ditto.
2030 (arm_get_next_pc): Ditto.
2031 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
2032 choose correct endianness for breakpoints.
2033
6c613132
PA
20342008-08-10 Pedro Alves <pedro@codesourcery.com>
2035
2036 * bsd-kvm.c: Include "gdbthread.h".
2037 (bsd_kvm_ptid): New.
2038 (bsd_kvm_open): Add a main thread.
2039 (bsd_kvm_close): Delete it.
2040 (bsd_kvm_thread_alive): New.
2041 (bsd_kvm_pid_to_str): New.
2042 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
2043 bsd_kvm_pid_to_str.
2044 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
2045
6eb7ee03
PA
20462008-08-09 Pedro Alves <pedro@codesourcery.com>
2047
2048 * buildsym.c (start_subfile): Properly cast sentinel in concat
2049 call.
2050 * cp-name-parser.y: Include "config.h".
2051 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
2052 concat call.
2053 * gdb_select.h: Include sys/time.h if sys/select.h is not
2054 available.
2055
444c3224
PA
20562008-08-09 Pedro Alves <pedro@codesourcery.com>
2057
2058 * go32-nat.c: Include "gdbthread.h".
2059 (go32_stop, go32_kill_inferior): Delete the main thread.
2060 (go32_create_inferior): Add it.
2061 (go32_thread_alive, go32_pid_to_str): New.
2062 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
2063
9d0b3624
PA
20642008-08-09 Pedro Alves <pedro@codesourcery.com>
2065
2066 * go32-nat.c (fetch_register, store_register): Pass the regcache
2067 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
2068 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
2069 (struct seg_descr, struct seg_descr): pack the whole struct
2070 instead of each member individually.
2071
509238d6
AS
20722008-08-09 Andreas Schwab <schwab@suse.de>
2073
2074 * python/python.c (_initialize_python): Use unabbreviated commands
2075 in prefix name.
2076
c068b4e8
DJ
20772008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
2078
2079 * Makefile.in (stamp-h): Also create .deps.
2080
21374e5f
TT
20812008-08-09 Tom Tromey <tromey@redhat.com>
2082
2083 * Makefile.in (generated_files): Add GNULIB_H.
2084
7be67755
DA
20852008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2086
2087 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
2088 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
2089 Revise comment.
2090 (pa64_current_sos): Remove map private warning warning.
2091 * solib-som.c: Include string.h and sys/utsname.h.
2092 (get_hpux_major_release): New function.
2093 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
2094 about shared library private mapping on HP-UX 11 and later. Only force
2095 private mapping of shared libraries on HP-UX 10 and earlier.
2096 (link_map_start): Delete warning.
2097
e0c62198
L
20982008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
2099 H.J. Lu <hongjiu.lu@intel.com>
2100 Mark Kettenis <kettenis@gnu.org>
2101
2102 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
2103 (amd64_init_frame_cache): Initialize saved_sp_reg.
2104 (amd64_analyze_stack_align): New.
2105 (amd64_analyze_prologue): Call it.
2106 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
2107 %rip to 8 when halfway aligning the stack.
2108
2109 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
2110 AMD64_R14_REGNUM.
2111
2112 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
2113 saved_sp_reg.
2114 (i386_alloc_frame_cache): Remove stack_align. Initialize
2115 saved_sp_reg to -1.
2116 (i386_analyze_stack_align): Rewrite.
2117 (i386_frame_cache): Use saved_sp_reg if it is valid.
2118
b9db4ced
UW
21192008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
2120
2121 * target.c: Include "solib.h".
2122 (target_pre_inferior): Call no_shared_libraries.
2123 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
2124 or clear_solib.
2125 (attach_command): Do not call clear_solib.
2126
3979a37f
MK
21272008-08-09 Mark Kettenis <kettenis@gnu.org>
2128
2129 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
2130 the %eip register.
2131
2b26d9fa
TT
21322008-08-08 Tom Tromey <tromey@redhat.com>
2133
2134 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
2135 POSTCOMPILE.
2136 (python-utils.o): Likewise.
2137
f1648876
AS
21382008-08-08 Andreas Schwab <schwab@suse.de>
2139
2140 * corefile.c (_initialize_core): Remove spurious paren from set
2141 gnutarget doc string.
2142
b7622095
LM
21432008-08-08 Luis Machado <luisgpm@br.ibm.com>
2144
2145 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 2146 Define PPC_FEATURE_BOOKE.
b7622095
LM
2147 (ppc_linux_get_hwcap): New function.
2148 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
2149 4-bytes alignment restrictions.
2150 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
2151 positioning of the read/write flags.
2152 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
2153 4-bytes alignment.
2154
2dc38344
PA
21552008-08-08 Pedro Alves <pedro@codesourcery.com>
2156
2157 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2158
2159 * win32-nat.c (win32_add_thread): Change thread argument type to
2160 ptid_t. Adjust.
2161 (win32_add_thread): Adjust.
2162 (win32_delete_thread): Change thread argument type to ptid_t.
2163 Adjust.
2164 (win32_fetch_inferior_registers, win32_store_inferior_registers)
2165 (win32_resume, get_win32_debug_event, get_win32_debug_event)
2166 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
2167 (init_win32_ops): Put to_magic last.
2168 (win32_win32_thread_alive): Adjust.
2169
4d6c6261
PA
21702008-08-08 Pedro Alves <pedro@codesourcery.com>
2171
2172 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
2173 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
2174
e5ef4d75
PA
21752008-08-08 Pedro Alves <pedro@codesourcery.com>
2176
2177 * remote-m32r-sdi.c: Include "gdbthread.h".
2178 (remote_m32r_ptid): New.
2179 (m32r_close): Delete the main thread.
2180 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
2181 main thread.
2182 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
2183 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
2184
a417dc56
RW
21852008-08-07 Tom Tromey <tromey@redhat.com>
2186 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2187
2188 * aclocal.m4, configure: Rebuild.
2189 * configure.in: Call ZW_CREATE_DEPDIR,
2190 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
2191 (MAKE, GMAKE): New substs.
2192 * acinclude.m4: Include depstand.m4.
2193 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
2194 COMPILE, POSTCOMPILE, depcomp): New variables.
2195 Remove all _h variables.
2196 Remove many .o targets.
2197 ($(srcdir)/copying.c): avoid backslash-newline after comment
2198 sign (@maintainer_mode_true@).
2199 (HFILES_NO_SRCDIR): Regenerate.
2200 (generated_files): New variable.
2201 (all_gdbtk_cflags): Likewise.
2202 (.c.o): Rewrote.
2203 (init.o, version.o, copying.o): Remove.
2204 (distclean): Remove DEPDIR.
2205 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
2206 printcmd.o, procfs.o, v850ice.o): Rewrite.
2207 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
2208 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
2209 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
2210 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
2211 gdbtk-wrapper.o): Likewise.
2212 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
2213 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
2214 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
2215 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
2216 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
2217 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
2218 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
2219 tui-wingeneral.o, tui-winsource.o): Likewise.
2220 (all_object_files): New variable.
2221 ($(all_object_files)): New target.
2222 Include dependency files, when using GNU Make.
2223
12ab8a60
UW
22242008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2225
2226 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
2227 the valid bit set. Ensure display order respects partial
2228 order defined by dependency bits.
2229
6536cc32
DA
22302008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2231
2232 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
2233 setup.
2234
f73a15e4
MK
22352008-08-06 Mark Kettenis <kettenis@gnu.org>
2236
2237 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
2238 OpenBSD 4.3.
2239
d57a3c85
TJB
22402008-08-06 Vladimir Prus <vladimir@codesourcery.com>
2241 Tom Tromey <tromey@redhat.com>
2242 Thiago Jung Bauermann <bauerman@br.ibm.com>
2243 Doug Evans <dje@google.com>
2244
2245 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
2246 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
2247 PYTHON_CFLAGS): New.
2248 (python_h, python_internal_h): New.
2249 (cli-script.o): Depend on python.h
2250 (python.o, python-utils.o): New.
2251 * cli/cli-script.c (print_command_lines): Handle python_control.
2252 (execute_control_command): Handle python_control.
2253 (execute_control_command_untraced): New function.
2254 (while_command): Call execute_control_command_untraced.
2255 (if_command): Likewise.
2256 (get_command_line): Remove static attribute.
2257 (read_next_line): Handle "python".
2258 (recurse_read_control_structure): Handle python_control.
2259 (read_command_lines): Handle python_control.
2260 Include python.h.
2261 * cli/cli-script.h (get_command_line): Add prototype.
2262 (execute_control_command_untraced): Likewise.
2263 * configure.ac: Add --with-python.
2264 * defs.h (enum command_control_type) <python_control>: New
2265 constant.
2266 * python/python-internal.h: New file.
2267 * python/python.c: New file.
2268 * python/python.h: New file.
2269 * python/python-utils.c: New file.
2270 * NEWS: Mention Python scripting support and its new commands.
2271
5141027d
UW
22722008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2273
2274 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
2275
353cfe88
PM
22762008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2277
f1648876 2278 * MAINTAINERS (Write After Approval): Add self.
353cfe88 2279
d6b74ac4
PM
22802008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2281
2282 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
2283 (insert_breakpoint_locations): Likewise.
2284
ef0d312a
MS
22852008-08-05 Phil Muldoon <pmuldoon@redhat.com>
2286
2287 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
2288 breakpoint.
2289 (set_longjmp_breakpoint): Likewise.
2290
fb6d93b2
UW
22912008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2292
2293 PR build/2490
2294 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
2295 defined.
2296
e6ad058a
TT
22972008-08-05 Tom Tromey <tromey@redhat.com>
2298
2299 * bcache.c (deprecated_bcache_added): Initialize obstack.
2300 (bcache_xmalloc): Don't initialize obstack.
2301 (bcache_xfree): Conditionally free obstack.
2302 (bcache_memory_used): Update.
2303
11d31d94
TT
23042008-08-05 Tom Tromey <tromey@redhat.com>
2305
2306 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
2307 bcache_full.
2308 (append_psymbol_to_list): Accept a const pointer.
2309 (add_psymbol_to_list): Fix const correctness.
2310 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
2311 (bcache_full): Declare.
2312 * bcache.c (bcache_data, deprecated_bcache): Remove.
2313 (bcache): Use bcache_full.
2314 (bcache_full): Rename from deprecated_bcache_added. Change return
2315 type.
2316
5be973eb
SS
23172008-08-04 Stan Shebs <stan@codesourcery.com>
2318
2319 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
2320 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
2321 (enable_break): Remove test of BKPT_AT_SYMBOL.
2322
5062cc19
KS
23232008-08-02 Keith Seitz <keiths@redhat.com>
2324
2325 * acinclude.m4: Include ../config/tcl.m4 to pick up
2326 standard Tcl configury bits.
2327 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
2328 * configure.ac: Don't check if ../itcl exists when building
2329 gdbtk. It could be installed.
2330 Rewrite gdbtk configury to allow for using system-supplied
f1648876 2331 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
2332 itcl and itk.
2333 * Makefile.in: Remove everything related to itcl and itk.
2334 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
2335 configure.ac.
2336 Remove v850ice.o build rule.
2337 (ALL_TCL_CFLAGS): New convenience defintion. Change all
2338 gdbtk sources to use it.
2339 * configure: Regenerate.
f1648876 2340
6d76a53d
SS
23412008-07-31 Stan Shebs <stan@codesourcery.com>
2342
2343 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
2344
ed7c5e43
SS
23452008-07-30 Stan Shebs <stan@codesourcery.com>
2346
2347 * objfiles.c (TARGET_KEEP_SECTION): Remove.
2348 (add_to_objfile_sections): Remove use.
2349
22ad7fee
TT
23502008-07-29 Tom Tromey <tromey@redhat.com>
2351
2352 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
2353 (lookup_cmd_composition): Likewise.
2354
d5529a84
TT
23552008-07-29 Tom Tromey <tromey@redhat.com>
2356
2357 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
2358 dead code. Fix indentation.
2359
938f4ca8
SS
23602008-07-29 Stan Shebs <stan@codesourcery.com>
2361
2362 * main.c (captured_main): Remove long-unused #if 0 blocks.
2363
7f4b89d1
TT
23642008-07-28 Tom Tromey <tromey@redhat.com>
2365
2366 * annotate.h (deprecated_annotate_starting_hook): Remove.
2367 (deprecated_annotate_stopped_hook): Remove.
2368 (deprecated_annotate_exited_hook): Remove.
2369 * Makefile.in (annotate.o): Depend on observer_h.
2370 * top.c (deprecated_delete_breakpoint_hook): Remove.
2371 (deprecated_create_breakpoint_hook): Likewise.
2372 (deprecated_modify_breakpoint_hook): Likewise.
2373 * interps.c (clear_interpreter_hooks): Update for removed hooks.
2374 * breakpoint.c (mention): Don't call removed hook.
2375 (delete_breakpoint): Likewise.
2376 (disable_breakpoint): Likewise.
2377 (do_enable_breakpoint): Likewise.
2378 * annotate.c: Include observer.h.
2379 (breakpoint_changed): Change type of argument.
2380 (_initialize_annotate): Register observers.
2381 (deprecated_annotate_starting_hook): Remove.
2382 (deprecated_annotate_stopped_hook): Remove.
2383 (deprecated_annotate_exited_hook): Remove.
2384 (annotate_starting): Update for hook removal.
2385 (annotate_stopped): Likewise.
2386 (annotate_exited): Likewise.
2387 * defs.h (deprecated_delete_breakpoint_hook): Remove.
2388 (deprecated_create_breakpoint_hook): Likewise.
2389 (deprecated_modify_breakpoint_hook): Likewise.
2390
8641e682
TT
23912008-07-28 Tom Tromey <tromey@redhat.com>
2392
2393 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
2394
064ef605
DJ
23952008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2396
2397 * configure.ac: Check for the GNU/Linux ptrace signature.
2398 * configure: Regenerated.
2399
57380f4e
DJ
24002008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2401
2402 * linux-nat.c (resume_callback): Add more debugging output.
2403 (linux_nat_has_pending_sigint): New function, based on
2404 linux_nat_has_pending.
2405 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
2406 (stop_wait_callback): Remove flush_mask handling. Honor
2407 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
2408 to recursive calls.
2409 (linux_nat_has_pending, flush_callback): Remove.
2410 (linux_nat_filter_event): Check for ignore_sigint.
2411 (linux_nat_wait): Remove flush_mask support and call to
2412 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
2413 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
2414
e09490f1
DJ
24152008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2416
2417 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
2418 report events from resumed threads.
2419
e38d4e1a
DJ
24202008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2421
2422 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
2423 (mips_linux_init_abi): Set tdep->syscall_next_pc.
2424 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
2425 mips-tdep.h.
2426 (mips32_next_pc): Handle the syscall instruction.
2427 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
2428 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
2429
fa8de41e
TT
24302008-07-26 Tom Tromey <tromey@redhat.com>
2431
2432 PR gdb/1158:
2433 * valops.c (value_struct_elt): Treat function-valued field as a
2434 static method.
2435
ccb3ac8a
TT
24362008-07-26 Tom Tromey <tromey@redhat.com>
2437
2438 PR gdb/1136:
2439 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
2440 longer tokens first.
2441
d72314c6
VP
24422008-07-26 Vladimir Prus <vladimir@codesourcery.com>
2443
2444 Kill cmd_async_ok.
f1648876
AS
2445 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
2446 (get_cmd_async_ok): Remove.
2447 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
2448 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
2449 * infcmd.c (_initialize_infcmd): Likewise.
2450 * thread.c (_initialize_thread): Likewise.
d72314c6 2451
5b68030f
JM
24522008-07-25 Joseph Myers <joseph@codesourcery.com>
2453
2454 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
2455 128-bit long doubles in even-odd pairs of FPRs. Do not
2456 right-align float arguments for big-endian.
2457 (mips_n32n64_return_value): Apply return value convention for
2458 structs containing one or two floating-point values to soft-float
2459 as well as hard-float. Handle 128-bit long doubles in such
2460 structs.
2461 (mips_o32_push_dummy_call): Only skip one integer register for a
2462 float argument passed in an FPR.
2463
383f836e
TT
24642008-07-25 Tom Tromey <tromey@redhat.com>
2465
2466 * tui/tui-hooks.c: Include observer.h.
2467 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
2468 Remove.
2469 (tui_bp_created_observer, tui_bp_deleted_observer,
2470 tui_bp_modified_observer): New globals.
2471 (tui_install_hooks): Use observers, not events.
2472 (tui_remove_hooks): Likewise.
2473 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
2474 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
2475 globals.
2476 (breakpoint_notify): Check mi_can_breakpoint_notify.
2477 (breakpoint_hooks): Remove.
2478 (mi_cmd_break_insert): Attach observers. Don't use events.
2479 * tracepoint.c: Include observer.h, not gdb-events.h.
2480 (tracepoint_operation, trace_pass_command): Notify observer.
2481 * interps.c: Don't include gdb-events.h.
2482 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
2483 * gdbarch.c: Rebuild.
2484 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
2485 (deprecated_current_gdbarch_select_hack): Notify observer.
2486 * breakpoint.h: Don't include gdb-events.h.
2487 * breakpoint.c: Don't include gdb-events.h.
2488 (condition_command): Notify observer.
2489 (commands_command): Likewise.
2490 (commands_from_control_command): Likewise.
2491 (mention, delete_breakpoint, set_ignore_count): Likewise.
2492 (disable_breakpoint, do_enable_breakpoint): Likewise.
2493 * Makefile.in (gdb_events_h): Remove.
2494 (breakpoint_h): Update.
2495 (COMMON_OBS): Remove gdb-events.o.
2496 (gdb-events.o): Remove.
2497 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
2498 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
2499 * gdb-events.c: Remove.
2500 * gdb-events.h: Remove.
2501 * gdb-events.sh: Remove.
2502
60e569b9
PA
25032008-07-24 Pedro Alves <pedro@codesourcery.com>
2504
2505 * remote.c (remote_threads_extra_info): Don't query the remote
2506 server about info on the internally added main thread.
2507
a6a7f2a5
AR
25082008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
2509
2510 * nto-procfs.c (procfs_attach): Populate initial thread list.
2511 (procfs_wait): Return new pid, built from the inferior status.
2512
e63e4db2
TJB
25132008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
2514
2515 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
2516 * configure: Regenerate.
2517
14ef7606
AR
25182008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
2519
2520 * nto-procfs.c (procfs_xfer_memory): Changed signature.
2521 (procfs_resume): Workaround for dereferencing type-punned pointer
2522 warning.
f1648876 2523 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
2524 correct.
2525 * nto-tdep.h (nto_parse_redirection): Likewise.
2526
cfd8ab24
SS
25272008-07-21 Stan Shebs <stan@codesourcery.com>
2528
2529 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
2530 * gdbarch.sh: Adjust comment to refer to
2531 in_solib_dynsym_resolve_code().
2532 * gdbarch.h, gdbarch.c: Update.
2533 * solib-osf.c: Ditto.
2534 * infrun.c: Ditto.
2535 (handle_inferior_event): Use in_solib_dynsym_resolve_code
2536 unconditionally.
2537 * config/mips/nm-irix5.h: Remove undef of
2538 IN_SOLIB_DYNSYM_RESOLVE_CODE.
2539
781b42b0
TT
25402008-07-21 Tom Tromey <tromey@redhat.com>
2541
2542 * symfile.c (reread_symbols): Don't pass argument to observer.
2543 * exec.c (exec_file_attach): Don't pass argument to observer.
2544 * ada-lang.c (ada_executable_changed_observer): Remove argument.
2545 * symtab.c (symtab_observer_executable_changed): Remove argument.
2546 * observer.sh: Handle functions with no arguments.
2547
a366c65a 25482008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 2549 Chris Demetriou <cgd@google.com>
a366c65a
CD
2550
2551 * elfread.c (elf_symfile_segments): Fix the check that each loadable
2552 section fits within an ELF segment to handle ELF segments that hit
2553 the end of the address space.
2554
073d253f
CD
25552008-07-20 Chris Demetriou <cgd@google.com>
2556
2557 * MAINTAINERS (Write After Approval): Add self.
2558
d7d9f01e
TT
25592008-07-18 Tom Tromey <tromey@redhat.com>
2560
2561 PR gdb/855:
2562 * NEWS: Add entry for macro commands.
2563 * Makefile.in (macrocmd.o): Add gdb_string.h.
2564 * macroscope.h (user_macro_scope): Declare.
2565 (default_macro_scope): Update documentation.
2566 (macro_user_macros): Declare.
2567 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
2568 Use user_macro_scope.
2569 (null_macro_lookup): Remove.
2570 * macrotab.h (macro_callback_fn): Declare.
2571 (macro_for_each): Likewise.
2572 (macro_allow_redefinitions): Likewise.
2573 * macrotab.c (foreach_macro): New function
2574 (macro_for_each): Likewise.
2575 (struct macro_table) <redef_ok>: New field.
2576 (macro_allow_redefinitions): New function.
2577 (new_macro_table): Update.
2578 (macro_define_function): Likewise.
2579 (macro_define_object): Likewise.
2580 * macroscope.c (user_macro_scope): New function.
2581 (default_macro_scope): Use it.
2582 (macro_user_macros): New global.
2583 (standard_macro_lookup): Look in macro_user_macros.
2584 (_initialize_macroscope): New function.
2585 * macroexp.h (macro_is_whitespace, macro_is_digit,
2586 macro_is_identifier_nondigit): Declare.
2587 * macroexp.c (macro_is_whitespace): Rename. No longer static.
2588 (macro_is_digit): Likewise.
2589 (macro_is_identifier_nondigit): Likewise.
2590 (get_identifier): Update.
2591 (get_pp_number): Likewise.
2592 (get_token): Likewise.
2593 * macrocmd.c (skip_ws): New function.
2594 (extract_identifier): Likewise.
2595 (free_macro_definition_ptr): Likewise.
2596 (user_macros): Remove.
2597 (macro_define_command): Implement.
2598 (_initialize_macrocmd): Update.
2599 (macro_undef_command): Implement.
2600 (print_one_macro): New function.
2601 (macro_list_command): Implement.
2602
0f72fb1c
JM
26032008-07-18 Joseph Myers <joseph@codesourcery.com>
2604
2605 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
2606 in BFD ELF check.
2607 * configure: Regenerate.
2608
7c6467a4
PP
26092008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2610
2611 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
2612
680b56ce
AS
26132008-07-15 Andreas Schwab <schwab@suse.de>
2614
2615 * valops.c (value_cast_pointers): Follow typedefs when checking
2616 result of coercion.
2617
7f0df278
DJ
26182008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2619
2620 * block.c (block_function): Renamed to ...
2621 (block_linkage_function): ... this. All callers changed.
2622 * block.h (block_function): Renamed to ...
2623 (block_linkage_function): ... this.
2624
ba2c6aec
DJ
26252008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2626
2627 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
2628
d56907c1
DJ
26292008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2630
2631 * frame.c (frame_sp_unwind): Delete.
2632 (get_frame_sp): Do not use it.
2633 * frame.h (frame_sp_unwind): Delete prototype.
2634
f92aeb88
DJ
26352008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2636
2637 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
2638
ad1193e7
DJ
26392008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2640
2641 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
2642 * frame.c (frame_unwind_address_in_block): Delete.
2643 (get_frame_address_in_block): Do not use it. Check the type
2644 of the next frame first.
2645 (frame_cleanup_after_sniffer): Update comment.
2646 * frame.h (frame_unwind_address_in_block): Delete prototype.
2647 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
2648
ef02daa9
DJ
26492008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2650
2651 * frame.c (frame_func_unwind): Delete.
2652 (get_frame_func): Do not use it.
2653 * frame.h (frame_func_unwind): Delete prototype.
2654 * hppa-tdep.c (hppa_frame_cache): Update comment.
2655 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
2656
96e32df8
SS
26572008-07-14 Stan Shebs <stan@codesourcery.com>
2658
2659 * remote-sim.c (init_gdbsim_ops): Remove
2660 TARGET_REDEFINE_DEFAULT_OPS.
2661
ab8650a3
DJ
26622008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2663
2664 * findvar.c (read_var_value): Remove unused variable.
2665
8c90c137
LM
26662008-07-15 Luis Machado <luisgpm@br.ibm.com>
2667
2668 * infrun.c (handle_inferior_event): Tag threads as stopped
2669 before inserting breakpoints.
2670
4098af0f
HZ
26712008-07-15 Hui Zhu <teawater@gmail.com>
2672
2673 * MAINTAINERS: Added myself to section Write After Approval.
2674
7093c834
PP
26752008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2676
2677 PR gdb/2477
2678 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 2679
56514771
PA
26802008-07-14 Pedro Alves <pedro@codesourcery.com>
2681
2682 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
2683 (i386_dicos_push_dummy_code): New.
2684 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
2685 Register i386_dicos_push_dummy_code.
2686
74ed0bb4
MD
26872008-07-14 Markus Deuling <deuling@de.ibm.com>
2688
2689 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
2690 (mips_n32n64_push_dummy_call, mips_o64_return_value)
2691 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
2692
2693 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
2694 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
2695 (mips_n32n64_fp_arg_chunk_p): Update caller.
2696
2697 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
2698 (mips_n32n64_push_dummy_call): Update caller.
2699
2700 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
2701 current_gdbarch.
2702 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2703 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
2704
2705
2706 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
2707 current_gdbarch.
2708 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
2709 (mips_o64_push_dummy_call): Update caller.
2710
2711 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
2712 (fp_register_arg_p, mips_dump_tdep): Update caller.
2713
2714 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
2715 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
2716
2717 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
2718 current_gdbarch.
2719 (mips32_scan_prologue): Update caller.
2720
2721 (heuristic_proc_start): Add gdbarch as parameter. Replace
2722 current_gdbarch.
2723 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
2724
2725 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2726 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2727 the current architecture. Update call to getregs_supplies.
2728 (getregs_supplies): Add gdbarch as parameter and replace
2729 current_gdbarch.
2730
2731 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
2732 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
2733 NBSD_MIPS_JB_ELEMENT_SIZE.
2734 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
2735 replace current_gdbarch.
2736
2737 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
2738 current_gdbarch.
2739 (mips_fetch_registers, mips_store_registers): Update call
2740 to mips_map_regno.
2741 (mips_load): Use get_regcache_arch to get at the current_architecture
2742 and replace current_gdbarch.
2743
0c501536
PA
27442008-07-13 Pedro Alves <pedro@codesourcery.com>
2745
2746 * thread.c (restore_selected_frame): On fail to restore, select
2747 the innermost frame, and don't crash when warning the user.
2748
db009c8a
JB
27492008-07-13 Hui Zhu <teawater@gmail.com>
2750
2751 * symtab.c (expand_line_sal): Fix a memory leak.
2752
0ffe5012
PA
27532008-07-13 Pedro Alves <pedro@codesourcery.com>
2754
2755 * utils.c (struct continuation): Define as inheriting struct
2756 cleanup.
2757 (add_continuation, do_all_continuations)
2758 (discard_all_continuations, add_intermediate_continuation)
2759 (do_all_intermediate_continuations)
2760 (discard_all_intermediate_continuations): Adjust.
2761
dbba8251
VP
27622008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2763
2764 Skip varobj in running threads.
680b56ce
AS
2765 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
2766 thread is not stopped, skip the varobj.
2767 * Makefile.in: Update dependencies.
dbba8251 2768
e3d6cd5f
VP
27692008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2770
2771 Enable all commands while inferiour is running
680b56ce
AS
2772 * mi/mi-main.c (mi_cmd_execute): Don't check if
2773 inferiour is executing.
e3d6cd5f 2774
b10a37b1
VP
27752008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2776
2777 Allow all CLI command even if target is executing.
680b56ce
AS
2778 * gdb/top.c (execute_command_1): Don't check if the inferiour
2779 is running.
b10a37b1 2780
ea069267
VP
27812008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2782
2783 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
2784 Fix printing of frame, when frame is wrong.
2785
cdc9523a
UW
27862008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2787
2788 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
2789 backchain is unreadable.
2790
d5b25491
UW
27912008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2792
2793 * spu-linux-nat.c: Include "gdbthread.h".
2794 (spu_child_post_startup_inferior): Register main thread.
2795 (spu_child_post_attach): Likewise.
2796 * Makefile.in (spu-linux-nat.o): Update dependencies.
2797
604ead4a
PA
27982008-07-12 Pedro Alves <pedro@codesourcery.com>
2799
2800 Rewrite continuations internals on top of cleanups and plug
2801 continuation arguments leaks.
2802
2803 * defs.h (struct continuation): Make it opaque.
2804 (add_continuation, add_intermediate_continuation): Drop the int
2805 argument of the continuation hook argument. Add
2806 continuation_free_args argument.
2807 (do_all_continuations, do_all_intermediate_continuations): Drop
2808 the error_p argument.
2809
2810 * utils.c (add_continuation): Drop the int argument of the
2811 continuation hook argument. Add continuation_free_args argument.
2812 Reimplement on top of cleanups.
2813 (do_all_continuations): Drop error argument. Reimplement on top
2814 of cleanups.
2815 (discard_all_continuations): Reimplement on top of cleanups.
2816 (add_intermediate_continuation): Drop the int argument of the
2817 continuation hook argument. Add continuation_free_args argument.
2818 Reimplement on top of cleanups.
2819 (do_all_intermediate_continuations): Drop error argument.
2820 Reimplement on top of cleanups.
2821 (discard_all_intermediate_continuations): Reimplement on top of
2822 cleanups.
2823
2824 * breakpoint.c (until_break_command_continuation): Drop error
2825 argument. Add xfree as continuation argument deleter.
2826
2827 * inf-loop.c (inferior_event_handler): On error, discard all
2828 continuations. Adjust to new do_all_intermediate_continuations
2829 and do_all_continuations interfaces.
2830
2831 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
2832 Pass xfree as continuation argument deleter.
2833 (finish_command_continuation): Drop error_p argument. Adjust.
2834 (finish_command_continuation_free_arg): New.
2835 (finish_command): Pass finish_command_continuation_free_arg as
2836 continuation argument deleter. Adjust to new do_all_continuations
2837 interfaces.
2838 (attach_command_continuation): Drop error_p argument.
2839 (attach_command_continuation_free_args): New.
2840 (attach_command): Pass attach_command_continuation_free_args as
2841 continuation argument deleter.
2842
2843 * interps.c (interp_set): Adjust to new do_all_continuations
2844 interfaces.
2845
2846 * event-top.c (stdin_event_handler): In error, also discard the
2847 intermediate continuations.
2848
bfec99b2
PA
28492008-07-12 Pedro Alves <pedro@codesourcery.com>
2850
2851 Replace struct continuation_args by void* and per command structs.
2852
2853 * top.c (execute_command): Remove unused arg1 and arg2 locals.
2854
2855 * breakpoint.c (struct until_break_command_continuation_args):
2856 New.
2857 (until_break_command_continuation): Take a void* instead of a
2858 continuations_arg. Adjust.
2859 (until_break_command): Adjust to use struct
2860 until_break_command_continuation_args instead of struct
2861 continuation_arg.
2862
2863 * infcmd.c (struct step_1_continuation_args): New.
2864 (step_1_continuation): Take a void* instead of a
2865 continuations_arg. Adjust to use struct step_1_continuation_args.
2866 (step_once): Adjust to use struct step_1_continuation_args.
2867
2868 (struct finish_command_continuation_args): New.
2869 (finish_command_continuation): Take a void* instead of a
2870 continuations_arg. Adjust to use struct
2871 finish_command_continuation_args.
2872 (finish_command): Adjust to use struct
2873 finish_command_continuation_args.
2874 (struct attach_command_continuation_args): New.
2875 (attach_command_continuation): Take a void* instead of a
2876 continuations_arg. Adjust to use struct
2877 attach_command_continuation_args.
2878 (attach_command): Adjust to use struct
2879 attach_command_continuation_args.
2880
2881 * defs.h (struct continuation_arg): Delete.
2882 (struct continuation): Replace the struct continuation_arg*
2883 parameter of continuation_hook by a void*. Replace "arg_list"
2884 member by a new "args" member with void* type.
2885 (add_continuation, add_intermediate_continuation): Replace struct
2886 continuation_arg type usages by void* usages.
2887
2888 * utils.c (add_continuation, do_all_continuations)
2889 (add_intermediate_continuation)
2890 (do_all_intermediate_continuations): Replace struct
2891 continuation_arg type usages by void* usages. Pass "args" instead
2892 of "arg_list".
2893
2afb61aa
PA
28942008-07-12 Pedro Alves <pedro@codesourcery.com>
2895
2896 * infrun.c (struct thread_stepping_state): Delete sal member.
2897 (init_thread_stepping_state): Add local sal. Use it instead of
2898 tss->sal.
2899 (handle_inferior_event): New local stop_pc_sal. Use it instead of
2900 tss->sal.
2901 (step_into_function): Add local stop_func_sal. Use it instead of
2902 tss->sal.
2903
77ebaa5a
VP
29042008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2905
2906 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
2907 * infcmd.c (continue_1): New, extracted from
2908 (continue_command): ...here.
2909 (interrupt_target_1): New, extracted from
2910 (interrupt_target_command): ...here.
2911 * inferior.h (continue_1, interrupt_target_1): New.
2912 * mi/mi-main.c (mi_cmd_exec_continue)
2913 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 2914
1e92afda
VP
29152008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2916
2917 Implement --thread and --frame.
2918 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
2919 * thread.c (find_thread_id): Make non-static.
2920 * mi/mi-main.c (mi_cmd_execute): Switch to the right
2921 thread and frame, if necessary.
2922 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
2923 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 2924
d56b7306
VP
29252008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2926
2927 * infrun.c (resume): Discard cleanups on early exit path.
2928
b1a268e5
VP
29292008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2930
680b56ce 2931 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
2932 were stopped.
2933
90139f7d
VP
29342008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2935
2936 Report thread state in -thread-info output.
680b56ce 2937 * thread.c (print_thread_info): Add new field "state".
90139f7d 2938
a0d21d28
PA
29392008-07-11 Pedro Alves <pedro@codesourcery.com>
2940
2941 * infrun.c (handle_inferior_event): Also ignore a
2942 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
2943
14032a66
TT
29442008-07-11 Tom Tromey <tromey@redhat.com>
2945
2946 * completer.c (complete_line_internal): New function, from
2947 complete_line. Add 'for_help' parameter.
2948 (complete_line): Use it.
2949 (command_completer): Move later. Rewrite.
2950
65fc9b77
PA
29512008-07-11 Pedro Alves <pedro@codesourcery.com>
2952
2953 * thread.c (thread_apply_command): Move making the cleanup out of
2954 the loop.
2955
4f8d22e3
PA
29562008-07-11 Pedro Alves <pedro@codesourcery.com>
2957
2958 Exited threads.
2959
2960 * thread.c (enum thread_state): New.
2961 (thread_state main_thread_running): Delete, in favor of...
2962 (thread_state main_thread_state): ... this. Update throughout.
2963 (clear_thread_inferior_resources): New, split from free_thread.
2964 (free_thread): Call clear_thread_inferior_resources.
2965 (init_thread_list): Set main thread to stopped state.
2966 (add_thread_silent): Take care of PTID reuses.
2967 (delete_thread): If deleting inferior_ptid or a thread with
2968 refcount > 0, mark it as exited, but still keep it in the list.
2969 Only notify of thread exits, if we haven't done so yet.
2970 (iterate_over_threads): Make it safe to delete threads while
2971 iterating over them.
2972 (do_captured_list_thread_ids): Don't account for exited threads.
2973 (thread_alive): Check for the THREAD_EXITED state, and don't set
2974 ptid to -1 on exited threads.
2975 (set_running): Update to account for extra possible states.
2976 (is_thread_state): New.
2977 (is_stopped, is_exited): New.
2978 (is_running): Implement in terms of is_thread_state.
2979 (any_running): Update.
2980 (print_thread_info): Update. Account for exited threads. Don't
2981 warn about missed frame restoring here, its done in the cleanup.
2982 (switch_to_thread): Don't read from a thread that has gone.
2983 (restore_current_thread): In non-stop mode, do a full context
2984 switch.
2985 (restore_selected_frame): Add a frame_level argument. Rewrite.
2986 (struct current_thread_cleanup): Add selected_frame_level and
2987 was_stopped members.
2988 (do_restore_current_thread_cleanup): Check if thread was stopped
2989 and still is, and if the target has registers, stack and memory
2990 before restoring the selected frame. Don't delete the cleanup
2991 argument here.
2992 (restore_current_thread_cleanup_dtor): New.
2993 (make_cleanup_restore_current_thread): Remove all arguments.
2994 Rewrite.
2995 (thread_apply_all_command): Update. Prune threads.
2996 (thread_apply_command): Update.
2997 (thread_command): Account for currently selected exited thread.
2998 (do_captured_thread_select): Check for a running thread. Prune
2999 threads.
3000 (_initialize_thread): Make "info threads", "thread", "thread
3001 apply", and "thread apply all" appliable without a selected thread.
3002 * gdbthread.h (struct thread_info): Replace running_ by state_.
3003 Add refcount.
3004 (is_exited, is_stopped): Declare.
3005 (make_cleanup_restore_current_thread): Remove all arguments.
3006 * infrun.c: Include "event-top.h".
3007 (fetch_inferior_event): In non-stop mode, restore selected thread
3008 and frame after handling the event and running breakpoint
3009 commands. Display GDB prompt if needed.
3010 (normal_stop): In non-stop mode, don't print thread switching
3011 notice.
3012 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
3013 (get_cmd_no_selected_thread_ok): New.
3014 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
3015 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
3016 Declare.
3017 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
3018 no-selected-thread ok.
3019 * top.c (execute_command): Check for non no-selected-thread-ok
3020 commands.
3021 * linux-nat.c (struct saved_ptids, threads_to_delete)
3022 (record_dead_thread, prune_lwps): Delete.
3023 (exit_lwp): Unconditionally delete thread.
3024 (linux_nat_resume): Remove prune_lwps call.
3025 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
3026 of is_running. Adjust to make_cleanup_restore_current_thread
3027 interface change.
3028 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
3029 selected thread has exited.
3030 * inf-loop.c (inferior_event_handler): Don't display the prompt
3031 here.
3032 * varobj.c (c_value_of_root): Update.
3033 * defs.h (make_cleanup_dtor): Declare.
3034 * utils.c (make_cleanup_dtor): New.
3035
3036 * Makefile.in (infrun.o): Depend on $(event_top_h).
3037
8cae4b3f
PA
30382008-07-11 Pedro Alves <pedro@codesourcery.com>
3039
3040 Add "continue -a" and "interrupt -a" options for non-stop mode.
3041
3042 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
3043 (continue_command): Add "-a" option.
3044 (interrupt_target_command): Add "-a" option.
3045 (_initialize_infcmd): Add extend help of continue and interrupt
3046 command to mention the new "-a" option. Mark "continue" async ok.
3047
bf250677
DE
30482008-07-10 Doug Evans <dje@google.com>
3049
3050 Add "set print symbol-loading on|off".
3051 * NEWS: Document new option.
3052 * symfile.h (print_symbol_loading): Declare.
3053 * symfile.c (print_symbol_loading): New global.
3054 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
3055 from ..." if print_symbol_loading.
3056 (_initialize_symfile): Add set/show print symbol-loading.
3057 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
3058 if print_symbol_loading.
3059
4c28f408
PA
30602008-07-10 Pedro Alves <pedro@codesourcery.com>
3061
3062 Non-stop linux native.
3063
3064 * linux-nat.c (linux_test_for_tracefork): Block events while we're
3065 here.
3066 (get_pending_status): Implement non-stop mode.
3067 (linux_nat_detach): Stop threads before detaching.
3068 (linux_nat_resume): In non-stop mode, always resume only a single
3069 PTID.
3070 (linux_handle_extended_wait): On a clone event, in non-stop mode,
3071 add new lwp to GDB's thread table, and mark as running, executing
3072 and stopped appropriately.
3073 (linux_nat_filter_event): Don't assume there are other running
3074 threads when a thread exits.
3075 (linux_nat_wait): Mark the main thread as running and executing.
3076 In non-stop mode, don't stop all lwps.
3077 (linux_nat_kill): Stop lwps before killing them.
3078 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
3079 alive.
3080 (send_sigint_callback): New.
3081 (linux_nat_stop): New.
3082 (linux_nat_add_target): Set to_stop to linux_nat_stop.
3083
3084 * linux-nat.h (thread_db_attach_lwp): Declare.
3085
3086 * linux-thread-db.c (thread_get_info_callback): Check for new
3087 threads if we have none.
3088 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
3089 stopped lwp. Check for new threads if we have none.
3090 (thread_db_attach_lwp): New.
3091 (thread_db_init): Set proc_handle.pid to inferior_ptid.
3092 (check_event): Set proc_handle.pid to the stopped lwp.
3093 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
3094 lwp available, bail out if there is none.
3095
3096 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
3097 PTRACE_KILL.
3098
0aef6ba2
KB
30992008-07-10 Kevin Buettner <kevinb@redhat.com>
3100
a4fafde3
KB
3101 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
3102 `current_pc' from CORE_ADDR to ULONGEST.
3103
0aef6ba2
KB
3104 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
3105 gdbsim_stop().
3106
10568435
JK
31072008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3108
3109 * NEWS (New commands): Mention "set disable-randomization".
3110 * configure.ac: Add check for HAVE_PERSONALITY and
3111 HAVE_DECL_ADDR_NO_RANDOMIZE.
3112 * configure, config.in: Regenerate.
3113 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
3114 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
3115 ADDR_NO_RANDOMIZE.
3116 (disable_randomization, show_disable_randomization)
3117 (set_disable_randomization): New.
3118 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
3119 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
3120 variable DISABLE_RANDOMIZATION.
3121 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
3122 DISABLE_RANDOMIZATION.
3123
f9c72d52
PA
31242008-07-09 Pedro Alves <pedro@codesourcery.com>
3125
3126 Adjust all targets to new target_stop interface.
3127
3128 * gnu-nat.c (gnu_stop): Add ptid argument.
3129 * go32-nat.c (go32_stop): Add ptid argument.
3130 (go32_create_inferior): Pass inferior_ptid to go32_stop.
3131 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
3132 * monitor.c (monitor_stop): Add ptid argument.
3133 (monitor_open): Pass inferior_ptid to monitor_stop.
3134 (monitor_interrupt): Pass inferior_ptid to target_stop.
3135 (monitor_stop): Add ptid argument.
3136 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
3137 (procfs_create_inferior): Add ptid argument.
3138 * procfs.c (procfs_stop): Add ptid argument.
3139 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
3140 * remote-sim.c (gdbsim_stop): Add ptid argument.
3141 * sol-thread.c (sol_thread_stop): Add ptid argument.
3142 * win32-nat.c (win32_stop): Add ptid argument.
3143
94cc34af
PA
31442008-07-09 Pedro Alves <pedro@codesourcery.com>
3145
3146 Non-stop inferior control.
3147
3148 * infrun.c (resume): In non-stop mode, always resume just one
3149 thread.
3150 (proceed): Don't call prepare_to_proceed in non-stop mode.
3151 (fetch_inferior_event): In non-stop mode, switch context before
3152 handling the event.
3153 (error_is_running, ensure_not_running): New.
3154 (handle_inferior_event): In non-stop mode: Mark only the event
3155 thread as stopped. Require that the target module manages adding
3156 threads to the thread list. Assert that there isn't a
3157 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
3158 (normal_stop): Only mark not-running if inferior hasn't exited.
3159 In non-stop mode, only mark the event thread.
3160
3161 * thread.c:Include "cli/cli-decode.h".
3162 (print_thread_info): Don't read from a running thread.
3163 Output "(running)" if thread is running.
3164 (switch_to_thread): Don't read stop_pc if thread is executing.
3165 (do_restore_current_thread_cleanup): Don't write to a running
3166 thread.
3167 (thread_apply_all_command): Don't read from a running thread. In
3168 non-stop mode, do a full context-switch instead of just switching
3169 threads.
3170 (thread_apply_command): In non-stop mode, do a full context-switch
3171 instead of just switching threads.
3172 (do_captured_thread_select): Likewise. Inform user if selected
3173 thread is running.
3174 (_initialize_thread): Mark "info threads" and "thread" and
3175 async_ok.
3176
3177 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
3178 unregister the target from the event loop.
3179
3180 * infcmd.c (continue_command, step_1, jump_command)
3181 (signal_command): Ensure the selected thread isn't running.
3182 (interrupt_target_command): In non-stop mode, interrupt only the
3183 selected thread.
3184
3185 * inferior.h (error_is_running, ensure_not_running): Declare.
3186
3187 * target.h (struct target_ops): Add ptid argument to the to_stop
3188 member.
3189 (target_stop): Add ptid_t argument.
3190
3191 * target.c (update_current_target): Add ptid argument to to_stop's
3192 type.
3193 (debug_to_stop): Add ptid_t argument.
3194 (debug_to_rcmd): Set to_stop_ptid.
3195
3196 * remote.c (remote_stop): Add ptid_t argument.
3197 (async_remote_interrupt): Add inferior_ptid to target_stop.
3198 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
3199
3200 * Makefile.in (thread.o): Depend on $(cli_decode_h).
3201
59f0d5d9
PA
32022008-07-09 Pedro Alves <pedro@codesourcery.com>
3203
3204 Don't rely on ecs->wait_for_more.
3205
3206 * infrun.c (proceed): Clear the stepping state, set
3207 previous_inferior_ptid and clear infwait state.
3208 (wait_for_inferior): Don't clear the stepping state, set
3209 previous_inferior_ptid, or clear the infwait state here.
3210 (fetch_inferior_event): Don't clear the stepping state, set
3211 previous_inferior_ptid, or clear the infwait state here. Don't
3212 condition on wait_for_more.
3213
0d1e5fa7
PA
32142008-07-09 Pedro Alves <pedro@codesourcery.com>
3215
3216 Refactor infrun a bit.
3217
3218 * infrun.c (currently_stepping): Take a struct
3219 thread_stepping_state instead of an execution_control_state.
3220 (struct thread_stepping_state): New, split from
3221 execution_control_state.
3222 (gtss, tss): New globals.
3223 (proceed): Clear the stepping state, set previous_inferior_ptid
3224 and clear infwait state.
3225 (init_wait_for_inferior): Clear the stepping state,
3226 previous_inferior_ptid and infwait state.
3227 (waiton_ptid, infwait_state): New, split from
3228 execution_control_state.
3229 (struct execution_control_state): Members that persist through
3230 events moved out to either struct thred_stepping_state or made
3231 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
3232 (wait_for_inferior, fetch_inferior_event): Use local
3233 execution_control_state. Update to execution_control_state split.
3234 (init_execution_control_state): Adjust.
3235 (init_thread_stepping_state): New, extracted from
3236 init_execution_control_state.
3237 (context_switch): Take a ptid instead of an
3238 execution_control_state.
3239 (context_switch_to): Adjust.
3240 (adjust_pc_after_break): Adjust.
3241 (init_infwait_state): New.
3242 (handle_inferior_event): Adjust.
3243
a474d7c2
PA
32442008-07-09 Pedro Alves <pedro@codesourcery.com>
3245 Vladimir Prus <vladimir@codesourcery.com>
3246
3247 Per-thread commands.
3248
3249 * gdbthread.h: Remove unneeded forward declarations.
3250 Include "inferior.h".
3251 (struct thread_info): Add continuations,
3252 intermediate_continuations, proceed_to_finish, step_over_calls,
3253 stop_step, step_multi and stop_signal members.
3254 (save_infrun_state): Add continuations,
3255 intermediate_continuations, proceed_to_finish, step_over_calls,
3256 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3257 (load_infrun_state): Add continuations,
3258 intermediate_continuations, proceed_to_finish, step_over_calls,
3259 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3260
3261 * thread.c (load_infrun_state): In non-stop mode, load
3262 continuations, intermediate_continuations, proceed_to_finish,
3263 step_over_calls, stop_step, step_multi and stop_signal.
3264 (save_infrun_state): Store continuations,
3265 intermediate_continuations, proceed_to_finish, step_over_calls,
3266 stop_step, step_multi, stop_signal and stop_bpstat.
3267 (save_infrun_state): Store continuations,
3268 intermediate_continuations, proceed_to_finish, step_over_calls,
3269 stop_step, step_multi, stop_signal and stop_bpstat.
3270 (free_thread): Clear The thread's stop_bpstat.
3271
3272 * inferior.h (context_switch_to): Declare.
3273
3274 * infrun.c (ecss): New global.
3275 (context_switch): Context switch continuations,
3276 intermediate_continuations, proceed_to_finish, step_over_calls,
3277 stop_step, step_multi, stop_signal and stop_bpstat.
3278 (wait_for_inferior): Use global ecss.
3279 (async_ecss, async_ecs): Delete.
3280 (fetch_inferior_event): Use global ecss.
3281 (context_switch_to): New.
3282
3283 * top.c (execute_command): In non-stop, only check if the current
3284 thread is running, in all-stop, check if there's any thread
3285 running.
3286
3287 * breakpoint.c (bpstat_remove_breakpoint): New.
3288 (bpstat_remove_breakpoint_callback): New.
3289 (delete_breakpoint): Clear the stop_bpstats of all threads.
3290
3291 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
3292 current thread is running, in all-stop, check if there's any
3293 thread running.
3294
3295 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
3296
ad52ddc6
PA
32972008-07-09 Pedro Alves <pedro@codesourcery.com>
3298
3299 Add non_stop global.
3300
3301 * inferior.h (non_stop): Declare.
3302 * infrun.c (non_stop, non_stop_1): New.
3303 (set_non_stop, show_non_stop): New.
3304 (_initialize_infrun): Add "set/show non-stop" command.
3305
3a3e9ee3
PA
33062008-07-09 Pedro Alves <pedro@codesourcery.com>
3307
3308 Adjust fork/vfork/exec to pass ptids around.
3309
3310 * target.h (struct target_waitstatus): Store related_pid as a ptid.
3311 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
3312 Take a ptid_t.
3313 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
3314 type to ptid.
3315 * breakpoint.c (print_it_typical, bpstat_check_location)
3316 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
3317 (create_fork_vfork_event_catchpoint): Adjust.
3318 * infrun.c (fork_event): Change parent_pid and child_pid types to
3319 ptid.
3320 (follow_exec, inferior_has_forked, inferior_has_vforked)
3321 (inferior_has_execd): Take a ptid_t and don't trim it.
3322 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
3323 * linux-nat.c (linux_child_follow_fork): Adjust.
3324 * inf-ptrace.c (inf_ptrace_wait): Adjust.
3325 * inf-ttrace.c (inf_ttrace_wait): Adjust.
3326 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
3327
8ea051c5
PA
33282008-07-09 Pedro Alves <pedro@codesourcery.com>
3329
3330 Add "executing" property to threads.
3331
3332 * inferior.h (target_executing): Delete.
3333 * gdbthread.h (struct thread_info): Add executing_ field.
3334 (set_executing, is_executing): New.
3335 * thread.c (main_thread_executing): New.
3336 (init_thread_list): Clear it and also main_thread_running.
3337 (is_running): Return false if target has no execution.
3338 (any_running, is_executing, set_executing): New.
3339
3340 * top.c: Include "gdbthread.h".
3341 (target_executing): Delete.
3342 (execute_command): Replace target_executing check by any_running.
3343 * event-top.c: Include "gdbthread.h".
3344 (display_gdb_prompt, command_handler): Replace target_executing by
3345 is_running.
3346 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
3347 here. Replace target_executing by is_running.
3348 * infrun.c (handle_inferior_event): Mark all threads as
3349 not-executing.
3350 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
3351 here.
3352 * stack.c (get_selected_block): Return null if inferior is
3353 executing.
3354 * target.c (target_resume): Mark resumed ptid as executing.
3355 * breakpoint.c (until_break_command): Replace target_executing
3356 check by is_executing.
3357 * remote.c (remote_async_resume): Don't mark inferior as executing
3358 here.
3359 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
3360 by any_running.
680b56ce 3361
8ea051c5
PA
3362 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
3363 (mi_execute_async_cli_command): Replace target_executing by
3364 is_running.
3365
3366 * frame.c (get_current_frame): Error out if the current thread is
3367 executing.
3368 (has_stack_frames): New.
3369 (get_selected_frame, deprecated_safe_get_selected_frame): Check
3370 has_stack_frames.
680b56ce 3371
8ea051c5
PA
3372 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
3373 $(gdbthread_h).
3374
4487aabf
PA
33752008-07-09 Pedro Alves <pedro@codesourcery.com>
3376
3377 * symfile.c (load_command): Reopen the exec file and reread
3378 symbols before anything else.
3379
9de2bdd7
PA
33802008-07-09 Pedro Alves <pedro@codesourcery.com>
3381
3382 * remote-sim.c: Include gdbthread.h.
3383 (remote_sim_ptid): New global.
3384 (gdbsim_create_inferior): Silently add the main task to GDB's
3385 thread list.
3386 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
3387 task from GDB's thread list.
3388 (gdbsim_resume): Adjust to use remote_sim_ptid.
3389 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
3390 (init_gdbsim_ops): Register gdbsim_thread_alive and
3391 gdbsim_pid_to_str.
3392 (_initialize_remote_sim): Initialize remote_sim_ptid.
3393 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
3394
5e0b29c1
PA
33952008-07-09 Pedro Alves <pedro@codesourcery.com>
3396
3397 * monitor (monitor_ptid): New global.
3398 (monitor_open): Silently add the main task to GDB's thread list.
3399 (monitor_close, monitor_mourn_inferior): Silently delete the main
3400 task from GDB's thread list.
3401 (monitor_thread_alive, monitor_pid_to_str): New.
3402 (init_base_monitor_ops): Register monitor_thread_alive and
3403 monitor_pid_to_str.
3404 (_initialize_remote_monitors): Initialize monitor_ptid.
3405
3406 * gdbthread.h (delete_thread_silent): Declare.
3407 * thread.c (delete_thread): Rename to ...
3408 (delete_thread_1): ... this. Add "silent" parameter. If silent,
3409 don't do exit notifications.
3410 (delete_thread, delete_thread_silent): New, as wrappers to
3411 delete_thread_1.
3412
b60e7edf
PA
34132008-07-08 Pedro Alves <pedro@codesourcery.com>
3414
3415 * breakpoint.c (update_global_location_list): Add boolean
3416 "should_insert" argument. Only insert locations if caller told it
3417 too.
3418 (update_global_location_list_nothrow): Add boolean "should_insert"
3419 argument. Pass it to update_global_location_list.
3420 (insert_breakpoints, create_longjmp_breakpoint)
3421 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
3422 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3423 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
3424 (enable_watchpoints_after_interactive_call_stop)
3425 (set_momentary_breakpoint, create_breakpoints)
3426 (break_command_really, watch_command_1)
3427 (create_ada_exception_breakpoint, update_breakpoint_locations)
3428 (do_enable_breakpoint, enable_command): Pass true to
3429 update_global_location_list.
3430 (bpstat_stop_status, disable_overlay_breakpoints)
3431 (disable_watchpoints_before_interactive_call_start)
3432 (delete_breakpoint, disable_breakpoint, disable_command): Pass
3433 false to update_global_location_list.
3434 (update_breakpoints_after_exec): Don't temporarily disable
3435 always-inserted mode.
3436
25b22b0a
PA
34372008-07-08 Pedro Alves <pedro@codesourcery.com>
3438
3439 * breakpoint.c (mark_breakpoints_out): Make public.
3440 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
3441 here. Update comment.
3442 * breakpoint.h (mark_breakpoints_out): Declare.
3443
3444 * linux-nat.c (linux_handle_extended_wait): On
3445 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
3446 * inf-ttrace.c (inf_ttrace_wait): Likewise.
3447
cce9b6bf
PA
34482008-07-08 Pedro Alves <pedro@codesourcery.com>
3449
3450 * infrun.c (follow_exec): Reset shared libraries before adding the
3451 main exec file.
3452
3c3185ac
JK
34532008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3454
3455 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
3456
42f0bc8e
PA
34572008-07-07 Pedro Alves <pedro@codesourcery.com>
3458
3459 * i386-dicos-tdep.c: Include "inferior.h".
3460 (i386_dicos_frame_align): New.
3461 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
3462 dummy location ON_STACK.
3463 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
3464
b7292df3
JB
34652008-07-07 Joel Brobecker <brobecker@adacore.com>
3466
3467 * gstdint.h: New file.
3468
bb599c81
VP
34692008-07-05 Vladimir Prus <vladimir@codesourcery.com>
3470
3471 * mi/mi-interp.c (mi_on_resume): Don't try to report
3472 resumed thread it the thread list is empty.
3473
7f6a6314
PM
34742008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
3475
3476 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
3477 completer for set to filename_completer.
680b56ce 3478
7f6a6314
PM
3479 NEWS: Mention it.
3480
711eabed
VP
34812008-07-04 Vladimir Prus <vladimir@codesourcery.com>
3482
3483 Implement -target-attach.
680b56ce 3484 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 3485
db3b9a10
MS
34862008-06-21 Hui Zhu <teawater@gmail.com>
3487
3488 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
3489
dc177b7a
PA
34902008-07-03 Pedro Alves <pedro@codesourcery.com>
3491
3492 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
3493 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
3494
3495 * target.h (struct target_ops): Add to_attach_no_wait member.
3496 (target_attach_no_wait): New.
3497 * target.c (update_current_target): Inherit to_attach_no_wait.
3498
3499 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
3500 target_attach_no_wait runtime check.
3501
3502 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
3503 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
3504 win32_ops.
3505
caac8896
PA
35062008-07-03 Pedro Alves <pedro@codesourcery.com>
3507
3508 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
3509 on debug_displaced being set.
3510
0d254d6f
DJ
35112008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3512
3513 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
3514 directly instead of get_frame_id.
3515
f74c6cad
LM
35162008-06-30 Luis Machado <luisgpm@br.ibm.com>
3517
3518 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
3519 (deal_with_atomic_sequence): Update BC masks.
3520 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
3521 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
3522
395f2fc2
DJ
35232008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3524
3525 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
3526 register, not the previous frame's.
3527
8340a3fb
LM
35282008-06-30 Luis Machado <luisgpm@br.ibm.com>
3529
3530 * source.c (select_source_symtab): Make sure we skip namespace
3531 symtabs when showing cpp source code.
3532
cfefc99a
HPN
35332008-06-30 Hans-Peter Nilsson <hp@axis.com>
3534
3535 * MAINTAINERS (Authorized committers): Fix my email address.
3536
1b98914a
VP
35372008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3538
3539 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
3540 -target-download and -target-select via CLI, so that
3541 the quoting rules are the same as they were (unfortunately)
3542 in all prior gdb releases.
3543 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
3544 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3545 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
3546 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3547 (mi_cmd_execute): Set current_token even for commands
3548 routed via CLI.
3549
94afd7a6
UW
35502008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
3551
3552 * alphafbsd-tdep.c: Update for unwinder changes.
3553 * alpha-linux-tdep.c: Likewise.
3554 * alphanbsd-tdep.c: Likewise.
3555 * alphaobsd-tdep.c: Likewise.
3556 * avr-tdep.c: Likewise.
3557 * cris-tdep.c: Likewise.
3558 * frv-linux-tdep.c: Likewise.
3559 * frv-tdep.c: Likewise.
3560 * h8300-tdep.c: Likewise.
3561 * hppa-linux-tdep.c: Likewise.
3562 * iq2000-tdep.c: Likewise.
3563 * m32c-tdep.c: Likewise.
3564 * m32r-linux-tdep.c: Likewise.
3565 * m32r-tdep.c: Likewise.
3566 * m68hc11-tdep.c: Likewise.
3567 * mep-tdep.c: Likewise.
3568 * mn10300-tdep.c: Likewise.
3569 * mt-tdep.c: Likewise.
3570 * score-tdep.c: Likewise.
3571 * sh64-tdep.c: Likewise.
3572 * sh-tdep.c: Likewise.
3573 * sparc64fbsd-tdep.c: Likewise.
3574 * sparc64nbsd-tdep.c: Likewise.
3575 * sparc64obsd-tdep.c: Likewise.
3576 * v850-tdep.c: Likewise.
3577 * vaxobsd-tdep.c: Likewise.
3578 * vax-tdep.c: Likewise.
3579 * xstormy16-tdep.c: Likewise.
3580
e111d6c9
VP
35812008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3582
3583 * mi/mi-main.c (enum captured_mi_execute_command_actions)
3584 (captured_mi_execute_command_args): Remove.
3585 (captured_mi_execute_command): Cast the closure to mi_parse
3586 pointer, not to captured_mi_execute_command_args, and don't
3587 set the action field thereof.
3588 (mi_execute_command): Pass struct mi_parse, not
3589 captured_mi_execute_command_args to captured_mi_execute_command.
3590 (mi_execute_command): Remove (dead) code for suppressing
3591 printing prompt.
3592
84e46146
PA
35932008-06-28 Pedro Alves <pedro@codesourcery.com>
3594
3595 * linux-nat.c (enum sigchld_state): New.
3596 (linux_nat_async_events_state): Renamed from
3597 linux_nat_async_events_enabled.
3598 (linux_nat_event_pipe_push, my_waitpid): Adjust.
3599 (sigchld_default_action): New.
3600 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
3601 unconditionally.
3602 (linux_nat_create_inferior): Set events state to sigchld_default
3603 state.
3604 (linux_nat_resume): Adjust.
3605 (linux_nat_wait): Call linux_nat_async_events unconditionally.
3606 (sigchld_handler): Adjust.
3607 (linux_nat_async_mask): Don't set SIGCHLD actions here.
3608 (get_pending_events): Adjust.
3609 (linux_nat_async_events): Rewrite to handle enum sigchld_state
3610 instead of a boolean.
3611 (linux_nat_async): Adjust.
3612 (_initialize_linux_nat): Capture default SIGCHLD action into
3613 sigchld_default_action.
3614
20874c92
VP
36152008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3616
680b56ce
AS
3617 * breakpoint.c (moribund_locations): New.
3618 (bpstat_stop_status): Process moribund locations.
3619 (update_global_location_list): Add removed
3620 locations to moribund_locations.
3621 (breakpoint_retire_moribund): New.
3622 * breakpoint.h (struct bp_location): New field
3623 events_till_retirement.
3624 (breakpoint_retire_moribund): Declare.
3625 * thread.c (thread_count): New.
3626 * infrun.c (handle_inferior_event): Call
3627 breakpoint_retire_moribund.
3628 * gdbthread.h (thread_count): Declare.
20874c92 3629
cd0b43b1
JM
36302008-06-27 Joseph Myers <joseph@codesourcery.com>
3631
3632 * dfp.c (decimal_convert): Call match_endianness before and after
3633 conversion.
3634
7c0f6dcc
JL
36352008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
3636
3637 * remote.c (remote_insert_breakpoint): Ensure that if Z0
3638 unsupported and we fall back to memory_insert_breakpoint, we
3639 use the unmodified requested address.
3640
01c66ae6
JB
36412008-06-27 Joel Brobecker <brobecker@adacore.com>
3642
3643 * dwarf2read.c (read_attribute_value): Issue a complaint when
3644 adjusting size attribute values of 0xffffffff as zero.
3645
7ccc1c74
JM
36462008-06-27 Joseph Myers <joseph@codesourcery.com>
3647
3648 * i386-tdep.c (i386_16_byte_align_p): New.
3649 (i386_push_dummy_call): Determine stack space required for
3650 arguments going forwards allowing for 16-byte alignment, then push
3651 arguments going forwards.
3652
c0a2216e
PA
36532008-06-27 Pedro Alves <pedro@codesourcery.com>
3654
3655 * infrun.c (start_remote): Don't clear thread list here.
3656 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
3657 list here.
3658 * remote.c (record_currthread): Upgrade the main thread and its
3659 entry in the thread list if this is the first time we hear about
3660 threads.
3661 (remote_thread_alive): Consider magic_null_ptid or a ptid without
3662 a tid member always alive.
3663 (remote_find_new_threads): Don't update the main thread here.
3664 (remote_start_remote): Clear thread list here. Always add the
3665 main thread.
3666 (extended_remote_attach_1): Add the main thread here.
3667 (extended_remote_mourn_1): Re-add the main thread here.
3668 (extended_remote_create_inferior_1): Add a main thread.
3669
3670 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
3671
87b0e16e 36722008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
3673
3674 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3675
3676 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
3677 globals.
3678 (general_thread, continue_thread): Change type to ptid_t.
3679 (record_currthread): Take a ptid_t parameter instead of an
3680 integer.
3681 (MAGIC_NULL_PID): Delete.
3682 (set_thread): Take a ptid_t parameter and adjust.
3683 (set_general_thread, set_continue_thread): New.
3684 (remote_thread_alive, remote_newthread_step)
3685 (remote_current_thread, remote_find_new_threads)
3686 (remote_threads_info, remote_start_remote, remote_vcont_resume)
3687 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
3688 (threadalive_test, remote_pid_to_str)
3689 (remote_get_thread_local_address): Adjust.
3690 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
3691 and any_thread_ptid.
3692
3ca64bd3
JK
36932008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3694
3695 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
3696 * configure: Regenerated.
3697
28e94949
JB
36982008-06-26 Joel Brobecker <brobecker@adacore.com>
3699
3700 * dwarf2read.c (read_attribute_value): Treat size attribute
3701 values of 0xffffffff as if the attribute value was zero.
3702
8a77dff3
VP
37032008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3704
3705 * linux-nat.c: Add description of overall logic.
3706
d5af19ba
DJ
37072008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
3708
3709 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
3710 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
3711 all dependencies on $(gdb_stdint_h).
3712 (distclean): Do not delete gdb_stdint.h.
3713 * acinclude.m4: Do not use stdint.m4.
3714 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
3715 uintptr_t, and gdb_stdint.h.
3716 * defs.h: Include <stdint.h>.
3717 * gdb_thread_db.h: Assume stdint.h is already included.
3718 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
3719 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
3720 include gdb_stdint.h.
3721 * configure, config.in: Regenerate.
3722
00fbcec4
JM
37232008-06-26 Joseph Myers <joseph@codesourcery.com>
3724
3725 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
3726 decimal floating-point values in GPRs for soft-float.
3727 (do_ppc_sysv_return_value): Handle returning decimal
3728 floating-point values in GPRs for soft-float.
3729
d5086790
VP
37302008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3731
3732 * target.c (target_read_until_error): New.
680b56ce
AS
3733 * target.h (target_read_until_error): Declare.
3734 * mi/mi-main.c (mi_cmd_data_read_memory): Use
3735 target_read_until_error.
d5086790 3736
fe9441f6
JK
37372008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3738
3739 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
3740 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
3741 after the DECFLOAT detection to fix a memory leak. Remove the
3742 redundant NUM initialization. Protect the DECFLOAT detection memory
3743 access before the P block. Restore the P memory content for the
3744 DECFLOAT detection.
3745
ce8f13f8
VP
37462008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3747
3748 Kill the return value for all MI command functions.
3749 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
3750 (mi_cmd_argv_ftype): Change return type to void.
3751
3752 * mi/mi-main.c: Adjust all function that implement
3753 MI commands to return nothing.
3754 (struct captured_mi_execute_command_actions):
3755 Remove the rc field.
3756 (mi_cmd_execute): Return nothing.
3757 (mi_execute_async_cli_command): Return nothing.
3758 (mi_cmd_exec_interrupt): Don't print ^done here.
3759 (mi_cmd_target_select): Don't print ^connected here.
3760 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
3761 Special-case -target-select and output ^connected, not ^done.
3762
3763 * mi/mi-cmd-break.c: Adjust.
3764 * mi/mi-cmd-disas.c: Adjust.
3765 * mi/mi-cmd-env.c: Adjust.
3766 * mi/mi-cmd-file.c: Adjust.
3767 * mi/mi-cmd-stack.c: Adjust.
3768 * mi/mi-cmd-target.c: Adjust.
3769 * mi/mi-cmd-var.c: Adjust.
3770 * mi/mi-interp.c: Adjust.
3771 * mi/mi-symbol-cmds.c: Adjust.
3772
a2840c35
VP
37732008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3774
3775 Emit ^running via observer.
3776 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
3777 ^running here.
3778 (mi_on_resume): Print ^running if not previously output.
3779 * mi/mi-main.c (running_result_record_printed): New.
3780 (captured_mi_execute_command): Reset
3781 running_result_record_printed. Use running_result_record_printed
3782 to decide if we should skip ^done.
3783 (mi_execute_async_cli_command): Don't print ^running here.
3784 * mi/mi-main.h (current_token, running_result_record_printed):
3785 Declare.
a2840c35 3786
1f41b062
MS
37872008-06-24 Michael Snyder <msnyder@specifix.com>
3788
3789 * infrun.c (_initialize_infrun): White space and typo fix.
3790
eff8332b
CF
37912008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
3792
3793 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
3794 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
3795 when first loading DLL with "dll" command.
3796
e50ce6de 37972008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
3798
3799 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 3800
e50ce6de 38012008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
3802
3803 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 3804
59ddf1e7
JB
38052008-06-18 Joel Brobecker <brobecker@adacore.com>
3806
680b56ce
AS
3807 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3808 the target cannot run.
59ddf1e7
JB
3809
38102008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
3811
3812 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3813 we're attaching to a running process.
3814
e50ce6de 38152008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
3816
3817 * win32-nat.c (handle_load_dll): Give dll name and load address
3818 if debug_events is on.
3819 (handle_unload_dll): Likewise.
3820
8f6a8e84
VP
38212008-06-14 Vladimir Prus <vladimir@codesourcery.com>
3822
3823 Don't suppress *running when doing finish.
680b56ce
AS
3824 * infcall.c (call_function_by_hand): Set both
3825 suppress_resume_observer and suppress_stop_observer.
3826 * infcmd.c (suppress_run_stop_observers): Split into...
3827 (suppress_resume_observer, suppress_stop_observer): ...those.
3828 (finish_command_continuation): Clear suppress_stop_observer.
3829 (finish_command): Set suppress_stop_observer.
3830 * inferior.h (suppress_run_stop_observers): Split into...
3831 (suppress_resume_observer, suppress_stop_observer): ...those.
3832 * infrun.c (normal_stop): Check for suppress_stop_observer.
3833 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 3834
4309257c
PM
38352008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
3836 Pierre Muller <muller@ics.u-strasbg.fr>
3837
3838 * gdbarch.sh (gdbarch_skip_main_prologue): New.
3839 * gdbarch.h, gdbarch.c: Regenerate.
3840 * i386-tdep.h (i386_skip_main_prologue): Declare.
3841 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 3842 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
3843 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
3844 * symtab.c (find_function_start_sal): When pc points at the "main"
3845 function, call gdbarch_skip_main_prologue.
3846
a4e2ee12
DJ
38472008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
3848
3849 * value.c (value_primitive_field): Fetch lazy register values.
3850
060871df
PA
38512008-06-11 Pedro Alves <pedro@codesourcery.com>
3852
3853 * NEWS: Mention support removal of undocumented S AA p PID stop
3854 reply packet.
3855
3856 * remote.c (remote_wait): Remove undocumented S AA p PID support.
3857
336de56d
SS
38582008-06-10 Stan Shebs <stan@codesourcery.com>
3859
3860 * MAINTAINERS: Update my affiliation and address.
3861
7949220d
AS
38622008-06-10 Andreas Schwab <schwab@suse.de>
3863
3864 * top.c (print_gdb_version): Don't print final newline.
3865
e1ac3328
VP
38662008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3867
3868 Implement *running.
680b56ce
AS
3869 * Makefile.in: Update dependencies.
3870 * gdbthread.h (struct thread_info): New field
3871 running_.
3872 (set_running, is_running): New.
3873 * thread.c (set_running, is_running): New.
3874 * inferior.h (suppress_normal_stop_observer): Rename to...
3875 (suppress_run_stop_observers): ..this.
3876 * infcmd.c (suppress_normal_stop_observer): Rename to...
3877 (suppress_run_stop_observers): ..this.
3878 (finish_command_continuation, finish_command): Adjust.
3879 * infcall.c (call_function_by_hand): Adjust.
3880 * infrun.c (normal_stop): Call set_running.
3881 * target.c (target_resume): New. Call set_running.
3882 * target.h (target_resume): Convert from macro to
3883 a function.
3884
3885 * mi/mi-interp.c (mi_on_resume): New.
3886 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 3887
f7f9a841
VP
38882008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3889
3890 Use observers to report stop events in MI.
680b56ce
AS
3891 * mi/mi-interp.c (mi_on_normal_stop): New.
3892 (mi_interpreter_init): Register mi_on_normal_stop.
3893 (mi_interpreter_exec_continuation): Remove.
3894 (mi_cmd_interpreter_exec): Don't register the above.
3895 * mi/mi-main.c (captured_mi_execute_command): Don't care
3896 about sync_execution.
3897 (mi_execute_async_cli_command): Don't install continuation. Don't
3898 print *stopped.
3899 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 3900
f5871ec0
VP
39012008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3902
3903 Suppress normal stop observer when it's problematic.
680b56ce
AS
3904 * inferior.h (suppress_normal_stop_observer): New.
3905 * infcall.c (call_function_by_hand): Disable stop events when
3906 doing function calls.
3907 * infmcd.c (suppress_normal_stop_observer): New.
3908 (finish_command_continuation): Call normal_stop observer
3909 explicitly.
3910 (finish_command): Disable stop events inside proceed.
3911 * infrun.c (normal_stop): Don't call normal stop observer if
3912 suppressed of if multi-step is in progress.
f5871ec0 3913
3d3191a6
VP
39142008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3915
3916 Remove stale code.
680b56ce
AS
3917 * infrun.c (finish_command): Don't pass cleanup
3918 to continuation.
3919 (finish_command_continuation): Don't grab cleanup from
3920 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 3921
0b080f59
VP
39222008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3923
3924 Introduce common cleanup for restoring integers.
680b56ce
AS
3925 * defs.h (make_cleanup_restore_integer): New declaration.
3926 (struct cleanup): New field free_arg.
3927 (make_my_cleanup_2): New.
3928 * utils.c (restore_integer_closure, restore_integer)
3929 (make_cleanup_restore_integer): New.
3930 (make_my_cleanup): Initialize the free_arg field and
3931 renamed to make_my_cleanup_2.
3932 (do_my_cleanups): Call free_arg.
3933 (discard_cleanups): Call free_arg.
3934 * breakpoint.c (restore_always_inserted_mode): Remove.
3935 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 3936
b4f62b57
DE
39372008-06-09 Doug Evans <dje@google.com>
3938
3939 * remote.c (remote_wait): Include beginning of malformed packet
3940 in error output.
3941
37cd5d19
TT
39422008-06-09 Tom Tromey <tromey@redhat.com>
3943
3944 * completer.c (complete_line): Don't special-case
3945 expression_completer.
3946 (expression_completer): Only pass last word to
3947 location_completer.
3948 * c-exp.y (yylex): Check 'token', not 'operator'.
3949
3526781e
DJ
39502008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
3951
3952 * configure.ac (build_warnings): Add -Wno-format for mingw.
3953 * configure: Regenerated.
3954
d001be7a
DJ
39552008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3956
3957 * NEWS: Make indentation consistent. Move exec tracing entry out
3958 of remote packet list.
3959
65d12d83
TT
39602008-06-06 Tom Tromey <tromey@redhat.com>
3961
3962 * value.h (evaluate_subexpression_type, extract_field_op):
3963 Declare.
3964 * printcmd.c (_initialize_printcmd): Use expression_completer for
3965 'p', 'inspect', 'call'.
3966 * parser-defs.h (parse_field_expression): Declare.
3967 * parse.c: Include exceptions.h.
3968 (in_parse_field, expout_last_struct): New globals.
3969 (mark_struct_expression): New function.
3970 (prefixify_expression): Return int.
3971 (prefixify_subexp): Return int. Use expout_last_struct.
3972 (parse_exp_1): Update.
3973 (parse_exp_in_context): Add 'out_subexp' argument. Handle
3974 in_parse_field.
3975 (parse_field_expression): New function.
3976 * expression.h (parse_field_expression): Declare.
3977 (in_parse_field): Likewise.
3978 * eval.c (evaluate_subexpression_type): New function.
3979 (extract_field_op): Likewise.
3980 * completer.h (expression_completer): Declare.
3981 * completer.c (expression_completer): New function.
3982 (count_struct_fields, add_struct_fields): New functions.
3983 * c-exp.y (yyparse): Redefine.
3984 (COMPLETE): New token.
3985 (exp): New productions.
3986 (saw_name_at_eof, last_was_structop): New globals.
3987 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
3988 (c_parse): New function.
3989 * breakpoint.c (_initialize_breakpoint): Use expression_completer
3990 for watch, awatch, and rwatch.
3991 * Makefile.in (parse.o): Depend on exceptions_h.
3992
fed27633
PP
39932008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3994
3995 PR gdb/1147
3996 * gdb/valopts.c (find_overload_match): Handle references
3997 to pointers.
3998
aced2898
PH
39992008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
4000
4001 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
4002 account the bitsize of the 'from' operand.
4003
a2b87ed1
PA
40042008-06-06 Pedro Alves <pedro@codesourcery.com>
4005
4006 * annotate.h (annotate_thread_changed): Declare.
4007
3d6d0b9d
NR
40082008-06-06 Nick Roberts <nickrob@snap.net.nz>
4009
4010 * annotate.c (annotate_thread_changed): New function.
4011 * thread.c (thread_command) : Use it.
4012 * infrun.c (normal_stop): Use it.
4013
c16158bc 40142008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
4015 Nathan Sidwell <nathan@codesourcery.com>
4016 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
4017
4018 * acinclude.m4: Include ../config/acx.m4.
4019 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
4020 * configure, config.in: Regenerate.
4021 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
4022 address.
4023 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
4024
75c99385
PA
40252008-06-05 Pedro Alves <pedro@codesourcery.com>
4026
4027 Replace 'target async' by 'maintenance set remote-async' and
4028 'target remote' combination.
4029
4030 * remote.c (remote_async_wait): Merge into remote_wait, and
4031 remove.
4032 (remote_async_permitted, remote_async_permitted_set): New
4033 variables.
4034 (set_maintenance_remote_async_permitted)
4035 (show_maintenance_remote_async_permitted): New functions.
4036 (remote_async_ops, extended_async_remote_ops): Delete.
4037 (remote_async_open, extended_remote_async_open): Delete.
4038 (remote_open_1): Drop async_p parameter. Update callers. Replace
4039 async_p with remote_async_permitted checks.
4040 (extended_async_remote_attach): Delete.
4041 (remote_resume, remote_async_resume): Merge and leave remote_resume.
4042 (remote_async_terminal_inferior): Rename to...
4043 (remote_terminal_inferior): ... this, and add
4044 remote_async_termitted check.
4045 (remote_async_terminal_ours): Rename to...
4046 (remote_terminal_ours): ... this, and add remote_async_termitted
4047 check.
4048 (remote_wait, remote_async_wait): Merge and leave remote_wait
4049 only.
4050 (remote_kill, remote_async_kill): Merge and leave remote_kill
4051 only.
4052 (remote_async_mourn, extended_async_remote_mourn): Delete.
4053 (extended_remote_create_inferior_1): Drop async_p parameter.
4054 Update callers. Always use extended_remote_ops.
4055 (extended_remote_async_create_inferior): Delete.
4056 (remote_return_zero): Delete.
4057 (init_remote_ops): Register remote_can_async_p, remote_async,
4058 remote_async_mask, remote_terminal_inferior and
4059 remote_terminal_ours.
4060 (remote_can_async_p, remote_is_async_p): Check for
4061 remote_async_permitted.
4062 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
4063 (set_remote_cmd): Don't add async and extended-async targets.
4064 (_initialize_remote): Add set/show remote-async maintenance
4065 commands.
4066
cf30943b
PA
40672008-06-05 Pedro Alves <pedro@codesourcery.com>
4068
4069 * remote.c (kill_kludge): Delete.
4070 (remote_wait, remote_async_wait): Don't set it.
4071 (remote_kill, remote_async_kill): Don't do anything with it.
4072
49fd4a42
PA
40732008-06-05 Pedro Alves <pedro@codesourcery.com>
4074
4075 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
4076
2e618c13
AR
40772008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
4078
4079 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
4080 (deprecated_bcache_added): New function name. Body of function
4081 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
4082 * bcache.h (deprecated_bcache_added): New function.
4083 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
4084 work from add_psymbol_to_list - initialises partial symbol and stashes
4085 it in objfile's cache.
680b56ce 4086 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 4087 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 4088 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
4089 here. If adding to global list, do not duplicate partial symbols in the
4090 partial symtab.
4091
c0b37c48
AR
40922008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
4093
4094 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
4095 'exception caught|thrown' message.
4096
1e3a102a
JK
40972008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4098
4099 * Makefile.in: Update dependencies.
4100 * dwarf2expr.c: New include "gdb_assert.h".
4101 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
4102 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
4103 (execute_stack_op): Error out on too large RECURSION_DEPTH.
4104 Increase/decrease RECURSION_DEPTH around the function.
4105
8d385431
DJ
41062008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4107
4108 * remote.c (get_offsets): Handle a single segment.
4109 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
4110 than segments.
4111
93a57060
DJ
41122008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
4113
4114 * solib-svr4.c (struct lm_info): Add lm_addr.
4115 (main_lm_addr): New.
4116 (svr4_default_sos): Set lm_addr.
4117 (svr4_current_sos): Set lm_addr and main_lm_addr.
4118 (svr4_fetch_objfile_link_map): Rewrite.
4119 (svr4_clear_solib): Clear main_lm_addr.
4120
609ba780 41212008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 4122 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
4123
4124 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
4125 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
4126
c95f5026
JB
41272008-06-02 Roman Zippel <zippel@linux-m68k.org>
4128
4129 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
4130
e4d8bc08
JB
41312008-06-02 Roman Zippel <zippel@linux-m68k.org>
4132
4133 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
4134
40adab56
JB
41352008-06-01 Joel Brobecker <brobecker@adacore.com>
4136
4137 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
4138 treat pointers in data space as function descriptors if the
4139 target address is also in the data space.
4140
bfd66dd9
JB
41412008-05-30 Joel Brobecker <brobecker@adacore.com>
4142
4143 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
4144 the trad-frame register value for the SP register.
4145
7ea566be
MK
41462008-05-29 Mark Kettenis <kettenis@gnu.org>
4147
4148 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
4149
fcac911a
JB
41502008-05-28 Joel Brobecker <brobecker@adacore.com>
4151
4152 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
4153 that identifies function descriptors outside of the .opd section.
4154
ade92717
AR
41552008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
4156
4157 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 4158 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
4159 'bkptno'.
4160 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
4161 catchpoints.
4162 (handle_gnu_v3_exceptions): Use tempflag.
4163
f7f9ae2c
VP
41642008-05-28 Vladimir Prus <vladimir@codesourcery.com>
4165
4166 Refactor varobj_update interface.
680b56ce
AS
4167 * varobj.c (varobj_update): Report changes as vector. Also
4168 return not just a list of varobj, but a list of special structures
4169 that tell what exactly has changed.
4170 * varobj.h (enum varobj_update_error): Rename to
4171 varobj_scope_status.
4172 (struct varobj_update_result_t): New.
4173 (varobj_update): Adjust prototype.
4174 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 4175
ea56f9c2
VP
41762008-05-28 Vladimir Prus <vladimir@codesourcery.com>
4177
4178 * varobj.c (varobj_update): Fix comment typo.
4179 Fix indentation.
4180
c7efd0b9
JB
41812008-05-26 Joel Brobecker <brobecker@adacore.com>
4182
4183 Set the symtab field of symbols read from ECOFF debugging entries.
4184 * mdebugread.c (add_symbol): Add new parameter symtab.
4185 (parse_symbol): Update calls to add_symbol throughout.
4186
2a2d4dc3
AS
41872008-05-27 Andreas Schwab <schwab@suse.de>
4188
4189 * symtab.h (enum address_class): Remove LOC_REGPARM and
4190 LOC_COMPUTED_ARG.
4191 (struct symbol): Add is_argument.
4192 (SYMBOL_IS_ARGUMENT): Define.
4193
4194 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
4195 * buildsym.c (finish_block): Likewise.
4196 * stack.c (print_frame_args, print_block_frame_locals)
4197 (print_frame_arg_vars): Likewise.
4198 * symtab.c (lookup_block_symbol): Likewise.
4199 * tracepoint.c (add_local_symbols): Likewise.
4200 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4201
4202 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
4203 * dwarf2read.c (new_symbol): Likewise.
4204 * mdebugread.c (parse_symbol): Likewise.
4205 * stabsread.c (define_symbol): Likewise.
4206
4207 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
4208 and LOC_COMPUTED_ARG.
4209 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4210 * ax-gdb.c (gen_var_ref): Likewise.
4211 * eval.c (evaluate_subexp_for_address): Likewise.
4212 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4213 * m2-exp.y (yylex): Likewise.
4214 * printcmd.c (address_info): Likewise.
4215 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4216 * tracepoint.c (collect_symbol, scope_info): Likewise.
4217
17ea7499
CES
42182008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4219
4220 * gdbarch.sh: Added new gdbarch struct
4221 core_regset_sections.
4222 * gdbarch.c: Refreshed.
4223 * gdbarch.h: Refreshed.
4224 * regset.h (core_regset_section): Declared.
4225 * linux-nat.c (linux_nat_do_thread_registers): Added
4226 support for the new gdbarch struct core_regset_sections.
4227 * utils.c (host_address_to_string): New function.
4228 * defs.h (host_address_to_string): New prototype.
4229 * i386-linux-tdep.c (i386_regset_rections): New register
4230 sections list for i386.
4231 (i386_linux_init_abi): Initialized new gdbarch struct
4232 core_regset_sections.
4233 * Makefile.in: Updated to reflect dependency changes.
4234 * ppc-linux-tdep.c (ppc_regset_sections): Register
4235 sections list for ppc.
4236 (ppc_linux_init_abi): Initialized new gdbarch struct
4237 core_regset_sections
4238
c4fc331b
AS
42392008-05-24 Andreas Schwab <schwab@suse.de>
4240
4241 * linespec.c (decode_objc): Save current language around call to
4242 get_selected_block.
4243
e936309c
JB
42442008-05-23 Joel Brobecker <brobecker@adacore.com>
4245
4246 * valprint.h (get_array_bounds): Renames get_array_low_bound.
4247 * valprint.c (get_array_bounds): Renames get_array_low_bound.
4248 Return the proper bound value if the array index type is an
4249 enumerated type. Compute the high bound if requested.
4250 (val_print_array_elements): Handle the case when the array
4251 element has a null size.
4252 * ada-valprint.c (print_optional_low_bound): Add handling
4253 for empty arrays or arrays of zero-size elements.
4254 (ada_val_print_array): New function, extracted out from
4255 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
4256 handle empty arrays and arrays of zero-size elements.
4257 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
4258 code by call to ada_val_print_array.
4259 (ada_value_print): Remove handling of null array. The handling
4260 was incomplete and is now better handled by ada_val_print_array.
4261
50ee7535
MD
42622008-05-23 Markus Deuling <deuling@de.ibm.com>
4263
4264 * annotate.c (annotate_source, annotate_frame_begin): Replace
4265 deprecated_print_address_numeric with paddress.
4266 * cli/cli-cmds.c (list_command, edit_command): Likewise.
4267 * tui/tui-stack.c (tui_make_status_line): Likewise.
4268
4269 * defs.h (deprecated_print_address_numeric): Remove.
4270 * printcmd.c (deprecated_print_address_numeric): Remove.
4271 * maint.c (maint_print_section_info): Fix comment.
4272
d44e8473
MD
42732008-05-23 Markus Deuling <deuling@de.ibm.com>
4274
4275 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
4276 print_binary_chars, print_char_chars): Add byte_order parameter and
4277 replace gdbarch_byte_order.
4278 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
4279 expressions and remove them. Remove unused TWO_TO_FOURTH.
4280 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
4281 endianness. Update call to print_hex_chars.
4282 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
4283 print_binary_chars, print_char_chars): Add byte_order parameter.
4284 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
4285 get at the endianness. Update print_*_char calls to use byte_order.
4286
10f4ecb8
UW
42872008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4288
4289 * symtab.h (struct symbol): Make "aux_value" member a void pointer
4290 instead of a union.
4291 (SYMBOL_LOCATION_BATON): Update.
4292
c3b22bd0
UW
42932008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4294
4295 * symtab.h (enum address_class): Remove LOC_BASEREG and
4296 LOC_BASEREG_ARG.
4297 (struct symbol): Remove "basereg" member of "aux_value" union.
4298 (SYMBOL_BASEREG): Remove.
4299
4300 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
4301 or LOC_BASEREG_ARG.
4302 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4303 (ada_add_block_symbols): Likewise.
4304 * ax-gdb.c (gen_var_ref): Likewise.
4305 * buildsym.c (finish_block): Likewise.
4306 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4307 * m2-exp.y (yylex): Likewise.
4308 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4309 * printcmd.c (address_info): Likewise.
4310 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
4311 (print_frame_arg_vars): Likewise.
4312 * symmisc.c (print_symbol): Likewise.
4313 * symtab.c (lookup_block_symbol): Likewise.
4314 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4315 (scope_info): Likewise.
4316
aa59ba6b
UW
43172008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4318
4319 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
4320
4321 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
4322 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4323 (ada_add_block_symbols): Likewise.
4324 * ax-gdb.c (gen_var_ref): Likewise.
4325 * buildsyms.c (finish_block): Likewise.
4326 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4327 * m2-exp.y (yylex): Likewise.
4328 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4329 * printcmd.c (address_info): Likewise.
4330 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
4331 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4332 * symtab.c (lookup_block_symbol): Likewise.
4333 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4334 (scope_info): Likewise.
4335
0bb4e8c4
UW
43362008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4337
4338 * symtab.h (enum address_class): Remove LOC_INDIRECT and
4339 LOC_HP_THREAD_LOCAL_STATIC.
4340
4341 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
4342 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
4343 (read_var_value): Likewise.
4344 * buildsym.c (finish_block): Likewise.
4345 * objfiles.c (objfile_relocate): Likewise.
4346 * printcmd.c (address_info): Likewise.
4347 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4348 * tracepoint.c (scope_info): Likewise.
4349
9f61f19b
MG
43502008-05-21 Markus Deuling <deuling@de.ibm.com>
4351 Maxim Grigoriev <maxim2405@gmail.com>
4352
4353 * xtensa-tdep.c (xtensa_read_register): Remove.
4354 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
4355 argument litbase to call0_frame_cache().
4356 (call0_track_op, call0_analyze_prologue)
4357 (call0_frame_cache): Use extra argument litbase.
4358
0e479716
JB
43592008-05-21 Joel Brobecker <brobecker@adacore.com>
4360
4361 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
4362
214be669
UW
43632008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4364
4365 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
4366
0cd9ab92
UW
43672008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4368
4369 * alpha-mdebug-tdep.c: Include "trad-frame.h".
4370 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
4371 struct trad_frame_saved_reg *.
4372 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
4373 trad_frame_alloc_saved_regs. Update accesses. Record previous
4374 value of SP as being vfp.
4375 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
4376 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
4377
f52cb1b8
MD
43782008-05-21 Markus Deuling <deuling@de.ibm.com>
4379
4380 * score-tdep.c (score_print_insn): Get the current endianess from
4381 disassemble_info instead of gdbarch_byte_order.
4382
8fa75a5d
PA
43832008-05-21 Pedro Alves <pedro@codesourcery.com>
4384
4385 * frame.c (get_prev_frame_1): Build frame id before setting
4386 this_frame->prev_p, not after.
4387
e8e48118
NR
43882008-05-21 Nick Roberts <nickrob@snap.net.nz>
4389
4390 * annotate.c (annotate_new_thread): New function for new-thread
4391 annotation.
4392 * annotate.h: (annotate_new_thread): New extern.
4393 * thread.c (add_thread_with_info): Use it.
4394 * Makefile.in (thread.o): Add dependency on annotate.h.
4395
c57918b2
JB
43962008-05-20 Joel Brobecker <brobecker@adacore.com>
4397
4398 * win32-nat.c (win32_wait): Block the control-c event while
4399 waiting for a debug event.
4400
6c9353d3
PA
44012008-05-19 Pedro Alves <pedro@codesourcery.com>
4402
4403 * symtab.h (lookup_symbol_in_language): Update comment.
4404 * symtab.c (lookup_symbol_aux_block): Update comment.
4405 * ada-lang.c (ada_lookup_symbol_list): Update comment.
4406
2570f2b7
UW
44072008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4408
4409 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
4410 (lookup_symbol): Likewise.
4411 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
4412 (lookup_symbol): Likewise.
4413 (search_symbols): Update.
4414
4415 * linespec.c (find_methods, collect_methods): Update.
4416 (add_matching_methods, add_constructors): Update.
4417 (decode_compound, decode_dollar, decode_variable): Update.
4418 (lookup_prefix_sym): Update.
4419
4420 (symbol_found): Remove SYM_SYMTAB parameter.
4421 Use SYMBOL_SYMTAB (sym) instead.
4422
4423 * gdbtypes.c (lookup_typename): Update.
4424 (lookup_struct, lookup_union, lookup_enum): Update.
4425 (lookup_template_type): Update.
4426 (check_typedef): Update.
4427 * language.c (lang_bool_type): Update.
4428 * mdebugread.c (parse_procedure): Update.
4429 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4430 * parse.c (write_dollar_variable): Update.
4431 * printcmd.c (address_info): Update.
4432 * source.c (select_source_symtab): Update.
4433 * stack.c (print_frame_args, print_frame_arg_vars): Update.
4434 * valops.c (find_function_in_inferior): Update.
4435 (value_struct_elt_for_reference): Update.
4436 * value.c (value_static_field, value_fn_field): Update.
4437
4438 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4439 * arm-tdep.c (arm_skip_prologue): Update.
4440 * mt-tdep.c (mt_skip_prologue): Update.
4441 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
4442
4443 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
4444 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
4445 (add_defn_to_vec): Likewise.
4446 (ada_add_block_symbols): Likewise.
4447 (lookup_cached_symbol, cache_symbol): Likewise.
4448 (standard_lookup): Update.
4449 (ada_lookup_symbol_list): Update.
4450
4451 * c-valprint.c (c_val_print): Update.
4452 * cp-support.c (cp_lookup_rtti_type): Update.
4453 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
4454 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
4455 * p-valprint.c (pascal_val_print): Update.
4456 * scm-lang.c (scm_lookup_name): Update.
4457
4458 * c-exp.y: Update.
4459 * f-exp.y: Update.
4460 * jv-exp.y: Update.
4461 * m2-exp.y: Update.
4462 * objc-exp.y: Update.
4463 * p-exp.y: Update.
4464
21b556f4
UW
44652008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4466
4467 * language.h (struct language_defn): Remove SYMTAB parameter from
4468 la_lookup_symbol_nonlocal callback function pointer.
4469
4470 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4471 (ada_lookup_encoded_symbol): Likewise.
4472 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4473 Always call fixup_symbol_section.
4474 (ada_lookup_symbol): Remove SYMTAB parameter.
4475 (ada_lookup_symbol_nonlocal): Likewise.
4476 * ada-exp.y (write_object_renaming): Update.
4477 (find_primitive_type): Likewise.
4478
4479 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4480 (cp_lookup_symbol_namespace): Likewise.
4481 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
4482 (lookup_symbol_file): Likewise.
4483 (lookup_possible_namespace_symbol): Likewise.
4484 (cp_lookup_symbol_nonlocal): Likewise.
4485 (cp_lookup_symbol_namespace): Likewise.
4486 (cp_lookup_nested_type): Update.
4487
4488 * scm-valprint.c (scm_inferior_print): Update.
4489 * valops.c (value_maybe_namespace_elt): Update.
4490
4491 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
4492 lookup_lib_global_symbol callback function pointer.
4493 (solib_global_lookup): Remove SYMTAB parameter.
4494 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
4495 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4496
4497 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4498 (lookup_symbol_static): Likewise.
4499 (lookup_symbol_global): Likewise.
4500 (lookup_symbol_aux_block): Likewise.
4501 (lookup_global_symbol_from_objfile): Likewise.
4502 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
4503 (lookup_symbol_aux_local): Likewise.
4504 (lookup_symbol_aux_block): Likewise.
4505 (lookup_symbol_aux_symtabs): Likewise.
4506 (lookup_symbol_aux_psymtabs): Likewise.
4507 (lookup_global_symbol_from_objfile): Likewise.
4508 (basic_lookup_symbol_nonlocal): Likewise.
4509 (lookup_symbol_static): Likewise.
4510 (lookup_symbol_global): Likewise.
4511
4512 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
4513
39237dd1
PA
45142008-05-17 Pedro Alves <pedro@codesourcery.com>
4515
4516 * remote.c (init_extended_remote_ops): Fix typo.
4517
7c0d47a5
PA
45182008-05-16 Pedro Alves <pedro@codesourcery.com>
4519
4520 * NEWS: Mention new DICOS x86 target configuration.
4521
907fc202
UW
45222008-05-16 Pedro Alves <pedro@codesourcery.com>
4523 Ulrich Weigand <uweigand@de.ibm.com>
4524
4525 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
4526 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
4527
4528 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
4529 use it instead of ginfo->value.address. Look up minimal symbol by
4530 address and name. Assume OBJFILE is non-NULL.
4531 (fixup_symbol_section): Ensure we always have an objfile to look
4532 into. Extract and pass to fixup_section the symbol's address that
4533 will match the minimal symbol's address.
4534 (fixup_psymbol_section): Likewise.
4535
4536 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
4537 overlays and the addrmap returned the wrong section.
4538
4539 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
4540 calling fixup_symbol_section.
4541
42848c96
UW
45422008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4543
4544 * minsyms.c: Include "target.h".
4545 (find_solib_trampoline_target): Handle minimal symbols pointing
4546 to function descriptors as well.
4547 * Makefile.in (minsyms.o): Update dependencies.
4548
4549 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
4550 (ppc64_standard_linkage1): ... this. Fix optional instructions.
4551 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
4552 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
4553 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
4554 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
4555 (ppc64_standard_linkage_target): Rename to ...
4556 (ppc64_standard_linkage1_target): ... this.
4557 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
4558 (ppc64_skip_trampoline_code): Support three variants of standard
4559 linkage stubs. Call find_solib_trampoline_target to handle
4560 glink stubs.
4561
74d1f063
UW
45622008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4563
4564 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
4565 ppc64_sysv_abi_adjust_breakpoint_address.
4566 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4567 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4568
8526f328
UW
45692008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4570
4571 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
4572 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
4573 of ppc_linux_skip_trampoline_code.
4574
ba2b1c56
DJ
45752008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
4576
4577 * gdbarch.sh: Delete dwarf_reg_to_regnum.
4578 * gdbarch.c, gdbarch.h: Regenerated.
4579 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
4580 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
4581 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
4582
4fdebdd0
PA
45832008-05-15 Pedro Alves <pedro@codesourcery.com>
4584
4585 * linux-nat.c (trap_ptid): Delete.
4586 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
4587 Adjust.
4588 * linux-thread-db.c (thread_db_wait): Adjust.
4589
bc882aa9
JB
45902008-05-15 Joel Brobecker <brobecker@adacore.com>
4591
4592 * linespec.c (decode_line_1): Fix a couple of comments.
4593
83b94be5
AM
45942008-05-15 Alan Modra <amodra@bigpond.net.au>
4595
4596 * dbxread.c: Formatting.
4597 (INTERNALIZE_SYMBOL): Init n_other.
4598 (set_namestring): Take pointer to nlist arg rather than struct
4599 copy. Update all callers.
4600
87669130
AS
46012008-05-15 Andreas Schwab <schwab@suse.de>
4602
4603 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
4604 (dwarf2read.o): Add $(addrmap_h).
4605
00d5f93a
UW
46062008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4607
4608 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
4609 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
4610 to handle ppc32 PLT entries.
4611 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
4612 only on ppc64.
4613
2eaf8d2a
DJ
46142008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4615
4616 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
4617 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
4618 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
4619 (lookup_minimal_symbol_by_pc_section): Use
4620 lookup_minimal_symbol_by_pc_section_1.
4621 (lookup_solib_trampoline_symbol_by_pc): Likewise.
4622
20c62566
JB
46232008-05-13 Joel Brobecker <brobecker@adacore.com>
4624
4625 * findcmd.c: Add #include "gdb_stdint.h".
4626 * Makefile.in (findcmd.o): Update dependencies.
4627
87a7da84
DM
46282008-05-11 David S. Miller <davem@davemloft.net>
4629
de0c3d9d
DM
4630 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
4631 long double size override, Linux does use 128-bit now.
4632
e8467b5a
DM
4633 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
4634 (sparc_linux_write_pc): New function.
4635 (sparc32_linux_init_abi): Register it.
4636 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
4637 (sparc64_linux_write_pc): New function.
4638 (sparc64_linux_init_abi): Register it.
4639
87a7da84
DM
4640 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
4641 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
4642
8a4c2d24
UW
46432008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4644
4645 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
4646 and info.tdep_info before calling gdbarch_init_osabi.
4647
003f3813
JB
46482008-05-09 Joel Brobecker <brobecker@adacore.com>
4649
4650 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
4651 the type of the right hand side of the assignment to the type
4652 of the left hand side if the left hand side is a convenience
4653 variable.
4654
7ae0e2a2
UW
46552008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
4656
4657 * NEWS: Mention gdbserver bi-arch capability.
4658
08388c79
DE
46592008-05-09 Doug Evans <dje@google.com>
4660
4661 New "find" command.
4662 * NEWS: Document find command and qSearch:memory packet.
4663 * Makefile.in (SFILES): Add findcmd.c.
4664 (COMMON_OBJS): Add findcmd.o.
4665 (findcmd.o): New rule.
4666 * findcmd.c: New file.
4667 * target.h (target_ops): New member to_search_memory.
4668 (simple_search_memory): Declare.
4669 (target_search_memory): Declare.
4670 * target.c (simple_search_memory): New fn.
4671 (target_search_memory): New fn.
4672 * remote.c (PACKET_qSearch_memory): New packet kind.
4673 (remote_search_memory): New fn.
4674 (init_remote_ops): Init to_search_memory.
4675 (init_extended_remote_ops): Ditto.
4676 (_initialize_remote): Add qSearch:memory packet config command.
4677
11c68c47
EZ
46782008-05-09 Eli Zaretskii <eliz@gnu.org>
4679
4680 * thread.c (_initialize_thread): Don't use commas and periods in
4681 first line of doc string of "set/show print thread-events".
4682
6834c9bb
JB
46832008-05-08 Joel Brobecker <brobecker@adacore.com>
4684
4685 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
4686 Update for unwinder changes.
4687
86c31399
JB
46882008-05-08 Joel Brobecker <brobecker@adacore.com>
4689
4690 * frame.c (get_frame_base_address, get_frame_locals_address)
4691 (get_frame_args_address): Pass the correct frame when calling
4692 frame_base_find_by_frame.
4693
96ef3384
UW
46942008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4695
4696 * remote.c (extended_remote_attach_1): Call target_find_description.
4697
45280a52
DJ
46982008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
4699
4700 * remote.c (extended_remote_create_inferior_1): Clean up
4701 before marking the target running.
4702
227e86ad
JB
47032008-05-08 Joel Brobecker <brobecker@adacore.com>
4704
4705 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
4706 changes.
4707
236369e7
JB
47082008-05-07 Joel Brobecker <brobecker@adacore.com>
4709
4710 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
4711 sparc64-sol2-tdep.c: Update for unwinder changes.
4712
de237128
DJ
47132008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4714
4715 * cp-support.c (mangled_name_to_comp): Initialize storage.
4716 (unqualified_name_from_comp): Likewise.
4717
4fff2411
JZ
47182008-05-07 Jie Zhang <jie.zhang@analog.com>
4719
4720 * remote.c (remote_insert_breakpoint): Call get_remote_state
4721 after gdbarch_breakpoint_from_pc is called.
4722 (remote_insert_hw_breakpoint): Likewise.
4723
d8ca156b
JB
47242008-05-06 Joel Brobecker <brobecker@adacore.com>
4725
4726 * valprint.c (val_print): Add new language parameter and use it
4727 instead of using the current_language. Update calls to val_print
4728 throughout.
4729 (common_val_print): Add new langauge parameter and pass it to
4730 val_print.
4731 * value.h (struct language_defn): Add opaque declaration.
4732 (val_print, common_val_print): Update declarations.
4733 * stack.c (print_frame_args): Update call to common_val_print
4734 using the appropriate language.
4735 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4736 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
4737 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
4738 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
4739 #include "language.h" if necessary.
4740 Update calls to val_print and common_val_print.
4741 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
4742 Update dependencies.
4743
b1e6fd19
JB
47442008-05-06 Joel Brobecker <brobecker@adacore.com>
4745
4746 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
4747 pointing inside a non-executable section as function descriptors.
4748
02b19d84
PA
47492008-05-06 Pedro Alves <pedro@codesourcery.com>
4750
4751 * inf-loop.c (inferior_event_handler): Run all continuations and
4752 print any language change before running the breakpoint commands.
4753
15c1e57f
JB
47542008-05-06 Joel Brobecker <brobecker@adacore.com>
4755
4756 * frame-unwind.c (frame_unwind_got_bytes): New function.
4757 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
4758 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
4759 for unwinder changes.
4760
d14508fe
DE
47612008-05-05 Doug Evans <dje@google.com>
4762
4763 * NEWS: Mention new /m modifier for disassemble command.
4764 * cli/cli-cmds.c (print_disassembly): New function.
4765 (disassemble_current_function): New function
4766 (disassemble_command): Recognize /m modifier, print mixed
4767 source+assembly.
4768 (init_cli_cmds): Update disassemble help text.
4769
5142f611
MG
47702008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
4771
4772 * xtensa-tdep.c: Update for unwinder changes.
4773
f36bf22c
AS
47742008-05-05 Andreas Schwab <schwab@suse.de>
4775
4776 Update m68k port for unwinder changes.
4777 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
4778 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
4779 (m68k_frame_unwind): Use default_frame_sniffer.
4780 (m68k_frame_sniffer): Remove.
4781 (m68k_frame_base_address): Expect this_frame.
4782 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
4783 this_frame.
4784 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
4785 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
4786 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
4787 parameter instead of pc value.
4788 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
4789 Expect this_frame.
4790 (m68k_linux_sigtramp_frame_this_id)
4791 (m68k_linux_sigtramp_frame_prev_register)
4792 (m68k_linux_sigtramp_frame_sniffer): Update signature.
4793 (m68k_linux_sigtramp_frame_unwind): Use
4794 m68k_linux_sigtramp_frame_sniffer.
4795 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
4796
4797 * m68klinux-nat.c (store_register): Fix typo.
4798
b3dc826b
PA
47992008-05-05 Pedro Alves <pedro@codesourcery.com>
4800
4801 * infcmd.c (step_1): Put thread id on the stack to avoid possible
4802 NULL dereferencing.
4803
6528a9ea
LM
48042008-05-05 Luis Machado <luisgpm@br.ibm.com>
4805
4806 * symfile.c (reread_symbols): Update objfile's entry point.
4807
5eeb2539
AR
48082008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
4809 Joel Brobecker <brobecker@adacore.com>
1f906a60 4810
5eeb2539
AR
4811 * ada-lang.c: Update throughout to use symbol_matches_domain
4812 instead of matching the symbol domain explictly.
4813 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 4814 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 4815 class as typedefs. See lookup_partial_symbol function.
f36bf22c 4816 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
4817 symbol for the typedef. See lookup_block_symbol.
4818 * symtab.c (symbol_matches_domain): New function, takes care
4819 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
4820 (lookup_partial_symbol): Use symbol_matches_domain to see if the
4821 found psym domain matches the given domain.
4822 (lookup_block_symbol): Likewise.
4823
e2b7ddea
VP
48242008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4825
680b56ce
AS
4826 * top.c (command_line_handler_continuation): Remove.
4827 (execute_command): Do not install the above.
e2b7ddea 4828
fcfb8b02
VP
48292008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4830
4831 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
4832 and catch all exceptions from it.
4833 * top.c (command_line_handler_continuation): Don't
4834 call bpstat_do_action here.
4835
f792889a
DJ
48362008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4837
4838 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
4839 (struct die_info): Remove type.
4840 (read_type_die, read_typedef, read_base_type, read_subrange_type)
4841 (read_structure_type, read_enumeration_type, read_array_type)
4842 (read_tag_pointer_type, read_tag_ptr_to_member_type)
4843 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
4844 (read_tag_string_type, read_subroutine_type, read_set_type)
4845 (read_unspecified_type): Delete prototypes. Remove check for
4846 already-loaded type. Return the new type.
4847 (set_die_type): Return the new type.
4848 (reset_die_and_siblings_types): Delete.
4849 (load_comp_unit, load_full_comp_unit): Set type_hash.
4850 (process_queue): Remove call to reset_die_and_siblings_types.
4851 (process_die): Do not read most types here. Use read_type_die
4852 for others.
4853 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
4854 (quirk_gcc_member_function_pointer): Return the new type.
4855 (process_structure_scope, process_enumeration_scope): Use
4856 get_die_type and read the DIE's type.
4857 (read_full_die): Do not initialize die->type.
4858 (tag_type_to_type): Use read_type_die.
4859 (read_type_die): Check for already defined types. Return the
4860 type.
4861 (determine_prefix): Use get_die_type.
4862 (set_die_type): Return the type.
4863 (get_die_type): Take a CU argument. Check for no type_hash.
4864
e7030f15
DJ
48652008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4866
4867 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
4868 locals.
4869
611c83ae
PA
48702008-05-04 Pedro Alves <pedro@codesourcery.com>
4871
4872 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
4873 and bp_longjmp_resume breakpoints.
4874 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
4875 meaningful.
4876 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
4877 breakpoints. Create bp_longjmp breakpoints as momentary
4878 breakpoints.
4879 (enable_longjmp_breakpoint): Delete.
4880 (set_longjmp_breakpoint): New.
4881 (disable_longjmp_breakpoint): Delete.
4882 (delete_longjmp_breakpoint): New.
4883 (set_longjmp_resume_breakpoint): Delete.
4884 (set_momentary_breakpoint_at_pc): New.
4885 (breakpoint_re_set_one): Don't delete bp_longjmp and
4886 bp_longjmp_resume breakpoints.
4887 (breakpoint_re_set): Don't create longjmp and longjmp-resume
4888 breakpoints.
4889
4890 * infrun.c (step_resume_breakpoint): Add comment.
4891 (struct execution_control_state): Delete handling_longjmp member.
4892 (init_execution_control_state). Don't clear handling_longjmp.
4893 (context_switch): Don't context switch handling_longjmp.
4894 (handle_inferior_event): If handling a bp_longjmp breakpoint,
4895 create a bp_longjmp_resume breakpoint, and set it as current
4896 step_resume_breakpoint, then step over the longjmp breakpoint. If
4897 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
4898 breakpoint, delete the longjmp-resume breakpoint, and stop
4899 stepping.
4900 (currently_stepping): Remove handling_longjmp from expression.
4901 (insert_step_resume_breakpoint_at_sal): Update comment.
4902 (insert_longjmp_resume_breakpoint): New.
4903
4904 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
4905 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
4906 declarations.
4907 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
4908 (set_longjmp_resume_breakpoint): Delete declaration.
4909
4910 * gdbthread.h (save_infrun_state): Remove handling_longjmp
4911 parameter.
4912 (load_infrun_state): Delete *handling_longjmp parameter.
4913 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
4914 Update body.
4915 (load_infrun_state): Delete *handling_longjmp parameter. Update
4916 body.
4917
4918 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
4919 (delete_longjmp_breakpoint_cleanup): New.
4920 (step_1): Call set_longjmp_breakpoint instead of
4921 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
4922 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
4923 (step_1_continuation): Pass thread id in the continuation args to
4924 step_once.
4925 (step_once): Add thread parameter. Pass thread id the the
4926 continuation.
4927
85cbf3d3
JK
49282008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4929
4930 Set CU BASE_ADDRESS already from partial DIEs.
4931 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
4932 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
4933 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
4934 from these variables if it was still unset.
4935
ff013f42
JK
4936 * Makefile.in: Update dependencies.
4937 * dwarf2read.c: Include "addrmap.h"
4938 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
4939 (dwarf2_ranges_read): New prototype.
4940 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
4941 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
4942 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
4943 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
4944 comment for it. Add the found ranges to RANGES_PST. New variable
4945 BASEADDR, initialize it the common way.
4946 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
4947 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
4948 HAS_RANGES_OFFSET for the later processing.
4949 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
4950 * symtab.c: Include "addrmap.h"
4951 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
4952 Move the psymtab locator into ...
4953 (find_pc_sect_psymtab_closer): ... a new function.
4954
a7f1256d
UW
49552008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4956
4957 * arch-utils.c (gdbarch_update_p): Use default values for
4958 info.abfd and info.target_desc if they are NULL.
4959 (gdbarch_from_bfd): Remove assertion.
4960 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
4961 using the current target description.
4962 (gdbarch_info_fill): Do not use default values for info->abfd
4963 and info->target_desc.
4964
b2de52bb
JK
49652008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
4968
515630c5
UW
49692008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4970
4971 * inferior.h (read_pc_pid, write_pc_pid): Remove.
4972 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
4973
4974 * regcache.c (read_pc_pid): Remove, replace by ...
4975 (regcache_read_pc): ... this function.
4976 (write_pc_pid): Remove, replace by ...
4977 (regcache_write_pc): ... this function.
4978 (read_pc, write_pc): Update.
4979
4980 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
4981 write_pc_pid by regcache_read_pc and regcache_write_pc.
4982 (displaced_step_fixup): Likewise.
4983 (resume): Likewise. Use regcache arch instead of current_gdbarch.
4984 (prepare_to_proceed): Likewise.
4985 (proceed): Likewise.
4986 (adjust_pc_after_break): Likewise.
4987 (handle_inferior_event): Likewise.
4988
4989 * linux-nat.c (cancel_breakpoint): Likewise.
4990 * linux-thread-db.c (check_event): Likewise.
4991 * aix-thread.c (aix_thread_wait): Likewise.
4992 * tracepoint.c (trace_dump_command): Likewise.
4993
ebd3bcc1
JK
49942008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4995
4996 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
4997 SYMBOL_LOCATION_BATON.
4998
c47ffbe3
VP
49992008-05-04 Vladimir Prus <vladimir@codesourcery.com>
5000
f78bff48
VP
5001 * target.h (struct target_ops): New field to_auxv_parse.
5002 * auxv.c (default_auxv_parse): New, renamed from previous
5003 target_auxv_parse.
5004 (target_auxv_parse): Try to call target method. Fallback to
5005 default_auxv_parse if not found.
5006 * procfs.c (procfs_auxv_parse): New.
5007 (init_procfs_ops): On Solaris, in 64-bit mode, install
5008 procfs_auxv_parse.
c47ffbe3 5009
35076fa0
AN
50102008-05-03 Adam Nemet <anemet@caviumnetworks.com>
5011
5012 * symfile.c (add_symbol_file_command): Use paddress rather than
5013 hex_string to print the address.
5014
5b197912
UW
50152008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5016
5017 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
5018 return the null frame ID to terminate the backtrace.
5019
4a7622d1
UW
50202008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5021
5022 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
5023 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
5024 (SIG_FRAME_PC_OFFSET): Likewise.
5025 (SIG_FRAME_LR_OFFSET): Likewise.
5026 (SIG_FRAME_FP_OFFSET): Likewise.
5027 (rs6000_push_dummy_call): Likewise.
5028 (rs6000_return_value): Likewise.
5029 (rs6000_convert_from_func_ptr_addr): Likewise.
5030 (branch_dest, rs6000_software_single_step): Likewise.
5031 (deal_with_atomic_sequence): Rename to ...
5032 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
5033 Do not call branch_dest; inline required parts of that function.
5034 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
5035 with SYMBOL_LINKAGE_NAME.
5036 (struct reg, regsize): Delete.
5037 (read_memory_addr): Delete; inline into callers.
5038 (rs6000_skip_prologue): Move after skip_prologue.
5039 (skip_prologue): Remove prototype.
5040 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
5041 initialization as if this variable were true. Do not install
5042 ppc64_sysv_abi_adjust_breakpoint_address.
5043
5044 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
5045 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
5046 and "breakpoint.h".
5047 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
5048 (SIG_FRAME_PC_OFFSET): Likewise.
5049 (SIG_FRAME_LR_OFFSET): Likewise.
5050 (SIG_FRAME_FP_OFFSET): Likewise.
5051 (rs6000_push_dummy_call): Likewise.
5052 (rs6000_return_value): Likewise.
5053 (rs6000_convert_from_func_ptr_addr): Likewise.
5054 (branch_dest, rs6000_software_single_step): Likewise. Replace
5055 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
5056 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
5057 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
5058 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
5059 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
5060
5061 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
5062 (AIX_TEXT_SEGMENT_BASE): New macro.
5063 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
5064 by AIX_TEXT_SEGMENT_BASE.
5065
5066 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
5067 (struct gdbarch_tdep): Remove text_segment_base member.
5068 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
5069 ppc64_sysv_abi_adjust_breakpoint_address.
5070
5071 * Makefile.in (rs6000-tdep.o): Update dependencies.
5072 (rs6000-aix-tdep.o): Likewise.
5073
938f5214
TJB
50742008-05-03 Luis Machado <luisgpm@br.ibm.com>
5075 Thiago Jung Bauermann <bauerman@br.ibm.com>
5076
5077 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
5078 * doublest.c (convert_typed_floating): Fix typo in comment.
5079 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5080 * frame-unwind.h (frame_sniffer_ftype): Likewise.
5081 * frame.c (frame_unwind_address_in_block): Likewise.
5082 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
5083 * symtab.h (struct symbol): Likewise.
5084 * tramp-frame.h (struct trad_frame_cache): Likewise.
5085 * value.c (allocate_repeat_value): Likewise.
5086
0b02b92d
UW
50872008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5088
5089 * infrun.c (handle_inferior_event): Do not insert breakpoints at
5090 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
5091
d705c43c
PA
50922008-05-03 Pedro Alves <pedro@codesourcery.com>
5093
5094 * parse.c (parse_exp_in_context): Don't override
5095 expression_context_pc if get_selected_block returned a valid
5096 block.
5097
d6350901
DJ
50982008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
5099
5100 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
5101 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
5102 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
5103 Delete.
5104 * c-typeprint.c (c_type_print_base): Delete handling of template
5105 instantiations.
5106 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
5107 (METHOD_PTR_TO_VOFFSET): Delete.
5108 * defs.h (QUIT_FIXME): Delete.
5109 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
5110 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
5111 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
5112 ninstantiations, and instantiations.
5113 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
5114 (TYPE_FN_FIELD_INLINED): Delete.
5115 * srec.h (SREC_BINARY): Delete.
5116 * symtab.c (symbol_init_demangled_name): Delete.
5117 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
5118 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
5119 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
5120 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
5121 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
5122 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
5123 * target.h (enum thread_control_capabilities): Delete tc_switch.
5124 (target_can_switch_threads): Delete.
5125
30510692
DJ
51262008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
5127
5128 * Makefile.in (objfiles.o): Update.
5129 * exec.c (exec_set_section_address): Support p->addr != 0.
5130 * objfiles.c (objfile_relocate): Update exec_ops section
5131 addresses.
5132 * symfile.c (place_section): Move exec_set_section_address call...
5133 (default_symfile_offsets): ...to here.
5134
7284e1be
UW
51352008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5136
5137 * Makefile.in (ppc_linux_tdep_h): New macro.
5138 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
5139 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
5140 (powerpc_e500l_c): Likewise.
5141 (ppc-linux-nat.o): Update dependencies.
5142 (ppc-linux-tdep.o): Update dependencies.
5143 (rs6000-tdep.o): Update dependencies.
5144
5145 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
5146 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
5147 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
5148 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
5149 (tdesc_powerpc_e500): Remove.
5150
5151 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
5152 and "features/rs6000/powerpc-altivec64.c".
5153 (ppc_supply_reg, ppc_collect_reg): Make global.
5154 (variants): Use tdesc_powerpc_32 for "powerpc" and
5155 tdesc_powerpc_altivec64 for "powerpc64".
5156 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
5157
5158 * ppc-linux-tdep.h: New file.
5159
5160 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
5161 Include "features/rs6000/powerpc-32l.c".
5162 Include "features/rs6000/powerpc-altivec32l.c".
5163 Include "features/rs6000/powerpc-64l.c".
5164 Include "features/rs6000/powerpc-altivec64l.c".
5165 Include "features/rs6000/powerpc-e500l.c".
5166 (ppc_linux_supply_gregset): New function.
5167 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
5168 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
5169 (ppc64_linux_gregset): Likewise.
5170 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
5171 (ppc_linux_trap_reg_p): New function.
5172 (ppc_linux_write_pc): New function.
5173 (ppc_linux_core_read_description): New function.
5174 (ppc_linux_init_abi): Install ppc_linux_write_pc and
5175 ppc_linux_core_read_description. Install orig_r3 and trap
5176 registers if present in the target description.
5177 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
5178
5179 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
5180 (PT_ORIG_R3, PT_TRAP): Define if necessary.
5181 (ppc_register_u_addr): Handle orig_r3 and trap registers.
5182 (fetch_ppc_registers): Likewise.
5183 (store_ppc_registers): Likewise.
5184 (store_register): Likewise.
5185 (ppc_linux_read_description): Check whether AltiVec is supported.
5186 Check whether inferior is 32-bit or 64-bit. Return the appropriate
5187 Linux target description.
5188
5189 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
5190 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
5191 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
5192 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
5193 rs6000/powerpc-e500. Update -expedite variables accordingly.
5194
5195 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
5196 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
5197 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
5198 * features/rs6000/powerpc-e500.c: Regenerate.
5199 * features/rs6000/powerpc-32.c: Regenerate.
5200 * features/rs6000/powerpc-64.c: Regenerate.
5201
5202 * features/rs6000/power-linux.xml: New file.
5203 * features/rs6000/power64-linux.xml: New file.
5204 * features/rs6000/powerpc-32l.xml: New file.
5205 * features/rs6000/powerpc-altivec32l.xml: New file.
5206 * features/rs6000/powerpc-64l.xml: New file.
5207 * features/rs6000/powerpc-altivec64l.xml: New file.
5208 * features/rs6000/powerpc-e500l.xml: New file.
5209 * features/rs6000/powerpc-32l.c: New (generated) file.
5210 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
5211 * features/rs6000/powerpc-64l.c: New (generated) file.
5212 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
5213 * features/rs6000/powerpc-e500l.xml: New (generated) file.
5214
5215 * regformats/reg-ppc.dat: Remove.
5216 * regformats/reg-ppc64.dat: Remove.
5217 * regformats/rs6000/powerpc-32.dat: Remove.
5218 * regformats/rs6000/powerpc-64.dat: Remove.
5219 * regformats/rs6000/powerpc-e500.dat: Remove.
5220 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
5221 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
5222 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
5223 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
5224 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
5225
063bfe2e
VP
52262008-05-03 Pedro Alves <pedro@codesourcery.com>
5227
5228 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
5229 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
5230 thread_exit observer.
5231 (mi_thread_exit): New.
063bfe2e 5232
f132ba9d
TJB
52332008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5234
5235 * breakpoint.c (create_exception_catchpoint): Remove prototype
5236 for already deleted function.
5237 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
5238 * frame.h (show_stack_frame): Remove prototype.
5239 * stack.c (show_stack_frame): Remove empty, unused function.
5240 * source.c (symtab_to_fullname, print_source_lines): Small fix
5241 in comment.
5242 * value.c (show_values): Update comments to mention "show values"
5243 command instead of "info history".
5244
bccdca4a
UW
52452008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5246
5247 * linespec.c: Include "target.h".
5248 (minsym_found): Handle minimal symbols pointing to function
5249 descriptors. Use find_function_start_pc.
5250 * minsyms.c (msymbol_objfile): New function.
5251 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
5252 to function descriptors.
5253 * symtab.c (fixup_section): Only use minimal symbol at the same
5254 address to determine section of a symbol.
5255 (find_function_start_pc): New function.
5256 (find_function_start_sal): Use it.
5257 * symtab.h (msymbol_objfile): Add prototype.
5258 (find_function_start_pc): Likewise.
5259 * value.c: Include "objfiles.h".
5260 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 5261 descriptors.
bccdca4a
UW
5262 * Makefile.in (linespec.o): Update dependencies.
5263 (value.o): Likewise.
5264
de4d072f
JB
52652008-05-02 Joel Brobecker <brobecker@adacore.com>
5266
5267 * ada-lang.c (unwrap_value): Handle the case where the "F" field
5268 inside a PAD type is a bitfield.
5269
93d4208d
UW
52702008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5271
5272 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
5273 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5274 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5275 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
5276 Allow typedefs when checking for function pointer arguments.
5277 Right-align small structs passed on the stack.
5278 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
5279 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5280 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5281
60c5725c
DJ
52822008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5283
5284 * Makefile.in (arm-tdep.o): Update.
5285 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
5286 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
5287 (arm_pc_is_thumb): Use mapping symbols.
5288 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
5289 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
5290 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
5291 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
5292 * gdbarch.sh: Add record_special_symbol.
5293 * gdbarch.c, gdbarch.h: Regenerated.
5294 * objfiles.c (struct objfile_data): Add cleanup member.
5295 (register_objfile_data_with_cleanup): New function, from
5296 register_objfile_data.
5297 (register_objfile_data): Use it.
5298 (objfile_free_data): Call clear_objfile_data.
5299 (clear_objfile_data): Call cleanup functions.
5300 * objfiles.h (register_objfile_data_with_cleanup): Declare.
5301
574dffa2
DJ
53022008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5303
5304 * objfiles.c (init_entry_point_info): Handle shared libraries.
5305
2c404490
DJ
53062008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5307
5308 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
5309 lowest_pc.
5310
237fc4c9
PA
53112008-05-02 Jim Blandy <jimb@codesourcery.com>
5312 Pedro Alves <pedro@codesourcery.com>
5313
5314 Implement displaced stepping.
5315
5316 * gdbarch.sh (max_insn_length): New 'variable'.
5317 (displaced_step_copy, displaced_step_fixup)
5318 (displaced_step_free_closure, displaced_step_location): New
5319 functions.
5320 (struct displaced_step_closure): Add forward declaration.
5321 * gdbarch.c, gdbarch.h: Regenerated.
5322
5323 * arch-utils.c: #include "objfiles.h".
5324 (simple_displaced_step_copy_insn)
5325 (simple_displaced_step_free_closure)
5326 (displaced_step_at_entry_point): New functions.
5327 * arch-utils.h (simple_displaced_step_copy_insn)
5328 (simple_displaced_step_free_closure)
5329 (displaced_step_at_entry_point): New prototypes.
5330
5331 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
5332 (I386_MAX_MATCHED_INSN_LEN): ... this.
5333 (i386_absolute_jmp_p, i386_absolute_call_p)
5334 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
5335 (i386_displaced_step_fixup): New functions.
5336 (struct i386_insn, i386_match_insn): Update.
5337 (i386_gdbarch_init): Set gdbarch_max_insn_length.
5338 * i386-tdep.h (I386_MAX_INSN_LEN): New.
5339 (i386_displaced_step_fixup): New prototype.
5340 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
5341 Register gdbarch_displaced_step_copy,
5342 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
5343 and gdbarch_displaced_step_location functions.
5344
5345 * infrun.c (debug_displaced): New variable.
5346 (show_debug_displaced): New function.
5347 (struct displaced_step_request): New struct.
5348 (displaced_step_request_queue, displaced_step_ptid)
5349 (displaced_step_gdbarch, displaced_step_closure)
5350 (displaced_step_original, displaced_step_copy)
5351 (displaced_step_saved_copy, can_use_displaced_stepping): New
5352 variables.
5353 (show_can_use_displaced_stepping, use_displaced_stepping)
5354 (displaced_step_clear, cleanup_displaced_step_closure)
5355 (displaced_step_dump_bytes, displaced_step_prepare)
5356 (displaced_step_clear_cleanup, write_memory_ptid)
5357 (displaced_step_fixup): New functions.
5358 (resume): Call displaced_step_prepare.
5359 (proceed): Call read_pc once, and remember the value. If using
5360 displaced stepping, don't remove breakpoints.
5361 (handle_inferior_event): Call displaced_step_fixup. Add some
5362 debugging output. When we try to step over a breakpoint, but get
5363 a signal to deliver to the thread instead, ensure the step-resume
5364 breakpoint is actually inserted. If a thread hop is needed, and
5365 displaced stepping is enabled, don't remove breakpoints.
5366 (init_wait_for_inferior): Call displaced_step_clear.
5367 (_initialize_infrun): Add "set debug displaced" command. Add
5368 "maint set can-use-displaced-stepping" command. Clear
5369 displaced_step_ptid.
5370 * inferior.h (debug_displaced): Declare variable.
5371 (displaced_step_dump_bytes): Declare function.
5372
5373 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
5374 dependencies.
5375
0428b8f5
DJ
53762008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5377
5378 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
5379 (arm_force_mode_string, arm_show_fallback_mode)
5380 (arm_show_force_mode): New.
5381 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
5382 arm_frame_is_thumb.
5383 (_initialize_arm_tdep): Add "set arm fallback-mode"
5384 and "set arm force-mode".
5385 * NEWS: Document new commands.
5386
d01a8610
AS
53872008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
5388
5389 * main.h (batch_silent): Declare.
5390 * event-top.c: Include main.h.
5391 (gdb_setup_readline): Remove extern batch_silent declaration.
5392 * infrun.c (normal_stop): Don't print source location when running in
5393 --batch-silent mode.
5394 * Makefile.in (event-top.o): Add main.h dependency.
5395
5009afc5
AS
53962008-05-02 Andreas Schwab <schwab@suse.de>
5397
5398 * target.h (struct target_ops): Add
5399 to_watchpoint_addr_within_range.
5400 (target_watchpoint_addr_within_range): New function.
5401 * target.c (update_current_target): Inherit
5402 to_watchpoint_addr_within_range, defaulting to
5403 default_watchpoint_addr_within_range.
5404 (default_watchpoint_addr_within_range): New function.
5405 (debug_to_watchpoint_addr_within_range): New function.
5406 (setup_target_debug): Set to_watchpoint_addr_within_range.
5407 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
5408 New function.
5409 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
5410 * breakpoint.c (watchpoints_triggered): Use
5411 target_watchpoint_addr_within_range.
5412
a15c5c83
PA
54132008-05-01 Pedro Alves <pedro@codesourcery.com>
5414
5415 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
5416 (i[34567]86-*-dicos*, x86_64-*-dicos*):
5417 Set gdb_osabi to GDB_OSABI_DICOS.
5418
5419 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
5420 * osabi.c (gdb_osabi_name): Add "DICOS".
5421
5422 * i386-dicos-tdep.c: New file.
5423
5424 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
5425 (ALLDEPFILES): Add i386-dicos-tdep.c.
5426 (i386-dicos-tdep.o): New rule.
5427
728c8f58
PA
54282008-05-01 Pedro Alves <pedro@codesourcery.com>
5429
5430 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
5431 and register the fork's PTID as a thread.
5432
604133b5
AR
54332008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5434
5435 PR gdb/1665
5436 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
5437 assign its value to the breakpoint created.
5438 (create_breakpoints): Add breakpoint_ops argument and pass it
5439 to create_breakpoint call.
5440 (break_command_really): Add breakpoint_ops argument and pass/assign
5441 appropriately.
5442 (break_command_1): Pass NULL as ops argument.
5443 (set_breakpoint): Pass NULL as ops argument.
5444 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
5445 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
5446 catch and throw catchpoints.
5009afc5 5447
1f906a60 54482008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
5449
5450 PR gdb/2343
5451 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
5452 translate signal numeric value from the target to GDB's enum
5453 target_signal.
5454 * gdbarch.c, gdbarch.h: Regenerated.
5455 * gdbarch.sh: Added two new functions target_signal_from_host and
5456 target_signal_to_host.
680b56ce 5457 * target.h (default_target_signal_from_host,
1cded358
AR
5458 default_target_signal_to_host): New functions - declarations.
5459 * signals/signals.c (struct gdbarch): New declaration.
5460 (default_target_signal_to_host, default_target_signal_from_host): New
5461 functions.
5462
ed5e9466
DJ
54632008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5464 Pedro Alves <pedro@codesourcery.com>
5465
5466 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
5467 Johnston <jjohnstn@redhat.com>.
5468
5469 * NEWS: Mention attach to stopped process fix.
5470 * infcmd.c (detach_command, disconnect_command): Discard the thread
5471 list.
5472 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
5473 attaching. Use signal_stop_state.
5474 (signal_stop_state): Check stop_soon.
5475 * linux-nat.c (kill_lwp): Declare earlier.
5476 (pid_is_stopped, linux_nat_post_attach_wait): New.
5477 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
5478 comments.
5479 (linux_nat_attach): Use linux_nat_post_attach_wait.
5480 (detach_callback, linux_nat_detach): Improve handling for signalled
5481 processes.
5482 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
5483 from the process ID.
5484 * Makefile.in (infcmd.o): Update.
5485
b39cc962
DJ
54862008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5487
5488 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
5489 * arm-tdep.c (arm_frame_is_thumb): New.
5490 (arm_pc_is_thumb): Clarify comment.
5491 (thumb_analyze_prologue): Remove PC special case.
5492 (thumb_scan_prologue): Take a block_addr argument. Use it for
5493 find_pc_partial_function. Remove unused variables.
5494 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
5495 for find_pc_partial_function. Remove PC special case.
5496 (arm_prologue_prev_register): Add special handling for PC and CPSR.
5497 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
5498 (arm_get_next_pc): Use arm_frame_is_thumb.
5499 (arm_write_pc): Use CPSR_T instead of 0x20.
5500 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
5501 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
5502 (CPSR_T): Define.
5503 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
5504 DWARF2_FRAME_REG_FN.
5505 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
5506 DWARF2_FRAME_REG_FN.
5507 (struct dwarf2_frame_state_reg): Add FN to loc union.
5508
944f08ab
JB
55092008-05-01 Nick Roberts <nickrob@snap.net.nz>
5510
5511 * exec.c (print_section_info): Add missing '\n'.
5512
cfc01461
VP
55132008-05-01 Vladimir Prus <vladimir@codesourcery.com>
5514
5515 * thread.c (add_thread): Move observer call to ...
680b56ce 5516 (add_thread_silent): ... here.
cfc01461 5517
1af5d7ce
UW
55182008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5519
5520 * rs6000-tdep.c: Update for unwinder changes.
5521 * ppcobsd-tdep.c: Likewise.
5522
f089c433
UW
55232008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5524
5525 * s390-tdep.c: Update for unwinder changes.
5526
8d998b8f
UW
55272008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5528
5529 * spu-tdep.c: Update for unwinder changes.
5530
5366653e
DJ
55312008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5532
5533 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
5534 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
5535 sparc64-linux-tdep.c: Update for unwinder changes.
5536
b8a22b94
DJ
55372008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5538
5539 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
5540 for unwinder changes.
5541 * mips-tdep.c: Likewise.
5542 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
5543 raw one.
5544
a262aec2
DJ
55452008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5546
5547 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
5548 unwinder changes.
5549
10458914
DJ
55502008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5551
5552 Update i386 and amd64 ports for unwinder changes.
5553
5554 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
5555 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
5556 (amd64_frame_unwind): Use default_frame_sniffer.
5557 (amd64_frame_sniffer): Delete.
5558 (amd64_sigtramp_frame_cache): Expect this_frame.
5559 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
5560 (amd64_sigtramp_frame_sniffer): Update signature.
5561 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
5562 (amd64_frame_base_address): Expect this_frame.
5563 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
5564 this_frame.
5565 (amd64_init_abi): Use set_gdbarch_dummy_id and
5566 frame_unwind_append_unwinder.
5567 * i386-tdep.c (i386_frame_cache): Expect this_frame.
5568 (i386_frame_this_id, i386_frame_prev_register): Update signature.
5569 (i386_frame_unwind): Use default_frame_sniffer.
5570 (i386_frame_sniffer): Delete.
5571 (i386_sigtramp_frame_cache): Expect this_frame.
5572 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
5573 (i386_sigtramp_frame_sniffer): Update signature.
5574 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
5575 (i386_frame_base_address): Update signature.
5576 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
5577 (i386_push_dummy_call): Update comment.
5578 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
5579 Expect this_frame.
5580 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
5581 and frame_unwind_append_unwinder.
5582 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
5583 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
5584 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
5585 i386nbsd-tdep.c: Update for unwinder changes.
5586
25492ce3
DJ
55872008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5588
5589 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
5590 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
5591 this_frame.
5592 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
5593 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
5594 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
5595 signature.
5596 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
5597 this_frame.
5598 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
5599 Update signature.
5600 * tramp-frame.h (struct tramp_frame): Update signature of init.
5601 * Makefile.in (trad-frame.o): Update.
5602
4a4e5149
DJ
56032008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5604
5605 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
5606 (execute_stack_op): Put this_frame in the baton.
5607 (execute_cfa_program): Take this_frame.
5608 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
5609 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
5610 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
5611 (dwarf2_frame_this_id): Adjust to work on this_frame.
5612 (dwarf2_signal_frame_this_id): Delete.
5613 (dwarf2_frame_prev_register): Update signature. Use new frame
5614 unwind methods.
5615 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
5616 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
5617 dwarf2_frame_sniffer.
5618 (dwarf2_append_unwinders): New.
5619 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
5620 this_frame.
5621 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
5622 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
5623 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
5624 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
5625 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
5626 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
5627 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
5628 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
5629 (dwarf2_append_unwinders): Declare.
5630 (dwarf2_frame_base_sniffer): Update declaration.
5631 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
5632 this_frame.
5633
669fac23
DJ
56342008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5635
5636 Convert frame unwinders to use the current frame and
5637 "struct value".
5638
5639 * frame.c (frame_debug): Make global.
5640 (get_frame_id): Pass this frame to unwinder routines.
5641 (frame_pc_unwind): Remove unused unwind->prev_pc support.
5642 (do_frame_register_read): Do not discard the return value of
5643 frame_register_read.
5644 (frame_register_unwind): Remove debug messages. Use
5645 frame_unwind_register_value.
5646 (frame_unwind_register_value, get_frame_register_value): New
5647 functions.
5648 (create_new_frame, get_frame_base_address, get_frame_locals_address)
5649 (get_frame_args_address, get_frame_type): Pass this frame to
5650 unwinder routines.
5651 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
5652 functions.
5653 * frame.h: Update comments.
5654 (frame_debug, frame_unwind_register_value, get_frame_register_value)
5655 (frame_prepare_for_sniffer): Declare.
5656 * frame-unwind.h: Update comments and parameter names.
5657 (default_frame_sniffer): Declare.
5658 (frame_prev_register_ftype): Return a struct value *.
5659 (struct frame_unwind): Remove prev_pc member.
5660 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
5661 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
5662 (frame_unwind_got_register, frame_unwind_got_memory)
5663 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
5664 * frame-base.h: Update comments and parameter names.
5665 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
5666 if necessary. Add debugging output.
5667 * sentinel-frame.c (sentinel_frame_prev_register)
5668 (sentinel_frame_this_id): Update for new signature.
5669 (sentinel_frame_prev_pc): Delete.
5670 (sentinel_frame_unwinder): Remove prev_pc.
5671 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
5672 prev_pc.
5673 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
5674 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
5675 (frame_unwind_append_sniffer): Delete.
5676 (frame_unwind_append_unwinder): New function.
5677 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
5678 from unwinders. Use frame_prepare_for_sniffer.
5679 (default_frame_sniffer, frame_unwind_got_optimized)
5680 (frame_unwind_got_register, frame_unwind_got_memory)
5681 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
5682 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
5683 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
5684 signature.
5685 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
5686 * gdbarch.c, gdbarch.c: Regenerated.
5687 * frame-base.c (default_frame_base_address)
5688 (default_frame_locals_address, default_frame_args_address): Update
5689 for new signature.
5690 (frame_base_find_by_frame): Pass this frame to unwinder routines.
5691 * infcall.c (call_function_by_hand): Update comments.
5692 * Makefile.in (frame-unwind.o): Update dependencies.
5693
9214ee5f
DJ
56942008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5695
5696 * ada-lang.c (ada_value_primitive_packed_val): Only check
5697 value_lazy for memory lvals.
5698 * findvar.c (value_of_register_lazy): New function.
5699 (locate_var_value): Only check value_lazy for memory lvals.
5700 * valarith.c (value_subscripted_rvalue): Likewise.
5701 * valops.c (value_fetch_lazy): Handle both memory and register
5702 lvals.
5703 (search_struct_field, value_slice): Only check value_lazy for memory
5704 lvals.
5705 * value.c (struct value): Update comment for lazy.
5706 (value_primitive_field): Only check value_lazy for memory lvals.
5707 * value.h (value_lazy): Update comment.
5708 (value_of_register_lazy): Declare.
5709
939643d7
DJ
57102008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5711
5712 * corefile.c (reopen_exec_file): Close any open files.
5713
1de34ab7
JB
57142008-04-29 Joel Brobecker <brobecker@adacore.com>
5715
5716 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
5717 show_memory_breakpoints to 1 while reading the instruction bundle.
5718
ea42b34a
JB
57192008-04-29 Joel Brobecker <brobecker@adacore.com>
5720
5721 * gdbarch.sh: Document the return_value method. Explain that
5722 the FUNCTYPE parameter might be NULL.
5723 * gdbarch.h: Regenerated.
5724 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
5725 type when calling using_struct_return, as this is unnecessary
5726 on this target.
5727
a0fe373c
JB
57282008-04-28 Joel Brobecker <brobecker@adacore.com>
5729
5730 * terminal.h (create_tty_session): Fix return type.
5731
c6446539
VP
57322008-04-26 Vladimir Prus <vladimir@codesourcery.com>
5733
5734 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
5735
2f069f6f
JB
57362008-04-26 Joel Brobecker <brobecker@adacore.com>
5737
5738 * breakpoint.c (condition_command, commands_from_control_command)
5739 (break_command_really): Minor reformatting.
5740
93b5768b
PA
57412008-04-25 Pedro Alves <pedro@codesourcery.com>
5742
5743 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
5744
436675d3
PA
57452008-04-25 Pedro Alves <pedro@codesourcery.com>
5746
5747 * amd64-tdep.c (amd64_get_longjmp_target): New.
5748 (amd64_init_abi): Register amd64_get_longjmp_target as
5749 gdbarch_get_longjmp_target callback.
5750 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
5751
78b6a731
PA
57522008-04-25 Pedro Alves <pedro@codesourcery.com>
5753
5754 * breakpoint.h (enum bpstat_what_main_action): Delete
5755 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
5756
5757 * breakpoint.c (clrs): Delete.
5758 (bpstat_what): Update table.
5759
5760 * infrun.c (handle_inferior_event): Remove
5761 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
5762
9e22b03a
VP
57632008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5764
5765 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
5766 Adjust all prototypes using mi_cmd_args_ftype to use
5767 mi_cmd_argv_ftype.
5768 (struct mi_cmd): Remove the args_func field.
5769 * mi/mi-cmds.c: Don't provide value for the args_func field.
5770 * mi/mi-main.c (mi_execute_async_cli_command)
5771 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
5772 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
5773 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
5774 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
5775 (mi_cmd_target_download): Adjust.
5776 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
5777 (mi_cmd_execute): Do not check for args_func.
5778 (mi_execute_async_cli_command): Adjust.
5779 * mi/mi-parse.c: Don't check for args_func.
5780
721c02de 57812008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 5782
680b56ce
AS
5783 * breakpoint.c (bpstat_check_location)
5784 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
5785 New, extracted from bpstat_stop_status.
5786 (bpstat_stop_status): Use the above.
18a18393
VP
5787
57882008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5789
680b56ce
AS
5790 * mi/mi-main.c (last_async_command): Rename to current_token.
5791 (previous_async_command): Remove.
5792 (mi_cmd_gdb_exit): Adjust.
5793 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
5794 (mi_cmd_target_select): Adjust.
5795 (mi_cmd_execute): Don't set previous_async_command. Free token
5796 here even in async mode.
5797 (mi_execute_async_cli_command): Adjust.
5798 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
5799 token.
5800 (mi_load_progress): Adjust.
721c02de 5801
f13468d9
VP
58022008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5803
680b56ce
AS
5804 * infcmd.c (step_1_continuation): Always disable longjmp
5805 breakpoint if we're not going to do another step.
f13468d9 5806
f107f563
VP
58072008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5808
5809 exec_cleanup murder.
5810 * breakpoint.c (until_break_command_continuation): Add
5811 the 'error' parameter. Directly delete the breakoint as
5812 opposed to running cleanups.
5813 (until_break_command): Install continuation only
5814 after starting the target. Don't use exec cleanups,
5815 use ordinary cleanups. Discard cleanups is successfully
5816 started the target in async mode.
5817 (make_cleanup_delete_breakpoint): Remove.
5818 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
5819 declaration.
5820 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
5821 declarations.
5822 (struct continations): Add the 'error' parameter to the
5823 continuation_hook field.
5824 (add_continuation, do_all_continuations)
5825 (add_intermediate_continuation)
5826 (do_all_intermediate_continuations): Add the 'error' parameter.
5827 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
5828 * inf-loop.c (inferior_event_handler): Instead of calling
5829 discard_all_continuations, use do_all_continuations with 1 as
5830 'error' parameter. Pass 0 as 'error' parameter in existing uses
5831 of discard_all_continuations.
5832 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
5833 cleanups.
5834 (step_once): Install continuation only after resuming the target.
5835 (step_1_continuation): Disable longjmp breakpoint on error.
5836 (finish_command_continuation): Add the error parameter. Delete
5837 the finish breakpoint directly, do not use cleanups.
5838 (finish_command): Do not use exec_cleanups. Always setup
5839 continuation. For sync case, immediately run them.
5840 (attach_command_continuation): Add the error parameter.
5841 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
5842 remove step_resume_breakpoint -- adjust delete it directly.
5843 * interps.c (interp_set): Adjust call to do_all_continations.
5844 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
5845 do exec cleanups.
5846 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
5847 cleanups.
5848 (mi_cmd_execute): Do not use exec_cleanup.
5849 (mi_execute_async_cli_command): Simplify the string concatenation
5850 logic. Do no use exec cleanup.
5851 (mi_exec_async_cli_cmd_continuation): New parameter error.
5852 Free last_async_command.
5853 * top.c (command_line_handler_continuation): New parameter error.
5854 * utils.c (exec_cleanup_chain, make_exec_cleanup)
5855 (do_exec_cleanups): Remove.
5856 (add_continuation, do_all_continations)
5857 (add_intermediate_continuation)
5858 (do_all_intermediate_continuations): New parameter error.
5859
74960c60
VP
58602008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5861
5862 * breakpoint.h (bp_location_p): New typedef.
5863 Register a vector of bp_location_p.
5864 * breakpoint.c (always_inserted_mode)
5865 (show_always_inserted_mode): New.
5866 (unlink_locations_from_global_list): Remove.
5867 (update_global_location_list)
5868 (update_global_location_list_nothrow): New.
5869 (update_watchpoint): Don't free locations.
5870 (should_insert_location): New.
5871 (insert_bp_location): Use should_insert_location.
5872 (insert_breakpoint_locations): Copied from
5873 insert_breakpoints.
5874 (insert_breakpoint): Use insert_breakpoint_locations.
5875 (bpstat_stop_status): Call update_global_location_list
5876 when disabling breakpoint.
5877 (allocate_bp_location): Don't add to bp_location_chain.
5878 (set_raw_breakpoint)
5879 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
5880 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
5881 (enable_overlay_breakpoints, disable_overlay_breakpoints)
5882 (set_longjmp_resume_breakpoint)
5883 (enable_watchpoints_after_interactive_call_stop)
5884 (disable_watchpoints_before_interactive_call_start)
5885 (create_internal_breakpoint)
5886 (create_fork_vfork_event_catchpoint)
5887 (create_exec_event_catchpoint, set_momentary_breakpoint)
5888 (create_breakpoints, break_command_1, watch_command_1)
5889 (create_exception_catchpoint)
5890 (handle_gnu_v3_exceptions)
5891 (disable_breakpoint, breakpoint_re_set_one)
5892 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5893 (create_ada_exception_breakpoint): : Don't call check_duplicates.
5894 Call update_global_location_list.
5895 (delete_breakpoint): Don't remove locations and don't
5896 try to reinsert them. Call update_global_location_list.
5897 (update_breakpoint_locations): Likewise.
5898 (restore_always_inserted_mode): New.
5899 (update_breakpoints_after_exec): Temporary disable
5900 always inserted mode.
5901 * Makefile.in: Update dependencies.
5902
5903 * infrun.c (proceed): Remove breakpoints while stepping
5904 over breakpoint.
5905 (handle_inferior_event): Don't remove or insert
5906 breakpoints.
5907 * linux-fork.c (checkpoint_command): Remove breakpoints
5908 before fork and insert after.
5909 (linux_fork_context): Remove breakpoints before switch
5910 and insert after.
5911 * target.c (target_disconnect, target_detach): Remove
5912 breakpoints from target.
5913
680b56ce 5914
d24317b4
VP
59152008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5916
5917 * breakpoint.c (print_one_breakpoint_location): In MI
5918 mode, report the location string the breakpoint was
5919 originally created with.
5920
ee967b5f
MG
59212008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
5922
5923 * Makefile.in (xtensa-tdep.o): Update dependencies.
5924 * configure.tgt (xtensa*): Update dependencies.
5925 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
5926 Local variable areg renamed to arreg.
5927 (areg_number): New function.
5928 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
5929 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
5930 replaced by arreg_number.
5931 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
5932 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
5933 (xtensa_scan_prologue): New function.
5934 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
5935 when ENTRY instraction hasn't been executed yet. Get the frame pointer
5936 value based on prologue analysis. Fix the bugs preventing WS and
5937 AR4-AR7/A11 registers from getting right values for intermediate frames,
5938 whose registers have been already spilled.
5939 (xtensa_frame_prev_register): Fix WS register value. Use are_number
5940 and arreg_number appropriately.
5941 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
5942 svr4_ilp32_fetch_link_map_offsets.
5943
09d71d23
AS
59442008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
5945
5946 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
5947 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
5948
fdc59709
PB
59492008-04-23 Paolo Bonzini <bonzini@gnu.org>
5950
680b56ce
AS
5951 * acinclude.m4: Add override.m4.
5952 * configure: Regenerate.
fdc59709 5953
0bcd0149
JK
59542008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 * ada-lang.c (get_selections): Variable PROMPT made non-const and
5957 initialized with a trailing space now. Use PROMPT_ARG of
5958 COMMAND_LINE_INPUT instead of printing it ourselves.
5959
88d8a8e0
JB
59602008-04-22 Joel Brobecker <brobecker@adacore.com>
5961
5962 * NEWS: Document support for 64-bit core file.
5963
c055b101
CV
59642008-04-22 Corinna Vinschen <vinschen@redhat.com>
5965
5966 * NEWS: Add information on calling convention and new SH CLI options.
5967
5968 * sh-tdep.c (sh_cc_gcc): New static string.
5969 (sh_cc_renesas): Ditto.
5970 (sh_cc_enum): New static string array.
5971 (sh_active_calling_convention): New static string pointer denoting
5972 active user chosen ABI.
5973 (sh_is_renesas_calling_convention): New function to return function
5974 specific ABI, or user choice if necessary.
5975 (sh_use_struct_convention): Rename first argument and turn around its
5976 meaning. Check for renesas ABI and return accordingly.
5977 (sh_use_struct_convention_nofpu): New function.
5978 (sh_next_flt_argreg): Get function type as third parameter. Check
5979 for renesas ABI and choose floating registers accordingly.
5980 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
5981 struct return slot accordingly.
5982 (sh_push_dummy_call_nofpu): Ditto.
5983 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
5984 Evaluate ABI and give to sh_use_struct_convention_nofpu.
5985 (sh_return_value_fpu): Evaluate ABI and give to
5986 sh_use_struct_convention.
5987 (show_sh_command): New function.
5988 (set_sh_command): Ditto.
5989 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
5990 CLI command.
5991
5992 * gdbarch.sh (return_value): Add func_type argument.
5993 * gdbarch.c: Regenerate.
5994 * gdbarch.h: Ditto.
5995 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
5996 val_type so as not to collide with value_type function. Call
5997 using_struct_return with additional function type argument.
5998 * infcall.c (call_function_by_hand): Call using_struct_return and
5999 gdbarch_return_value with additional function type argument.
6000 * infcmd.c (print_return_value): Take addition func_type argument.
6001 Call gdbarch_return_value with additional function type argument.
6002 (finish_command_continuation): Call print_return_value with additional
6003 function type argument.
6004 (finish_command): Ditto.
6005 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
6006 additional function type argument.
6007 * stack.c (return_command): Call using_struct_return and
6008 gdbarch_return_value with additional function type argument.
6009 * value.c (using_struct_return): Take additional function type argument.
6010 * value.h (using_struct_return): Accommodate declaration.
6011 * alpha-tdep.c (alpha_return_value): Add func_type argument.
6012 * amd64-tdep.c (amd64_return_value): Ditto.
6013 * arm-tdep.c (arm_return_value): Ditto.
6014 * avr-tdep.c (avr_return_value): Ditto.
6015 * cris-tdep.c (cris_return_value): Ditto.
6016 * frv-tdep.c (frv_return_value): Ditto.
6017 * h8300-tdep.c (h8300_return_value): Ditto.
6018 (h8300h_return_value): Ditto.
6019 * hppa-tdep.c (hppa32_return_value): Ditto.
6020 (hppa64_return_value): Ditto.
6021 * i386-tdep.c (i386_return_value): Ditto.
6022 * ia64-tdep.c (ia64_return_value): Ditto.
6023 * iq2000-tdep.c (iq2000_return_value): Ditto.
6024 * m32c-tdep.c (m32c_return_value): Ditto.
6025 * m32r-tdep.c (m32r_return_value): Ditto.
6026 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
6027 * m68k-tdep.c (m68k_return_value): Ditto.
6028 (m68k_svr4_return_value): Ditto.
6029 * m88k-tdep.c (m88k_return_value): Ditto.
6030 * mep-tdep.c (mep_return_value): Ditto.
6031 * mips-tdep.c (mips_eabi_return_value): Ditto.
6032 (mips_n32n64_return_value): Ditto.
6033 (mips_o32_return_value): Ditto.
6034 (mips_o64_return_value): Ditto.
6035 * mn10300-tdep.c (mn10300_return_value): Ditto.
6036 * mt-tdep.c (mt_return_value): Ditto.
6037 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
6038 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
6039 (ppc_sysv_abi_broken_return_value): Ditto.
6040 (ppc64_sysv_abi_return_value): Ditto.
6041 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
6042 (ppc_sysv_abi_broken_return_value): Ditto.
6043 (ppc64_sysv_abi_return_value): Ditto.
6044 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
6045 * rs6000-tdep.c (rs6000_return_value): Ditto.
6046 * s390-tdep.c (s390_return_value): Ditto.
6047 * score-tdep.c (score_return_value): Ditto.
6048 * sh-tdep.c (sh_return_value_nofpu): Ditto.
6049 (sh_return_value_fpu): Ditto.
6050 * sh64-tdep.c (sh64_return_value): Ditto.
6051 * sparc-tdep.c (sparc32_return_value): Ditto.
6052 * sparc64-tdep.c (sparc64_return_value): Ditto.
6053 * spu-tdep.c (spu_return_value): Ditto.
6054 * v850-tdep.c (v850_return_value): Ditto.
6055 * vax-tdep.c (vax_return_value): Ditto.
6056 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
6057 * xtensa-tdep.c (xtensa_return_value): Ditto.
6058
6059 * gdbtypes.h (struct type): Add calling_convention member.
6060 * dwarf2read.c (read_subroutine_type): Add calling convention read
6061 from DW_AT_calling_convention attribute to function type.
6062
9eec4d1e
MD
60632008-04-22 Markus Deuling <deuling@de.ibm.com>
6064
6065 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
6066 multi_f77_subscript to support values from registers.
6067 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
6068 * value.h (value_subscripted_rvalue): Add prototype.
6069
6070 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
6071 Fix output.
6072 * f-valprint.c (f_val_print): Likewise.
6073
ef72380d
CS
60742008-04-21 Craig Silverstein <csilvers@google.com>
6075
6076 * dwarf2read.c (zlib_decompress_section): Define abfd in the
6077 !HAVE_ZLIB_H case.
6078
ff8e85c3
PA
60792008-04-21 Pedro Alves <pedro@codesourcery.com>
6080
6081 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
6082 section is not a code section.
6083
31fffb02
CS
60842008-04-19 Craig Silverstein <csilvers@google.com>
6085
6086 * NEWS: Add information on compressed debug sections.
6087
8e91f023
VP
60882008-04-19 Vladimir Prus <vladimir@codesourcery.com>
6089
6090 * mi/mi-cmd-var.c (varobj_update_one): Print new
6091 value for variable objects that changed type.
6092
603ba1de
VP
60932008-04-19 Vladimir Prus <vladimir@codesourcery.com>
6094
6095 * varobj.c (varobj_invalidate): Don't touch floating
6096 varobjs.
6097
7fc830e2
MK
60982008-04-19 Mark Kettenis <kettenis@gnu.org>
6099
6100 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
6101 (multiple_symbols_cancel): Remove extra const.
6102 * symtab.h: Likewise.
6103
bcbf8b68
NR
61042008-04-19 Nick Roberts <nickrob@snap.net.nz>
6105
6106 * interps.c (top_level_interpreter): Rename static variable...
6107 (top_level_interpreter_ptr): ...to this.
6108 (top_level_interpreter): New function.
6109
6110 * interps.h: New extern for top_level_interpreter.
6111
6112 * linespec.c: Include interps.h and mi/mi-cmds.h.
6113 (decode_line_2): When using MI, always set all breakpoints in menu.
6114
6115 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
6116
31fffb02 61172008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
6118
6119 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
6120 * config.in, configure: Regenerate.
6121 * dwarf2read.c: Include zlib.h if present.
6122 Modified *_SECTION macros.
6123 (section_is_p): New.
6124 (dwarf2_locate_sections): Use section_is_p instead of strcmp
6125 (dwarf2_resize_section): New.
6126 to determine whether a given section has a given name.
6127 (zlib_decompress_section): New.
6128 (dwarf2_read_section): Read the compressed section if present
6129 in the binary.
6130 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 6131
a03b3a97
TJB
61322008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
6133
6134 * defs.h (exec_set_section_offsets): Remove prototype.
6135 * exec.c (exec_set_section_offsets): Remove function.
6136
9e386756
JB
61372008-04-18 Joel Brobecker <brobecker@adacore.com>
6138
6139 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
6140 in the search for the matching symbol.
6141
2ec93238
MK
61422008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
6143
6144 * breakpoint.c (update_watchpoint): Always reparse
6145 condition.
6146
e9bbd7c5
JB
61472008-04-17 Joel Brobecker <brobecker@adacore.com>
6148
6149 * breakpoint.c (print_one_breakpoint_location): Make sure to print
6150 the breakpoint address only once.
6151
475bbd17
JB
61522008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
6153
6154 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
6155 rather than a hard-coded architecture, for xcoff executables.
6156
86991504
DE
61572008-04-17 Doug Evans <dje@google.com>
6158
4584e32e
DE
6159 * buildsym.c (watch_main_source_file_lossage): New fn.
6160 (end_symtab): Call it.
6161
86991504
DE
6162 * source.c (find_and_open_source): Add some comments clarifying
6163 handling of FULLNAME argument. Make static. Remove pointless
6164 xstrdup/xfree.
6165
0a320680
PA
61662008-04-17 Pedro Alves <pedro@codesourcery.com>
6167
6168 * inf-loop.c (inferior_event_handler): Also run the intermediate
6169 continuations in the INF_EXEC_COMPLETE case.
6170
700b53b1
TT
61712008-04-16 Tom Tromey <tromey@redhat.com>
6172
6173 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
6174 (set_cmd_async_ok, get_cmd_async_ok): Declare.
6175 * cli/cli-decode.c (set_cmd_async_ok): New function.
6176 (get_cmd_async_ok): New function.
6177 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
6178 "show" as async-ok.
6179 * top.c (execute_command): Use get_cmd_async_ok.
6180 * infcmd.c: Include cli/cli-decode.h.
6181 (_initialize_infcmd): Mark "interrupt" as async-ok.
6182 * Makefile.in (infcmd.o): Depend on cli_decode_h.
6183
dacec2a8
DJ
61842008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
6185
6186 PR gdb/2445
6187 * exec.c: Correct "arch-utils.h" include.
6188
1f906a60 61892008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
6190
6191 PR gdb/2424
6192 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
6193 to allow printing to 'see' real reason of stop. This fixes PR 2424.
6194 * breakpoint.c (bpdisp_texst): New function. The function takes over
6195 the role of bpstats static array in print_one_breakpoint_location.
6196 (print_it_typical): Print "Temporary breakpoint" instead
6197 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
6198 protocols, print disp field.
6199 (print_one_breakpoint_location): Removed bpdisps static definition.
6200 Call new bpstat_text function to get value for 'disp' field.
6201 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
6202
4d7b71aa
DJ
62032008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
6204
6205 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
6206 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
6207 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
6208 * gnulib/Makefile.in: Regenerate.
6209
aa11fd3f
DJ
62102008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6211
6212 * Makefile.in (GNULIB_H): New. Trigger all-lib.
6213 (defs_h): Use $(GNULIB_H).
6214 (all-lib): Depend on gnulib/Makefile.
6215 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
6216 * config.in, gnulib/Makefile.in: Regenerated.
6217
e28b3332
DJ
62182008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6219
6220 * Makefile.in (LIBGNU, INCGNU): Define.
6221 (INTERNAL_CFLAGS_BASE): Add INCGNU.
6222 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
6223 (CLEANDIRS): New.
6224 ($(LIBGNU), all-lib): New rules.
6225 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
6226 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
6227 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
6228 * gnulib: New directory, from gnulib-tool.
6229 * configure, aclocal.m4: Regenerated.
6230
e3bc4218
DJ
62312008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6232
6233 * linux-thread-db.c (have_threads_callback): Check thread->private.
6234
fcacd99f
VP
62352008-04-13 Nick Roberts <nickrob@snap.net.nz>
6236 Vladimir Prus <vladimir@codesourcery.com>
6237
6238 Fix @-varobjs.
680b56ce
AS
6239 * varobj.c (value_of_root): Update the expression for
6240 floating varobjs.
6241 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
6242 report that.
fcacd99f 6243
de051565
MK
62442008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
6245
6246 * mi/mi-cmd-var.c: Include "mi-getopt.h".
6247 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
6248 (mi_cmd_var_set_format): Use new mi_parse_format.
6249 (mi_cmd_var_evaluate_expression): Support for -f option to specify
6250 format.
6251 * Makefile.in (mi-cmd-var.o): Update dependencies.
6252
6253 * varobj.h (varobj_get_formatted_value): Declare.
6254 * varobj.c (my_value_of_variable): Added format parameter.
6255 (cplus_value_of_variable): Likewise.
6256 (java_value_of_variable): Likewise.
6257 (c_value_of_variable): Likewise. Evaluate expression based
6258 on format parameter.
6259 (struct language_specific): Add format parameter to function member
6260 *value_of_variable.
6261 (varobj_get_formatted_value): New.
6262 (varobj_get_value): Added format parameter to method call.
680b56ce 6263
56953f80
JB
62642008-04-08 Joel Brobecker <brobecker@adacore.com>
6265
6266 * stabsread.c (cleanup_undefined_types_noname): Manually set the
6267 instance flags of the undefined type before calling replace_type.
6268
e4e33b9e
VP
62692008-04-08 Vladimir Prus <vladimir@codesourcery.com>
6270
6271 * target.h (enum strata): Remove the download_stratum.
680b56ce 6272
92b5c263
DE
62732008-04-07 Doug Evans <dje@google.com>
6274
6275 * buildsym.h (last_source_file): Add dwarf info to comment.
6276 (last_source_start_addr): Ditto.
6277
effa26a9
PA
62782008-04-07 Pedro Alves <pedro@codesourcery.com>
6279
6280 * alphanbsd-tdep.c: Include "target.h".
6281 * mn10300-tdep.c: Include "target.h".
6282 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
6283
2b2d9e11
VP
62842008-04-06 Vladimir Prus <vladimir@codesourcery.com>
6285
6286 Fix breakpoint condition that use member variables.
680b56ce
AS
6287 * valops.c (check_field): Remove.
6288 (check_field_in): Rename to check_field.
6289 (value_of_this): Use la_name_of_this.
6290 * value.h (check_field): Adjust prototype.
6291
6292 * language.h (la_value_of_this): Rename to la_name_of_this.
6293 * language.c (unknown_language_defn): Specify "this" for
6294 name_of_this.
6295 (auto_language_defn): Likewise.
6296 (local_language_defn): Likewise.
6297 * ada-lang.c (ada_language_defn): Adjust comment.
6298 * c-lang.c (c_language_defn): Adjust comment.
6299 (cplus_language_defn): Specify "this" for name_of_this.
6300 (asm_language_defn): Adjust comment.
6301 (minimal_language_defn): Adjust comment.
6302 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
6303 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
6304 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
6305 * objc-lang.c (objc_language_defn): Specify "self" for
6306 name_of_this.
6307 * p-lang.c (pascal_language_defn): Specify "this" for
6308 name_of_this.
6309 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
6310
6311 * symtab.c (lookup_symbol_aux): Lookup "this" in the
6312 proper scope, and check for field in type of "this", without
6313 trying to create a value.
2b2d9e11 6314
a13e061a
PA
63152008-04-04 Pedro Alves <pedro@codesourcery.com>
6316
6317 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
6318 (mi_error_message): Delete declaration.
6319 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
6320 returning MI_CMD_ERROR.
6321 * mi/mi-main.c (mi_error_message): Delete.
6322 (mi_cmd_exec_interrupt):
6323 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6324 (mi_cmd_thread_info): Call error instead of returning
6325 MI_CMD_ERROR.
6326 (mi_cmd_data_list_register_values): Call error instead of
6327 returning MI_CMD_ERROR. Adapt to new get_register interface.
6328 (get_register): Change return typo to void. Call error instead of
6329 returning MI_CMD_ERROR.
6330 (mi_cmd_data_write_register_values): Call error instead of
6331 returning MI_CMD_ERROR.
6332 (mi_cmd_list_features): Return MI_CMD_DONE.
6333 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
6334 (mi_execute_command): Always print exceptions with -error.
6335
aad4b048
JB
63362008-04-04 Joel Brobecker <brobecker@adacore.com>
6337
6338 * NEWS: Mention new commands set/show multiple-symbols.
6339
717d2f5a
JB
63402008-04-03 Joel Brobecker <brobecker@adacore.com>
6341
6342 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
6343 (multiple_symbols_cancel): New constants.
6344 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
6345 (multiple_symbols_select_mode): New function.
6346 (_initialize_symtab): Add new set/show multiple-symbols commands.
6347 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
6348 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
6349 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
6350 setting.
6351 * linespec.c (decode_line_2): Likewise.
6352
f73634e5
DE
63532008-04-03 Doug Evans <dje@sebabeach.org>
6354
6355 * symtab.h (enum free_code): Delete free_contents, unused.
6356 * symmisc.c (free_symtab_block): Delete.
6357 (free_symtab, case free_code): Delete.
6358
1f906a60 63592008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
6360
6361 * valops.c (value_cast_structs): New function. Cast related
680b56ce 6362 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
6363 function comes mostly from value_cast_pointers.
6364 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
6365 to value_cast_structs. Now value_cast_pointers needs only create
6366 appropriate reference after using value_cast_structs for actual
6367 casting.
6368 (value_cast): Handle references.
6369
61ad90e1
MK
63702008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
6371
6372 * MAINTAINERS: Added myself to section Write After Approval.
6373
b7d038ae
DJ
63742008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6375
6376 * ia64-tdep.c (examine_prologue): Correct array access.
6377
1f906a60 63782008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
6379
6380 * cp-support.c (first_component_command): Return if no arguments.
6381
df3ac606
CD
63822008-03-28 Carlos O'Donell <carlos@codesourcery.com>
6383
6384 * ser-mingw.c (ser_windows_open): Open requested name.
6385
ca933485
AR
63862008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
6387
6388 * MAINTAINERS: Added myself.
6389
5f667f2d
PA
63902008-03-28 Pedro Alves <pedro@codesourcery.com>
6391
6392 * target.c (find_default_run_target): Allow a NULL `do_mesg'
6393 parameter. If it is NULL, don't call error.
6394 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
6395 `do_mesg' parameter to find_default_run_target. If no target was
6396 found, return 0.
6397
e741f4d4
DJ
63982008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
6399
6400 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
6401 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
6402 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
6403 Delete.
6404 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
6405
f66d8205 64062008-03-27 Joel Brobecker <brobecker@adacore.com>
6407
6408 GDB 6.8 released.
6409
221c031f
UW
64102008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6411
6412 * features/Makefile (%.dat): Set xmltarget to the base filename
6413 of the XML source, without subdirectory.
6414 * regformats/rs6000/powerpc-32.dat: Regenerate.
6415 * regformats/rs6000/powerpc-64.dat: Regenerate.
6416 * regformats/rs6000/powerpc-e500.dat: Regenerate.
6417
40c58d95
MD
64182008-03-27 Markus Deuling <deuling@de.ibm.com>
6419
6420 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
6421 objfile arch.
6422
bb1ec7d2
NR
64232008-03-27 Nick Roberts <nickrob@snap.net.nz>
6424
6425 * mi/mi-main.c (enum captured_mi_execute_command_actions):
6426 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
6427
5e2b427d
UW
64282008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6429
6430 * objfiles.h (struct objfile): New GDBARCH member.
6431 (get_objfile_arch): Add prototype.
6432 * objfiles.c: Include "arch-utils.h".
6433 (allocate_objfile): Look up gdbarch associated with bfd.
6434 (get_objfile_arch): New function.
6435 * Makefile (objfiles.o): Update dependencies.
6436
6437 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
6438 by objfile arch.
6439 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
6440 by frame arch.
6441 (locexpr_describe_location): Replace current_gdbarch by
6442 objfile arch.
6443 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
6444 (dwarf2_add_field): Likewise.
6445 (read_tag_pointer_type): Likewise.
6446 (read_base_type): Likewise.
6447 (new_symbol): Likewise.
6448
6449 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
6450 (decode_base_type, decode_function_type): Likewise.
6451 (coff_read_struct_type, coff_read_enum_type): Likewise.
6452 (coff_symtab_read): Replace current_gdbarch by objfile arch.
6453 (decode_base_type): Likewise.
6454 (coff_read_enum_type): Likewise.
6455 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
6456 (coff_read_enum_type): Likewise.
6457
6458 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
6459 (end_psymtab): Likewise.
6460 (process_one_symbol): Likewise.
6461
6462 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
6463 (parse_procedure): Likewise.
6464 (parse_partial_symbols): Likewise.
6465
6466 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
6467
6468 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
6469 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
6470 built-in types.
6471 (read_range_type): Replace current_gdbarch by objfile arch. Replace
6472 static range_index_type by built-in type.
6473 (read_one_struct_field): Replace current_gdbarch by objfile arch.
6474 (read_enum_type): Likewise.
6475
6476 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
6477 objfile arch.
6478
5a413362
VP
64792008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6480
6481 * varobj.h (varobj_floating_p): Declare.
6482 * varobj.c (varobj_floating_p): New.
6483 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
6484 '@' as the name, update all floating varobjs.
6485
a5defcdc
VP
64862008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6487
6488 * varobj.c (struct varobj_root): Rename use_selected_frame to
6489 floating, and clarify the meaning.
6490 (varobj_create, varobj_update, new_root_variable): Adjust.
6491 (value_of_root): Don't use type_changed as in variable,
6492 adjust comment.
6493 (c_value_of_root): Adjust.
5a413362 6494
403fe197
PA
64952008-03-25 Pedro Alves <pedro@codesourcery.com>
6496
6497 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
6498 gdb's thread list.
6499 (linux_nat_wait): Add main lwp to gdb's thread list.
6500 * linux-thread-db.c (find_new_threads_callback): Also attach to
6501 already listed threads which thread_db didn't know about yet.
6502
710151dd
PA
65032008-03-25 Pedro Alves <pedro@codesourcery.com>
6504
6505 * linux-nat.c (drain_queued_events): Fix comment typo.
6506 (linux_nat_attach): In async mode, don't rely on storing a pending
6507 status. Instead place the wait status on the pipe.
6508 (linux_nat_resume): Remove unreacheable shortcut code in async
6509 mode.
6510 (stop_wait_callback): In async mode, don't store pending status.
6511 Instead, cancel breakpoints or resend the signal appropriatelly.
6512 (cancel_breakpoint): New, refactored from
6513 cancel_breakpoints_callback.
6514 (cancel_breakpoints_callback): Call cancel_breakpoint.
6515 (pipe_to_local_event_queue): Remove special token processing.
6516 (linux_nat_wait): Issue an internal error if a pending status is
6517 found in async mode.
6518
807bddf3
DJ
65192008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6520
6521 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
6522
c5b48eac
VP
65232008-03-24 Nick Roberts <nickrob@snap.net.nz>
6524 Vladimir Prus <vladimir@codesourcery.com>
6525
680b56ce
AS
6526 * varobj.c (struct varobj_root): New component thread_id.
6527 (varobj_get_thread_id, check_scope): New functions.
6528 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
6529 proper thread if necessary.
6530
680b56ce 6531 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 6532
680b56ce 6533 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 6534
12f4afab
DJ
65352008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
6536
6537 PR gdb/544
6538 * top.c: Revert 2008-03-21 changes.
6539
6208b47d
VP
65402008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6541
6542 * thread.c (make_cleanup_restore_current_thread): Make it
6543 globally visible.
6544 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6545 * varobj.c (varobj_update): Don't save/restore frame.
6546 (c_value_of_root): Save/restore thread and frame here,
6547 using make_cleanup_restore_current_thread.
6548 * Makefile.in: Update dependecies.
6549
44a67aa7
VP
65502008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6551
680b56ce
AS
6552 * varobj.c (struct varobj_root): Clarify
6553 comment on the frame field.
6554 (varobj_create): Don't set frame if we have no
6555 block.
44a67aa7 6556
b562a0cb
DJ
65572008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6558
6559 PR gdb/544
6560 Suggested by Jan Kratochvil:
6561 * top.c (gdb_rl_operate_and_get_next_completion): Call
6562 rl_redisplay_function.
6563 (gdb_rl_redisplay): New.
6564 (init_main): Set rl_redisplay_function.
6565
ed1bd5f5
JB
65662008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
6567
6568 * aix-thread.c (pdc_read_regs): Fix compiler warning.
6569 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
6570 (store_regs_kernel_thread): Likewise.
6571
b84876c2
PA
65722008-03-21 Pedro Alves <pedro@codesourcery.com>
6573
6574 Linux native async support.
6575
6576 * target.h (struct target_ops): Delete to_async_mask_value and add
6577 to_async_mask.
6578 (target_is_async_p, target_async): Formatting.
6579 (target_async_mask_value): Delete.
6580 (target_async_mask): Delete function declaration, and add new
6581 target macro with the same name.
6582
6583 * target.c (update_current_target): Replace to_async_mask_value by
6584 to_async_mask. Default to_async_mask to return_one.
6585 (target_async_mask): Delete.
6586 (find_default_can_async_p, find_default_is_async_p): New.
6587 (init_dummy_target): register find_default_can_async_p and
6588 find_default_is_async_p on the dummy target.
6589
6590 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
6591 (debug_linux_nat_async): New global.
6592 (show_debug_linux_nat_async): New function.
6593 (linux_nat_async_enabled, linux_nat_async_mask_value)
6594 (linux_nat_event_pipe, linux_nat_num_queued_events)
6595 (linux_nat_async_events_enabled): New globals.
6596 (struct waitpid_result): New struct.
6597 (waitpid_queue): New global.
6598 (queued_waitpid, push_waitpid, drain_queued_events): New.
6599 (my_waitpid): Call queued_waitpid.
6600 (linux_child_follow_fork): Disable async events during the call.
6601 (blocked_mask): Delete.
6602 (sync_sigchld_action, async_sigchld_action): New globals.
6603 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
6604 async mode, block events during the call.
6605 (linux_nat_create_inferior): New.
6606 (linux_nat_attach): In sync mode, restore the mask states. In
6607 async mode, wake the event loop immediatelly.
6608 (detach_callback): Drain all queued events of the lwp we're
6609 detaching from.
6610 (linux_nat_detach): Block async mode, and drain events of the main
6611 process.
6612 (linux_nat_resume): If in async mode, mask async events during the
6613 call. If short circuiting, force event loop to wake up. If
6614 resuming, set target_executing, and register target events in the
6615 event loop.
6616 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
6617 (linux_nat_wait): In async mode, block events during the call.
6618 Only enable/disable passing SIGINT to the inferior in sync mode.
6619 Get events from local waitpid queue. If no interesting events was
6620 found, return to events loop. Reregister target events in the
6621 event loop on exit. In sync mode, no need to reblock SIGCHLD.
6622 (linux_nat_kill): Disable events on entry.
6623 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
6624 here. Detach async mode from the event loop if there are no more
6625 forks available, otherwise leave it on.
6626 (sigchld_handler): Assure this is called only in sync mode.
6627 (linux_async_permitted, linux_async_permitted_1): New globals.
6628 (set_maintenance_linux_async_permitted)
6629 (show_maintenance_linux_async_permitted): New functions.
6630 (linux_nat_is_async_p, linux_nat_can_async_p)
6631 (linux_nat_async_mask): New.
6632 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
6633 (get_pending_events, async_sigchld_handler): New.
6634 (linux_nat_async_events): New.
6635 (async_terminal_is_ours): New global.
6636 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
6637 (async_client_callback, async_client_context): New.
6638 (linux_nat_async_file_handler, linux_nat_async)
6639 (linux_nat_disable_async, linux_nat_enable_async): New.
6640 (linux_nat_add_target): Register linux_nat_create_inferior,
6641 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
6642 linux_nat_async_mask, linux_nat_terminal_inferior and
6643 linux_nat_terminal_ours.
6644 (_initialize_linux_nat): Remove local action variable, and update
6645 code that used it to use sync_sigchld_action. Add new
6646 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
6647 set/show command in the maintenance class. Add new "linux-async"
6648 maintenance set/show command. Block SIGCHLD by default. Setup
6649 async_sichld_action, and sync_sigchld_action. Install the default
6650 async mode.
6651 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
6652 the cancel signals.
6653
6654 * linux-thread-db.c (re_check_for_thread_db): New.
6655 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
6656 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
6657 (thread_db_async_mask): New.
6658 (init_thread_db_ops): Register thread_db_can_async_p,
6659 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
6660
6661 * remote.c (remote_async_mask_value): New.
6662 (remote_return_zero): New.
6663 (init_remote_ops): Register remote_return_zero as callbacks of
6664 to_can_async_p and to_is_async_p.
6665 (remote_can_async_p, remote_is_async_p, remote_async): Update to
6666 use remote_async_mask_value.
6667 (remote_async_mask): New.
6668 (init_remote_async_ops): Remove to_async_mask_value setting and
6669 register remote_async_mask as to_async_mask callback in
6670 remote_async_ops.
6671
6672 * Makefile.in (linux-nat.o): Update.
6673
17faa917
DJ
66742008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6675
6676 * gdbthread.h (add_thread_with_info): New.
6677 * linux-thread-db.c: Add some documentation.
6678 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
6679 (struct private_thread_info): Remove th_valid and ti_valid.
6680 Replace ti with tid.
6681 (thread_get_info_callback): Do not add TID to the new ptid. Do
6682 not cache th or ti.
6683 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
6684 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
6685 new PTID.
6686 (attach_thread): Handle an already-existing thread. Use
6687 add_thread_with_info. Cache the th and tid.
6688 (detach_thread): Verify that private was set. Remove verbose
6689 argument and printing. Update caller.
6690 (thread_db_detach): Do not adjust inferior_ptid.
6691 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
6692 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
6693 (thread_db_wait): Do not use lwp_from_thread.
6694 (thread_db_pid_to_str): Use the cached TID.
6695 (thread_db_extra_thread_info): Check that private is set.
6696 (same_ptid_callback): Delete.
6697 (thread_db_get_thread_local_address): Do not use it or check
6698 is_thread. Check that private is set. Assume that the thread
6699 handle is already cached.
6700 (init_thread_db_ops): Remove to_resume and to_kill.
6701 * thread.c (add_thread_with_info): New.
6702 (add_thread): Use it.
6703 * linux-nat.c (find_thread_from_lwp): Delete.
6704 (exit_lwp): Do not use it. Check print_thread_events. Print before
6705 deleting the thread.
6706 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
6707 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
6708 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
6709 printf_unfiltered for thread exits.
6710 * procfs.c (procfs_wait): Likewise.
6711
6214f497
DJ
67122008-03-21 Chris Demetriou <cgd@google.com>
6713
6714 * symtab.c (rbreak_command): Quote symbol name before passing
6715 it to break_command.
6716
63092375
DJ
67172008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6718
6719 * eval.c (evaluate_subexp_for_address): Clarify error message.
6720 Use value_must_coerce_to_target.
6721 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
6722 * valops.c (value_assign): Call value_coerce_to_target when
6723 assigning to anything but internalvars. Leave GDB-side arrays
6724 as arrays when assigning to internalvars.
6725 (value_must_coerce_to_target, value_coerce_to_target): New.
6726 (value_coerce_array, value_addr): Call value_coerce_to_target.
6727 (value_array): Create the array in GDB's memory instead of
6728 the inferior's.
6729 * value.h (value_must_coerce_to_target, value_coerce_to_target):
6730 Declare.
6731
b21991b0
DJ
67322008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6733
6734 * top.c (quit_confirm): Warn that we will kill the program.
6735
49a834f9
PA
67362008-03-19 Pedro Alves <pedro@codesourcery.com>
6737
6738 * inflow.c (terminal_ours_1): Guard access to
6739 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
6740
ae0d2f24
UW
67412008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6742 Jim Blandy <jimb@codesourcery.com>
6743 Daniel Jacobowitz <drow@false.org>
6744
6745 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
6746 (dwarf2_read_address): Update prototype.
6747
6748 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
6749 (signed_address_type): Likewise.
6750 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
6751 (execute_stack_op): Update calls to unsigned_address_type,
6752 signed_address_type and dwarf2_read_address. Fix implementation
6753 of DW_OP_deref_size.
6754
6755 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
6756 (dwarf2_per_cu_addr_size): Likewise.
6757 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
6758 (struct dwarf2_loclist_baton): Likewise.
6759
6760 * dwarf2loc.c (find_location_expression): Update calls to
6761 dwarf2_read_address. Use dwarf2_per_cu_objfile and
6762 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
6763 (locexpr_describe_location): Likewise.
6764 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
6765 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
6766 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
6767 to dwarf2_per_cu_addr_size (per_cu).
6768 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
6769 (loclist_read_variable): Likewise.
6770 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
6771
6772 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
6773 instead of baton->objfile.
6774 (dwarf2_per_cu_obfile): New function.
6775 (dwarf2_per_cu_addr_size): Likewise.
6776
6777 * dwarf2-frame.c (struct comp_unit): Move higher.
6778 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
6779 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
6780 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
6781 parameter by using fde->eh_frame_p. Use read_encoded_value
6782 to implement DW_CFA_set_loc.
6783 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
6784 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
6785 execute_stack_op and execute_cfa_program.
6786 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
6787 (size_of_encoded_value): Remove.
6788 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
6789 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
6790 (add_cie): Set cie->unit backlink.
6791 (decode_frame_entry_1): Set cie->addr_size. Update calls to
6792 read_encoded_value.
6793 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
6794
1c8201d1
MD
67952008-03-17 Markus Deuling <deuling@de.ibm.com>
6796
6797 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
6798 gdbarch_bfd_arch_info.
6799
46bba1ef
JB
68002008-03-17 Joel Brobecker <brobecker@adacore.com>
6801
6802 * aix-thread.c (pdc_read_regs): Minor reformatting.
6803
0bcd3e20
VP
68042008-03-17 Vladimir Prus <vladimir@codesourcery.com>
6805
6806 * thread.c (print_thread_info): Don't insist
6807 on having current thread if there are no
6808 threads at all.
6809
9356cf8d
PA
68102008-03-17 Pedro Alves <pedro@codesourcery.com>
6811
6812 * infcmd.c (attach_command_post_wait)
6813 (attach_command_continuation): New.
6814 (attach_command): Support background async execution, and async
6815 execution in synchronous mode.
6816
5c3ce3f7
DJ
68172008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6818
6819 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
6820 * symmisc.c (dump_symtab_1): Likewise.
6821 * wrapper.c (gdb_value_struct_elt): Likewise.
6822
fa2c6a57
PA
68232008-03-17 Pedro Alves <pedro@codesourcery.com>
6824
6825 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
6826
02f3fc28
PA
68272008-03-17 Pedro Alves <pedro@codesourcery.com>
6828
6829 * linux-nat.c (linux_nat_filter_event): New, refactored from
6830 linux_nat_wait.
6831 (linux_nat_wait): Call linux_nat_filter_event.
6832
2f77b315
UW
68332008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
6834
6835 * top.c (execute_command): Fix uninitialized variable error.
6836
f01be29b
NH
68372008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
6838
680b56ce
AS
6839 * Makefile.in (amd64nbsd-nat.o): New dependency.
6840 * amd64nbsd-nat.c: Include "nbsd-nat.h".
6841 (_initialize_amd64nbsd_nat): Update target vector to use
6842 nbsd_pid_to_exec_file.
6843 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 6844
6cf32704
VP
68452008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6846
6847 Remove ignoring leading exec events code.
680b56ce
AS
6848 * fork-child.c (startup_inferior): Do not set
6849 inferior_ignoring_leading_exec_events.
6850 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
6851 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
6852 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
6853 (handle_inferior_event): Remove code for ignoring leading exec
6854 events.
6855 * target.c (update_current_target): Do not inherit, or default,
6856 to_reported_exec_events_per_exec_call.
6857 (debug_to_reported_exec_events_per_exec_call): Remove.
6858 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
6859 * target.h (target_reported_exec_events_per_exec_call): Remove.
6860 (struct target): Remove the to_reported_exec_events_per_exec_call
6861 field.
6cf32704 6862
8e8901c5
VP
68632008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6864
6865 Implement -thread-info.
680b56ce 6866 * gdbthread.h (print_thread_info): Declare.
8e8901c5 6867
680b56ce
AS
6868 * thread.c (print_thread_info): New, extracted
6869 from info_threads_command and adjusted to
6870 work for CLI and MI.
6871 (info_threads_command): Use print_thread_info.
8e8901c5
VP
6872 * Makefile.in: Update dependencies.
6873
680b56ce
AS
6874 * mi/mi-cmds.c (mi_cmds): Specify a handler
6875 for -thread-info.
6876 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
6877 * mi/mi-main.c (mi_cmd_thread_info): New.
6878 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 6879
7d1e6fb8
KB
68802008-03-14 Kevin Buettner <kevinb@redhat.com>
6881
6882 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
6883 to decide whether to match instruction patterns using "sw" and "sd".
6884
89113898
PA
68852008-03-14 Pedro Alves <pedro@codesourcery.com>
6886
6887 * infcmd.c (jump_command): Postpone disabling stdin until after
6888 the possible query.
6889
64a0ac84
PA
68902008-03-14 Pedro Alves <pedro@codesourcery.com>
6891
6892 * inflow.c (gdb_getpgrp): New.
6893 (gdb_has_a_terminal): Use get_getpgrp.
6894 (terminal_ours_1): If attach_flag is set, don't refetch
6895 inferior_process_group.
6896
1fddbabb
PA
68972008-03-14 Pedro Alves <pedro@codesourcery.com>
6898
6899 * features/library-list.dtd: Allow "section" elements as children
6900 of "library". Add "section" element and describe its attributes.
6901
6902 * solib-target.c (struct lm_info): Add section_bases member.
6903 (library_list_start_segment): Error out if seen a section element.
6904 (library_list_start_section): New.
6905 (library_list_end_library): New.
6906 (solib_target_free_library_list): Free section_bases.
6907 (section_attributes): New.
6908 (library_children): Make "segment" optional. Add "section" child.
6909 (library_list_children): Register library_list_end_library.
6910 (solib_target_relocate_section_addresses): Handle section bases.
6911
6912 * NEWS: Mention new qXfer:libraries:read section offsets support.
6913
712af3be
VP
69142008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6915
6916 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
6917 (make_exec_error_cleanup): Remove declarations.
6918 * utils.c (exec_error_cleanup_chain): Remove.
6919 (do_exec_error_cleanups, discard_exec_error_cleanups)
6920 (make_exec_error_cleanup): Remove.
6921 * event-loop.c (start_event_loop): Adjust call to
6922 async_enable_stdin.
6923 * event-top.c (async_enable_stdin): Remove the paramater dummy.
6924 (async_disable_stdin): Don't register async_enable_stdin via
6925 cleanup.
6926 * inf-loop.c (inferior_event_handler): Don't
6927 call do_exec_error_cleanups. Call async_enable_stdin instead.
6928 * event-loop.c (start_event_loop): Adjust call to
6929 async_enable_stdin.
6930 * tui/tui-interp.c (tui_command_loop): Adjust call to
6931 async_enable_stdin.
6932
32c1e744
VP
69332008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6934
6935 Async mode fixes.
680b56ce
AS
6936 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
6937 * breakpoint.c (bpstat_do_actions): In async mode,
6938 don't jump to top expecting stop_bpstat to be already
6939 updated.
6940 * event-loop.c (start_event_loop): Call async_enable_stdin
6941 on exception.
6942 * event-top.c (async_enable_stdin): Do nothing if sync_execution
6943 is not set.
6944 (command_handler): Do not setup continuation here.
6945 (command_line_handler_continuation): Move to...
6946 * top.c (command_line_handler_continuation): ... here.
6947 (execute_command): In async mode, register continuation.
6948 Don't check frame's language in running in async mode.
6949 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
6950 * inf-loop.c (complete_execution): Inline into...
6951 (inferior_event_handler): ... here. Clear target_executing before
6952 doing any cleanups. Don't try to show prompt if the target was
6953 resumed.
6954 * infcmd.c (signal_command): Add support for async mode.
6955 (finish_command): Only add continuation if the target was
6956 successfully resumed.
6957 * remote.c (init_async_opts): Register to_get_thread_local_address
6958 handler.
6959 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
6960 with sync_execution.
6961 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
6962 on exception.
32c1e744 6963
c04ea773
DJ
69642008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6965
6966 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
6967 * exec.c (exec_bfd_mtime): Define.
6968 (exec_close): Clear it.
6969 (exec_file_attach): Set it.
6970 * gdbcore.h (exec_bfd_mtime): Declare.
6971 * source.c (find_source_lines): Do not use bfd_get_mtime.
6972
952dc227
VP
69732008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6974
6975 * top.c (simplified_command_loop): Remove.
6976
4cf46804
VP
69772008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6978
6979 Remove unused remote.c hooks.
680b56ce
AS
6980 * remote.c (deprecated_target_resume_hook)
6981 (deprecated_target_wait_loop_hook): Remove.
6982 (remote_resume): Do not call deprecated_target_resume_hook.
6983 (remote_wait): Do not call deprecated_target_wait_loop_hook.
6984 (remote_async_wait): Likewise.
4cf46804 6985
683f2885
VP
69862008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6987
6988 Implement MI notification for new threads.
680b56ce
AS
6989 * doc/observer.texi (new_thread): Document.
6990 * observer.sh: Forward declare struct thread_info.
6991 * thread.c (add_thread): Notify observer.
6992
6993 * interps.h (interp_init_ftype): New parameter
6994 top_level.
6995 (interp_set): Likewise.
6996 (top_level_interpreter_data): Declare.
6997 * interps.c (interp_set): New parameter top_level.
6998 Pass it to interpreter's init function. Remember
6999 top level interpreter.
7000 (interpreter_exec_cmd): Adjust.
7001 (top_level_interpreter_data): New.
7002 * main.c (captured_main): Pass 1 for top_level
7003 parameter of interp_set.
683f2885 7004 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
7005 parameter top_level.
7006 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 7007
680b56ce
AS
7008 * mi/mi-interp.c (mi_new_thread): New.
7009 (mi_interpreter_init): If top level, register
7010 observer for new threads.
683f2885 7011
680b56ce 7012 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 7013
ff9b3928
PA
70142008-03-14 Pedro Alves <pedro@codesourcery.com>
7015
7016 * top.c (execute_command): Disable break and stop
7017 commands in async mode.
7018
b18392ef
PA
70192008-03-14 Pedro Alves <pedro@codesourcery.com>
7020
7021 revert:
7022 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7023 * inf-loop.c (inferior_event_handler): Don't include remote.h.
7024 Call target_stop in the INF_QUIT_REQ case.
7025 * Makefile.in (inf-loop.o): Update.
7026
0aca9f07
PA
70272008-03-14 Pedro Alves <pedro@codesourcery.com>
7028
7029 * inf-loop.c (inferior_event_handler): Don't include remote.h.
7030 Call target_stop in the INF_QUIT_REQ case.
7031 * Makefile.in (inf-loop.o): Update.
7032
0b4e556c
PA
70332008-03-14 Pedro Alves <pedro@codesourcery.com>
7034
7035 * top.c (execute_command): Enable break, info and interrupt
7036 commands in async mode.
7037
8defab1a
DJ
70382008-03-13 Vladimir Prus <vladimir@codesourcery.com>
7039 Daniel Jacobowitz <dan@codesourcery.com>
7040
7041 * breakpoint.h (breakpoint_restore_shadows): New
7042 declaration.
7043 * breakpoint.c (breakpoint_restore_shadows): New.
7044 (read_memory_nobpt): Delete.
7045 * gdbcore.h (read_memory_nobpt): Delete declaration.
7046 * target.c (memory_xfer_partial): Call
7047 breakpoint_restore_shadows.
7048 (restore_show_memory_breakpoints)
7049 (make_show_memory_beakpoints_cleanup): New.
7050 (show_memory_breakpoints): New.
7051 * target.h (make_show_memory_beakpoints_cleanup): Declare.
7052 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
7053 Make sure we see memory breakpoints when checking if
7054 breakpoint is still there.
7055 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
7056 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
7057 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
7058 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
7059
fd532e2e
PA
70602008-03-12 Pedro Alves <pedro@codesourcery.com>
7061
7062 * thread.c (add_thread): Use printf_unfiltered to print.
7063
f749779f 70642008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
7065
7066 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
7067 that is true only on x86-solaris and x86_64-solaris.
7068 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
7069 with proc_get_LDT_entry.
7070
70712008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
7072
7073 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
7074 * config.in, configure: Regenerate.
7075 * fork-child.c (fork_inferior): Call create_tty_session.
7076 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
7077 (create_tty_session): New function.
7078 * terminal.h: Declare create_tty_session.
7079
4fbb74a6
AM
70802008-03-12 Alan Modra <amodra@bigpond.net.au>
7081
7082 PR 5900
7083 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
7084 * mipsread.c: Include elf/internal.h.
7085 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
7086 to internal range.
7087
20a6ec49
MD
70882008-03-11 Markus Deuling <deuling@de.ibm.com>
7089
7090 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
7091 to get at the current architecture and at the target specific vector.
7092 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
7093 remove define of I387_ST0_REGNUM.
7094
7095 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
7096
7097 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
7098 get at the current architecture
7099 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
7100 parameter.
7101
7102 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
7103 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
7104
7105 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
7106 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
7107 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
7108
7109 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
7110 at the target specific vector.
7111
7112 (i386_get_longjmp_target): Use get_frame_arch to get at the current
7113 architecture. Use gdbarch_tdep to get at the target specific vector.
7114
7115 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
7116 update caller. Use gdbarch_tdep to get at the target specific vector.
7117
7118 (i386_register_to_value: Use get_frame_arch to get at the current
7119 architecture.
7120
7121 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
7122 parameter.
7123
7124 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
7125 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
7126 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
7127 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
7128
7129 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
7130 undef's.
7131
7132 (i387_convert_register_p, i387_register_to_value,
7133 i387_value_to_register): Update call for i386_fp_regnum_p.
7134
7135 * i387-tdep.h: Remove comment.
7136 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
7137 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
7138 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
7139 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
7140 I387_MXCSR_REGNUM): Add target specific vector as parameter.
7141
ccd213ac
DJ
71422008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
7143
7144 * Makefile.in (fork-child.o): Update.
7145 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
7146 argument. Gather all gdbserver features together.
7147 * fork-child.c (exec_wrapper): New variable.
7148 (fork_inferior): Use it.
7149 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
7150 (unset_exec_wrapper_command, _initialize_fork_child): New.
7151
71522008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
7153
7154 * source.c (directory_command): Modify the determination of
7155 condition of terminal "from_tty".
7156
22566fbd
DJ
71572008-03-10 Matt Rice <ratmice@gmail.com>
7158
7159 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
7160
9971ac47
UW
71612008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
7162
7163 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
7164 of the data passing to strtoulst function.
7165 (info_spu_signal_command): Likewise.
7166
835670cf
VP
71672008-03-08 Vladimir Prus <vladimir@codesourcery.com>
7168
7169 * mi/mi-interp.c (mi_command_loop): Remove
7170 commented-out code.
680b56ce 7171
be86555c
JB
71722008-03-07 Joel Brobecker <brobecker@adacore.com>
7173
7174 * remote.c (extended_remote_attach_1): Make local variable pid an int
7175 instead of a pid_t.
7176
4d7b2d5b
JB
71772008-03-07 Joel Brobecker <brobecker@adacore.com>
7178
7179 * solib-svr4.c (svr4_same_1): New function, originally extracted
7180 from svr4_same and expanded to handle the sparc64 case.
7181 (svr4_same): Move up and reimplement using svr4_same_1.
7182 (enable_break): Use svr4_same_1 to do shared library name comparisons.
7183
61fed90e
RR
71842008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
7185
7186 * MAINTAINERS: Move self to Paper trail.
7187
b803fb0f
DJ
71882008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
7189
7190 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
7191 * event-loop.c (call_async_signal_handler): New.
7192 * event-loop.h (call_async_signal_handler)
7193 (gdb_call_async_signal_handler): Declare.
7194 (mark_async_signal_handler): Add comments.
7195 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
7196 * mingw-hdep.c (sigint_event, sigint_handler): New.
7197 (gdb_select): Use them. Wait for the readline signal handler
7198 to finish.
7199 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
7200 * posix-hdep.c (gdb_call_async_signal_handler): New function.
7201 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
7202 New.
7203 (remote_fileio_ctrl_c_signal_handler): Use
7204 gdb_call_async_signal_handler.
7205 (initialize_remote_fileio): Initialize sigint_fileio_token.
7206 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
7207 not initialize tokens here.
7208 (handle_remote_sigint_twice): Likewise. Reinstall
7209 handle_remote_sigint.
7210 (async_remote_interrupt_twice): Just call interrupt_query.
7211 (cleanup_sigint_signal_handler): Do not delete tokens.
7212 (remote_interrupt, remote_interrupt_twice): Use
7213 gdb_call_async_signal_handler.
7214 (interrupt_query): Reinstall the default signal handler.
7215 (_initialize_remote): Initialize tokens here.
7216
8f4d54ed
JB
72172008-03-04 Joel Brobecker <brobecker@adacore.com>
7218
7219 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
7220 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7221 Change the type of the lr register to code_ptr.
7222 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7223 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7224 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7225 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7226 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7227 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7228 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
7229
95ece428
JW
72302008-03-03 James E. Wilson <wilson@tuliptree.org>
7231
7232 * MAINTAINERS: Update my email address.
7233
686a5eed
KS
72342008-03-03 Keith Seitz <keiths@redhat.com>
7235
7236 From Dave Murphy <davem@devkitpro.org>:
7237 * configure.ac: Set tcl configdir to win under mingw.
7238 * configure: Regenerate.
7239
fa4727a6
DJ
72402008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
7241
7242 * breakpoint.c (fetch_watchpoint_value): New function.
7243 (update_watchpoint): Set and clear val_valid. Use
7244 fetch_watchpoint_value. Handle unreadable values on the
7245 value chain. Correct check for user-requested array watchpoints.
7246 (breakpoint_init_inferior): Clear val_valid.
7247 (watchpoint_value_print): New function.
7248 (print_it_typical): Use it. Do not free or clear old_val. Print
7249 watchpoints even if old_val == NULL.
7250 (watchpoint_check): Use fetch_watchpoint_value. Check for values
7251 becoming readable or unreadable.
7252 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
7253 (do_enable_watchpoint): Likewise.
7254 * breakpoint.h (struct breakpoint): Update comment for val. Add
7255 val_valid.
7256 * NEWS: Mention watchpoints on inaccessible memory.
7257
c03374d5
DJ
72582007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
7259
7260 * Makefile.in (i386-nat.o): Update.
7261 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
7262 i386_use_watchpoints.
7263 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
7264 i386_use_watchpoints.
7265 * i386-nat.c (i386_stopped_data_address): Take two arguments.
7266 (i386_stopped_by_watchpoint): Update call.
7267 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
7268 * config/i386/nm-i386.h: Conditionalize definitions on
7269 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
7270 (i386_use_watchpoints): Declare.
7271 (i386_stopped_data_address): Update.
7272 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7273 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7274
c24d7425 72752008-02-29 Joel Brobecker <brobecker@adacore.com>
7276
7277 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
7278 * version.in: Bump version to 6.8.50.20080229-cvs.
7279
a7dfd010
MD
72802008-02-28 Markus Deuling <deuling@de.ibm.com>
7281
7282 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
7283 properly.
7284
258c00cc
TT
72852008-02-28 Tom Tromey <tromey@redhat.com>
7286
7287 * infcmd.c (notice_args_read): Print result of get_inferior_args.
7288
8edfe269
DJ
72892008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7290
7291 * infcmd.c (kill_if_already_running): Make static. Use
7292 target_require_runnable.
7293 * target.c (target_require_runnable): New.
7294 * target.h (target_require_runnable): Declare.
7295
0d6ba1b1
DJ
72962008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7297
7298 * frame.c (reinit_frame_cache): Only annotate if frames were
7299 previously valid.
7300
6fe305f7
UW
73012008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7302
7303 * regformats/reg-ppc.dat: Rename "ps" to "msr".
7304 * regformats/reg-ppc64.dat: Likewise.
7305
9b4b61c8
UW
73062008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7307
7308 * features/Makefile (%.dat): Emit xmltarget statement.
7309
7310 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
7311 Generate code to set gdbserver_xmltarget in init_registers_${name}.
7312
7313 * regformats/arm-with-iwmmxt.dat: Regenerate.
7314 * regformats/mips64-linux.dat: Regenerate.
7315 * regformats/mips-linux.dat: Regenerate.
7316 * regformats/rs6000/powerpc-32.dat: Regenerate.
7317 * regformats/rs6000/powerpc-64.dat: Regenerate.
7318 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7319
7320 * regformats/reg-arm.dat: Add xmlarch statement.
7321 * regformats/reg-i386.dat: Likewise.
7322 * regformats/reg-i386-linux.dat: Likewise.
7323 * regformats/reg-x86-64-linux.dat: Likewise.
7324 * regformats/reg-spu.dat: Likewise.
7325
20b4711e
DJ
73262008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7327
7328 * remote.c (remote_wait, remote_async_wait): Stop if we receive
7329 an error.
7330
1843f87b
DJ
73312008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7332
7333 * utils.c (debug_timestamp): New.
7334 (vfprintf_unfiltered): Print timestamps if requested.
7335 (show_debug_timestamp): New.
7336 (initialize_utils): Register "set debug timestamp".
7337 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
7338
6a048695
JB
73392008-02-27 Joel Brobecker <brobecker@adacore.com>
7340
7341 * breakpoint.c (skip_prologue_sal): New function.
7342 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
7343 computed from a line number.
7344
0b998f49
JB
73452008-02-27 Joel Brobecker <brobecker@adacore.com>
7346
7347 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
7348 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7349 Set PC register type to "code_ptr".
7350 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7351 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7352 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7353 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7354 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7355 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7356 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
7357 Regenerate.
7358
d05b4ac3
UW
73592008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7360
7361 * regformats/regdat.sh: Rename init_registers function in
7362 generated file to init_registers_${name}.
7363
7364 * regformats/reg-crisv32.dat: Set "name" to crisv32.
7365 * regformats/reg-ppc64.dat: Set "name" to ppc64.
7366 * regformats/reg-s390x.dat: Set "name" to s390x.
7367
a5d9d57d
DJ
73682008-02-26 Greg Law <glaw@undo-software.com>
7369
7370 * regcache.c (registers_changed): Call reinit_frame_cache.
7371
e25c958c
DJ
73722008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7373
7374 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
7375 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
7376 and svr4_fetch_objfile_link_map.
7377 * Makefile.in (sh-linux-tdep.o): Update.
7378
5daa78cc
TJB
73792008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
7380
7381 * amd64-tdep.c (amd64_classify): Add support for decimal float
7382 types.
7383 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
7384 use the struct return convention.
7385
54e52265
VP
73862008-02-26 Nick Roberts <nickrob@snap.net.nz>
7387
7388 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
7389 to old format. Discard breakpoint address if shared library is
7390 unloaded.
7391 (breakpoint_1): Adjust formatting of table header accordingly.
7392
d8f2712d
VP
73932008-02-25 Vladimir Prus <vladimir@codesourcery.com>
7394
7395 * remote.c (remote_get_threadlist): If the response
7396 is empty, don't try to parse it.
7397
05ce04a4
VP
73982008-02-23 Vladimir Prus <vladimir@codesourcery.com>
7399
7400 Unbreak 'target async'.
680b56ce
AS
7401 * serial.c (serial_async): Set the
7402 handler function before enabling async
7403 mode.
05ce04a4 7404
b36ec657
DJ
74052008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
7406
7407 * solib-svr4.c (enable_break): Convert r_brk to a code address.
7408
df7df359
PA
74092008-02-21 Pedro Alves <pedro@codesourcery.com>
7410
7411 * remote.c (extended_remote_attach_1): Set attach_flag.
7412 (extended_remote_create_inferior_1): Clear attach_flag.
7413
7cd25cfc
DJ
74142008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7415
7416 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
7417 r_brk_offset.
7418 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7419 * solib-svr4.c (solib_svr4_r_brk): New.
7420 (open_symbol_file_object, svr4_current_sos): Always check the
7421 debug base.
7422 (svr4_fetch_objfile_link_map): Do not set debug_base.
7423 (enable_break): Use r_brk if it is set.
7424 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
7425 (svr4_lp64_fetch_link_map_offsets): Likewise.
7426 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
7427
07ea644b
MD
74282008-02-20 Markus Deuling <deuling@de.ibm.com>
7429 Mark Kettenis <kettenis@gnu.org>
7430
7431 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
7432 trad_frame_saved_reg.
680b56ce 7433 (trad-frame.h): New include.
07ea644b
MD
7434
7435 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 7436 instead of frame_obstack_zalloc.
07ea644b
MD
7437 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
7438
680b56ce 7439 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 7440
40887e1a
MD
74412008-02-20 Markus Deuling <deuling@de.ibm.com>
7442
7443 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
7444 from disassemble_info instead of gdbarch_byte_order.
7445
7446 * mips-tdep.c (gdb_print_insn_mips): Likewise.
7447 * arm-tdep.c (gdb_print_insn_arm): Likewise.
7448
ae4b2284
MD
74492008-02-20 Markus Deuling <deuling@de.ibm.com>
7450
7451 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
7452 gdbarch as parameter.
7453
7454 * gdbarch.{c,h}: Regenerate.
7455
7456 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7457 parameter.
7458 * mem-break.c (default_memory_insert_breakpoint)
7459 (default_memory_remove_breakpoint): Likewise.
7460 * target.h (default_memory_remove_breakpoint)
7461 (default_memory_insert_breakpoint): Likewise.
7462
7463 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7464 parameter. Replace current_gdbarch by gdbarch.
7465 * m32r-tdep.c (m32r_memory_insert_breakpoint)
7466 (m32r_memory_remove_breakpoint): Likewise.
7467
d9bf65d5
DJ
74682008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
7469
7470 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
7471
b93b6ca7
JB
74722008-02-19 Joel Brobecker <brobecker@adacore.com>
7473
7474 * NEWS: Add entry describing Add support improvements.
7475
4ed226fe
MD
74762008-02-18 Markus Deuling <deuling@de.ibm.com>
7477
7478 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
7479 M68K_FP0_REGNUM.
7480
caaa79ad
MD
74812008-02-18 Markus Deuling <deuling@de.ibm.com>
7482
7483 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
7484 register_offset_hack anymore.
7485
7486 * regcache.{c,h} (register_offset_hack): Remove.
7487
e38c262f
MD
74882008-02-18 Markus Deuling <deuling@de.ibm.com>
7489
7490 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
7491
7492 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
7493 current_gdbarch by gdbarch.
7494 (hppa64_hpux_find_global_pointer): Likewise.
7495 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
7496 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
7497 find_global_pointer.
7498
7499 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
7500 parameter.
7501 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
7502
7503 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
7504 of gdbarch_num_regs.
7505
7506 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 7507 replace current_gdbarch by gdbarch.
e38c262f
MD
7508 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
7509
206988c4
MD
75102008-02-18 Markus Deuling <deuling@de.ibm.com>
7511
7512 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
7513 and replace current_gdbarch by gdbarch.
7514
7515 (store_register): Update call for exec_one_dummy_insn.
7516 (fetch_register, store_register): Update call of regmap.
7517
7518 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
7519 parameter and replace current_gdbarch by gdbarch.
680b56ce 7520
206988c4
MD
7521 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
7522 the current architecture. Update call for getregs_supplies and
7523 getfpregs_supplies.
7524 (ppcnbsd_fetch_inferior_registers): Likewise.
7525
680b56ce 7526 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
7527 replace current_gdbarch by gdbarch.
7528 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
7529 get_regcache_arch to get at the current architecture. Update call for
7530 getfpregs_supplies.
7531
f642be6b
MD
75322008-02-18 Markus Deuling <deuling@de.ibm.com>
7533
7534 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 7535 variables.
f642be6b 7536
b1f2bf01
MD
75372008-02-15 Markus Deuling <deuling@de.ibm.com>
7538
7539 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
7540
ee163bf5
VP
75412008-02-14 Vladimir Prus <vladimir@codesourcery.com>
7542
7543 * NEWS: Mention pending breakpints in MI.
680b56ce 7544
f6fbcbf9
MD
75452008-02-14 Markus Deuling <deuling@de.ibm.com>
7546
7547 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
7548
36af4ef6
MD
75492008-02-13 Markus Deuling <deuling@de.ibm.com>
7550
7551 Add script to build and test GDB using enable-targets=all.
7552
7553 * gdb_buildall.sh: New file.
7554
94a0e877
MG
75552008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
7556
7557 * NEWS (New native configurations): Xtensa GNU/Linux.
7558 (New targets): Xtensa GNU/Linux.
7559 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
7560 xtensa-linux-tdep.o
7561 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
7562 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
7563 * configure.tgt (xtensa*-*-linux*): New entry.
7564 * xtensa-config.c (xtensa_tdep): New variable.
7565 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
7566 (rmap): Change format based on new macro XTREG.
7567 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
7568 * xtensa-linux-nat.c: New.
7569 * xtensa-linux-tdep.c: New.
7570 * xtensa-xtregs.c: New.
7571 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
7572 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
7573 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
7574 (xtensa_register_t): New field coprocessor.
7575 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
7576 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
7577 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
7578 Update to handle privileged registers.
7579 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
7580 (xtensa_push_dummy_call): Set windowstart register correctly.
7581 (call0_analyze_prologue): Initialize xtensa_default_isa.
7582 (xtensa_derive_tdep): New.
7583 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
7584 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
7585 Call xtensa_derive_tdep().
7586 * config/xtensa/linux.mh: New.
7587 * regformats/reg-xtensa.dat: New.
7588
b7ee1b0a 75892008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
7590
7591 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
7592 (filenames.h): New include.
7593 * Makefile.in (corelow.o): Add dependency for filenames.h.
7594
8da2a1df
DJ
75952008-02-08 Doug Evans <dje@google.com>
7596
7597 * source.c (find_and_open_source): Always rewrite absolute filenames.
7598
776592bf
DE
75992008-02-07 Doug Evans <dje@google.com>
7600
7601 * breakpoint.c: #include "hashtab.h".
7602 (ambiguous_names_p): New fn.
7603 (update_breakpoint_locations): When restoring bp enable status, don't
7604 compare function names if any functions have same name.
7605 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
7606
d6565258
JB
76072008-02-07 Joel Brobecker <brobecker@adacore.com>
7608
7609 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
7610 instead of just a VEC*. Update use of SV.
7611 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
7612
6d53d0af
JB
76132007-02-07 Joel Brobecker <brobecker@adacore.com>
7614
7615 * NEWS: Put all new commands since gdb-6.7 together.
7616
2ba95b9b
JB
76172007-02-07 Joel Brobecker <brobecker@adacore.com>
7618
7619 * ada-lang.c: #include "vec.h".
7620 (struct string_vector, new_string_vector, string_vector_append):
7621 Delete.
7622 (char_ptr): New typedef.
7623 (DEF_VEC_P (char_ptr)): New VEC type.
7624 (symbol_completion_add): Update profile to take the new VEC type
7625 instead of the old string_vector structure. Update code accordingly.
7626 (ada_make_symbol_completion_list): Use the new VEC type instead of
7627 the old string_vector structure, and update the code accordingly.
7628 * Makefile.in (ada-lang.o): Add dependency on vec.h.
7629
4ae0885a
PM
76302008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7631
7632 * p-exp.y: Set current_type in missing places.
7633 (leftdiv_is_integer): New static variable.
7634 Typecast right operand of BINOP_DIV to long_double if both operands
7635 are integers.
7636
06b1d59c
MR
76372008-02-06 Maciej W. Rozycki <macro@mips.com>
7638
7639 * remote-mips.c (set_breakpoint): Rename to...
7640 (mips_set_breakpoint): ... this.
7641 (clear_breakpoint): Rename to...
7642 (mips_clear_breakpoint): ... this.
7643 (common_breakpoint): Rename to...
7644 (mips_common_breakpoint): ... this.
7645 (check_lsi_error): Rename to...
7646 (mips_check_lsi_error): ... this.
7647
41d27058
JB
76482007-02-05 Joel Brobecker <brobecker@adacore.com>
7649
7650 * language.h (struct language_defn): Add new field
7651 la_make_symbol_completion_list.
7652 * symtab.c (default_make_symbol_completion_list): Renames
7653 make_symbol_completion_list.
7654 (make_symbol_completion_list): New function.
7655 * symtab.h (default_make_symbol_completion_list): Add declaration.
7656 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
7657 (auto_language, local_language): Likewise.
7658 * objc-lang.c (objc_language_defn): Likewise.
7659 * scm-lang.c (scm_language_defn): Likewise.
7660 * m2-lang.c (m2_language_defn): Likewise.
7661 * f-lang.c (f_language_defn): Likewise.
7662 * jv-lang.c (java_language_defn): Likewise.
7663 * p-lang.c (pascal_language_defn): Likewise.
7664 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
7665 (minimal_language_defn): Likewise.
7666 * ada-lang.c (struct string_vector): New structure.
7667 (new_string_vector, string_vector_append, ada_unqualified_name)
7668 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
7669 (ada_make_symbol_completion_list): New functions.
7670 (ada_language_defn): Set la_make_symbol_completion_list.
7671 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
7672 this function is static.
7673
ee3a2f01
KB
76742008-02-05 Kevin Buettner <kevinb@redhat.com>
7675
7676 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
7677 to account for call site optimizations.
7678
d844e34b
JB
76792008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
7680
7681 * tracepoint.c (read_actions): Handle end-of-text indicator
7682 in action list properly. (Committed by Jim Blandy)
7683
02e4669d
JB
76842008-02-05 Jim Blandy <jimb@red-bean.com>
7685
7686 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
7687 pseudoregister, not an internal error.
85ecb32b 7688 Reported by: Andrzej Zaborowski
02e4669d 7689
c39c8256
VP
76902008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7691
7692 * varobj.c (c_value_of_variable): Use xstrdup.
7693
ae7d22a6
VP
76942008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7695
7696 Update stored rendition of varobj value when format changes.
7697 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
7698 print_value.
7699 (c_value_of_variable): Return print_value.
ae7d22a6 7700
81fe8080
DE
77012008-02-03 Doug Evans <dje@google.com>
7702
301f0ecf
DE
7703 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
7704 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
7705 * valops.c (value_one): New function.
7706 * value.h (value_one): Declare.
7707
7708 Fix argument promotion for binary arithmetic ops for C.
7709 * valarith.c (unop_result_type): New fn.
7710 (binop_result_type): New fn.
7711 (value_binop): Move result type computation to binop_result_type.
7712 (value_pos, value_neg, value_complement): Move result type
7713 computation to unop_result_type.
7714
81fe8080
DE
7715 PR 2384
7716 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7717 Return basetype, fieldno if found. All callers updated.
7718 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
7719 objfile.
7720 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7721 * symfile.h (fill_in_vptr_fieldno): Delete.
7722
41808ebe
DE
77232008-02-02 Doug Evans <dje@google.com>
7724
f8597ac3
DE
7725 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
7726
41808ebe
DE
7727 * typeprint.c (*): Whitespace cleanup.
7728
f964a756
MK
77292008-02-02 Mark Kettenis <kettenis@gnu.org>
7730 Luis Machado <luisgpm@br.ibm.com>
680b56ce 7731 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
7732
7733 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
7734 don't fit into registerson the stack the way GCC does.
7735
b06ead72
JB
77362008-02-01 Joel Brobecker <brobecker@adacore.com>
7737
7738 * symtab.c (symbol_set_names): Do not add an entry in the demangling
7739 hash table for Ada symbols. Just store the linkage name as is,
7740 and leave the demangled_name as NULL.
7741
2cfa0c8d
JB
77422007-02-01 Joel Brobecker <brobecker@adacore.com>
7743
7744 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
7745 in the global scope.
7746 (new_symbol): Likewise.
7747
98deb0da 77482008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
7749
7750 * breakpoint.c (break_command_1): Return void.
7751 (break_command_really): Return void. Rethrow
7752 exceptions instead of returning.
7753 (gdb_breakpoint): Remove the error_message parameter.
7754 Return void. Rename to set_breakpoint.
7755 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 7756 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
7757 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
7758 event hooks even if exception is thrown. Adjust to
7759 gdb_breakpoint interface changes.
7760
98deb0da 7761
ce0451ad
TJB
77622008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
7763
7764 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
7765 float in both first and second word in the doubleword, to support
7766 old and new ABIs.
7767
723a2275
VP
77682008-02-01 Vladimir Prus <vladimir@codesourcery.com>
7769
7770 Properly rethrow exception. This fixes errors
7771 about non-existent functions for -break-insert.
680b56ce
AS
7772 * breakpoint.c (break_command_really): Use throw_exception
7773 for rethrowing. If rethrowing, don't print the exception.
723a2275 7774
d64a946d
TJB
77752008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7776
7777 * NEWS: Mention Decimal Floating Point support.
7778
02b156f5
JB
77792008-01-31 Joel Brobecker <brobecker@adacore.com>
7780
7781 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
7782 value type to builtin_type_void_func_ptr.
7783
a16b8bcd
UW
77842008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
7785
7786 * s390-tdep.c (is_float_singleton, is_float_like,
7787 alignment_of, s390_return_value): Make checks for
7788 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
7789
f949c649
TJB
77902008-01-31 Luis Machado <luisgpm@br.ibm.com>
7791 Thiago Jung Bauermann <bauerman@br.ibm.com>
7792
7793 * infcmd.c (default_print_registers_info): Also print hex
7794 raw contents for TYPE_CODE_DECFLOAT registers.
7795 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
7796 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
7797 (rs6000_register_name): Add support for DFP pseudo-registers.
7798 (rs6000_pseudo_register_type): Likewise.
7799 rs6000_pseudo_register_reggroup_p): Likewise.
7800 (ppc_pseudo_register_read): New function.
7801 (ppc_pseudo_register_write): Likewise.
7802 (rs6000_pseudo_register_read): Likewise.
7803 (rs6000_pseudo_register_write): Likewise.
7804 (e500_pseudo_register_read): Move checks to
7805 rs6000_pseudo_register_read.
7806 (e500_pseudo_register_write): Move checks to
7807 rs6000_pseudo_register_write.
7808 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
7809 rs6000_pseudo_register_read and rs6000_pseudo_register_write
7810 in gdbarch if SPE or DFP is available. Adjust gdbarch's
7811 num_pseudo_regs to account for DFP pseudo regs.
7812
5a9e69ba
TJB
78132008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7814
7815 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
7816 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
7817 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
7818 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
7819 e500_pseudo_register_read, e500_pseudo_register_write): Use
7820 IS_SPE_PSEUDOREG macro.
7821 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
7822 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
7823 Remove initialization of tdep->ppc_ev31_regnum.
7824
4e885b20
JB
78252008-01-08 Paul Hilfinger <hilfinger@adacore.com>
7826
7827 * printcmd.c (print_formatted): Handle references as for unformatted
7828 prints.
7829
80f064a2
JB
78302008-01-30 Joel Brobecker <brobecker@adacore.com>
7831
7832 * eval.c (evaluate_subexp_standard): Add handling of user
7833 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
7834
9b3442ee
PM
78352008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
7836
7837 * eval.c (evaluate_subexp_standard): Support
7838 BINOP_INTDIV opcode.
7839
d118ef87
PH
78402008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
7841
7842 * valarith.c (value_binop): Add floating-point BINOP_MIN and
7843 BINOP_MAX cases.
7844 For BINOP_EXP, use length and signedness of left operand only for
7845 result, as for shifts.
7846 For integral operands to BINOP_EXP, use new integer_pow and
7847 uinteger_pow functions so as to get full range of results.
7848 (integer_pow): New function.
7849 (uinteger_pow): New function.
7850
d56d46f5
VP
78512008-01-30 Vladimir Prus <vladimir@codesourcery.com>
7852
7853 Use vector for varobj_list_children interface.
680b56ce
AS
7854 * gdb/varobj.c (varobj_list_children): Return vector
7855 of varobjs.
7856 * gdb/varobj.h (varobj_list_children): Adjust
7857 prototype.
7858 (varobj_p): Declare. Declare vector thereof.
7859 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
7860 for varobj_list_children change.
d56d46f5
VP
7861 * Makefile.in (varobj_h): Update dependencies.
7862
1300a2f4
TJB
78632008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7864
7865 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
7866 TYPE_CODE_DECFLOAT arguments.
7867 (ppc64_sysv_abi_push_dummy_call) Likewise.
7868 (get_decimal_float_return_value): New function.
7869 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
7870 values by calling get_decimal_float_return_value.
7871 (ppc64_sysv_abi_return_value): Likewise.
7872
95ef687d
NR
78732008-01-30 Nick Roberts <nickrob@snap.net.nz>
7874
7875 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
7876 for preprocessor macro information. Formatting changes.
7877
2d717e4f
DJ
78782008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7879
7880 * remote.c (struct remote_state): Add cached_wait_status.
7881 (remote_exec_file): New variable.
7882 (PACKET_vAttach, PACKET_vRun): New constants.
7883 (extended_remote_restart): Do not query for status.
7884 (struct start_remote_args): New.
7885 (remote_start_remote): Take it as a second argument. Check
7886 whether the target is running. Issue an error for non-running
7887 non-extended targets. Cache the wait status. Set inferior_ptid
7888 here.
7889 (remote_open_1): Prompt to disconnect non-running targets. Make
7890 sure the target is marked running. Do not set inferior_ptid here.
7891 Update call to remote_start_remote. Do not call remote_check_symbols
7892 if the target is not running.
7893 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
7894 argument. Handle a non-running target.
7895 (remote_detach): Use it.
7896 (extended_remote_detach): New.
7897 (remote_disconnect): Fix typo. Use remoute_mourn_1.
7898 (extended_remote_attach_1, extended_remote_attach)
7899 (extended_async_remote_attach): New.
7900 (remote_vcont_resume): Remove unused variable.
7901 (remote_wait, remote_async_wait): Use any cached wait status.
7902 (putpkt_binary, getpkt): Clear any cached wait status.
7903 (extended_remoute_mourn_1): New.
7904 (extended_remote_mourn): Use it.
7905 (extended_async_remote_mourn, extended_remote_run): New.
7906 (extended_remote_create_inferior_1): New.
7907 (extended_remote_create_inferior): Use it.
7908 (extended_remote_async_create_inferior): Likewise.
7909 (remote_xfer_partial): Skip for non-executing targets.
7910 (init_extended_remote_ops): Set to_detach and to_attach.
7911 (init_extended_async_remote_ops): Likewise. Use
7912 extended_async_remote_mourn.
7913 (_initialize_remote): Register vAttach, vRun, and
7914 set remote exec-file.
7915 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
7916
e85a822c
DJ
79172008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7918
7919 * Makefile.in (symfile.o): Update.
7920 * NEWS: Mention exec tracing support.
7921 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
7922 exec events.
7923 * infcmd.c (kill_if_already_running, detach_command)
7924 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
7925 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
7926 (follow_exec): Do not check may_follow_exec. Do not mourn and push
7927 targets. Apply the sysroot path to the loaded executable. Use
7928 no_shared_libraries.
7929 * linux-nat.c (linux_child_follow_fork): Print fork following
7930 messages if verbose.
7931 (kill_wait_callback): Kill again before waiting a second time.
7932 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
7933 no_shared_libraries.
7934
9db13498
JB
79352008-01-29 Joel Brobecker <brobecker@adacore.com>
7936
7937 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
7938
b4d5ed91
JB
79392008-01-29 Joel Brobecker <brobecker@adacore.com>
7940
7941 * nto-tdep.h: Remove #include "defs.h".
7942 * nto-tdep.c: Add #include "defs.h".
7943 * Makefile.in (nto_tdep_h): Update dependencies.
7944 (nto-tdep.o): Likewise.
7945
107313f7 79462008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
7947
7948 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
7949 and use it.
7950 (proceed, start_remote): Update call to wait_for_inferior.
7951 * inferior.h (wait_for_inferior): Update declaration.
7952 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
7953 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
7954 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
7955 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
7956
3f4178d6
DJ
79572008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
7958
680b56ce 7959 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
7960 returned value from gdb_value_ind.
7961 (c_describe_child): Likewise.
7962 (cplus_describe_child): Fixed a typo.
7963
5eeba8d4
JB
79642008-01-29 Jim Blandy <jimb@red-bean.com>
7965
7966 * MAINTAINERS: Update my info.
7967
a5606eee
VP
79682008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7969
7970 Use multiple locations for hardware watchpoints.
7971 This eliminates the need to traverse value chain, doing
7972 various checks, in three different places.
7973
680b56ce
AS
7974 * breakpoint.h (struct bp_location): New fields
7975 lengths and watchpoint_type.
7976 (struct breakpoint): Remove the val_chain field.
7977 * breakpoint.c (is_hardware_watchpoint): New.
7978 (free_valchain): Remove.
7979 (update_watchpoint): New.
7980 (insert_bp_location): For hardware watchpoint, just
7981 directly insert it.
7982 (insert_breakpoints): Call update_watchpoint_locations
7983 on all watchpoints. If we have failed to insert
7984 any location of a hardware watchpoint, remove all inserted
7985 locations.
7986 (remove_breakpoint): For hardware watchpoints, directly
7987 remove location.
7988 (watchpoints_triggered): Iterate over locations.
7989 (bpstat_stop_status): Use only first location of
7990 a resource watchpoint.
7991 (delete_breakpoint): Don't call free_valchain.
7992 (print_one_breakpoint): Don't print all
7993 locations for watchpoints.
7994 (breakpoint_re_set_one): Use update_watchpoint for
7995 watchpoints.
a5606eee 7996
0b3de036
VP
79972008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7998
7999 Don't reset watchpoint block on solib load.
8000
680b56ce
AS
8001 * breakpoint.c (insert_bp_location): For watchpoints,
8002 recompute condition.
8003 (breakpoint_re_set_one): Instead of recomputing value
8004 and condition for watchpoints, just reset value and
8005 let insert_breakpoints/insert_bp_location recompute it.
8006 Don't do anything about disabled watchpoint.
0b3de036 8007
c3940723
PM
80082008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
8009
8010 * valarith.c (value_binop): Handle unsigned integer
8011 division by zero.
8012
83845630
KB
80132008-01-28 Kevin Buettner <kevinb@redhat.com>
8014
8015 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
8016 instruction pattern that appears frequently in position
8017 independent code. Fix bug in code which looks for "fmov" and
8018 backtracks if no "fmov" is found.
8019
9ce5d3bb
DE
80202008-01-28 Doug Evans <dje@google.com>
8021
8022 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
8023 Reformat comments to 80 columns.
8024 Move local var def closer to only use.
9ce5d3bb 8025
c78d192c
DJ
80262008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8027
8028 * fork-child.c (SHELL_FILE): Remove #ifndef.
8029 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
8030
e11481da
PM
80312008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
8032
8033 * i386-tdep.c (i386_skip_noop): New function.
8034 (i386_analyze_prologue): Call i386_skip_noop function.
8035
244e85c8
MS
80362008-01-24 Michael Snyder <msnyder@specifix.com>
8037
8038 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
8039 * win32-nat.c (win32_xfer_partial): Ditto.
8040 * target.c (default_xfer_partial): Minor whitespace adjustment.
8041
dd6be234
PA
80422008-01-24 Pedro Alves <pedro@codesourcery.com>
8043
8044 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
8045 strip bit 1 even if pc doesn't point to thumb code.
8046
9fa2223d
DJ
80472008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
8048
8049 * remote.c (remote_wait): Handle SIGINT between packets.
8050 (remote_async_wait): Likewise.
8051
93815fbf
VP
80522008-01-23 Vladimir Prus <vladimir@codesourcery.com>
8053 Chris Demetriou <cgd@google.com>
8054
680b56ce
AS
8055 * thread.c (add_thread_silent): Renamed
8056 from add_thread.
8057 (print_thread_events): New variable definition.
8058 (show_print_thread_events): New function.
8059 (_initialize_thread): Add "set print thread-events" and
8060 "show print thread-events" commands.
8061 (add_thread): Announce new thread.
8062 * gdbthread.h (add_thread_silent): Declare.
8063 (print_thread_events): New variable declaration.
8064 * inf-ttrace.c (inf_ttrace_wait): Don't
8065 inform about new thread, as add_thread is always
8066 called too, and will take care of that.
8067 * infrun.c (handle_inferior_event): Likewise.
8068 * procfs.c (procfs_wait): Likewise.
8069 * remote.c (remote_currthread): Likewise.
8070 * sol-thread.c (sol_thread_wait): Likewise.
8071 * win32-nat.c (get_win32_debug_event): Likewise.
8072 * linux-thread-db.c (attach_thread): Likewise.
8073 Remove the verbose parameter.
8074 (check_event): Make detach_thread be verbose
8075 only if print_thread_events is set.
8076 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
8077 about new thread. This is called only from
8078 linux-thread-db.c:attach_thread, which will take care.
8079 Remove the verbose parameter.
8080 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 8081
b4d7c9a6
NR
80822008-01-23 Nick Roberts <nickrob@snap.net.nz>
8083
8084 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
8085
60c46647
VP
80862008-01-22 Vladimir Prus <vladimir@codesourcery.com>
8087
8088 * breakpoint.c (break_command_really): New parameter
8089 ignore_count.
8090 (break_command_1): Pass 0 as
8091 ignore_count to break_command_really.
8092 (gdb_breakpoint): Pass ignore_count to
8093 break_command_really.
8094
e84605cd
KB
80952008-01-21 Kevin Buettner <kevinb@redhat.com>
8096
8097 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
8098 sigcontext struct via pointer.
8099 (struct sigframe comment): Update to show new field `psc'.
8100
9d9cd7ac
VP
81012008-01-21 Vladimir Prus <vladimir@codesourcery.com>
8102
8103 * infrun.c (handle_inferior_event): If
8104 we failed to remove breakpoints, error,
8105 don't try to increment PC by hand.
8106
af5ca30d
NH
81072008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
8108
8109 Add NetBSD/hppa target and host support.
8110
8111 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
8112 (hppabsd_gregset): Move to ...
8113 (hppabsd_regset_from_core_section): Rename
8114 hppaobsd_regset_from_core_section and move to ...
8115 (hppabsd_find_global_pointer): Update comment.
8116 (hppabsd_init_abi): Make global. Do not register
8117 hppabsd_regset_from_core_section.
8118 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
8119 move to ...
8120 (_initialize_hppabsd_tdep): Move to ...
8121 * hppaobsd-tdep.c: ... here. New file.
8122 * hppnbsd-tdep.c: New file.
8123 * hppnbsd-nat.c: New file.
680b56ce 8124 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 8125 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
8126 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
8127 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
8128 * configure.host (hppa*-*-netbsd*): New entry.
8129 * configure.tgt (hppa*-*-netbsd*): New entry.
8130 (hppa*-*-openbsd*): Update.
8131 * NEWS (New native configuration): Mention NetBSD/hppa.
8132 (New targets): Mention NetBSD/hppa.
8133
32c9a795
MD
81342008-01-18 Markus Deuling <deuling@de.ibm.com>
8135
8136 * gdbarch.sh (function_list): Add new property bits_big_endian to
8137 gdbarch structure.
8138 * gdbarch.{c,h}: Regenerate.
8139
8140 * value.c (struct value): Replace BITS_BIG_ENDIAN by
8141 gdbarch_bits_big_endian (comment).
8142 (unpack_field_as_long, modify_field): Likewise.
8143 * value.h: Likewise (comment).
8144 * valops.c (value_slice): Likewise.
8145 * valarith.c (value_subscript, value_bit_index): Likewise.
8146 * gdbtypes.h (field): Likewise (comment).
8147 * eval.c (evaluate_subexp_standard): Likewise.
8148 * dwarf2read.c (dwarf2_add_field): Likewise.
8149 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
8150 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 8151
32c9a795
MD
8152 * defs.h (BITS_BIG_ENDIAN): Remove.
8153
1e5e79d0
MD
81542008-01-18 Markus Deuling <deuling@de.ibm.com>
8155
8156 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
8157 function calls.
8158 * m2-exp.y (yylex): Likewise.
8159 * objc-exp.y (yylex): Likewise.
8160
8161 * defs.h (DEPRECATED_STREQN): Remove.
8162
fabda5a7
L
81632008-01-17 H.J. Lu <hjl.tools@gmail.com>
8164
8165 * MAINTAINERS: Update my email address.
8166
92726479
JB
81672008-01-17 Jim Blandy <jimb@codesourcery.com>
8168
8169 * README: Mention gdbserver/README.
8170
ef80d18e
PM
81712008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8172
8173 * valarith.c (value_binop): Handle BINOP_INTDIV
8174 for unsigned and signed integers.
8175
1de90795
UW
81762008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
8177
8178 * s390-tdep.c (s390_gdbarch_init): Set default long double
8179 type to 128-bit IEEE quad.
8180
c70bd6f3
JB
81812008-01-17 Joel Brobecker <brobecker@adacore.com>
8182
8183 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
8184
ba759613
MK
81852008-01-16 Mark Kettenis <kettenis@gnu.org>
8186
77d49ac6
MK
8187 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
8188
ba759613
MK
8189 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
8190 * value.c: All callers changed.
8191
7ecb6532
MD
81922008-01-16 Markus Deuling <deuling@de.ibm.com>
8193
8194 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
8195 DEPRECATED_STREQ by its expression.
8196 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
8197 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
8198 (scan_xcoff_symtab): Likewise.
8199 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
8200 * f-lang.c (find_common_for_function): Likewise.
8201 * objc-exp.y (parse_number): Likewise.
8202
8203 * defs.h (DEPRECATED_STREQ): Remove.
8204
d15cf01c
MD
82052008-01-16 Markus Deuling <deuling@de.ibm.com>
8206
8207 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
8208 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
8209 get_frame_arch to get at the current_architecture. Update AM33_MODE
8210 call.
8211 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
8212 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
8213 architecture.
8214 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
8215
f8028488
MD
82162008-01-16 Markus Deuling <deuling@de.ibm.com>
8217
680b56ce 8218 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
8219 parameter.
8220 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
8221
8222 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
8223 current_gdbarch by gdbarch. Update caller.
8224
8225 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
8226 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
8227 the current architecture. Update calls of
8228 amd64_native_gregset_supplies_p.
8229 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
8230 (amd64bsd_store_inferior_registers): Likewise.
8231
e101270f
MD
82322008-01-16 Markus Deuling <deuling@de.ibm.com>
8233
8234 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
8235 Replace current_gdbarch by gdbarch. Update caller.
8236
063e58ba
MD
82372008-01-16 Markus Deuling <deuling@de.ibm.com>
8238
8239 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
8240 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
8241 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
8242 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
8243 (stabsect_build_psymtabs): Fix indentation.
8244
662fb31b
MS
82452008-01-15 Michael Snyder <msnyder@specifix.com>
8246
8247 * corelow.c (core_xfer_partial): Comment, cut/paste error.
8248
c1766e7d
PM
82492008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8250
8251 * win32-nat.c (win32_create_inferior): Restore code calling
8252 CloseHandle on ProcessInformation structure.
8253
5ed10e6e
NH
82542008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
8255
8256 * configure.ac: Check for void * as 3 argument of ptrace.
8257 * configure: regenerate.
8258
be8626e0
MD
82592008-01-11 Markus Deuling <deuling@de.ibm.com>
8260
8261 * alpha-tdep.c (alpha_heuristic_proc_start)
8262 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
8263 current_gdbarch by gdbarch.
8264
8265 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 8266 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
8267 call.
8268
8269 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
8270 get_frame_arch to get at the current architecture by frame_info. Update
8271 alpha_sigtramp_register_address call.
8272
8273 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
8274 current_gdbarch by gdbarch. Update caller.
8275 (convert_to_extended, convert_from_extended): Add endianess parameter
8276 for comparison. Update caller.
8277 (arm_extract_return_value, arm_store_return_value): Use
8278 get_regcache_arch to get at the current architecture.
8279
8280 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
8281 current_gdbarch by gdbarch. Update caller.
8282 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
8283 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
8284
8285 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 8286 gdbarch as parameter. Update caller.
be8626e0
MD
8287 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
8288 current_gdbarch by gdbarch. Update caller.
8289
680b56ce 8290 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
8291 update caller. Replace current_gdbarch by gdbarch.
8292
8293 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
8294 the current architecture. Replace current_gdbarch by gdbarch.
8295 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
8296 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
8297 expression. Add gdbarch as parameter and replace current_gdbarch with
8298 it. Update caller.
8299 (M6811_TDEP): Remove.
8300 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
8301 architecture.
680b56ce 8302 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
8303 current_gdbarch by gdbarch. Update caller.
8304
8305 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
8306 update caller.
8307 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
8308 by gdbarch.
8309
8310 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
8311 caller. Relace current_gdbarch by gdbarch.
8312 (altivec_register_p, spe_register_p): Likewise.
8313 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
8314 parameter.
8315 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
8316 altivec_register_p and spe_register_p.
8317
680b56ce 8318 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
8319 caller. Replace current_gdbarch by gdbarch.
8320 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 8321 architecture.
be8626e0
MD
8322
8323 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
8324 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
8325 current_gdbarch by gdbarch. Update caller.
8326 (sparc_frame_cache): Use get_frame_arch to get at the current
8327 architecture.
8328 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
8329 sparc_analyze_prologue.
8330
8331 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
8332 parameter.
8333
ed49a04f
MD
83342008-01-11 Markus Deuling <deuling@de.ibm.com>
8335
8336 * exec.c: #include "arch-utils.h"
8337 (print_section_info): Use gdbarch_from_bfd to get at the
8338 current architecture. Replace current_gdbarch. Fix indention. Replace
8339 deprecated_print_address_numeric by paddress.
8340 * Makefile.in (exec.o) Add dependency to arch-utils.h.
8341
680b56ce 8342 * valprint.c (val_print_string): Replace
ed49a04f
MD
8343 deprecated_print_address_numeric.
8344 * tracepoint.c (trace_mention, scope_info): Likewise.
8345 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
8346 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
8347 (maintenance_check_symtabs): Likewise.
8348 * symfile.c (list_overlays_command): Likewise.
8349 * stack.c (frame_info, print_block_frame_labels): Likewise.
8350 * printcmd.c (print_address, print_address_demangle)
8351 (address_info): Likewise.
8352 * corefile.c (memory_error): Likewise.
8353 * infcmd.c (jump_command): Likewise.
8354 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
8355 (mention, delete_breakpoint): Likewise.
8356 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
8357 * dwarf2read.c (dump_die): Likewise.
8358 * ada-valprint.c (ada_val_print_1): Likewise.
8359 * f-valprint.c (f_val_print): Likewise.
680b56ce 8360 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
8361 * m32r-com.c (m32r_load_section, m32r_load)
8362 (m32r_upload_command): Likewise.
8363
8364 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
8365
6093d2eb
MD
83662008-01-11 Markus Deuling <deuling@de.ibm.com>
8367
8368 * gdbarch.sh (skip_prologue): Add gdbarch
8369 as parameter.
8370 * gdbarch.{c,h}: Regenerate.
8371
8372 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
8373 * amd64-tdep.c (amd64_skip_prologue): Likewise.
8374 * avr-tdep.c (avr_skip_prologue): Likewise.
8375 * cris-tdep.c (cris_skip_prologue): Likewise.
8376 * frv-tdep.c (frv_skip_prologue): Likewise.
8377 * h8300-tdep.c (h8300_skip_prologue): Likewise.
8378 * hppa-tdep.c (hppa_skip_prologue): Likewise.
8379 * i386-tdep.c (i386_skip_prologue): Likewise.
8380 * ia64-tdep.c (ia64_skip_prologue): Likewise.
8381 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
8382 * m32r-tdep.c (m32r_skip_prologue): Likewise.
8383 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
8384 * m68k-tdep.c (m68k_skip_prologue): Likewise.
8385 * m88k-tdep.c (m88k_skip_prologue): Likewise.
8386 * mep-tdep.c (mep_skip_prologue): Likewise.
8387 * mips-tdep.c (mips_skip_prologue): Likewise.
8388 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
8389 * mt-tdep.c (mt_skip_prologue): Likewise.
8390 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
8391 * score-tdep.c (score_skip_prologue): Likewise.
8392 * sh64-tdep.c (sh64_skip_prologue): Likewise.
8393 * sh-tdep.c (sh_skip_prologue): Likewise.
8394 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
8395 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
8396 * spu-tdep.c (spu_skip_prologue): Likewise.
8397 * v850-tdep.c (v850_skip_prologue): Likewise.
8398 * vax-tdep.c (vax_skip_prologue): Likewise.
8399 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
8400 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
8401
8402 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
8403 current_gdbarch by gdbarch.
8404 * m32c-tdep.c (m32c_skip_prologue): Likewise.
8405 * s390-tdep.c (s390_skip_prologue): Likewise.
8406
72f5cf0e
DE
84072008-01-10 Doug Evans <dje@google.com>
8408
8409 * defs.h (struct continuation_arg): Fix typo in comment.
8410 * target.c (target_translate_tls_address): Fix comment spelling error.
8411
689e4e2d
TJB
84122008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
8413
8414 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
8415 (DOUBLEST_SCAN_FORMAT): Likewise.
8416 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
8417 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
8418 * c-exp.y (parse_number): Likewise.
8419 * jv-exp.y (parse_number): Likewise.
8420 * objc-exp.y (parse_number): Likewise.
8421 * p-exp.y (parse_number): Likewise.
8422
ab0d6e0d
JB
84232008-01-09 Joel Brobecker <brobecker@adacore.com>
8424
8425 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
8426 (check_typedef): Likewise.
8427
0aea4bf3
LM
84282008-01-09 Luis Machado <luisgpm@br.ibm.com>
8429
8430 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
8431 seen_double_big_d, treat the new H, D, and DD modifiers as length
8432 modifiers.
8433
137033e9
JB
84342008-01-08 Joel Brobecker <brobecker@adacore.com>
8435
8436 * dwarf2read.c (read_enumeration_type): Add comment.
8437
dda297ec
TJB
84382008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8439
8440 * config.in: Regenerate.
8441
a93c0eb6
JB
84422008-01-08 Joel Brobecker <brobecker@adacore.com>
8443
8444 * ada-lang.c (ada_convert_actual): Renames convert_actual.
8445 Make non-static.
8446 (ada_convert_actuals): Delete.
8447 * ada-lang.h (ada_convert_actual): Add declaration.
8448 (ada_convert_actuals): Remove declaration.
8449 * infcall.c: #include "ada-lang.h".
8450 (value_arg_coerce): Add new parameter sp. Update function
8451 documetnation. Add handling of Ada function call parameters.
8452 * Makefile.in (infcall.o): Update dependencies.
8453
a84a8a0d
JB
84542008-01-08 Paul Hilfinger <hilfinger@adacore.com>
8455
8456 * ada-lang.c (ensure_lval): Fix value lval kind.
8457 (convert_actual): Add handling for arguments passed by reference.
8458
d7f98cce
DE
84592008-01-08 Doug Evans <dje@google.com>
8460
8461 * dbxread.c (read_dbx_symtab): Fix indentation.
8462
4ef30785
TJB
84632008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8464
8465 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
8466 (valarith.o): Depend on dfp.h.
8467 (valops.o): Likewise.
8468 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
8469 (set_decnumber_context): New function.
8470 (decimal_check_errors): Likewise.
8471 (decimal_from_number): Likewise.
8472 (decimal_to_number): Likewise.
8473 (decimal_from_string): Use set_decnumber_context and
8474 decimal_check_errors.
8475 (decimal_from_integral): New function.
8476 (decimal_from_floating): Likewise.
8477 (decimal_to_double): Likewise.
8478 (promote_decimal): Likewise.
8479 (decimal_binop): Likewise.
8480 (decimal_is_zero): Likewise.
8481 (decimal_compare): Likewise.
8482 (decimal_convert): Likewise.
8483 * dfp.h (decimal_from_integral): New prototype.
8484 (decimal_from_floating): Likewise.
8485 (decimal_to_double): Likewise.
8486 (decimal_binop): Likewise.
8487 (decimal_is_zero): Likewise.
8488 (decimal_compare): Likewise.
8489 (decimal_convert): Likewise.
8490 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
8491 call to value_from_decfloat.
8492 * valarith.c: Include dfp.h.
8493 (value_args_as_decimal): New function.
8494 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
8495 (value_logical_not): Likewise.
8496 (value_equal): Likewise.
8497 (value_less): Likewise.
8498 (value_pos): Likewise.
8499 (value_neg): Formatting fix.
8500 * valops.c: Include dfp.h.
8501 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
8502 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
8503 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
8504 (value_from_decfloat): Remove expect_type argument.
8505 * value.h (value_from_decfloat): Update prototype.
8506
a7c02bc8
VP
85072008-01-07 Vladimir Prus <vladimir@codesourcery.com>
8508
8509 Ignore change in name of dynamic linker during
8510 execution on Solaris. This also unbreaks pending breakpoints.
8511
8512 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
8513 * solib-svr4.c (svr4_same): New.
8514 (_initialize_svr4_solib): Register svr4_same.
8515 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 8516
610dd7f9
CF
85172008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
8518
8519 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
8520 when using MS-DOS paths.
8521
7a404eba
PA
85222008-01-05 Pedro Alves <pedro@codesourcery.com>
8523
8524 * NEWS: Mention --pid and --core command line behaviour changes.
8525
a4d9b460
PA
85262008-01-05 Pedro Alves <pedro@codesourcery.com>
8527
8528 * main.c (captured_main): Remove 'count' varible and the
8529 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
8530 --pid options were issued simultaneously. If an explicit pid
8531 option was passed, don't fallback to core file. Detect extra
8532 arguments better in the presence of explicit pid or core
8533 arguments.
8534
0c281816
JB
85352008-01-05 Joel Brobecker <brobecker@adacore.com>
8536
8537 * ada-lang.c (ada_which_variant_applies): Correctly compute
8538 the value of the discriminant when the variant record is packed.
8539
babe1480
JB
85402008-01-04 Joel Brobecker <brobecker@adacore.com>
8541
8542 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
8543 that are used to differentiate homonyms.
8544
727e3d2e
JB
85452008-01-04 Jerome Guitton <guitton@adacore.com>
8546
8547 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
8548 when the type is an anonymous pointer type.
8549 (ada_check_typedef): Avoid a seg fault when the type is null.
8550 * ada-typeprint.c (print_array_type): Add support for pointer
8551 to packed arrays.
8552
bb28a9dc
JB
85532008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
8554
680b56ce 8555 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 8556
6799def4
JB
85572008-01-04 Joel Brobecker <brobecker@adacore.com>
8558
8559 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
8560 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
8561
d3353bbd
JB
85622008-01-04 Joel Brobecker <brobecker@adacore.com>
8563
8564 * ada-exp.y (chop_separator): New function.
8565 (write_selectors): Rewrite to re-use chop_separator.
8566 (ada_nget_field_index, get_symbol_field_type): New functions.
8567 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
8568 expressions.
8569
82cf6c60
TJB
85702008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
8571
8572 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
8573 of SYMBOL_VALUE when working with function symbols.
8574
b3dbf008
JB
85752008-01-03 Joel Brobecker <brobecker@adacore.com>
8576
8577 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
8578 expressions. These expressions do not need to be rewriten.
8579
02eb380e
JB
85802008-01-03 Joel Brobecker <brobecker@adacore.com>
8581
8582 * dwarf2read.c (read_enumeration_type): Flag type as stub if
8583 the given die is a declaration.
8584
abb68b3e
JB
85852008-01-03 Joel Brobecker <brobecker@adacore.com>
8586
8587 * ada-lang.c (ada_array_bound_from_type): Make non-static.
8588 Handle properly the case when the index type is an enumerated type.
8589 Do not return the subtype of the bounds type, just return the
8590 bounds type directly - this is not needed and is more consistent
8591 with what we do for arrays when no XA parallel type exists.
8592
f192137b
JB
85932008-01-03 Joel Brobecker <brobecker@adacore.com>
8594
8595 * ada-lang.c (static_unwrap_type): Add forward declaration.
8596 (template_to_static_fixed_type): Fields of dynamic types sometimes
8597 also need to be unwrapped. Take this into account.
8598 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
8599 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
8600 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 8601 the original type, not the base type.
f192137b 8602
1ed6ede0
JB
86032008-01-03 Jerome Guitton <guitton@adacore.com>
8604
8605 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 8606 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
8607 Update calls to ada_to_fixed_type.
8608 (ada_template_to_fixed_record_type_1): Ditto, but without looking
8609 for the tag.
8610 (ada_to_fixed_type): Add check_tag parameter; do not look for
8611 tag if null. When looking for a tag, use a fixed record type.
8612 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
8613 * ada-valprint.c (printable_val_type, ada_value_print): Update
8614 calls to ada_to_fixed_type.
8615
542a88d0
LM
86162008-01-03 Luis Machado <luisgpm@br.ibm.com>
8617
680b56ce 8618 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
8619 floatformat_to_doublest instead of floatformat_to_double and use
8620 DOUBLEST variables.
8621 (convert_doublest_to_floatformat): Call floatformat_from_doublest
8622 instead of floatformat_from_double and use DOUBLEST variables.
8623
dc2bbab2
NH
86242008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
8625
8626 * MAINTAINERS (Write After Approval): Add self.
8627
8b60591b
JB
86282008-01-03 Joel Brobecker <brobecker@adacore.com>
8629
8630 * symfile.c (set_initial_language): Make non-static.
8631 * symfile.h (set_initial_language): Add declaration.
8632 * language.c: #include "symfile.h".
8633 (set_language): Call set_initial_language if the frame language
8634 could not be determined.
8635
ceef53c1
JB
86362008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
8637
8638 * eval.c (evaluate_subexp_for_address): Provide frame address to
8639 locate_var_value only if it will be needed.
8640
ef29ce1a
JK
86412008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8642
8643 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
8644
0a07e705
JB
86452008-01-02 Joel Brobecker <brobecker@adacore.com>
8646
8647 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
8648 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
8649 This is needed to make sure that any other treatment applied
8650 to the resulting value does not fail for spurious reason,
8651 such as trying to take the address of this value.
8652
f58b38bf
JB
86532008-01-02 Joel Brobecker <brobecker@adacore.com>
8654
8655 * ada-lang.c (ada_value_equal): Dereference reference types when
8656 comparing arrays.
680b56ce 8657
9b254dd1
DJ
86582008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
8659
8660 Updated copyright notices for most files.
8661
33605d39
CF
86622008-01-01 Christopher Faylor <me+gdb@cgf.cx>
8663
8664 * win32-nat.c (psapi_module_handle): Remove static.
8665 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
8666 return first module found if base_address is zero. Don't initialize
8667 psapi function pointers here. Convert to cygwin paths when
8668 appropriate.
8669 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
8670 executable name. Use get_module_name when that fails or when
8671 !__CYGWIN__.
8672 (_initialize_psapi): New function. Initialize psapi stuff before it is
8673 needed or issue a warning if it is not found. Move psapi_module_handle
8674 here.
8675
29480c32
JB
86762008-01-01 Joel Brobecker <brobecker@adacore.com>
8677
8678 * ada-lang.c (ada_remove_trailing_digits): New function.
8679 (ada_remove_po_subprogram_suffix): New function.
8680 (ada_decode): Improve. Move the description of the algorithm
8681 directly inside the code, instead of in the function global
8682 description.
8683
969a1360
JB
86842008-01-01 Joel Brobecker <brobecker@adacore.com>
8685
8686 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
8687 and always print the dereferenced value.
8688
b7789565
JB
86892008-01-01 Joel Brobecker <brobecker@adacore.com>
8690
8691 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
8692 of the case where the first argument is a reference.
8693 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
8694
73fb9985
JB
86952008-01-01 Joel Brobecker <brobecker@adacore.com>
8696
8697 Implement support for Ada interface types.
8698
8699 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
8700 (ada_is_ignored_field): Ignore fields that are a dispatch table
8701 of a tagged type.
8702
636265b6
JB
87032008-01-01 Joel Brobecker <brobecker@adacore.com>
8704
8705 * top.c (print_gdb_version): Update copyright year.
8706
9d200a2e 87072008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 8708
9d200a2e
JB
8709 * ChangeLog-2007: New ChangeLog rotation.
8710 * ChangeLog: Reset for 2008.
8711 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
8712 ChangeLog-2007.
b7589f7d 8713
9d200a2e 8714For older changes see ChangeLog-2007.
c906108c
SS
8715\f
8716Local Variables:
8717mode: change-log
8718left-margin: 8
8719fill-column: 74
8720version-control: never
57da7796 8721coding: utf-8
c906108c 8722End:
This page took 1.341068 seconds and 4 git commands to generate.