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