]> Git Repo - binutils.git/blame - gdb/ChangeLog
PR build/7196:
[binutils.git] / gdb / ChangeLog
CommitLineData
732f3f12
TT
12011-11-18 Tom Tromey <[email protected]>
2
3 PR build/7196:
4 * remote.c (putpkt_for_catch_errors): New function.
5 (remote_kill): Use it.
6
bfccc43c
YQ
72011-11-18 Yao Qi <[email protected]>
8
9 * breakpoint.c (create_breakpoint): Produce query message according to
10 breakpoint's type.
11 Allocate tracepoint per correct type.
12 Don't check SALs for pending fast tracepoints.
13 * tracepoint.c (process_tracepoint_on_disconnect): New.
14 (disconnect_tracing): Call process_tracepoint_on_disconnect.
15
3ea46bff
YQ
162011-11-18 Yao Qi <[email protected]>
17
18 * breakpoint.c (install_breakpoint): Add one more parameter so that
19 update_global_location_list is called conditionally.
20 (create_fork_vfork_event_catchpoint): Update.
21 (create_syscall_event_catchpoint): Update.
22 (create_breakpoint_sal): Update.
23 (create_breakpoint_sal): Update. Call do_cleanups before
24 install_breakpoint.
25 * ada-lang.c (create_ada_exception_catchpoint): Update.
26 * breakpoint.h (install_breakpoint): Update declaration.
27
598cfb71
UW
282011-11-16 Ulrich Weigand <[email protected]>
29
30 * spu-tdep.c (spu_return_value): Fix handling of
31 TYPE_CALLING_CONVENTION annotation.
32
caf4328c
UW
332011-11-16 Ulrich Weigand <[email protected]>
34
35 * skip.c (skip_function_command): Work around uninitialized
36 variable warning.
37
2b54dda2
DM
382011-11-16 David S. Miller <[email protected]>
39
40 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
41 'tv_usec' to long for printf since these fields have a type which
42 varies.
43
93bf33fd
DE
442011-11-15 Doug Evans <[email protected]>
45
46 * buildsym.c (add_symbol_to_list): Delete outdated comment.
47
9cc10fd1
PK
482011-11-15 Paul Koning <[email protected]>
49
50 * python/py-type.c (typy_get_composite): New function.
51 (typy_nonzero): New function.
52 (typy_values): Rename from typy_fields.
53 (typy_fields): New function.
54 (typy_length): Raise exception if not struct, union, or enum type.
55 (typy_getitem): Ditto.
56 (typy_has_key): Ditto.
57 (typy_make_iter): Ditto.
58
c011a4f4
DE
592011-11-15 Doug Evans <[email protected]>
60
61 * NEWS: Mention new parameter basenames-may-differ.
62 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
63 ! basenames_may_differ.
64 * psymtab.c (lookup_partial_symtab): Ditto.
65 * symtab.c (lookup_symtab): Ditto.
66 (basenames_may_differ): New global.
67 (_initialize_symtab): New parameter basenames-may-differ.
68 * symtab.h (basenames_may_differ): Declare.
69
865ecab4
LM
702011-11-15 Pedro Alves <[email protected]>
71 Luis Machado <[email protected]>
72
73 * auxv.c: Include observer.h.
74 (auxv_inferior_data_cleanup): New.
75 (invalidate_auxv_cache_inf): New.
76 (invalidate_auxv_cache): New.
77 (get_auxv_inferior_data): New.
78 (auxv_inferior_data): New static global.
79 (auxv_info): New structure.
80 (target_auxv_search): Use get_auxv_inferior_data instead of
81 target_read_alloc and don't free cached buffers.
82 (fprint_target_auxv): Likewise
83 (_initialize_auxv): Register per-inferior auxv cache and register
84 observers to invalidate auxv cache when needed.
85
ed59ded5
DE
862011-11-14 Doug Evans <[email protected]>
87
88 Make "!" an alias for "shell".
89 * NEWS: Add mention.
90 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
91 adding "!" command, always add it.
92 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
93 command of length one.
94
405f8e94
SS
952011-11-14 Stan Shebs <[email protected]>
96 Kwok Cheung Yeung <[email protected]>
97
98 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
99 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
100 the minimum instruction size for fast tracepoints.
101 * target.h (struct target_ops): Add new method
102 to_get_min_fast_tracepoint_insn_len.
103 (target_get_min_fast_tracepoint_insn_len): New.
104 * target.c (update_current_target): Set up new target operation.
105 * remote.c (remote_write_bytes_aux): Fix typo.
106 (remote_get_min_fast_tracepoint_insn_len): New.
107 (init_remote_ops): Initialize new field.
108
3e05895e
TT
1092011-11-14 Tom Tromey <[email protected]>
110
111 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
112 (encode_actions): Likewise.
113
1e4d1764
YQ
1142011-11-14 Yao Qi <[email protected]>
115
116 * remote.c (struct remote_state): <install_in_trace> new field.
117 (PACKET_InstallInTrace): New enum value.
118 (remote_install_in_trace_feature): Support InstallInTrace.
119 (remote_supports_install_in_trace): Likewise.
120 (remote_protocol_features): Likewise.
121 (_initialize_remote): Likewise.
122 (remote_can_download_tracepoint): New.
123 * target.h (struct target): New field
124 `to_can_download_tracepoint'.
125 (target_can_download_tracepoint): New macro.
126 * target.c (update_current_target): Update.
127 * breakpoint.h (struct bp_location): Add comment on field
128 `duplicate'.
3ccd4ac6
YQ
129 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
130 and tracepoint.
1e4d1764
YQ
131 (remove_breakpoints): Don't remove tracepoints.
132 (tracepoint_locations_match ): New.
133 (breakpoint_locations_match): Call it.
134 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
135 (download_tracepoint_locations): New.
136 (update_global_location_list): Call it.
137 * tracepoint.c (find_matching_tracepoint): Delete.
138 (find_matching_tracepoint_location): Renamed from
139 find_matching_tracepoint. Return bp_location rather than
140 tracepoint.
141 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
142 tracepoint is found.
143
e8ba3115
YQ
1442011-11-14 Yao Qi <[email protected]>
145
146 * target.h (struct target): <to_download_tracepoint> Change type
147 of parameter from tracepoint to bp_location.
148 * target.c (update_current_target): Update.
149 * tracepoint.c (start_tracing): Update.
150 * remote.c (remote_download_tracepoint): Remove loop for each location
151 of a tracepoint.
152
edcc485a
MR
1532011-11-14 Maciej W. Rozycki <[email protected]>
154
155 * i386-nat.c (i386_insert_hw_breakpoint): Call
156 i386_update_inferior_debug_regs.
157 (i386_remove_hw_breakpoint): Likewise.
158
3742cc8b
YQ
1592011-11-14 Yao Qi <[email protected]>
160
161 * breakpoint.c (init_raw_breakpoint): Call
162 add_location_to_breakpoint to replace duplicated code.
163 (add_location_to_breakpoint): Adjust the breakpoint's
164 address prior to allocating a location.
165
71eba9c2 1662011-11-12 Matt Rice <[email protected]>
167
168 * macrocmd.c (macro_no_macro_info): New function.
169 (macro_expand_command): Use macro_no_macro_info.
170 (macro_expand_once_command): Ditto.
171 (info_macro_command): Add argument processing,
172 move info_definitions_command here.
173 (_initialize_macrocmd): Remove info definitions command.
174 Add arguments to info macro help text.
175 * NEWS: Replace info definitions command with new info macro options.
176
731971ed
KS
1772011-11-11 Keith Seitz <[email protected]>
178
179 PR gdb/12843
180 * linespec.c (locate_first_half): Keep ':' if it looks
181 like it could be part of a Windows path starting with
182 a drive letter.
183
6953d224
PA
1842011-11-10 Pedro Alves <[email protected]>
185
186 * linux-nat.c (linux_nat_wait): Don't force waking up the event
187 loop when returning a TARGET_WAITKIND_NO_RESUMED.
188
0c94aa73
PA
1892011-11-10 Pedro Alves <[email protected]>
190
191 * target.c (target_waitstatus_to_string): Handle
192 TARGET_WAITKIND_NO_RESUMED.
193
f6b47be4
DE
1942011-11-10 Doug Evans <[email protected]>
195
74e2f255
DE
196 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
197 `need_fullname'.
198 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
199 (map_partial_symbol_filenames): Ditto. All callers updated.
200 * psymtab.h (map_partial_symbol_filenames): Update prototype.
201 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
202 parameter need_fullname.
203
256f06f3
DE
204 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
205 * source.c (symtab_to_fullname): Ditto.
206
50f182aa
DE
207 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
208 * gdb-demangle.h: ... here. New file.
209 * demangle.c: #include "gdb-demangle.h".
210 (_initialize_demangler): Use initialize_file_ftype for prototype.
211 Move "set demangle" and "set asm-demangle" parameters here from utils.c
212 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
213 from utils.c
214 * utils.c: Update. #include "gdb-demangle.h".
215 * symtab.h (asm_demangle): Delete.
216 (demangle): Move declaration next to use.
217 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
218 * dwarf2read.c: #include "gdb-demangle.h".
219 * gnu-v2-abi.c: Ditto.
220 * jv-typeprint.c: Ditto.
221 * mdebugread.c: Ditto.
222 * p-typeprint.c: Ditto.
223 * stabsread.c: Ditto.
224 * printcmd.c: Ditto.
225 (asm_demangle): Delete declaration.
226 * tui/tui-stack.c: #include "gdb-demangle.h".
227
f6b47be4
DE
228 * python/py-type.c (typy_fields_items): Call check_typedef.
229
22355c90
JB
2302011-11-10 Joel Brobecker <[email protected]>
231
232 * findvar.c (read_frame_register_value): Read the correct bytes
233 from registers on big-endian architectures.
234
bd119cf1 2352011-11-10 Tom Tromey <[email protected]>
e28cade7
JB
236
237 * procfs.c (load_syscalls): Make a cleanup.
238 (open_procinfo_files): fd==0 is ok.
239
0a86f364
JB
2402011-11-10 Joel Brobecker <[email protected]>
241
242 * procfs.c (iterate_over_mappings): Call do_cleanups before
243 returning.
244
9bc118a5
DE
2452011-11-09 Doug Evans <[email protected]>
246
247 * gdbtypes.c (check_typedef): Document that this function can
248 throw an exception.
249
a7860e76
TT
2502011-11-09 Tom Tromey <[email protected]>
251
252 PR c++/13342:
253 * valops.c (value_full_object): Return early if real type is
254 smaller than the enclosing type.
255
60965737
YQ
2562011-11-08 Yao Qi <[email protected]>
257
258 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
259
72a2e3dc
MI
2602011-11-08 Meador Inge <[email protected]>
261
262 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
263 register when the frame can't be determined.
264 * arm-tdep.c (arm_analyze_prologue): Ditto.
265
ce3b0ff7
SS
2662011-11-07 Stan Shebs <[email protected]>
267
268 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
269
2b914b52
JB
2702011-11-07 Joel Brobecker <[email protected]>
271
272 * infrun.c (handle_inferior_event): Minor reformatting.
273
6f809020
DE
2742011-11-05 Doug Evans <[email protected]>
275
276 * source.c (forget_cached_source_info_for_objfile): Move call to
277 objfile->sf->qf->forget_cached_source_info outside of
278 ALL_OBJFILE_SYMTABS loop.
279 (forget_cached_source_info): Delete unused variable `s'.
280
75d12218
JK
2812011-11-05 Jan Kratochvil <[email protected]>
282
283 * i386-nat.c (dr_ref_count): Remove unused variable.
284
e565b837
DE
2852011-11-05 Doug Evans <[email protected]>
286
287 * main.c (captured_main): Set lim_at_start before calling
288 make_command_stats_cleanup.
289
0a1c4d10
DE
2902011-11-04 Doug Evans <[email protected]>
291
292 * utils.c: #include "timeval-utils.h".
293 (cmd_stats): Rename start_time to start_cpu_time.
294 New member start_wall_time.
295 (report_command_stats): Report wall time.
296 (make_command_stats_cleanup): Record start wall time.
297
a1d705ee
TT
2982011-11-04 Tom Tromey <[email protected]>
299
300 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
301
81de56be
RO
3022011-11-04 Rainer Orth <[email protected]>
303
304 * coff-pe-read.c: Include defs.h before bfd.h.
305
3ab1ec27
PM
3062011-11-04 Phil Muldoon <[email protected]>
307
308 PR Python/13345
309
310 * python/python.c (python_run_simple_file): Expand tilde in path.
311
cd829959
PM
3122011-11-04 Phil Muldoon <[email protected]>
313
314 PR Python/13363
315
316 * python/py-type.c (typy_lookup_type): Do not return a type in
317 an exception handler.
318
080ad648
JK
3192011-11-03 Jan Kratochvil <[email protected]>
320 Eli Zaretskii <[email protected]>
321
322 * linux-nat.c (_initialize_linux_nat): Improve help
323 for `info proc stat', `info proc status', `info proc cwd',
324 `info proc cmdline' and `info proc exe'.
325
3065dfb6
SS
3262011-11-02 Stan Shebs <[email protected]>
327
328 String collection for tracepoints.
329 * NEWS: Mention string collection.
330 * common/ax.def (tracenz): New bytecode.
331 * ax-gdb.h (trace_string_kludge): Declare.
332 * ax-gdb.c: Include valprint.h and c-lang.h.
333 (trace_string_kludge): New global.
334 (gen_traced_pop): Add string case.
335 (agent_command): Add string case.
336 * tracepoint.h (decode_agent_options): Declare.
337 * tracepoint.c: Include cli-utils.h.
338 (decode_agent_options): New function.
339 (validate_actionline): Call it.
340 (encode_actions_1): Ditto.
341 * target.h (struct target_ops): New method to_supports_string_tracing.
342 (target_supports_string_tracing): New macro.
343 * target.c (update_current_target): Add to_supports_string_tracing.
344 * remote.c (struct remote_state): New field string_tracing.
345 (remote_string_tracing_feature): New function.
346 (remote_protocol_features): New feature tracenz.
347 (remote_supports_string_tracing): New function.
348 (init_remote_ops): Set to_supports_string_tracing.
349
f179e162
JK
3502011-11-02 Pedro Alves <[email protected]>
351 Jan Kratochvil <[email protected]>
352
353 * linux-nat.c: Include cli/cli-utils.h.
354 (enum info_proc_what): New.
355 (linux_nat_info_proc_cmd): Rename to ...
356 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
357 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
358 status_f and stat_f from WHAT. Throw error on extra parameters.
359 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
360 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
361 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
362 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
363 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
364 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
365 `info proc cmdline', `info proc exe' and `info proc all' as real
366 subcommands of `info proc'.
367
7b35ec7f 3682011-11-01 Justin Lebar <[email protected]>
1bfeeb0f
JL
369
370 * Makefile.in: (SFILES): Add skip.c.
371 (HFILES_NO_SRCDIR): Add skip.h.
372 (COMMON_OBS): Add skip.o.
373 * skip.h, skip.c: New.
374 * breakpoint.h (set_default_breakpoint): Remove.
375 (get_sal_arch): Declare.
376 * breakpoint.c: Remove default_breakpoint_valid,
377 default_breakpoint_address, default_breakpoint_symtab,
378 default_breakpoint_line, default_breakpoint_pspace variables.
379 (get_sal_arch): Make public.
380 (set_default_breakpoint): Remove.
381 (parse_breakpoint_sals, create_breakpoint, clear_command,
382 decode_line_spec_1): Remove uses of default_breakpoint variables;
383 replaced with function calls into stack.c.
384 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
385 * cli/cli-cmds.c: Add skiplist.
386 (init_cmd_lists): Initialize skiplist.
387 (init_cli_cmds): Fix comment (classes of commands appear in
388 alphabetical order).
389 * infrun.c (handle_inferior_event): Add check that we don't step into
390 a function whose pc is marked for skip.
391 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
392 last_displayed_addr, last_displayed_symtab, last_displayed_line
393 variables.
394 (set_last_displayed_sal): New static function.
395 (print_frame_info): Switch call to set_default_breakpoint to call to
396 set_last_displayed_sal.
397 (clear_last_displayed_sal, last_displayed_sal_is_valid,
398 get_last_displayed_pspace, get_last_displayed_addr,
399 get_last_displayed_symtab, get_last_displayed_line,
400 get_last_displayed_sal): New public functions.
401 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
402 get_last_displayed_pspace, get_last_displayed_addr,
403 get_last_displayed_symtab, get_last_displayed_line,
404 get_last_displayed_sal): Declare.
405
b60e1588
JL
4062011-11-01 Justin Lebar <[email protected]>
407
408 * MAINTAINERS (Write After Approval): Add myself to the list.
409
d31647d2
YQ
4102011-10-29 Yao Qi <[email protected]>
411
412 * infcmd.c (disconnect_command): Call disconnect_tracing.
413
b1d96efd
JK
4142011-10-29 Jan Kratochvil <[email protected]>
415
416 Code cleanup.
417 * symtab.c (skip_prologue_sal): Code reformatting.
418
4dfb2365
JK
4192011-10-28 Jan Kratochvil <[email protected]>
420
421 PR symtab/13208
422 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
423 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
424 SAI.
425
0e5bf2a8
PA
4262011-10-28 Pedro Alves <[email protected]>
427
428 * linux-nat.c (linux_nat_filter_event): Remove `options'
429 parameter, and dead code that used it. If we're handling a
430 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
431 in our lwp list, re-add it.
432 (check_zombie_leaders): New.
433 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
434 wait for children with WNOHANG, and always wait for all children.
435 Don't check for no resumed children upfront. Simplify wait loop.
436 Check for zombie thread group leaders after handling all wait
437 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
438 unwaited-for children left.
439 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
440 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
441 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
442 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
443
821296b7
SA
4442011-10-28 Sterling Augustine <[email protected]>
445
446 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
447 * symtab.c (free_completion_list): New function.
448 (do_free_completion_list): Likewise.
449 (default_make_symbol_completion_list_break_on): New variable
450 back_to. Call make_cleanup and discard_cleanups.
451 (make_source_files_completion_list): Likewise.
452
03c3051a
PK
4532011-10-28 Paul Koning <[email protected]>
454
455 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
456 * NEWS: Mention deep_items.
457
8e7ebaf5
PA
4582011-10-28 Alen Skondro <[email protected]>
459
8de33dc2 460 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
461 defined.
462
e0c6ef61
MI
4632011-10-27 Meador Inge <[email protected]>
464
465 * MAINTAINERS (Write After Approval): Add myself to the list.
466
b56d6f31
JB
4672011-10-27 Joel Brobecker <[email protected]>
468
469 * value.h (read_frame_register_value): Add declaration.
470 * findvar.c (read_frame_register_value): New function.
471 (value_from_register): Use read_frame_register_value
472 instead of get_frame_register_value + value_contents_copy
473 to get value contents.
474
d234ef5c
DE
4752011-10-27 Doug Evans <[email protected]>
476
477 * cli/cli-cmds.c (source_script_with_search): Pass full path to
478 source_script_from_stream if it may have been found on the search path.
479 * python/py-auto-load.c (source_section_scripts): Pass full path to
480 source_python_script_for_objfile.
481 * python/python.c (source_python_script): Delete stream parameter.
482 All callers updated.
483 (source_python_script_for_objfile): Ditto.
484 * python/python-internal.h (source_python_script_for_objfile): Update.
485 * python/python.h (source_python_script): Update.
486
d849d44f
TT
4872011-10-27 Tom Tromey <[email protected]>
488
489 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
490 (ada_sals_for_line): Remove declarations.
491
2231f1fb
KP
4922011-10-27 Kevin Pouget <[email protected]>
493
494 Move unwind reasons to an external .def file
495 * frame.c (frame_stop_reason_string): Rewrite using
496 unwind_stop_reasons.def.
497 * frame.h (enum unwind_stop_reason): Likewise.
498 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
499 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
500 constants for bound-checking.
501 * unwind_stop_reasons.def: New file.
502 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
503 instead of a distinct value.
504
f77b9a5d
PM
5052011-10-27 Phil Muldoon <[email protected]>
506
507 PR python/13331
508
509 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
510 (convert_values_to_python): Return on Python tuple allocation
511 failure. Return NULL on value conversion error.
512
76dce0be
PM
5132011-10-27 Phil Muldoon <[email protected]>
514
515 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
516 (bppy_set_task): Ditto.
517 (bppy_delete_breakpoint): Ditto.
518 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
519 (gdbpy_lookup_global_symbol): Ditto.
520 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
521 * python/py-frame.c (frapy_is_valid): Ditto.
522 (frame_info_to_frame_object): Ditto.
523 * python/py-type.c (typy_lookup_type): Ditto.
524 (typy_getitem): Ditto.
525 (typy_has_key): Ditto.
526 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
527
f17b6955
JB
5282011-10-26 Joel Brobecker <[email protected]>
529
530 * gdbarch.h: Regenerate.
531
86ba1042
JB
5322011-10-26 Meador Inge <[email protected]>
533
534 * gdbarch.sh (function_list): Use 'pstring' when printing
535 'gcore_bfd_target'.
536 * gdbarch.c: Regenerate.
537
c34fd852
UW
5382011-10-26 Ulrich Weigand <[email protected]>
539
540 * regcache.c (registers_changed_ptid): Invalidate thread architecture
541 and frame caches if PTID refers to all threads of a process.
542
931bb47f
UW
5432011-10-26 Ulrich Weigand <[email protected]>
544
545 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
546 to create_breakpoint.
547
88aed45e
UW
5482011-10-26 Ulrich Weigand <[email protected]>
549
550 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
551 (ppc_sysv_abi_push_dummy_call): Use it.
552 (do_ppc_sysv_return_value): Likewise.
553 (ppc64_sysv_abi_push_dummy_call): Likewise.
554 (ppc64_sysv_abi_return_value): Likewise.
555
3eaf3fa2
PK
5562011-10-26 Paul Koning <[email protected]>
557
558 * python/lib/gdb/types.py (deepitems): New function.
559
913460fc
PK
5602011-10-25 Paul Koning <[email protected]>
561
562 PR python/13327
563
564 * python/py-value.c (value_to_value_object): Remove fetching of
565 the value if it was lazy.
566 (valpy_get_is_lazy): New function.
567 (valpy_fetch_lazy): New function.
568
2b5b9d09
JB
5692011-10-24 Joel Brobecker <[email protected]>
570
571 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
572 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
573
e21ffe51
PA
5742011-10-24 Pedro Alves <[email protected]>
575
576 * linux-nat.c (linux_handle_extended_wait): When handling a clone
577 event, in non-stop, if not stopping, make sure the new lwp has
578 last_resume_kind set to resume_continue. Assert that when we're
579 resuming the new lwp, its last_resume_kind is resume_continue.
580
7aee8dc2
PA
5812011-10-24 Pedro Alves <[email protected]>
582
583 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
584 already set when marking the event thread as not executing in
585 non-stop mode.
586
4b4e080e
PA
5872011-10-24 Pedro Alves <[email protected]>
588
589 * infrun.c (handle_inferior_event): Add debug output for
590 TARGET_WAITKIND_NO_HISTORY.
591
baacfb07
PM
5922011-10-24 Phil Muldoon <[email protected]>
593
594 * NEWS: Move set/show extended-prompt to "New Options". Expand
595 description. Fix typos.
596
8432bc41
PM
5972011-10-24 Phil Muldoon <[email protected]>
598
599 PR python/13310
600
601 * python/py-param.c (call_doc_function): Correctly deference on
602 function exit.
603
6cda5a20
JB
6042011-10-21 Joel Brobecker <[email protected]>
605
606 * ada-tasks.c (print_ada_task_info): Fix computation of
607 number of tasks displayed in command output.
608
13294f7d
JK
6092011-10-20 Jan Kratochvil <[email protected]>
610 Ulrich Weigand <[email protected]>
611
612 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
613 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
614 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
615 gdbarch_pc_regnum and frame_unwind_register_unsigned by
616 gdbarch_unwind_pc.
617
460c1c54
CC
6182011-10-20 Cary Coutant <[email protected]>
619
620 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
621 section to...
622 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
623 flag. Adjust all callers.
624 (process_psymtab_comp_unit): Remove adjustment for type section.
625
a10964d1
AR
6262011-10-20 Aleksandar Ristovski <[email protected]>
627
628 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
629 arguments by adding OBJFILE. Instead of getting objfile from
630 symbol's symtab, use new argument OBJFILE.
631 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
632 arguments by adding OBJFILE.
633 * gdb/dwarf2read.c (new_symbol_full): Change call to
634 cp_scan_for_anonymous_namespaces to match new signature.
635 * gdb/stabsread.c (define_symbol): Change call to
636 cp_scan_for_anonymous_namespaces to match new signature.
637
27ca1a5b
PM
6382011-10-20 Phil Muldoon <[email protected]>
639
640 PR python/13308
641 PR python/13309
642
643 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
644 leak.
645 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
646 leak. Delete unused variables.
647
9df2fbc4
PM
6482011-10-20 Phil Muldoon <[email protected]>
649
650 PR python/12656
651
652 * python/py-frame.c (frapy_read_var): Use const struct *block.
653 * python/py-type.c (typy_lookup_typename): Likewise.
654 (typy_lookup_type): Likewise.
655 (typy_legacy_template_argument): Likewise.
656 (typy_template_argument): Likewise.
657 (gdbpy_lookup_type): Likewise.
658 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
659 * python/py-block.c (blpy_block_object): Likewise.
660 (blpy_iter): Likewise.
661 (blpy_get_start): Likewise.
662 (blpy_get_end): Likewise.
663 (blpy_get_function): Likewise.
664 (blpy_get_superblock): Likewise.
665 (set_block): Likewise.
666 (block_to_block_object): Likewise.
667 (block_object_to_block): Likewise.
668 (blpy_is_valid): Likewise.
669 (blpy_get_global_block): New function.
670 (blpy_get_static_block): New function.
671 (blpy_is_global): New function.
672 (blpy_is_static): New function.
673 * blockframe.c (block_innermost_frame): Likewise.
674 * valops.c (value_of_variable): Likewise.
675 * frame.h: Update prototypes.
676 * python/python-internal.h: Likewise.
677 * value.h: Likewise.
678
4743b735
CC
6792011-10-19 Cary Coutant <[email protected]>
680
681 * dwarf2read.c (create_debug_types_hash_table): Fix size of
682 type_offset field.
683
6caca83c
CC
6842011-10-19 Cary Coutant <[email protected]>
685
686 * dwarf2read.c (peek_abbrev_code): New function.
687 (dw2_get_file_names): Check for dummy compilation units.
688 (create_debug_types_hash_table): Likewise.
689 (process_psymtab_comp_unit): Likewise.
690 (load_partial_comp_unit): Likewise.
691 (load_full_comp_unit): Likewise.
692
43136979
AR
6932011-10-18 Aleksandar Ristovski <[email protected]>
694
695 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
696 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
697 pt_phdr if PT_PHDR was found.
698
0a07729b
TT
6992011-10-17 Joost van der Sluis <[email protected]>
700
701 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
702 type or "<unnamed type"> when there is no name assigned.
703 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
704 avoid a sigint when no name is assigned.
705
21ae7a4d
JK
7062011-10-17 Jan Kratochvil <[email protected]>
707
708 Revert:
709 2011-07-27 Jan Kratochvil <[email protected]>
710 * dwarf2expr.c (ctx_no_read_reg): New function.
711 * dwarf2expr.h (ctx_no_read_reg): New declaration.
712 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
713 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
714 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
715
32d1c362
DE
7162011-10-16 Doug Evans <[email protected]>
717
718 * NEWS: Document python gdb.printing.register_pretty_printer's new
719 `replace' parameter.
720
da096638
KS
7212011-10-14 Keith Seitz <[email protected]>
722
723 PR c++/13225
724 * eval.c (evaluate_subexp_standard): Do not construct
725 an array of types; pass the value array directly to
726 find_overload_match.
727 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
728 (rank_function): Take an array of values instead of types.
729 (rank_one_type): Add struct value * parameter.
730 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
731 (rank_function): For each argument, pass the argument's
732 value to rank_one_type.
733 (rank_one_type): Add VALUE parameter.
734 If the parameter type is a pointer and the argument type
735 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
736 VALUE is zero.
737 Update all calls to rank_one_type, passing NULL for new
738 VALUE parameter.
739 * valarith.c (value_user_defined_cpp_op): Do not construct
740 an array of types; pass the value array directly to
741 find_overload_match.
742 * valops.c (find_overload_method_list): Take an array of
743 values instead of types.
744 Save the type of OBJP for later use.
745 Update calls to find_oload_champ, and find_oload_champ_namespace.
746 (find_oload_champ_namespace): Take an array of values instead
747 of types.
748 (find_oload_champ_namespace_loop): Likewise.
749 (find_oload_champ): Likewise.
750 (classify_oload_match): Inspect all arguments
751 until INCOMPATIBLE is found. Return the worst badness found
752 otherwise.
753 (compare_parameters): Update call to rank_one_type.
754 * value.h (find_overload_match): Take an array of values instead
755 of types.
756
3957565a
JK
7572011-10-14 Jan Kratochvil <[email protected]>
758
759 Drop lazy lm_info reading.
760 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
761 l_addr_inferior, l_ld, l_next, l_prev and l_name.
762 (lm_info_read): New function.
763 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
764 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
765 lm_dynamic_from_link_map.
766 (lm_next, lm_prev, lm_name): Remove.
767 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
768 initialization incl. read_memory. No longer use lm_name.
769 (svr4_free_so): Drop lm_info->lm freeing.
770 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
771 explicit lm_addr and lm initialization.
772 (svr4_read_so_list): Use lm_info_read, drop the initailization of
773 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
774 lm_name.
775
cb08cc53
JK
7762011-10-14 Jan Kratochvil <[email protected]>
777 Paul Pluzhnikov <[email protected]>
778
779 * defs.h (struct so_list): New forward declaration.
780 (make_cleanup_free_so): New declaration.
781 * solib-svr4.c (ignore_first_link_map_entry): Remove.
782 (svr4_free_so): Move the function here from downwards. Handle NULL
783 so->lm_info.
784 (svr4_free_library_list): New.
785 (svr4_read_so_list): New, moved here code from svr4_current_sos.
786 Use more cleanups. Use new parameter ignore_first instead of
787 ignore_first_link_map_entry.
788 (svr4_current_sos): New variable ignore_first, initialize it. New
789 variable back_to, use it for svr4_free_library_list protection.
790 (svr4_free_so): Remove - move upwards.
791 * utils.c: Include solist.h.
792 (do_free_so, make_cleanup_free_so): New functions.
793
22c05d8a
JK
7942011-10-13 Jan Kratochvil <[email protected]>
795
796 Fix internal error regression.
797 * value.c (value_primitive_field): Handle value_optimized_out. Move
798 packed bitfields comment.
799
d930d06e
TT
8002011-10-13 Tom Tromey <[email protected]>
801
802 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
803 always released.
804
2ff6b080
TT
8052011-10-13 Tom Tromey <[email protected]>
806
807 * python/py-type.c (typy_has_key): Make 'field' const.
808
d6c5869f
LM
8092011-10-13 Luis Machado <[email protected]>
810
811 * remote.c (remote_save_trace_data): Invert comparison.
812
a70633a2
LM
8132011-10-13 Luis Machado <[email protected]>
814
815 * tracepoint.c (trace_save_command): Use filename instead of
816 args when printing.
817
e103e986
JK
8182011-10-13 Jan Kratochvil <[email protected]>
819
820 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
821 if .size is 0.
822
db24da6d
YQ
8232011-10-13 Yao Qi <[email protected]>
824
825 PR gdb/12703
826 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
827 whether insn is a 32-bit Thumb-2 instruction.
828 (thumb_in_function_epilogue_p): Likewise.
829 (thumb_get_next_pc_raw): Likewise.
830 (arm_breakpoint_from_pc): Likewise.
831
1d6edc3c
JK
8322011-10-12 Jan Kratochvil <[email protected]>
833
834 Fix empty DWARF expressions DATA vs. SIZE conditionals.
835 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
836 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
837 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
838 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
839 zero DATA.
840 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
841 validity.
842 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
843 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
844 clear DATA on zero SIZE.
845
adabb602
DE
8462011-10-12 Doug Evans <[email protected]>
847
848 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
849 header->first_die_offset here. All callers updated.
850
5048e516
JK
8512011-10-12 Jan Kratochvil <[email protected]>
852
853 Fix compatibility with texinfo versions older than 4.12.
854 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
855 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
856 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
857 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
858 * configure: Regenerate.
859 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
860 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
861 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
862
0574c78f
GB
8632011-10-12 Gary Benson <[email protected]>
864
865 * breakpoint.h (pc_at_non_inline_function): Declare.
866 * breakpoint.c (is_non_inline_function,
867 pc_at_non_inline_function): New functions.
868 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
869 if the stop is at a location where functions cannot be inlined.
870
12d9289a
PA
8712011-10-12 Pedro Alves <[email protected]>
872
873 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
874 the core wanted them stopped, or if they now have a pending event
875 to report.
ecf8e7f5
PA
876 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
877 down to stop_and_resume_callback.
878 (linux_nat_wait_1): Always clear `options' when retrying. Handle
879 having new pending events after calling linux_nat_filter_event.
12d9289a 880
96408a79
SA
8812011-10-11 Sterling Augustine <[email protected]>
882
883 * dwarf2read.c: Undo inadvertent changes in previous commit.
884
9c6c53f7
SA
8852011-10-11 Sterling Augustine <[email protected]>
886
887 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
888 logic.
889
0e8aefe7
UW
8902011-10-11 Ulrich Weigand <[email protected]>
891
892 * symfile.c (separate_debug_file_exists): Fix condition.
893
349d1385
DM
8942011-10-11 David S. Miller <[email protected]>
895
896 * regcache.c (regcache_restore): Do not write unavailable regs, mark
897 static.
898 * regcache.h (regcache_restore): Remove declaration.
899
205c306f
DM
900 * gdbarch.sh: New field 'long_long_align_bit'.
901 * gdbarch.c, gdbarch.h: Regenerate.
902 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
903 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
904
941b2081
JK
9052011-10-11 Jan Kratochvil <[email protected]>
906
907 Revert this part of:
908 2011-10-09 Jan Kratochvil <[email protected]>
909 Support @entry in input expressions.
910 * c-exp.y (ENTRY, unknown_cpp_name): New.
911 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
912 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
913 (variable: name_not_typename '@' ENTRY, name: ENTRY)
914 (name_not_typename: ENTRY): New.
915 (yylex): Recognize ENTRY.
916
917 Reimplement @entry in input expressions.
918 * c-exp.y (ENTRY): New.
919 (variable: name_not_typename ENTRY): New.
920 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
921
3c4d7e12
PA
9222011-10-11 Pedro Alves <[email protected]>
923
924 * linux-nat.c (linux_handle_extended_wait): Always dump both the
925 parent and child's pids as soon as we detect a clone event.
926 Adjust another debug message.
927
ea23808b
PA
9282011-10-11 Pedro Alves <[email protected]>
929
930 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
931 not zombie instead of reading the whole file.
932
904578ed
JK
9332011-10-11 Jan Kratochvil <[email protected]>
934
935 Fix separate debuginfo warning with "remote:" access.
936 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
937 * symfile.c (get_file_crc): New function with the code moved from ...
938 (separate_debug_file_exists): ... this function, specifically variables
939 buffer and count. New variable verified_as_different, set it. Remove
940 file_crc initialization. Verify also if both files are not the same
941 manually, if needed.
942
51370a33
YQ
9432011-10-11 Yao Qi <[email protected]>
944
945 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
946 to get address.
947
0838fb57
DE
9482011-10-10 Doug Evans <[email protected]>
949
950 * linux-thread-db.c (thread_db_new_objfile): Only try to load
951 libthread_db when we load libpthread or the main symbol file.
952 (thread_db_inferior_created): New function.
953 (_initialize_thread_db): Attach inferior_created observer.
954 * linux-nat.c (linux_child_post_attach): Remove call to
955 check_for_thread_db.
956 (linux_child_post_startup_inferior): Ditto.
957 * objfiles.h (OBJF_MAINLINE): Define.
958 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
959 allocate_objfile when appropriate.
960
623bd5b7
UW
9612011-10-10 Ulrich Weigand <[email protected]>
962
963 PR gdb/13218
964 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
965 Remove unused variables.
966 (get_linux_version): Remove function.
967 (_initialize_arm_linux_nat): Do not call it.
968
79395f92
PA
9692011-10-10 Pedro Alves <[email protected]>
970
971 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
972 new clone lwp if the core asked it to stop. Don't pass on
973 unexpected signals to the new clone; leave them pending instead.
974
eff3df78
PA
9752011-10-10 Pedro Alves <[email protected]>
976
977 * linux-nat.c (resume_lwp): Remove redundant debug output.
978
4b60df3d
PA
9792011-10-10 Pedro Alves <[email protected]>
980
981 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
982 last_resume_kind before clearing it, and use the copy instead to
983 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
984 resume_clear_callback in the non-stop path too.
985
6501578c
YQ
9862011-10-09 Yao Qi <[email protected]>
987
988 * valprint.c (value_check_printable): Add one parameter OPTIONS.
989 Honor OPTIONS and VAL's type.
990 (common_val_print, value_print): Update to pass one more parameter.
991
5a56e9c5
DE
9922011-10-09 Doug Evans <[email protected]>
993
994 Add new "alias" command.
995 * NEWS: Mention new command.
996 * command.h (valid_user_defined_cmd_name_p): Declare.
997 * defs.h (make_cleanup_dyn_string_delete): Declare.
998 * utils.c: #include "dyn-string.h".
999 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1000 * cli/cli-cmds.c: #include "dyn-string.h".
1001 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1002 (init_cli_cmds): Add new command.
1003 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1004
509f0fd9
JK
10052011-10-09 Jan Kratochvil <[email protected]>
1006
1007 Fix compatibility with older GCCs.
1008 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1009 * stack.c (read_frame_arg): Initialize val_deref.
1010
2bda9cc5
JK
10112011-10-09 Jan Kratochvil <[email protected]>
1012
1013 Entry values NEWS entries, DWARF disassembly support.
1014 * NEWS: New entry values entry.
1015 (set print entry-values, show print entry-values)
1016 (set debug entry-values, show debug entry-values): New entries.
1017 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1018 indent. Remove variable start. Move header printing out. Respect
1019 INDENT. Support DW_OP_GNU_entry_value.
1020 (locexpr_describe_location_1): Move the header printing here, extend
1021 the disassemble_dwarf_expression passed parameters.
1022
a471c594
JK
10232011-10-09 Jan Kratochvil <[email protected]>
1024
1025 Display @entry parameter values even for references.
1026 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1027 coerce_ref_if_computed.
1028 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1029 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1030 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1031 existing push_dwarf_reg_entry_value call. Add new detection calling
1032 dwarf_block_to_dwarf_reg_deref. Update the error message.
1033 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1034 * dwarf2expr.h
1035 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1036 parameter deref_size, describe it in the comment.
1037 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1038 (dwarf_block_to_dwarf_reg_deref): New declaration.
1039 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1040 deref_size, describe it in the function comment. New variables
1041 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1042 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1043 describe it in the function comment. Fetch the alternative block
1044 accoring to DEREF_SIZE.
1045 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1046 (entry_data_value_free_closure, entry_data_value_funcs): New.
1047 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1048 outer_val, target_val, val and addr. Try to fetch and create also
1049 referenced value content.
1050 (pieced_value_funcs): NULL value for coerce_ref.
1051 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1052 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1053 coerce_ref_if_computed.
1054 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1055 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1056 * stack.c (read_frame_arg): Compare also dereferenced values.
1057 * value.c (value_computed_funcs): Make the parameter v const, use
1058 value_lval_const for it.
1059 (value_lval_const, coerce_ref_if_computed): New function.
1060 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1061 * value.h (struct lval_funcs): New field coerce_ref.
1062 (value_computed_funcs): Make the parameter v const.
1063 (value_lval_const, coerce_ref_if_computed): New declarations.
1064
36b11add
JK
10652011-10-09 Jan Kratochvil <[email protected]>
1066
1067 Support @entry in input expressions.
1068 * c-exp.y (ENTRY, unknown_cpp_name): New.
1069 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1070 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1071 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1072 (name_not_typename: ENTRY): New.
1073 (yylex): Recognize ENTRY.
1074 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1075 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1076 Likewise.
1077 * parse.c (operator_length_standard): Likewise.
1078 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1079
3343315b
JK
10802011-10-09 Jan Kratochvil <[email protected]>
1081
1082 Display referenced values in backtraces.
1083 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1084 * stack.c (print_frame_arg): Likewise.
1085
ac71a68c
JK
10862011-10-09 Jan Kratochvil <[email protected]>
1087
1088 Make some lval_funcs methods to default on NULL.
1089 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1090 NULL.
1091 (value_assign): Check if lval_computed write method is NULL.
1092 * value.h (struct lval_funcs): Comment NULL values for read and write
1093 methods.
1094
e18b2753
JK
10952011-10-09 Jan Kratochvil <[email protected]>
1096
1097 Display @entry parameter values (without references).
1098 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1099 New functions.
1100 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1101 New declarations.
1102 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1103 entry record.
1104 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1105 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1106 functions.
1107 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1108 (loclist_read_variable_at_entry): New function.
1109 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1110 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1111 DW_AT_location, call dwarf_block_to_sp_offset for it.
1112 * frame.h (print_entry_values_no, print_entry_values_only)
1113 (print_entry_values_preferred, print_entry_values_if_needed)
1114 (print_entry_values_both, print_entry_values_compact)
1115 (print_entry_values_default, print_entry_values): New declarations.
1116 (struct frame_arg): New field entry_kind.
1117 (read_frame_arg): New parameter entryargp.
1118 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1119 arg->entry_kind. Optionally print the `@entry' suffix.
1120 (list_args_or_locals): New variable entryarg, initialize it.
1121 Initialize also entry_kind of arg and entryarg. Conditionalize
1122 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1123 xfree for entryarg.error.
1124 * stack.c (print_entry_values_no, print_entry_values_only)
1125 (print_entry_values_preferred, print_entry_values_if_needed)
1126 (print_entry_values_both, print_entry_values_compact)
1127 (print_entry_values_default, print_entry_values_choices)
1128 (print_entry_values): New variables.
1129 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1130 print the `@entry' suffix, possibly in combination for
1131 print_entry_values_compact.
1132 (read_frame_arg): New parameter entryargp, new variables entryval,
1133 entryval_error and val_equal. Read in also entryargp, respect
1134 print_entry_values, compare the values using val_equal, fill in also
1135 argp->entry_kind (together with entryargp->entry_kind).
1136 (print_frame_args): New variable entryarg, initialize it.
1137 Conditionalize print_frame_arg for arg, add print_frame_arg for
1138 entryarg. Call xfree for entryarg.error.
1139 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1140 * symtab.h (struct symbol_computed_ops): New field
1141 read_variable_at_entry.
1142
93d86cef
JK
11432011-10-09 Jan Kratochvil <[email protected]>
1144
1145 Code reshuffle.
1146 * frame.h (struct frame_arg): New definition.
1147 (read_frame_arg): New declaration.
1148 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1149 (list_args_or_locals): ... the code here. New variable arg, call
1150 read_frame_arg and list_arg_or_local with it. Unify the
1151 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1152 arg.error.
1153 * stack.c (print_frame_arg): New functiom from the code of
1154 print_frame_args.
1155 (read_frame_arg): New function.
1156 (print_frame_args): Remove variable val. New variable arg, call
1157 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1158
2d6c5dc2
JK
11592011-10-09 Jan Kratochvil <[email protected]>
1160
1161 Protect entry values against self tail calls.
1162 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1163 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1164
111c6489
JK
11652011-10-09 Jan Kratochvil <[email protected]>
1166
1167 Recognize virtual tail call frames.
1168 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1169 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1170 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1171 * dwarf2-frame-tailcall.c: New file.
1172 * dwarf2-frame-tailcall.h: New file.
1173 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1174 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1175 REGS.PREV only after CIE execution.
1176 (struct dwarf2_frame_cache): New field tailcall_cache.
1177 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1178 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1179 parts, try to find entry_cfa_sp_offset. Call
1180 dwarf2_tailcall_sniffer_first.
1181 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1182 when appropriate.
1183 (dwarf2_frame_dealloc_cache): New function.
1184 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1185 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1186 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1187 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1188 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1189 * dwarf2loc.c (func_addr_to_tail_call_list)
1190 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1191 (call_site_find_chain_1, call_site_find_chain): New.
1192 * dwarf2loc.h (struct call_site_chain): New.
1193 (call_site_find_chain): New declaration.
1194 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1195 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1196 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1197 * stack.c (frame_info): Support also TAILCALL_FRAME.
1198
bb984ff1
JK
11992011-10-09 Jan Kratochvil <[email protected]>
1200
1201 Tail call sites reader implementation.
1202 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1203 fill in TYPE_TAIL_CALL_LIST.
1204 * gdbtypes.h (struct func_type): New field tail_call_list.
1205 (struct call_site): New field tail_call_next.
1206 (TYPE_TAIL_CALL_LIST): New definition.
1207
8e3b41a9
JK
12082011-10-09 Jan Kratochvil <[email protected]>
1209
1210 Implement basic support for DW_TAG_GNU_call_site.
1211 * block.c: Include gdbtypes.h and exceptions.h.
1212 (call_site_for_pc): New function.
1213 * block.h (call_site_for_pc): New declaration.
1214 * defs.h: Include hashtab.h.
1215 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1216 declarations.
1217 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1218 ctx_no_push_dwarf_reg_entry_value.
1219 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1220 (dwarf_block_to_dwarf_reg): New function.
1221 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1222 (ctx_no_push_dwarf_reg_entry_value): New function.
1223 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1224 push_dwarf_reg_entry_value.
1225 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1226 declarations.
1227 * dwarf2loc.c: Include gdbcmd.h.
1228 (dwarf_expr_ctx_funcs): New forward declaration.
1229 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1230 (dwarf_expr_reg_to_entry_parameter)
1231 (dwarf_expr_push_dwarf_reg_entry_value): New.
1232 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1233 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1234 (needs_dwarf_reg_entry_value): New function.
1235 (needs_frame_ctx_funcs): Install it.
1236 (_initialize_dwarf2loc): New function.
1237 * dwarf2loc.h (entry_values_debug): New declaration.
1238 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1239 (read_call_site_scope): New forward declaration.
1240 (process_full_comp_unit): Copy call_site_htab.
1241 (process_die): Support DW_TAG_GNU_call_site.
1242 (read_call_site_scope): New function.
1243 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1244 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1245 (cleanup_htab): Delete.
1246 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1247 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1248 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1249 FIELD_LOC_KIND_DWARF_BLOCK.
1250 * gdbtypes.h (enum field_loc_kind): New entry
1251 FIELD_LOC_KIND_DWARF_BLOCK.
1252 (struct main_type): New loc entry dwarf_block.
1253 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1254 (TYPE_FIELD_DWARF_BLOCK): New.
1255 * python/py-type.c: Include dwarf2loc.h.
1256 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1257 internal_error call on unknown FIELD_LOC_KIND.
1258 * symtab.h (struct symtab): New field call_site_htab.
1259 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1260 (core_addr_hash, core_addr_eq): New functions.
1261
b6cdc2c1
JK
12622011-10-09 Jan Kratochvil <[email protected]>
1263
1264 Code reshuffle.
1265 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1266 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1267 calling_convention under func_stuff there.
1268 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1269 (init_type) <TYPE_CODE_FUNC>: Likewise.
1270 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1271 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1272 * gdbtypes.h (enum type_specific_kind): Change
1273 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1274 (struct main_type) <type_specific>: Change calling_convention to
1275 func_stuff. Move calling_convention to ...
1276 (struct func_type): ... this new struct.
1277 (INIT_FUNC_SPECIFIC): New #define.
1278 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1279
181cebd4
JK
12802011-10-09 Jan Kratochvil <[email protected]>
1281
1282 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1283 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1284 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1285 ctx->ref_addr_size. Handle its invalid value.
1286 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1287 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1288 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1289 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1290 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1291 (dwarf2_per_cu_ref_addr_size): New function.
1292
c471e790
JK
12932011-10-09 Jan Kratochvil <[email protected]>
1294
1295 Code cleanup.
1296 * dwarf2read.c (per_cu_header_read_in): New function.
1297 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1298 variables cu_header_local and cu_headerp.
1299
741f5e3c
JK
13002011-10-09 Jan Kratochvil <[email protected]>
1301
1302 Fix initial language detection with -readnow.
1303 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1304 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1305 searches only for global symbols.
1306
a73d2258
JK
13072011-10-09 Jan Kratochvil <[email protected]>
1308
1309 Fix printed anonymous struct name.
1310 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1311 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1312 (anonymous_struct_prefix): New function.
1313 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1314 (dwarf2_name): Strip for anonymous structs any prefixes.
1315
749fd4ea
DE
13162011-10-07 Doug Evans <[email protected]>
1317
1fa57852
DE
1318 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1319 `replace'.
1320
690a4937
DE
1321 * python/lib/gdb/printing.py: Whitespace cleanup.
1322
749fd4ea
DE
1323 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1324 warning.
1325
4c38200f
PA
13262011-10-07 Pedro Alves <[email protected]>
1327
1328 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1329 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1330 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1331 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1332 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1333 (arm_linux_remove_watchpoint): Adjust.
1334 * i386-linux-nat.c (i386_linux_dr_set_control)
1335 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1336 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1337 (ia64_linux_remove_watchpoint): Adjust.
1338 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1339 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1340 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1341 (ppc_linux_insert_mask_watchpoint)
1342 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1343 (ppc_linux_remove_watchpoint): Adjust.
1344 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1345 Adjust.
1346
b7ff339d
CV
13472011-10-07 Corinna Vinschen <[email protected]>
1348
1349 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1350 (clear_win32_environment): New function for Cygwin to clear out
1351 Win32 environment.
1352 (windows_create_inferior): Prepare new environment from in_env
1353 for Cygwin, too.
1354
f287c1f3
PM
13552011-10-07 Phil Muldoon <[email protected]>
1356
5631e596 1357 PR python/13264
f287c1f3
PM
1358 * python/py-value.c (valpy_call): Check that arguments are
1359 a tuple.
1360 (is_intlike): Remove call to CHECK_TYPEDEF.
1361 (valpy_nonzero): Catch GDB exceptions.
1362 (valpy_absolute): Ditto.
1363 (valpy_lazy_string): Ditto.
1364 (valpy_call): Ditto.
1365 (valpy_get_is_optimized_out): Ditto.
1366 (valpy_long): Ditto.
1367 (valpy_float): Ditto.
1368 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1369 (valpy_richcompare): Ditto.
1370
03583c20
UW
13712011-10-07 Ulrich Weigand <[email protected]>
1372
1373 * inferior.h (disable_randomization): Declare.
1374 * infrun.c (disable_randomization): New global variable.
1375 (show_disable_randomization): New function.
1376 (set_disable_randomization): Likewise.
1377 (_initialize_infrun): Install set/show disable-randomization
1378 commands.
1379 * linux-nat.c (disable_randomization): Remove.
1380 (show_disable_randomization): Likewise.
1381 (set_disable_randomization): Likewise.
1382 (_initialize_linux_nat): No longer install set/show
1383 disable-randomization commands here.
1384 (linux_nat_supports_disable_randomization): New function.
1385 (linux_nat_add_target): Install it.
1386 * remote.c (PACKET_QDisableRandomization): New enum value.
1387 (remote_protocol_packets): Support QDisableRandomization.
1388 (_initialize_remote): Likewise.
1389 (remote_supports_disable_randomization): New function.
1390 (init_remote_ops): Install it.
1391 (extended_remote_supports_disable_randomization): New function.
1392 (init_extended_remote_ops): Install it.
1393 (extended_remote_disable_randomization): New function.
1394 (extended_remote_create_inferior_1): Call it.
1395 * target.h (struct target_ops): Add to_supports_disable_randomization.
1396 (target_supports_disable_randomization): Add prototype.
1397 * target.c (target_supports_disable_randomization): New function.
1398 (find_default_supports_disable_randomization): Likewise.
1399 (init_dummy_target): Install it.
1400
20c168b5
KP
14012011-10-07 Kevin Pouget <[email protected]>
1402
1403 Allow Python notification of new object-file loadings.
1404 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1405 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1406 Add build rule for this file.
1407 * python/py-event.h (emit_new_objfile_event): New prototype.
1408 (newobjfile): New Python event emitter.
1409 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1410 Python event registry.
1411 * python/py-inferior.c: Include objfiles.h
1412 (python_new_objfile): New function.
1413 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1414 observers.
1415 * python/py-newobjfileevent.c: New file.
1416 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1417 prototype.
1418 * python/python.c (_initialize_python): Add
1419 gdbpy_initialize_new_objfile_event call.
1420 * NEWS: Add item for new Python event "gdb.newobjfile"
1421
b1c8db38
TG
14222011-10-05 Tristan Gingold <[email protected]>
1423
1424 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1425 Extract the ravenscar task name from the symbol for the atcb.
1426
0dab82e9
PK
14272011-10-04 Paul Koning <[email protected]>
1428
1429 * python/py-type.c (typy_make_iter): Add forward declaration.
1430 (typy_fields_items): Use the gdb.Type iterator.
1431
84ad80e6
PK
14322011-10-04 Paul Koning <[email protected]>
1433
1434 * NEWS: Add entry for Python gdb.Type mapping methods.
1435
cb6be26b
KP
14362011-10-04 Kevin Pouget <[email protected]>
1437
1438 PR python/12691: Add the inferior to Python exited event
1439 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1440 to exited_event.
1441 * python/py-event.h (emit_exited_event): Likewise
1442 * python/-inferior.c (python_inferior_exit): Likewise
1443
6005b210
JB
14442011-10-03 Joel Brobecker <[email protected]>
1445
1446 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1447 in output of -ada-task-info GDB/MI command.
1448
75082e8c
JB
14492011-10-03 Joel Brobecker <[email protected]>
1450
1451 * ada-lang.h (struct inferior): Declare.
1452 (print_ada_task_info): Add declaration.
1453 * ada-tasks.c (print_ada_task_info): Make non-static.
1454 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1455 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1456 * mi/mi-main.c: #include "ada-lang.h".
1457 (mi_cmd_list_features): Add "ada-task-info" to the list
1458 of supported features.
1459 (mi_cmd_ada_task_info): New function.
1460
7ed7d719
JB
14612011-10-03 Joel Brobecker <[email protected]>
1462
1463 * python/python.c (python_run_simple_file): New function.
1464 (source_python_script, source_python_script_for_objfile):
1465 Replace call to PyRun_SimpleFile by call to
1466 python_run_simple_file.
1467
3fcaed38
PK
14682011-10-03 Paul Koning <[email protected]>
1469
1470 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1471 (value_to_value_object): Fetch value if it was lazy.
1472
8e5c319d
JK
14732011-10-02 Jan Kratochvil <[email protected]>
1474
1475 Code cleanup.
1476 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1477 Rearrange the code for it.
1478
dd11a36c
JB
14792011-10-02 Joel Brobecker <[email protected]>
1480
1481 * breakpoint.c (bkpt_print_recreate): Add call to
1482 print_recreate_thread.
1483
723b724b
MF
14842011-09-29 Mike Frysinger <[email protected]>
1485
1486 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1487 PTRACE_GETFDPIC_INTERP): Define.
1488
412946b6
YQ
14892011-09-28 Yao Qi <[email protected]>
1490
1491 * symfile.c (add_symbol_file_command): Update message on usage.
1492
a73bb892
PK
14932011-09-28 Paul Koning <[email protected]>
1494
1495 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1496 (typy_length, typy_get, typy_has_key, typy_make_iter)
1497 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1498 (typy_iterator_iter, typy_iterator_iternext)
1499 (typy_iterator_dealloc): New functions to implement standard
1500 Python mapping methods on gdb.Type object.
1501 (gdb.TypeIterator): New Python type.
1502 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1503
fe10a582
DM
15042011-09-28 David S. Miller <[email protected]>
1505
1506 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1507 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1508 * sparc-tdep.c (sparc_complex_floating_p): New function.
1509 (sparc32_store_arguments): Handle complex floats.
1510 (sparc32_extract_return_value): Likewise.
1511 (sparc32_store_return_value): Likewise.
1512 (sparc32_stabs_argument_has_addr): Likewise.
1513 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1514 (sparc64_store_floating_fields): Handle complex floats.
1515 (sparc64_store_arguments): Likewise.
1516 (sparc64_store_return_value): Likewise.
1517
c93dbcba
EZ
15182011-09-28 Eli Zaretskii <[email protected]>
1519
1520 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1521 before the change on 2006-12-09.
1522 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1523 generates the environment block for CreateProcessA, modulo the
1524 Cygwin-specific parts that are not needed here.
1525
f00c55f8
TG
15262011-09-27 Tristan Gingold <[email protected]>
1527
1528 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1529 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1530 (darwin_solib_get_all_image_info_addr_at_init): New function.
1531 (darwin_solib_read_all_image_info_addr): Likewise.
1532 (darwin_solib_create_inferior_hook): Use the above two functions.
1533 * darwin-nat.c (darwin_execvp): Renames retval to res.
1534 (darwin_read_write_inferior): Update comment.
1535 (darwin_read_dyld_info): New function.
1536 (darwin_xfer_partial): Handle DYLD_INFO.
1537
6710bf39
SS
15382011-09-27 Stan Shebs <[email protected]>
1539
1540 Add return address collection for tracepoints.
1541 * tracepoint.c (encode_actions_1): Add case for $_ret.
1542 (validate_actionline): Check for $_ret.
1543 (trace_dump_actions): Ditto.
1544 * ax-gdb.h (gen_trace_for_return_address): Declare.
1545 * ax-gdb.c: Include arch-utils.h.
1546 (gen_trace_for_return_address): New function.
1547 (agent_command): Add return address special case.
1548 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1549 (amd64_gen_return_address): New function.
1550 (amd64_init_abi): Call it.
1551 * i386-tdep.c: Include ax.h and ax-gdb.h.
1552 (i386_gen_return_address): New function.
1553 (i386_init_abi): Call it.
1554 * arch-utils.h (default_gen_return_address): Declare.
1555 * arch-utils.c (default_gen_return_address): New function.
1556 * gdbarch.sh (gen_return_address): New method.
1557 * gdbarch.h, gdbarch.c: Regenerate.
1558
e04e5beb
JM
15592011-09-23 Joseph Myers <[email protected]>
1560
1561 PR gdb/13079
1562 * i386-tdep.c (i386_frame_align): New.
1563 (i386_gdbarch_init): Use i386_frame_align.
1564
f3d6df6d
YQ
15652011-09-23 Yao Qi <[email protected]>
1566
1567 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1568 to get address.
1569
e69860f1
TG
15702011-09-22 Tristan Gingold <[email protected]>
1571
1572 * fork-child.c (fork_inferior): Add exec_fun parameter.
1573 Call exec_fun or execvp.
1574 * inferior.h: Adjust prototype.
1575 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1576 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1577 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1578 * procfs.c (procfs_create_inferior): Ditto.
1579 * darwin-nat.c (darwin_execvp): New function.
1580 (darwin_create_inferior): Use it.
1581
4b51d87b
YQ
15822011-09-22 Yao Qi <[email protected]>
1583
1584 * infrun.c (context_switch): Print debug message when switching to
1585 a different thread.
1586
56b9d9ac
UW
15872011-09-21 Ulrich Weigand <[email protected]>
1588
1589 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1590 complex and vector types.
1591 (s390_return_value_convention): Likewise.
1592
1593 (s390_value_from_register): Call check_typedef.
1594 (extend_simple_arg): Likewise.
1595 (alignment_of): Likewise.
1596 (s390_push_dummy_call): Likewise.
1597 (s390_return_value): Likewise.
1598
b2cd6b29
JM
15992011-09-21 Joseph Myers <[email protected]>
1600
1601 * event-top.c (async_disconnect): If an exception is thrown from
1602 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1603 catch_errors.
1604 * top.c (quit_cover): Return void and take no arguments.
1605 * top.h (quit_cover): Update prototype.
1606
67ba4e42
JM
16072011-09-20 Joseph Myers <[email protected]>
1608
1609 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1610 current_uiout, not uiout.
1611
562f943b
DE
16122011-09-19 Doug Evans <[email protected]>
1613
1614 * python/py-auto-load.c (source_section_scripts): Fix file
1615 descriptor leak.
1616 * python/python.c (source_python_script_for_objfile): Tweak comments.
1617
34518530
YQ
16182011-09-18 Yao Qi <[email protected]>
1619 Ulrich Weigand <[email protected]>
1620
1621 Support displaced stepping for Thumb 16-bit insns.
1622 * arm-tdep.c (THUMB_NOP) Define.
1623 (thumb_copy_unmodified_16bit): New.
1624 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1625 (thumb_copy_alu_reg): New.
1626 (arm_copy_svc): Move some common code to ...
1627 (install_svc): ... here. New.
1628 (thumb_copy_svc): New.
1629 (install_pc_relative): New.
1630 (thumb_copy_pc_relative_16bit): New.
1631 (thumb_decode_pc_relative_16bit): New.
1632 (thumb_copy_16bit_ldr_literal): New.
1633 (thumb_copy_cbnz_cbz): New.
1634 (cleanup_pop_pc_16bit_all): New.
1635 (thumb_copy_pop_pc_16bit): New.
1636 (thumb_process_displaced_16bit_insn): New.
1637 (thumb_process_displaced_32bit_insn): New.
1638 (thumb_process_displaced_insn): process thumb instruction.
1639
1640 Support displaced stepping for Thumb 32-bit insns.
1641 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1642 (thumb2_copy_preload): New.
1643 (thumb2_copy_copro_load_store): New.
1644 (thumb2_copy_b_bl_blx): New.
1645 (thumb2_copy_alu_imm): New.
1646 (thumb2_copy_load_reg_imm): New.
1647 (thumb2_copy_load_literal): New
1648 (thumb2_copy_block_xfer): New.
1649 (thumb_32bit_copy_undef): New.
1650 (thumb_32bit_copy_unpred): New.
1651 (thumb2_decode_ext_reg_ld_st): New.
1652 (thumb2_decode_svc_copro): New.
1653 (decode_thumb_32bit_store_single_data_item): New.
1654 (thumb_copy_pc_relative_32bit): New.
1655 (thumb_decode_pc_relative_32bit): New.
1656 (decode_thumb_32bit_ld_mem_hints): New.
1657 (thumb2_copy_table_branch): New
1658 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1659 instructions.
1660
2b16b2e3
YQ
16612011-09-18 Yao Qi <[email protected]>
1662
1663 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1664 (install_b_bl_blx): Likewise.
1665
0f6f04ba
YQ
16662011-09-17 Yao Qi <[email protected]>
1667
1668 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1669 (install_load_store): ... this. New.
1670 Change parameter BYTE to SIZE.
1671 (arm_copy_ldr_str_ldrb_strb): Update caller.
1672 (arm_decode_ld_st_word_ubyte): Update caller.
1673
e2d96639
YQ
16742011-09-17 Yao Qi <[email protected]>
1675
1676 * infrun.c (displaced_step_fixup): Move some code ...
1677 (displaced_step_restore): ... here. New function.
1678 (handle_inferior_event): Cleanup displaced stepping state for both
1679 child and parent when get forked or vforked event.
1680 * regcache.c (get_thread_arch_aspace_regcache): New function.
1681 get_thread_arch_regcache (): Call it.
1682
a8123151
JB
16832011-09-16 Joel Brobecker <[email protected]>
1684
1685 * ada-tasks.c (print_ada_task_info): New function, merging
1686 short_task_info and info_tasks together. Reimplement using
1687 ui-out instead of printing to stdout directly. Move the code
1688 building and checking the task list here, instead of leaving it
1689 in info_tasks_command.
1690 (info_task): Move the code building and checking the task
1691 list here, instead of leaving it in info_tasks_command.
1692 (info_tasks_command): Delete code building and checking
1693 the task list - moved elsewhere. Update calls to info_tasks
1694 and info_task.
1695
fbf06824
JB
16962011-09-16 Joel Brobecker <[email protected]>
1697
1698 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1699
34a0bc90
JB
17002011-09-16 Joel Brobecker <[email protected]>
1701
1702 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1703
79779fa9
JB
17042011-09-16 Joel Brobecker <[email protected]>
1705
1706 * ada-lang.h (ada_build_task_list): Remove parameter
1707 `warn_if_null'.
1708 * ada-tasks.c (ada_build_task_list): Remove parameter
1709 `warn_if_null'. Adjust implementation and documentation.
1710 (valid_task_id, ada_get_environment_task)
1711 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1712 (info_tasks_command): Adjust implementation.
1713 (task_command): Likewise.
1714 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1715 to ada_build_task_list.
1716
e225eb91
JB
17172011-09-16 Joel Brobecker <[email protected]>
1718
1719 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1720 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1721 (ada_tasks_inferior_data_handle): New static global.
1722 (get_ada_tasks_inferior_data): New function.
1723 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1724 (ada_get_environment_task, iterate_over_live_ada_tasks)
1725 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1726 Adjust.
1727 (ada_set_current_inferior_known_tasks_addr): New function.
1728 (read_known_tasks, ada_build_task_list, short_task_info)
1729 (info_tasks, info_task, info_tasks_command, task_command_1)
1730 (task_command, ada_task_list_changed): Adjust.
1731 (ada_tasks_invalidate_inferior_data): New function.
1732 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1733 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1734 * ada-lang.h (struct inferior): Add declaration.
1735 (ada_task_list_changed): Update profile.
1736 * remote-wtx-pd.c: #include "inferior.h".
1737 (switch_to_pd_internal): Update call to ada_task_list_changed.
1738
6da9ca05
JB
17392011-09-16 Joel Brobecker <[email protected]>
1740
1741 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1742 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1743 (atcb_fieldno): Delete these static globals.
1744 (struct ada_tasks_pspace_data): New struct.
1745 (ada_tasks_pspace_data_handle): New static global.
1746 (get_ada_tasks_pspace_data): New function.
1747 (ada_tasks_invalidate_pspace_data): New function.
1748 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1749 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1750 (_initialize_tasks): Create this module's per-progspace
1751 data handle.
1752
dccd3cbd
JB
17532011-09-16 Joel Brobecker <[email protected]>
1754
1755 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1756
f877b031
TG
17572011-09-16 Tristan Gingold <[email protected]>
1758
1759 * fork-child.c (fork_inferior): Update comment. Use alloca
1760 instead of xmalloc for argv. Move len and shell_command
1761 declarations in the block where they are used.
1762 Only call execvp. Factorize failure code.
1763
ae0c443d
JK
17642011-09-16 Abhijit Halder <[email protected]>
1765
1766 Code cleanup.
1767 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1768 `exp_element' instead of an element of the same and make the function
1769 static.
1770 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1771 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1772 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1773 Change argument of `write_exp_elt' function call.
1774 Remove extra spaces from comments.
1775 * parser-defs.h (write_exp_elt): Remove prototype.
1776
5af65ec0
PK
17772011-09-15 Paul Koning <[email protected]>
1778
1779 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1780 count of item appended to list.
1781 * python/py-type.c (typy_fields): Likewise.
1782
72be8ccc
PK
17832011-09-15 Paul Koning <[email protected]>
1784
883640a8 1785 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1786
92f6badc
KP
17872011-09-15 Kevin Pouget <[email protected]>
1788
1789 PR threads/12628
1790 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1791 processes with multiple threads.
1792 (inf_has_multiple_thread_cb): New function.
1793 (inf_has_multiple_threads): New function.
1794
0672bf41 17952011-09-15 Kevin Pouget <[email protected]>
2aa48337
KP
1796
1797 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1798 * python/py-inferior.c (GdbMethods): New Python method definition.
1799
6839b47f
KP
18002011-09-15 Kevin Pouget <[email protected]>
1801
1802 Handle multiple breakpoint hits in Python interface:
1803 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1804 variable to breakpoints.
1805 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1806 bps instead of single breakpoint. Fix some space typos.
1807 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1808 variable to breakpoints.
1809
672f9b60
KP
18102011-09-15 Kevin Pouget <[email protected]>
1811
1812 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1813 note if the breakpoint is internal.
1814
43675ae4
KP
18152011-09-15 Kevin Pouget <[email protected]>
1816
0672bf41 1817 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1818
15148d6a
PA
18192011-09-14 Pedro Alves <[email protected]>
1820
1821 * infrun.c (prepare_for_detach, wait_for_inferior)
1822 (fetch_inferior_event): Don't flush the register cache.
1823 * remote.c (struct stop_reply) <regcache>: Add comment.
1824
d83e736b
JK
18252011-09-13 Jan Kratochvil <[email protected]>
1826
1827 Remove excessive DWARF expressions memory duplication.
1828 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1829 for block.data.
1830 (indirect_pieced_value): Remove variable result. Remove variable
1831 back_to and its use for baton.data.
1832 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1833 block.data.
1834 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1835 Update the function comment.
1836
c65b3e0d
PA
18372011-09-13 Pedro Alves <[email protected]>
1838
1839 * inferior.h (ALL_INFERIORS): New.
1840 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1841 for a stopped thread.
1842 (thread_db_find_new_threads): Look for threads in all inferiors.
1843
a1398e0c
PA
18442011-09-13 Pedro Alves <[email protected]>
1845
1846 * breakpoint.c (update_watchpoint): Handle the case of the
1847 watchpoint to update not being in the breakpoint list yet.
1848 (hw_watchpoint_use_count): New, factored out from
1849 hw_watchpoint_used_count.
1850 (hw_watchpoint_used_count): Rename to ...
1851 (hw_watchpoint_used_count_others): ... this. Add `except'
1852 parameter. Don't count resources of `except'. Use
1853 hw_watchpoint_use_count.
1854
30596231
PA
18552011-09-13 Pedro Alves <[email protected]>
1856
1857 * gdbthread.h (enum thread_state): Moved here.
1858 (struct thread_info): Rename `executing_' field to `executing' and
1859 `state_' to `state'.
1860 * thread.c (enum thread_state): Moved to gdbthread.h.
1861 (new_thread, add_thread_silent, delete_thread_1)
1862 (any_live_thread_of_process, thread_alive, set_running)
1863 (set_running, is_thread_state, any_running, is_executing)
1864 (set_executing, finish_thread_state, print_thread_info)
1865 (do_captured_thread_select): Adjust.
1866
bede5f5f
JK
18672011-09-13 Jan Kratochvil <[email protected]>
1868
1869 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1870 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1871
4801a9a3
PA
18722011-09-12 Pedro Alves <[email protected]>
1873 Matt Rice <[email protected]>
1874
1875 PR gdb/13175
1876
1877 * interps.c (struct interp) <interpreter_out>: Delete field.
1878 (interp_new): Remove the data and uiout parameters and adjust.
1879 (interp_set): Only set the current_uiout from the interpreter's
1880 uiout after initializing the interpreter. Adjust call to
1881 init_proc.
1882 (interp_ui_out): Adjust to call procs->ui_out_proc.
1883 (interp_data, interp_name): New.
1884 * interps.h (interp_init_ftype): Add `self' parameter.
1885 (interp_ui_out_ftype): New typedef.
1886 (struct interp_procs) <ui_out_proc>: New method pointer.
1887 (interp_new): Remove the data and uiout parameters.
1888 (interp_data, interp_name): Declare.
1889 * tui/tui-interp.c (tui_init): Adjust prototype.
1890 (tui_ui_out): New.
1891 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
1892 tui_out here. Adjust call to interp_new.
1893 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
1894 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
1895 (cli_ui_out): New.
1896 (_initialize_cli_interp): Install it. Adjust call to interp_new.
1897 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
1898 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
1899 Initialize mi->uiout depending on the mi_version as extracted from
1900 the interpreter's name.
1901 (mi_ui_out): New.
1902 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
1903 interp_new. Don't allocate the ui_out's of the interpreters here.
1904
d0afda03 19052011-09-12 Aleksandar Ristovski <[email protected]>
59145f8c 1906
d0afda03 1907 * solib.c (solib_used): New function.
59145f8c
AR
1908 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
1909 by another so_list object before freeing it.
1910
bdaf8d4a
JK
19112011-09-11 Jan Kratochvil <[email protected]>
1912
1913 Code cleanup.
1914 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
1915 values.
1916
df15bd07
JK
19172011-09-09 Jan Kratochvil <[email protected]>
1918
1919 Code cleanup.
1920 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
1921 (amd64_skip_xmm_prologue): ... this new function. Describe its
1922 parameters. No longer use amd64_prologue_line_bug.
1923 * defs.h (producer_is_gcc_ge_4): New declaration.
1924 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
1925 (process_full_comp_unit): Update its caller. Remove
1926 amd64_prologue_line_bug initialization.
1927 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
1928 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
1929
25289eb2
PA
19302011-09-09 Pedro Alves <[email protected]>
1931
1932 * linux-nat.h (enum resume_kind): New.
1933 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
1934 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
1935 resume_stop on the new lwp.
25289eb2
PA
1936 (add_lwp): Set last_resume_kind as resume_continue by default.
1937 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
1938 (resume_lwp): New, factored out from resume_callback. Also check
1939 for pending status in lp->waitstatus.
1940 (resume_callback): Reimplement.
1941 (resume_clear_callback): Set last_resume_kind as resume_stop.
1942 (resume_set_callback): Set last_resume_kind as resume_continue.
1943 (linux_nat_resume, linux_handle_extended_wait): Set
1944 last_resume_kind.
1945 (running_callback): Also check lp->waitstatus for pending events.
1946 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
1947 is resume_step.
1948 (stop_and_resume_callback): Don't re-resume if the core wanted the
1949 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
1950 using an invalidated pointer.
1951 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
1952 SIGSTOPs if the core wanted the LWP to stop.
1953 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
1954 wanted the lwp to stop. If the core wanted the lwp to stop, and
1955 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
1956 of TARGET_SIGNAL_STOP.
1957 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
1958 here. Instead, signal the lwp, and set the last_resume_kind to
1959 resume_stop.
1960
f687d035
PA
19612011-09-09 Pedro Alves <[email protected]>
1962
1963 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
1964 -1 (error), if the lwp exits right after attaching.
1965
bc587a6b
DE
19662011-09-08 Doug Evans <[email protected]>
1967
63d97a20
DE
1968 * py-cmd.c: Some minor formatting fixes.
1969 (gdbpy_parse_command_name): Rename text arg to name, make const.
1970 All callers updated.
1971 * python-internal.h (gdbpy_parse_command_name): Update.
1972
bc587a6b
DE
1973 * cli/cli-decode.c (add_cmd): Add comment.
1974
08711b9a
JK
19752011-09-08 Jan Kratochvil <[email protected]>
1976
1977 PR breakpoints/12435
1978 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
1979 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
1980 * dwarf2read.c (process_full_comp_unit): Initialize
1981 amd64_prologue_line_bug.
1982 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
1983
b2e7f004
JK
19842011-09-08 Jan Kratochvil <[email protected]>
1985
1986 Fix TUI screen corruption.
1987 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
1988 batch_flag.
1989
8afd712c
JK
19902011-09-08 Jan Kratochvil <[email protected]>
1991
1992 * findvar.c (read_var_value): Never return NULL, throw an error
1993 instead. Update the function comment. State symbol name in the error
1994 messages.
1995 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
1996 read_var_value.
1997 * stack.c (print_frame_args): Likewise.
1998 * valops.c (value_of_variable): Likewise.
1999
b99b5f66
JK
20002011-09-08 Jan Kratochvil <[email protected]>
2001
2002 * stack.c (print_frame_args): New variable except. Wrap
2003 read_var_value and common_val_print into TRY_CATCH.
2004
85bc8cb7
JK
20052011-09-08 Jan Kratochvil <[email protected]>
2006
2007 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2008 caller to value_of_this.
2009 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2010 Twice.
2011 * valops.c (value_of_this): Remove parameter complain and variable ret.
2012 Update function comment. Never return NULL by this code.
2013 (value_of_this_silent): New function.
2014 * value.h (value_of_this): Remove parameter complain.
2015 (value_of_this_silent): New declaration.
2016
ede1849f
YQ
20172011-09-07 Yao Qi <[email protected]>
2018
2019 * gdbthread.h (struct thread_info): Remove fields
2020 `stepping_through_solib_after_catch' and
2021 `stepping_through_solib_catchpoints'.
2022 * infrun.c (init_thread_stepping_state): Update.
2023 (process_event_stop_test, currently_stepping): Update.
2024 (currently_stepping_or_nexting_callback): Update.
2025
6aa27652
YQ
20262011-09-07 Yao Qi <[email protected]>
2027
2028 * gdbthread.h (struct thread_info): Comment on field
2029 `step_after_step_resume_breakpoint'.
2030
00db5b94
PA
20312011-09-07 Abhijit Halder <[email protected]>
2032
2033 * remote.c (remote_console_output): Reindent.
2034
861152be
LM
20352011-09-06 Luis Machado <[email protected]>
2036
2037 * frame.c (has_stack_frames): Check for currently selected
2038 traceframe.
2039
ab821bc6
PA
20402011-09-06 Pedro Alves <[email protected]>
2041
2042 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2043 (set_async_annotation_level, set_async_prompt, pop_prompt)
2044 (push_prompt, new_async_prompt): Delete declarations.
2045 * top.h (get_prompt, set_prompt): Change prototype.
2046 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2047 declarations.
2048 * top.c (command_loop):
2049 (top_prompt): New global.
2050 (get_prefix, set_prefix, get_suffix, ): Delete.
2051 (get_prompt, set_prompt): Rewrite.
2052 (show_new_async_prompt): Rename to ...
2053 (show_prompt): ... this.
2054 (init_main): Adjust. Don't handle --annotate=2 here.
2055 * event-top.c (new_async_prompt): Delete.
2056 (the_prompts): Delete.
2057 (more_to_come): Make static.
2058 (display_gdb_prompt): Use top_level_prompt() to compute the top
2059 level prompt, and don't notify the before_prompt observers
2060 directly here. Always trick readline into not trying to display
2061 the prompt if sync_execution and displaying the primary prompt.
2062 If displaying a local/secondary prompt, always show it, even if
2063 sync_execution is set.
2064 (change_annotation_level): Delete.
2065 (top_level_prompt): New, based on change_annotation_level.
2066 (push_prompt, pop_prompt): Delete.
2067 (async_disable_stdin): No longer pushes prompt.
2068 (command_line_handler): No longer pushes or pops prompt. If more
2069 input is expected, call display_gdb_prompt with an explicit empty
2070 prompt.
2071 (async_stop_sig): Adjust.
2072 (set_async_annotation_level, set_async_prompt): Delete.
2073 * python/python.c (before_prompt_hook): Adjust.
2074
f1d90504
PA
20752011-09-05 Pedro Alves <[email protected]>
2076
2077 PR cli/13110
2078
2079 * infrun.c (fetch_inferior_event): Check if there's a selected
2080 thread before checking if the selected thread is executing.
2081
0f641c01
PA
20822011-09-05 Pedro Alves <[email protected]>
2083
2084 * inf-loop.c (execute_command): Don't check if the current thread
2085 if running before synchronously waiting for command completion.
2086 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2087 here.
2088 (normal_stop): Call async_enable_stdin here.
2089 * inf-loop.c (inferior_event_handler): Don't call
2090 async_enable_stdin, nor handle "set exec-done-display" here.
2091
30368258 20922011-09-04 Joel Brobecker <[email protected]>
2093
2094 GDB 7.3.1 released.
2095
31916278
JB
20962011-09-04 Joel Brobecker <[email protected]>
2097
2098 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2099
e8d56f18
JB
21002011-09-04 Joel Brobecker <[email protected]>
2101
2102 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2103
5dd05d8c
JK
21042011-09-02 Jan Kratochvil <[email protected]>
2105
2106 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2107
7d8e6458 21082011-09-02 Matt Rice <[email protected]>
2109
2110 PR gdb/10720
2111 * event-top.c (cli_command_loop): Replace readline setup with
2112 direct call to display_gdb_prompt.
2113 (display_gdb_prompt): Do not call observer mechanism during
2114 synchronous execution.
2115
84636d28
PA
21162011-09-02 Pedro Alves <[email protected]>
2117
2118 * linux-nat.c (in_pid_list_p): New.
2119 (linux_record_stopped_pid): Delete.
2120 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2121 already attached to the LWP. Return an indication if so.
2122 (linux_nat_filter_event): Adjust.
2123 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2124 returning an indication to ignore this thread.
2125
b4a14fd0
PA
21262011-09-02 Pedro Alves <[email protected]>
2127
2128 * top.c: Include interps.h.
2129 (execute_command): If the target can async, but the interpreter is
2130 in sync mode, synchronously wait for the command to finish before
2131 returning.
2132 (execute_command_to_string): Force the interpreter to sync mode.
2133 * infrun.c: Include interps.h.
2134 (fetch_inferior_event): Don't restore the prompt yet if the
2135 interpreter is in sync mode.
2136 * interps.c (interpreter_async): New global.
2137 * interps.h (interpreter_async): Declare.
2138 * inf-loop.c: Include interps.h.
2139 (inferior_event_handler): Don't print the language change or run
2140 breakpoint commands yet if the interpreter in is sync mode.
2141 * main.c (captured_command_loop): Flip the interpreter to async
2142 mode.
2143 * cli/cli-script.c: Include interps.h.
2144 (execute_user_command, while_command, if_command): Force the
2145 interpreter to sync mode.
2146 * python/python.c: Include interps.h.
2147 (python_command, execute_gdb_command): Force the interpreter to
2148 sync mode.
2149
c709acd1
PA
21502011-09-02 Pedro Alves <[email protected]>
2151
2152 * value.c (show_convenience): Catch errors thrown while printing
2153 each internal variable.
2154 * infrun.c (validate_siginfo_access): New function.
2155 (siginfo_value_read, siginfo_value_write): Call it.
2156
9655e943
JK
21572011-09-01 Jan Kratochvil <[email protected]>
2158
2159 Revert:
2160 2010-05-21 Pierre Muller <[email protected]>
2161 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2162 attribute.
2163
cb457ae2
YQ
21642011-08-29 Yao Qi <[email protected]>
2165
2166 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2167 (cmp_name): New.
2168 (enable_break2): Update caller.
2169 * solib-frv.c (bfd_lookup_symbol): Removed.
2170 (cmp_name): New.
2171 (enable_break2): Update caller.
2172 * solib-pa64.c (bfd_lookup_symbol): Removed.
2173 (cmp_name): New.
2174 * solib-svr4.c (bfd_lookup_symbol): Removed.
2175 (cmp_name_and_sec_flags): New.
2176 (enable_break): Update caller.
2177 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2178 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2179 (gdb_bfd_lookup_symbol): New.
2180 * solib.h: Functions declarations.
2181
83d1a36a
YQ
21822011-08-29 Yao Qi <[email protected]>
2183
2184 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2185 and solib-dsbt.o.
2186
c04b3e8f
JK
21872011-08-29 Jan Kratochvil <[email protected]>
2188
2189 Fix TUI stepi on code without symbols.
2190 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2191 current PC instead.
2192
cb0fd152
JK
21932011-08-28 Jan Kratochvil <[email protected]>
2194
2195 Code cleanup.
2196 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2197 and the static keyword.
2198 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2199 Make prefix an array.
2200 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2201 * mi/mi-main.c (get_register): Remove stb initialization and the static
2202 keyword.
2203
91174723
JK
22042011-08-28 Jan Kratochvil <[email protected]>
2205
2206 Code cleanup - make mi_opt const.
2207 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2208 opts const.
2209 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2210 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2211 (mi_cmd_env_dir): Likewise.
2212 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2213 (mi_cmd_target_file_put): Likewise.
2214 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2215 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2216 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2217 (mi_valid_noargs): Make opts const.
2218 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2219 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2220 (mi_cmd_data_read_memory): Likewise.
2221 (mi_cmd_data_read_memory_bytes): Likewise.
2222 (mi_cmd_data_write_memory): Likewise.
2223
5068b8e8 22242011-08-26 Matt Rice <[email protected]>
2225
2226 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2227 bcache_xmalloc, replace bcache_xmalloc with call to
2228 psymbol_bcache_init for psymbol_cache.
2229 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2230
a4f2ce05
JK
22312011-08-26 Jan Kratochvil <[email protected]>
2232
2233 * inf-loop.c (inferior_event_handler): Add exception_print in
2234 INF_EXEC_COMPLETE.
2235
353d1d73
JK
22362011-08-26 Jan Kratochvil <[email protected]>
2237
2238 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2239 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2240 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2241 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2242 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2243 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2244 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2245 * infrun.c (fetch_inferior_event): Call
2246 make_bpstat_clear_actions_cleanup.
2247 * top.c (execute_command): New variable cleanup_if_error, call
2248 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2249 * utils.c (do_bpstat_clear_actions_cleanup)
2250 (make_bpstat_clear_actions_cleanup): New functions.
2251
3ced3da4
PA
22522011-08-26 Pedro Alves <[email protected]>
2253
2254 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2255 either the parent or the child forks. Rename a couple locals.
2256
a9f4bb21
PA
22572011-08-26 Pedro Alves <[email protected]>
2258
2259 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2260 library call. Avoid reading the `status' local if all waitpid
2261 calls failed.
2262
e5798bef
PA
22632011-08-26 Pedro Alves <[email protected]>
2264
2265 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2266 opening /proc/PID/task always succeeds.
2267
edb2aadf
AR
22682011-08-26 Aleksandar Ristovski <[email protected]>
2269
2270 * linespec.c (symtab_from_filename): Check for the end of string.
2271
0d932b2f
MK
22722011-08-26 Marc Khouzam <[email protected]>
2273
2274 PR mi/11912
2275 * varobj.c (cplus_describe_child): Add the keyword
2276 'class' to the output of the method when dealing
2277 with a cast to a base class.
2278
e93ca019
JK
22792011-08-26 Jan Kratochvil <[email protected]>
2280
2281 No functionality change.
2282 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2283 function comment a reference, new variables tp and bs, move here code
2284 from throw_exception.
2285 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2286 describe it in the comment.
2287 * exceptions.c (throw_exception): Remove variable tp, move the code for
2288 bpstat_clear_actions to bpstat_clear_actions.
2289
13da1c97
LM
22902011-08-24 Luis Machado <[email protected]>
2291
2292 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2293 * linux-nat.c: Include linux-procfs.h.
2294 (linux_proc_get_tgid): Move to ...
2295 * common/linux-procfs.c: ... here. New file.
2296 * common/linux-procfs.h: New file.
2297 * linux-thread-db.c: Include linux-procfs.h.
2298 * Makefile.in: Update dependencies.
2299 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2300 * config/arm/linux.mh: Likewise.
2301 * config/i386/linux.mh: Likewise.
2302 * config/i386/linux64.mh: Likewise.
2303 * config/ia64/linux.mh: Likewise.
2304 * config/m32r/linux.mh: Likewise.
2305 * config/m68k/linux.mh: Likewise.
2306 * config/mips/linux.mh: Likewise.
2307 * config/pa/linux.mh: Likewise.
2308 * config/pa/linux.mh: Likewise.
2309 * config/powerpc/linux.mh: Likewise.
2310 * config/powerpc/ppc64-linux.mh: Likewise.
2311 * config/powerpc/spu-linux.mh: Likewise.
2312 * config/sparc/linux.mh: Likewise.
2313 * config/sparc/linux64.mh: Likewise.
2314 * config/xtensa/linux.mh: Likewise.
2315
4e5c165d
HZ
23162011-08-24 Hui Zhu <[email protected]>
2317
2318 * tracepoint.c (cond_string_is_same): New function.
2319 (find_matching_tracepoint): Add condition check
2320 by cond_string_is_same.
2321
6e2f5b22
JK
23222011-08-23 Josh Matthews <[email protected]>
2323
2324 Fix build error in Darwin port.
2325 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2326
abf85f46
JK
23272011-08-21 Jan Kratochvil <[email protected]>
2328
2329 Code cleanup.
2330 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2331 (command_line_is_silent): New function.
2332 (bpstat_do_actions_1): No longer use commands_left, use
2333 command_line_is_silent for commands.
2334 (bpstat_alloc): Remove clearing of commands_left.
2335 (bpstat_stop_status): Remove initialization of commands_left, use
2336 command_line_is_silent.
2337 * breakpoint.h (struct bpstats): Remove commands_left.
2338
3a93a0c2
KS
23392011-08-18 Keith Seitz <[email protected]>
2340
2341 PR c++/12266
2342 * cp-name-parser.y (struct demangle_info): Remove unused
2343 member PREV.
2344 (d_grab): Likewise.
2345 (allocate_info): Change return type to struct demangle_info *.
2346 Always allocate a new demangle_info.
2347 Remove unused PREV pointer.
2348 (cp_new_demangle_parse_info): New function.
2349 (cp_demangled_name_parse_free): New function.
2350 (do_demangled_name_parse_free_cleanup): New function.
2351 (make_cleanup_cp_demangled_name_parse_free): New function.
2352 (cp_demangled_name_to_comp): Change return type to
2353 struct demangle_parse_info *.
2354 Allocate a new storage for each call.
2355 (main): Update usage for cp_demangled_name_to_comp
2356 API change.
2357 * cp-support.h (struct demangle_parse_info): New structure.
2358 (cp_demangled_name_to_comp): Update API change for
2359 return type.
2360 (cp_new_demangle_parse_info): Declare.
2361 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2362 (cp_demangled_name_parse_free): Declare.
2363 * cp-support.c (cp_canonicalize_string): Update API
2364 change for cp_demangled_name_to_comp.
2365 (mangled_name_to_comp): Likewise.
2366 Return struct demangle_parse_info, too.
2367 (cp_class_name_from_physname): Update mangled_name_to_comp
2368 API change.
2369 (method_name_from_physname): Likewise.
2370 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2371 (cp_remove_params): Likewise.
2372 * python/py-type.c (typy_legacy_template_argument): Likewise.
2373
2374 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2375 (cp_merge_demangle_parse_infos): Declare.
2376 * cp-support.c (ignore_typedefs): New file global.
2377 (copy_string_to_obstack): New function.
2378 (inspect_type): New function.
2379 (replace_typedefs): New function.
2380 (replace_typedefs_qualified_name): New function.
2381 (cp_canonicalize_string_no_typedefs): New function.
2382 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2383 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2384 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2385 instead of cp_canonicalize_string.
2386 (find_method): Likewise.
2387 (decode_compound): Before looking up the name, call
2388 cp_canonicalize_string_no_typedefs.
2389 (decode_variable): Likewise.
2390
fa3a4f15
PM
23912011-08-17 Phil Muldoon <[email protected]>
2392 Tom Tromey <[email protected]>
2393 Matt Rice <[email protected]>
2394
2395 * python/lib/gdb/prompt.py: New file.
2396 * python/lib/gdb/command/prompt.py: New file.
2397 * NEWS: Document set extended-prompt and gdb.prompt library
2398
85661b1e
YQ
23992011-08-16 Yao Qi <[email protected]>
2400
2401 * tic6x-linux-tdep.c: Move const arrays definition from here...
2402 * tic6x-tdep.c: to here ...
2403
11315641
YQ
24042011-08-14 Yao Qi <[email protected]>
2405
2406 * NEWS: New port to Texas Instruments TMS320C6x.
2407
8cd64e00
YQ
24082011-08-14 Andrew Jenner <[email protected]>
2409 Bernd Schmidt <[email protected]>
2410 Yao Qi <[email protected]>
2411
2412 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2413 * solib-dsbt.c: New file. Support DSBT shared object.
2414 * tic6x-linux-tdep.c: New file.
2415 * tic6x-tdep.c: New file.
2416 * tic6x-tdep.h: New file.
2417
78d85199
YQ
24182011-08-14 Andrew Stubbs <[email protected]>
2419 Yao Qi <[email protected]>
2420
2421 * remote.c (PACKET_qXfer_fdpic): New enum value.
2422 (remote_protocol_features): Add qXfer:fdpic:read packet.
2423 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2424 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2425 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2426
224bbe49
YQ
24272011-08-14 Yao Qi <[email protected]>
2428
2429 Target description for tic6x.
2430 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2431 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2432 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2433 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2434 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2435 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2436 * features/tic6x-c64xp-linux.xml: New.
2437 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2438 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2439 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2440 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2441 * regformats/tic6x-c64xp.dat,
2442 regformats/tic6x-c62x-linux.dat: Generated.
2443 * regformats/tic6x-c64x-linux.dat,
2444 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2445 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2446 features/tic6x-*.c files.
2447 Add regformats/tic6x-*.dat files.
2448
457e09f0
DE
24492011-08-12 Doug Evans <[email protected]>
2450
2451 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2452 * python/py-symbol.c (sympy_get_type): New function.
2453 (symbol_object_getset): Add "type".
2454
d20c1c3f
PA
24552011-08-12 Pedro Alves <[email protected]>
2456
2457 PR tui/13073
2458
2459 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2460 empty name.
2461 (tui_show_register_group): Don't store a byte buffer in the data
2462 element's value.
2463 (tui_register_format): Skip registers with an empty name.
2464 (tui_get_register): Store a struct value in the data element's
2465 value field instead of a byte buffer holding the raw register
2466 contents. Account for optimized-out and unavailable registers
2467 when comparing register contents.
2468
9d8fa392
PA
24692011-08-09 Pedro Alves <[email protected]>
2470
2471 * printcmd.c (current_display_number): Update comment.
2472 (disable_current_display_cleanup): Delete.
2473 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2474 catch errors thrown while evaluating and printing the display.
2475
401a70b8
TT
24762011-08-09 Tom Tromey <[email protected]>
2477
2478 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2479
7f86f058
PA
24802011-08-09 Pedro Alves <[email protected]>
2481
94b71cca 2482 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2483 * maint.c (maintenance_command): Ditto.
2484 * somread.c (som_symtab_read): Ditto.
2485 * solib.c (solib_find, solib_map_sections, update_solib_list)
2486 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2487 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2488 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2489 * solib-irix.c (locate_base, disable_break, enable_break)
2490 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2491 (irix_current_sos, irix_open_symbol_file_object)
2492 (irix_special_symbol_handling): Ditto.
2493 * solib-sunos.c (locate_base, first_link_map_member)
2494 (sunos_current_sos, disable_break, enable_break)
2495 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2496 Ditto.
2497 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2498 (open_symbol_file_object, svr4_current_sos, enable_break)
2499 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2500 Ditto.
2501 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2502 (frv_current_sos, enable_break, frv_special_symbol_handling)
2503 (frv_solib_create_inferior_hook): Ditto.
2504 * solist.h (struct target_so_ops): Extend the comments of the
2505 special_symbol_handling, current_sos and open_symbol_file_object
2506 methods.
2507
5e239b84
PM
25082011-08-09 Phil Muldoon <[email protected]>
2509
2510 * python/lib/gdb/__init__.py: Auto-load files in command and
2511 function directories.
2512 * python/python.c (finish_python_initialization): Use
2513 os.path.join.
2514 * python/lib/gdb/command/pretty_printers.py: Self register
2515 command.
2516 * NEWS: Document auto-loading.
2517
b6cede78
JK
25182011-08-08 Jan Kratochvil <[email protected]>
2519
2520 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2521 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2522 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2523
29d0bb3d
TT
25242011-08-08 Tom Tromey <[email protected]>
2525
2526 * breakpoint.c (clean_up_filters): Remove.
2527 (catch_syscall_split_args): Use VEC_cleanup.
2528
2f7fb8e4
JK
25292011-08-06 Jan Kratochvil <[email protected]>
2530
2531 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2532 (main): Uncomment "Demangling error\n".
2533
d6c10e95
PP
25342011-08-05 Paul Pluzhnikov <[email protected]>
2535
2536 * solib-target.c (segment_attributes): Make them static.
2537 (section_attributes, library_children, library_attributes): Likewise.
2538 (library_list_children, library_list_attributes): Likesise.
2539 (library_list_elements): Likewise.
2540
af6e93b2
PA
25412011-08-05 Pedro Alves <[email protected]>
2542
2543 * exceptions.c (throw_exception): Don't disable the current
2544 display.
2545 * printcmd.c (disable_current_display_cleanup): New function.
2546 (do_one_display): Install a cleanup to disable the current display
2547 if doing the display throws.
2548
6a1b1664
EZ
25492011-08-05 Eli Zaretskii <[email protected]>
2550
2551 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2552 initialization of the tp_new member to the corresponding
2553 gdbpy_initialize_* function.
2554 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2555 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2556 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2557 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2558 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2559
31a0ae49
JK
25602011-08-05 Jan Kratochvil <[email protected]>
2561
2562 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2563 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2564 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2565 references to current_uiout.
2566
e0dd0826
PA
25672011-08-04 Pedro Alves <[email protected]>
2568
2569 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2570 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2571 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2572 * top.c (gdb_readline_wrapper): Adjust.
2573 * tui/tui-interp.c (tui_command_loop):
2574 (_initialize_tui_interp): Don't install it.
2575
79a45e25
PA
25762011-08-04 Pedro Alves <[email protected]>
2577
2578 * ui-out.h (uiout): Rename to ...
2579 (current_uiout): ... this.
2580 * ui-out.c (uiout): Rename to ...
2581 (current_uiout): ... this.
2582 * ada-lang.c (print_it_exception, print_one_exception)
2583 (print_mention_exception): Adjust.
2584 * breakpoint.c (watchpoint_check): Adjust.
2585 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2586 (default_collect_info, watchpoints_info, print_one_catch_fork)
2587 (print_one_catch_vfork, print_one_catch_syscall)
2588 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2589 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2590 (print_it_watchpoint, print_mention_watchpoint)
2591 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2592 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2593 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2594 (bkpt_print_mention, momentary_bkpt_print_it)
2595 (tracepoint_print_mention, update_static_tracepoint)
2596 (tracepoints_info, save_breakpoints): Adjust.
2597 * cli-out.c (field_separator): Adjust.
2598 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2599 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2600 * frame.c (get_current_frame): Adjust.
2601 * infcmd.c (run_command_1, print_return_value): Adjust.
2602 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2603 * infrun.c (print_end_stepping_range_reason): Adjust.
2604 (print_signal_exited_reason, print_exited_reason): Adjust.
2605 (print_signal_received_reason, print_no_history_reason): Adjust.
2606 * interps.c (interp_set): Adjust.
2607 * osdata.c (info_osdata_command): Adjust.
2608 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2609 * remote-fileio.c (remote_fileio_request): Adjust.
2610 * remote.c (show_remote_cmd): Adjust.
2611 * solib.c (info_sharedlibrary_command): Adjust.
2612 * source.c (print_source_lines_base): Adjust.
2613 * stack.c (print_stack_frame): Adjust.
2614 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2615 * symfile-mem.c (add_vsyscall_page): Adjust.
2616 * symfile.c (load_progress, generic_load)
2617 (print_transfer_performance): Adjust.
2618 * thread.c (info_threads_command, restore_selected_frame)
2619 (thread_command): Adjust.
2620 * top.c (make_cleanup_restore_ui_file): Adjust.
2621 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2622 (print_one_static_tracepoint_marker): Adjust.
2623 * cli/cli-cmds.c (print_disassembly): Adjust.
2624 * cli/cli-decode.c (print_doc_line): Adjust.
2625 * cli/cli-interp.c (safe_execute_command): Adjust.
2626 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2627 (handle_redirections): Adjust.
2628 * cli/cli-script.c (show_user_1): Adjust.
2629 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2630 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2631 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2632 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2633 (mi_cmd_env_dir): Adjust.
2634 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2635 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2636 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2637 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2638 (list_args_or_locals): Adjust.
2639 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2640 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2641 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2642 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2643 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2644 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2645 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2646 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2647 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2648 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2649 (list_available_thread_groups, mi_cmd_list_thread_groups)
2650 (mi_cmd_data_list_register_names)
2651 (mi_cmd_data_list_changed_registers)
2652 (mi_cmd_data_list_register_values, get_register)
2653 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2654 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2655 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2656 (mi_execute_command, mi_load_progress): Adjust.
2657 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2658 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2659 Adjust.
2660 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2661 * tui/tui-interp.c (tui_command_loop): Adjust.
2662 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2663
f9679975
PA
26642011-08-04 Pedro Alves <[email protected]>
2665
2666 * exceptions.c (struct catcher): Remove saved_uiout field.
2667 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2668 no longer save/resvore the global ui_out builder.
2669 (catch_exceptions_with_msg): Save/override/restore the global
2670 ui_out builder manually instead of relying on TRY_CATCH to do it.
2671 (catch_errors): Save/restore the global ui_out builder manually
2672 instead of relying on TRY_CATCH to do it.
2673 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2674 parameter.
2675 (TRY_CATCH): Adjust.
2676 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2677 the global ui_out builder manually instead of relying on TRY_CATCH
2678 to do it.
2679
934709f0
PW
26802011-08-03 Philippe Waroquiers <[email protected]>
2681
2682 * breakpoint.c (update_global_location_list): Ensure
2683 invariant 'first loc marked not duplicated and inserted,
2684 following locs marked duplicated/not inserted' is respected
2685 for multiple locations at the same address.
2686 (unduplicated_should_be_inserted) New function.
2687 (swap_insertion) New function.
2688
2421fe6f
JK
26892011-08-03 Jan Kratochvil <[email protected]>
2690
2691 * stack.c (print_frame_arguments_choices): Comment typo fix.
2692
3fbb6ffa
TJB
26932011-08-01 Thiago Jung Bauermann <[email protected]>
2694
2695 Revert:
2696 2011-07-31 Thiago Jung Bauermann <[email protected]>
2697 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2698 argument. Update callers.
2699
fbe12357
PP
27002011-08-01 Paul Pluzhnikov <[email protected]>
2701
2702 PR gdb/13045
2703 * doublest.c (convert_doublest_to_floatformat): Pass correct
2704 mantissa length to put_field.
2705
b1d288d3
JK
27062011-08-01 Jan Kratochvil <[email protected]>
2707
2708 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2709 exception_print code path.
2710 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2711 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2712 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2713
311b5970
JK
27142011-08-01 Jan Kratochvil <[email protected]>
2715
2716 Code cleanup.
2717 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2718 Remove, merge them into ...
2719 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2720 variable args and its initialization.
2721 (struct print_args_args, print_args_stub): Remove, merge them into
2722 print_frame.
2723 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2724 them into ...
2725 (do_gdb_disassembly): ... here. Remove variable args and its
2726 initialization.
2727 (print_frame): Remove variable args and its initialization, new
2728 variable gdbarch and numargs (from print_args_stub), inline here
2729 print_args_stub with a TRY_CATCH.
2730 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2731 them into ...
2732 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2733 New variable e, remove variable btargs and its initialization.
311b5970 2734
484a26a8
TG
27352011-08-01 Tristan Gingold <[email protected]>
2736
2737 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2738
c30eee59
TJB
27392011-07-31 Thiago Jung Bauermann <[email protected]>
2740
2741 * breakpoint.c (insert_bp_location): Document return value.
2742 (insert_breakpoint_locations): Fix documentation.
2743 (remove_breakpoints): Add documentation.
2744
f116073b
TJB
27452011-07-31 Thiago Jung Bauermann <[email protected]>
2746
2747 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2748 argument. Update callers.
2749
65aa373f
JK
27502011-07-30 Jan Kratochvil <[email protected]>
2751
2752 * stack.c (print_frame_info): Comment typo fix.
2753
a50242fb
SA
27542011-07-29 Sterling Augustine <[email protected]>
2755
2756 * MAINTAINERS (Write After Approval): Add myself to the list.
2757
267f6504
TT
27582011-07-29 Tom Tromey <[email protected]>
2759
2760 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2761 (library_list_start_segment): Update.
2762 (library_list_start_section): Update.
2763
00bd41d6
PM
27642011-07-28 Phil Muldoon <[email protected]>
2765
2766 * varobj.c (value_get_print_value): Move hint check later into the
2767 function. Comment function. Free thevalue before reusing it.
2768
18a46dbe
JK
27692011-07-27 Jan Kratochvil <[email protected]>
2770 Pedro Alves <[email protected]>
2771
2772 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2773 value_one.
2774 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2775 Assert the result kind.
2776 * value.h (value_one): Remove parameter lv.
2777
bb7da2bf
JK
27782011-07-27 Jan Kratochvil <[email protected]>
2779
2780 Fix crash on lval_computed values.
2781 * valops.c (value_zero): Use not_lval for lval_computed.
2782
2d5213f8
TT
27832011-07-27 Tom Tromey <[email protected]>
2784
2785 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2786 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2787
11081198
JK
27882011-07-27 Jan Kratochvil <[email protected]>
2789
2790 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2791 "ptype" by their typedefs difference.
2792
3c6e0cb3
JK
27932011-07-27 Jan Kratochvil <[email protected]>
2794
2795 * dwarf2expr.c (ctx_no_read_reg): New function.
2796 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2797 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2798 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2799 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2800
523f3620
JK
28012011-07-27 Jan Kratochvil <[email protected]>
2802
2803 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2804 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2805 file.
2806 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2807 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2808 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2809 (ctx_no_get_base_type): Move the functions here.
2810 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2811 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2812 (ctx_no_get_base_type): New declarations.
2813
24d3216f
TT
28142011-07-27 Tom Tromey <[email protected]>
2815
2816 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2817 entries.
2818 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2819 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2820
5005c8a9
PP
28212011-07-26 Sterling Augustine <[email protected]>
2822
2823 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2824 ULONGEST.
2825 (dump_bfd_file): Likewise.
2826
480a3f21
PW
28272011-07-26 Philippe Waroquiers <[email protected]>
2828
2829 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2830 (remote_hw_watchpoint_length_limit): New variable.
2831 (_initialize_remote) add set,show cmds for this new variable.
2832 * gdb.texinfo: document these new commands.
2833 * NEWS: Mention these new commands.
2834
efa80663
PA
28352011-07-26 Pedro Alves <[email protected]>
2836
2837 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2838 true for software watchpoints.
2839
dbdaa232 28402011-07-26 Joel Brobecker <[email protected]>
2841
2842 GDB 7.3 released.
2843
cf2c3c16
TT
28442011-07-26 Tom Tromey <[email protected]>
2845
2846 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2847 * dwarf2read.c (read_indirect_string_at_offset): New function.
2848 (read_indirect_string): Use it.
2849 (dwarf_decode_macro_bytes): New function, taken from
2850 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2851 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2852 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2853 New functions.
2854 (struct dwarf2_per_objfile) <macro>: New field.
2855 (dwarf2_elf_names): Add .debug_macro.
2856 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2857 (dwarf2_locate_sections): Handle new section.
2858 (read_file_scope): Handle DW_AT_GNU_macros.
2859 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2860
1a532630
PP
28612011-07-26 Paul Pluzhnikov <[email protected]>
2862
2863 * NEWS: Mention dcache configuration.
2864 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2865 (dcache_size, dcache_line_size): New variables.
2866 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2867 (struct dcache_block): Make it expandable.
2868 (struct dcache_struct): New field.
2869 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2870 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2871 (dcache_poke_byte, dcache_print_line): Adjust.
2872 (set_dcache_size, set_dcache_line_size): New functions.
2873 (set_dcache_command, show_dcache_command): New functions.
2874 (_initialize_dcache): Add new commands.
2875
2eff07b3
PP
28762011-07-26 Paul Pluzhnikov <[email protected]>
2877
2878 * progspace.h (struct program_space): Add solib_add_generation.
2879 * infcmd.c (post_create_inferior): Only call solib_add if not
2880 already done.
2881 * solib.c (solib_add): Increment solib_add_generation.
2882
543305c9
JK
28832011-07-25 Jan Kratochvil <[email protected]>
2884
2885 Fix implicit pointer offsets.
2886 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
2887 ptr.OFFSET.
2888
c0a91b2b
TT
28892011-07-25 Tom Tromey <[email protected]>
2890
2891 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
2892 const.
2893 (ada_exception_sal): Make 'ops' const.
2894 (ada_decode_exception_location): Likewise.
2895 (ada_decode_assert_location): Likewise.
2896 (catch_assert_command): Update.
2897 (catch_ada_exception_command): Update.
2898 (create_ada_exception_catchpoint): Make 'ops' const.
2899 * breakpoint.c (set_raw_breakpoint_without_location)
2900 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
2901 const.
2902 (create_internal_breakpoint): Update.
2903 (init_raw_breakpoint_without_location): Make 'ops' const.
2904 (init_raw_breakpoint, init_catchpoint)
2905 (create_fork_vfork_event_catchpoint)
2906 (create_syscall_event_catchpoint, init_breakpoint_sal)
2907 (create_breakpoint_sal, create_breakpoints_sal)
2908 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
2909 * breakpoint.h (struct breakpoint) <ops>: Now const.
2910 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
2911 const.
2912
6cb9b55b
PP
29132011-07-25 Paul Pluzhnikov <[email protected]>
2914
2915 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2916
d9b3f62e
PA
29172011-07-25 Pedro Alves <[email protected]>
2918
2919 * breakpoint.h (print_recreate_thread): Declare.
2920 (struct breakpoint): Move step_count, pass_count,
2921 number_on_target, static_trace_marker_id,
2922 static_trace_marker_id_idx ...
2923 (struct tracepoint): ... to this new struct.
2924 (get_tracepoint, get_tracepoint_by_number_on_target)
2925 (get_tracepoint_by_number): Change return type to struct
2926 tracepoint pointer.
2927 * breakpoint.c (is_tracepoint_type): New, factored out from
2928 is_tracepoint.
2929 (is_tracepoint): Adjust.
2930 (print_one_breakpoint_location): Cast to struct tracepoint as
2931 necessary, and adjust.
2932 (print_recreate_catch_fork, print_recreate_catch_vfork)
2933 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
2934 print_recreate_thread.
2935 (init_breakpoint_sal): New, factored out from
2936 create_breakpoint_sal.
2937 (create_breakpoint_sal): Reimplement.
2938 (create_breakpoint): Allocate a struct tracecepoint if the caller
2939 wanted a tracepoint. Use init_breakpoint_sal and
2940 install_breakpoint.
2941 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
2942 (print_recreate_masked_watchpoint)
2943 (print_recreate_exception_catchpoint): Call print_recreate_thread.
2944 (tracepoint_print_one_detail): Adjust.
2945 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
2946 Dump the pass count here.
2947 (update_static_tracepoint): Adjust.
2948 (addr_string_to_sals): Adjust.
2949 (create_tracepoint_from_upload): Adjust. Change return type to
2950 struct tracepoint pointer.
2951 (trace_pass_set_count): Change parameter type to struct tracepoint
2952 pointer, and adjust.
2953 (trace_pass_command): Adjust.
2954 (get_tracepoint, get_tracepoint_by_number_on_target)
2955 (get_tracepoint_by_number): Change return type to struct
2956 tracepoint pointer, and adjust.
2957 (print_recreate_thread): New, factored out from save_breakpoints.
2958 (save_breakpoints): Don't print thread and task and passcount
2959 recreation here.
2960 * remote.c (remote_download_tracepoint): Adjust.
2961 * tracepoint.c (trace_actions_command, validate_actionline)
2962 (start_tracing, tfind_1, trace_find_tracepoint_command)
2963 (trace_dump_command): Adjust.
2964 (find_matching_tracepoint): Change return type to struct
2965 tracepoint pointer, and adjust.
2966 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
2967 (tfile_trace_find, tfile_fetch_registers): Adjust.
2968 * tracepoint.h (create_tracepoint_from_upload): Change return type
2969 to struct tracepoint pointer.
2970 * ada-lang.c (print_recreate_exception): Call
2971 print_recreate_thread.
2972 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
2973
3a5c3e22
PA
29742011-07-25 Pedro Alves <[email protected]>
2975
2976 * breakpoint.h (struct breakpoint): Move ops as first field. Move
2977 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
2978 cond_exp_valid_block, val, val_valid, watchpoint_frame,
2979 watchpoint_thread, watchpoint_triggered ...
2980 (struct watchpoint): ... to this new struct.
2981 (is_watchpoint): Declare.
2982 (install_breakpoint): Add new `internal' parameter.
2983 * breakpoint.c (is_watchpoint): Delete declaration.
2984 (set_breakpoint_condition): Handle watchpoints.
2985 (is_watchpoint): Make public.
2986 (watchpoint_in_thread_scope): Change parameter type to struct
2987 watchpoint.
2988 (watchpoint_del_at_next_stop): Change parameter type to struct
2989 watchpoint. Remove assertion. Adjust.
2990 (update_watchpoint): Ditto.
2991 (insert_breakpoints, breakpoint_init_inferior)
2992 (watchpoints_triggered, watchpoint_check)
2993 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
2994 (bpstat_stop_status, print_one_breakpoint_location)
2995 (print_one_breakpoint_location, watchpoint_locations_match): Cast
2996 to struct watchpoint as necessary, and adjust.
2997 (install_breakpoint): Add `internal' argument. If true, don't
2998 mention the new breakpoint. Use set_breakpoint_number.
2999 (create_fork_vfork_event_catchpoint)
3000 (create_syscall_event_catchpoint): Adjust.
3001 (dtor_watchpoint): New.
3002 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3003 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3004 (print_it_watchpoint, print_mention_watchpoint)
3005 (print_recreate_watchpoint, insert_masked_watchpoint)
3006 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3007 (print_one_detail_masked_watchpoint)
3008 (print_mention_masked_watchpoint)
3009 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3010 necessary, and adjust.
3011 (watch_command_1): Allocate and initialize a struct watchpoint
3012 instead of a struct breakpoint. Use install_breakpoint.
3013 (catch_exec_command_1): Adjust.
3014 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3015 fields.
3016 (delete_breakpoint, enable_breakpoint_disp)
3017 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3018 as necessary, and adjust.
3019 (initialize_breakpoint_ops): Install dtor_watchpoint as
3020 watchpoints' dtor method.
3021 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3022 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3023 to struct watchpoint as necessary, and adjust.
3024
2060206e
PA
30252011-07-25 Pedro Alves <[email protected]>
3026
3027 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3028 the the base class ops table.
3029 (catch_exception_breakpoint_ops)
3030 (catch_exception_unhandled_breakpoint_ops)
3031 (catch_assert_breakpoint_ops): Don't statically initialize.
3032 (initialize_ada_catchpoint_ops): New.
3033 (_initialize_ada_language): Call it.
3034 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3035 (bkpt_breakpoint_ops): Forward declare.
3036 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3037 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3038 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3039 (masked_watchpoint_breakpoint_ops)
3040 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3041 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3042 base class ops table.
3043 (null_re_set, null_check_status, null_works_in_software_mode)
3044 (null_resources_needed, null_print_one_detail): Delete.
3045 (bkpt_dtor): Rename to ...
3046 (base_breakpoint_dtor): ... this. Make static.
3047 (bkpt_allocate_location): Rename to ...
3048 (base_breakpoint_allocate_location): ... this. Make static.
3049 (base_breakpoint_re_set): New.
3050 (internal_error_pure_virtual_called): New.
3051 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3052 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3053 (base_breakpoint_works_in_software_mode)
3054 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3055 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3056 (base_breakpoint_print_recreate): New functions.
3057 (base_breakpoint_ops): New global.
3058 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3059 (bkpt_breakpoint_hit): Make static.
3060 (bkpt_check_status): Delete.
3061 (bkpt_resources_needed): Make static.
3062 (bkpt_works_in_software_mode): Delete.
3063 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3064 static.
3065 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3066 (momentary_breakpoint_ops): Don't statically initialize.
3067 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3068 Delete.
3069 (tracepoint_insert_location, tracepoint_remove_location)
3070 (tracepoint_check_status, tracepoint_works_in_software_mode)
3071 (tracepoint_print_it): Delete.
3072 (tracepoint_breakpoint_ops): Don't statically initialize.
3073 (initialize_breakpoint_ops): New.
3074 (_initialize_breakpoint): Call it.
3075 * breakpoint.h (null_re_set, null_works_in_software_mode)
3076 (null_resources_needed, null_check_status, null_print_one_detail):
3077 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3078 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3079 (bkpt_check_status, bkpt_resources_needed)
3080 (bkpt_works_in_software_mode, bkpt_print_it)
3081 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3082 Delete declarations.
3083 (initialize_breakpoint_ops): Declare.
3084
001c8c33
PA
30852011-07-25 Pedro Alves <[email protected]>
3086
3087 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3088 (momentary_bkpt_print_it): Simplify.
3089
06edf0c0
PA
30902011-07-25 Pedro Alves <[email protected]>
3091
3092 Split internal, momentary and user breakpoints breakpoint_ops
3093 tables.
3094
3095 * breakpoint.c (internal_breakpoint_ops)
3096 (momentary_breakpoint_ops): Forward declare.
3097 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3098 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3099 (create_overlay_event_breakpoint)
3100 (create_std_terminate_master_breakpoint)
3101 (create_exception_master_breakpoint): Create breakpoints with
3102 internal_breakpoint_ops vtable.
3103 (set_longjmp_breakpoint): Create momentary breakpoints with
3104 momentary_breakpoint_ops vtable, using
3105 momentary_breakpoint_from_master.
3106 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3107 (create_solib_event_breakpoint): Create breakpoints with
3108 internal_breakpoint_ops vtable.
3109 (set_momentary_breakpoint): Create breakpoints with
3110 momentary_breakpoint_ops vtable.
3111 (momentary_breakpoint_from_master): New, factored out from
3112 clone_momentary_breakpoint.
3113 (clone_momentary_breakpoint): Adjust.
3114 (watch_command_1): Create scope breakpoints with
3115 momentary_breakpoint_ops vtable.
3116 (bkpt_re_set): Remove handling of internal and momentary
3117 breakpoints.
3118 (bkpt_print_mention, bkpt_print_recreate): New.
3119 (bkpt_breakpoint_ops): Adjust.
3120 (internal_bkpt_re_set, internal_bkpt_check_status)
3121 (internal_bkpt_print_it, internal_bkpt_print_mention)
3122 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3123 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3124 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3125 (momentary_bkpt_print_recreate): New.
3126 (momentary_breakpoint_ops): New.
3127
348d480f
PA
31282011-07-25 Pedro Alves <[email protected]>
3129
3130 Implement most breakpoint_ops methods for all breakpoint types,
3131 and move the default handlings to the proper callbacks.
3132
3133 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3134 works_in_software_mode method.
3135 (insert_bp_location): Go through breakpoint_ops->insert_location
3136 for software and hardware watchpoints.
3137 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3138 breakpoint_ops.
3139 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3140 for software and hardware watchpoints.
3141 (print_it_typical): Delete.
3142 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3143 method.
3144 (watchpoint_check): Adjust comment.
3145 (bpstat_check_location): Simply always call the breakpoint's
3146 breakpoint_hit method.
3147 (bpstat_stop_status): Always call the breakpoint's check_status
3148 method. Remove special cases for watchpoints and internal event
3149 breakpoints from here (moved to the check_status implementations).
3150 (print_one_breakpoint_location): Assume b->ops is never NULL.
3151 Remove static tracepoint marker id printing from here (moved to
3152 the print_one_detail callback implementation of tracepoints).
3153 (init_bp_location): Assert OPS is never NULL.
3154 (allocate_bp_location): Always call the breakpoint's
3155 allocate_location method, and remove the default code from here.
3156 (free_bp_location): Always call the location's dtor method, and
3157 remove the default code from here.
3158 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3159 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3160 parameter. Pass it down.
3161 (set_raw_breakpoint): Ditto.
3162 (print_it_catch_fork): Adjust to take a bpstat as argument.
3163 (catch_fork_breakpoint_ops): Install methods.
3164 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3165 (catch_vfork_breakpoint_ops): Install methods.
3166 (dtor_catch_syscall): Call the base dtor.
3167 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3168 (catch_syscall_breakpoint_ops): Install methods.
3169 (dtor_catch_exec): Call the base dtor.
3170 (print_it_catch_exec): Adjust to take a bpstat as argument.
3171 (catch_exec_breakpoint_ops): Install methods.
3172 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3173 the breakpoint's resources_needed method, and remove the default
3174 code from here.
3175 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3176 breakpoint_ops.
3177 (clone_momentary_breakpoint): Clone the original's ops.
3178 (mention): Always call the breakpoint's print_mention method, and
3179 remove the default code from here.
3180 (create_breakpoint_sal): Adjust to pass the ops to
3181 set_raw_breakpoint rather than setting it manually.
3182 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3183 ops to set_raw_breakpoint_without_location rather than setting it
3184 manually.
3185 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3186 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3187 (ranged_breakpoint_ops): Install methods.
3188 (break_range_command): Adjust to pass the ops to
3189 set_raw_breakpoint rather than setting it manually.
3190 (re_set_watchpoint, breakpoint_hit_watchpoint)
3191 (check_status_watchpoint, resources_needed_watchpoint)
3192 (works_in_software_mode_watchpoint, print_it_watchpoint)
3193 (print_mention_watchpoint, print_recreate_watchpoint): New
3194 functions.
3195 (watchpoint_breakpoint_ops): Install new methods.
3196 (print_it_masked_watchpoint): New function.
3197 (masked_watchpoint_breakpoint_ops): Install new methods.
3198 (watch_command_1): Adjust to pass the right breakpoint_ops to
3199 set_raw_breakpoint_without_location rather than setting it
3200 manually later. Record the current pspace.
3201 (print_it_exception_catchpoint): Adjust to take a bpstat as
3202 argument.
3203 (gnu_v3_exception_catchpoint_ops): Install new methods.
3204 (say_where): New function.
3205 (null_re_set, null_check_status, null_works_in_software_mode)
3206 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3207 New functions.
3208 (bp_location_ops): New global.
3209 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3210 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3211 (bkpt_check_status, bkpt_resources_needed)
3212 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3213 (bkpt_print_recreate): New functions.
3214 (bkpt_breakpoint_ops): New global.
3215 (tracepoint_re_set, tracepoint_insert_location)
3216 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3217 (tracepoint_check_status, tracepoint_works_in_software_mode)
3218 (tracepoint_print_it, tracepoint_print_one_detail)
3219 (tracepoint_print_mention, tracepoint_print_recreate): New
3220 functions.
3221 (tracepoint_breakpoint_ops): New global.
3222 (delete_breakpoint): Always call the breakpoint's dtor method, and
3223 remove the default handling from here.
3224 (breakpoint_re_set_default): Make static.
3225 (breakpoint_re_set_one): Always call the breakpoints re_set
3226 method, and remove the default handling from here.
3227 (trace_command, ftrace_command, strace_command)
3228 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3229 to create_breakpoint.
3230 (save_breakpoints): Always call the breakpoint's print_recreate
3231 method, and remove the default handling from here.
3232
3233 * ada-lang.c (dtor_exception): Call the base dtor.
3234 (re_set_exception): Call the base method.
3235 (print_it_exception, print_it_catch_exception): Adjust to take a
3236 bpstat as argument.
3237 (catch_exception_breakpoint_ops): Install methods.
3238 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3239 argument.
3240 (catch_exception_unhandled_breakpoint_ops): Install methods.
3241 (print_it_catch_assert): Adjust to take a bpstat as argument.
3242 (catch_assert_breakpoint_ops): Install methods.
3243
3244 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3245 to take a bpstat as argument.
3246 (enum print_stop_action): Add describing comments to each enum
3247 value.
3248 (breakpoint_re_set_default): Delete declaration.
3249 (null_re_set, null_works_in_software_mode, null_resources_needed)
3250 (null_check_status, null_print_one_detail): Declare.
3251 (bkpt_breakpoint_ops): Declare.
3252 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3253 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3254 (bkpt_check_status, bkpt_resources_needed)
3255 (bkpt_works_in_software_mode, bkpt_print_it)
3256 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3257 Declare.
3258
3259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3260 bkpt_breakpoint_ops.
3261 * python/py-breakpoint.c (bppy_init): Ditto.
3262
be8f8133
PW
32632011-07-15 Philippe Waroquiers <[email protected]>
3264
3265 * MAINTAINERS (Write After Approval): Add myself to the list.
3266
3807f613
PP
32672011-07-23 Paul Pluzhnikov <[email protected]>
3268
3269 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3270
1ced966e
PA
32712011-07-22 Pedro Alves <[email protected]>
3272
3273 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3274 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3275 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3276 adjust.
3277 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3278 (struct i386_debug_reg_state): New.
3279 (i386_init_dregs): New.
3280 (dr_mirror): New.
3281 (i386_cleanup_dregs): Use i386_init_dregs.
3282 (i386_show_dr): Add state parameter and adjust.
3283 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3284 the inferior here.
3285 (i386_remove_aligned_watchpoint): Likewise.
3286 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3287 (i386_update_inferior_debug_regs): New.
3288 (i386_insert_watchpoint): Work on a local mirror of the debug
3289 registers, and only update the inferior on success.
3290 (i386_remove_watchpoint): Ditto.
3291 (i386_region_ok_for_watchpoint): Adjust.
3292 (i386_stopped_data_address): Adjust.
3293 (i386_insert_hw_breakpoint): Adjust.
3294 (i386_remove_hw_breakpoint): Adjust.
3295
3543a589
TT
32962011-07-22 Tom Tromey <[email protected]>
3297
3298 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3299 from amd64_pseudo_register_read. Change arguments. Call
3300 mark_value_bytes_unavailable when needed.
3301 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3302 set_gdbarch_pseudo_register_read.
3303 * sentinel-frame.c (sentinel_frame_prev_register): Use
3304 regcache_cooked_read_value.
3305 * regcache.h (regcache_cooked_read_value): Declare.
3306 * regcache.c (regcache_cooked_read_value): New function.
3307 (regcache_cooked_read): Call
3308 gdbarch_pseudo_register_read_value if available.
3309 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3310 (i386_pseudo_register_read): Remove.
3311 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3312 i386_pseudo_register_read. Change arguments. Call
3313 mark_value_bytes_unavailable when needed.
3314 (i386_pseudo_register_read_value): New function.
3315 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3316 not set_gdbarch_pseudo_register_read.
3317 * gdbarch.sh (pseudo_register_read_value): New method.
3318 * gdbarch.c, gdbarch.h: Rebuild.
3319 * findvar.c (value_from_register): Call get_frame_register_value.
3320
95298e72
PM
33212011-07-22 Phil Muldoon <[email protected]>
3322
3323 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3324 get_prefix.
3325 (display_gdb_prompt): Likewise.
3326 (change_annotation_level): Likewise.
3327 (push_prompt): Likewise.
3328 (pop_prompt): Likewise.
3329 (handle_stop_sig): Use get_prompt with a level.
3330 * top.c (command_loop): Use get_prompt with a level.
3331 (set_async_annotation_level): Use set_prompt with a level.
3332 (get_prefix): New function.
3333 (set_prefix): Ditto.
3334 (set_suffix): Ditto.
3335 (get_suffix): Ditto.
3336 (get_prompt): Accept a level argument.
3337 (set_prompt): Accept a level argument. Free old prompts. Set
3338 new_async_prompt if level is 0.
3339 (init_main): Use set_prompt with a level. Do not set
3340 new_async_prompt.
3341 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3342 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3343 Modify set_prompt, get_prompt to account for levels.
3344 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3345 level.
3346 * python/python.c (before_prompt_hook): Use set_prompt.
3347
d26e3629
KY
33482011-07-22 Kwok Cheung Yeung <[email protected]>
3349
3350 * defs.h: Add guard against inclusion in gdbserver.
3351 (struct ptid, ptid_t): Move to common/ptid.h.
3352 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3353 xsnprintf, internal_error): Move to common/common-utils.h.
3354 (nomem): Delete.
3355 * gdb_assert.h: Move into common/ sub-directory.
3356 * gdb_locale.h: Ditto.
3357 * gdb_dirent.h: Ditto.
3358 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3359 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3360 Move into common/ptid.h.
3361 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3362 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3363 Change nomem to malloc_failure.
3364 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3365 * utils.c (nomem): Rename to malloc_failure.
3366 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3367 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3368 (gdb_buildargv): Change nomem to malloc_failure.
3369 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3370 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3371 ptid_is_pid): Move into common/ptid.c.
3372 (initialize_infrun): Delete initialization of null_ptid and
3373 minus_one_ptid.
3374 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3375 linux_common_xfer_osdata.
3376 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3377 common/ptid.c and common/buffer.c.
3378 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3379 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3380 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3381 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3382 rules.
3383 * common/gdb_assert.h: New.
3384 * common/gdb_dirent.h: New.
3385 * common/gdb_locale.h: New.
3386 * common/buffer.c: New.
3387 * common/buffer.h: New.
3388 * common/ptid.c: New.
3389 * common/ptid.h: New.
3390 * common/xml-utils.c: New.
3391 * common/xml-utils.h: New.
3392 * common/common-utils.c: New.
3393 * common/common-utils.h: New.
3394 * common/linux-osdata.c: New.
3395 * common/linux-osdata.h: New.
3396 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3397 * config/arm/linux.mh (NATDEPFILES): Ditto.
3398 * config/i386/linux.mh (NATDEPFILES): Ditto.
3399 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3400 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3401 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3402 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3403 * config/mips/linux.mh (NATDEPFILES): Ditto.
3404 * config/pa/linux.mh (NATDEPFILES): Ditto.
3405 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3406 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3407 * config/s390/s390.mh (NATDEPFILES): Ditto.
3408 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3409 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3410 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3411
edc84990 34122011-07-21 Matt Rice <[email protected]>
3413
3414 * NEWS: Add info macros and info definitions commands.
3415
3a7bf607
PM
34162011-07-21 Phil Muldoon <[email protected]>
3417
3418 * NEWS: Document Python prompt substitution hook.
3419
9b158ba0 34202011-07-18 Matt Rice <[email protected]>
3421
3422 PR macros/12999
3423 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3424 * macrotab.c (foreach_macro): Ditto.
3425 (foreach_macro_in_scope): Ditto.
3426 * macrocmd.c (print_macro_callback): New function.
3427 (info_macro_command): Move some code to print_macro_definition.
3428 (print_macro_definition): New function.
3429 (print_one_macro): Add new arguments to callback.
3430 (info_definitions_command): New function.
3431 (info_macros_command): Ditto.
3432 (_initialize_macrocmd): Add info macros and info definitions commands.
3433 * symtab.c (add_macro_name): Add new arguments to callback.
3434
d17b6f81
PM
34352011-07-21 Phil Muldoon <[email protected]>
3436 Tom Tromey <[email protected]>
3437
3438 * top.c (set_prompt): Rewrite to free previous prompt, free
3439 asynch_new_prompt and set both on new prompts.
3440 * event-top.c (display_gdb_prompt): Add prompt substitution
3441 logic.
3442 * python/python.c (before_prompt_hook): New function.
3443
1364323a 34442011-07-20 Matt Rice <[email protected]>
3445
3446 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3447 arguments to store_unsigned_integer.
3448
8b70b953
TT
34492011-07-20 Tom Tromey <[email protected]>
3450
6c83ed52
TT
3451 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3452 in some declaration-only cases.
3453
34542011-07-18 Tom Tromey <[email protected]>
3455
8b70b953
TT
3456 PR symtab/12984:
3457 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3458 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3459 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3460 <debug_type_section>: New field.
3461 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3462 (load_cu): Use appropriate section.
3463 (create_signatured_type_table_from_index): Add 'section'
3464 argument.
3465 (dwarf2_read_index): Only allow a single .debug_types section.
3466 (dw2_get_file_names): Use appropriate section.
3467 (read_type_comp_unit_head): Add 'section' argument.
3468 (create_debug_types_hash_table): Loop over all .debug_types
3469 sections.
3470 (init_cu_die_reader): Use appropriate section.
3471 (process_psymtab_comp_unit, load_partial_comp_unit)
3472 (load_full_comp_unit, read_die_and_children, find_partial_die)
3473 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3474 (lookup_signatured_type_at_offset): Add 'section' argument.
3475 (read_signatured_type_at_offset): Add 'sect' argument.
3476 (read_signatured_type): Use appropriate section.
3477 (set_die_type, get_die_type_at_offset): Update.
3478 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3479 VEC.
3480 (write_psymtabs_to_index): Don't allow index with more than one
3481 .debug_types section.
3482
918dd910
JK
34832011-07-19 Jan Kratochvil <[email protected]>
3484
3485 Fix crash if referenced CU is aged out.
3486 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3487 xfree of block.data.
3488 (indirect_pieced_value): New variable back_to, use to for xfree of
3489 baton.data.
3490 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3491 block.data.
3492 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3493 (load_cu): New function from ...
3494 (dw2_do_instantiate_symtab): ... the code here ...
3495 (process_full_comp_unit): ... and here.
3496 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3497 retval.data.
3498
0e37a63c
JK
34992011-07-19 Jan Kratochvil <[email protected]>
3500
3501 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3502 type.
3503
7e324e48
GB
35042011-07-19 Gary Benson <[email protected]>
3505
3506 * infrun.c (struct execution_control_state): New member
3507 stop_func_filled_in.
3508 (clear_stop_func, fill_in_stop_func): New functions.
3509 (handle_inferior_event): Call clear_stop_func rather than
3510 manipulating the execution control state directly.
3511 Call fill_in_stop_func lazily as required rather than
3512 directly calling find_pc_partial_function in all cases.
3513
d48323d8
TT
35142011-07-18 Tom Tromey <[email protected]>
3515
3516 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3517 checking for variable-sized array.
3518
40591b7d
JCD
35192011-07-18 Jean-Charles Delay <[email protected]>
3520
3521 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3522 of supported languages.
3523 * varobj.c: Add top definitions and basic implementation of the
3524 following callbacks: ada_number_of_children, ada_name_of_variable,
3525 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3526 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3527 (languages): Register Ada-specific callbacks.
3528 (variable_language): Add the Ada case in the language setter switch.
3529
2e424e08
JK
35302011-07-17 Jan Kratochvil <[email protected]>
3531
3532 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3533
9e8b7a03
JK
35342011-07-15 Jan Kratochvil <[email protected]>
3535
3536 Code cleanup.
3537 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3538 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3539 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3540 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3541 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3542 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3543 (struct dwarf_expr_context_funcs): New, move here methods from ...
3544 (struct dwarf_expr_context): ... here. New fields funcs.
3545 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3546 (dwarf_expr_ctx_funcs): New.
3547 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3548 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3549 (needs_frame_ctx_funcs): New.
3550 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3551
2b1260ab
FM
35522011-07-15 Fawzi Mohamed <[email protected]>
3553
3554 * MAINTAINERS (Write After Approval): Add myself to the list.
3555
8bd90839
FM
35562011-07-15 Fawzi Mohamed <[email protected]>
3557
3558 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3559 that CIE pointer of an FDE really points to a CIE .
3560
953b98d1
HZ
35612011-07-15 Hui Zhu <[email protected]>
3562
3563 * remote.c (remote_get_trace_status): Add comments.
3564
c8f2448a
JK
35652011-07-14 Jan Kratochvil <[email protected]>
3566
3567 Code cleanup - constify struct lval_funcs.
3568 * dwarf2loc.c (pieced_value_funcs): Make it const.
3569 * infrun.c (siginfo_value_funcs): Likewise.
3570 * opencl-lang.c (opencl_value_funcs): Likewise.
3571 * valops.c (value_assign, value_ind): Make the funcs variable const.
3572 * value.c (struct value): Make location.computed.funcs target const.
3573 Rearrange the comments.
3574 (allocate_computed_value): Make the funcs parameter target const.
3575 (value_computed_funcs): Return the funcs target const.
3576 (value_free, value_copy, set_value_component_location): Make the funcs
3577 variable const.
3578 * value.h (allocate_computed_value): Make the funcs parameter target
3579 const.
3580 (value_computed_funcs): Return the funcs target const.
3581 * windows-tdep.c (tlb_value_funcs): Make it const.
3582
f652de6f
HZ
35832011-07-14 Hui Zhu <[email protected]>
3584
3585 * remote.c (remote_get_trace_status): Initialize p.
3586
67f41397
JK
35872011-07-13 Jan Kratochvil <[email protected]>
3588
3589 Work around kgdb.
3590 * remote.c (remote_get_trace_status): New variable ex. Put
3591 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3592
d1b66e6d
TT
35932011-07-13 Tom Tromey <[email protected]>
3594
3595 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3596 value_from_contents for final conversion.
3597
1632a688
JK
35982011-07-13 Jan Kratochvil <[email protected]>
3599
3600 Code cleanup.
3601 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3602 Indent prototypes so they do not get into tags.
3603
a7035dbb
JK
36042011-07-12 Jan Kratochvil <[email protected]>
3605
3606 Code cleanup making also optimized out values lazy.
3607 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3608 allocate_optimized_out_value. Twice.
3609 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3610 * findvar.c (read_var_value): Likewise.
3611 * value.c (allocate_optimized_out_value): New function.
3612 * value.h (allocate_optimized_out_value): New declaration.
3613
d07ed419
JK
36142011-07-12 Jan Kratochvil <[email protected]>
3615
3616 Fix occasional crash of CTRL-C during DWARF read in.
3617 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3618
86d31898
TT
36192011-07-11 Tom Tromey <[email protected]>
3620
3621 * regcache.c (struct regcache_descr): Fix typo.
3622 * i387-tdep.c (i387_supply_xsave): Fix typo.
3623
2ab95328
TT
36242011-07-11 Tom Tromey <[email protected]>
3625
3626 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3627 (read_file_scope, read_type_unit_scope): Use it.
3628
04ad99e6
JK
36292011-07-11 Jan Kratochvil <[email protected]>
3630
3631 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3632 `int'.
3633
713389e0
PM
36342011-07-11 Phil Muldoon <[email protected]>
3635
3636 PR python/12438
3637 * python/python.c: Set gdbpy_should_print_stack default to off.
3638 (set_python): Deprecate maint set python print-stack to
3639 class_deprecate.
3640 (_initialize_python): Deprecate maint set/show python print-stack.
3641 Add new prefix command, python. Add new setting, print-backtrace.
3642 * NEWS: Document set python print-stack. Document default change.
3643
754eadd1
PM
36442011-07-11 Phil Muldoon <[email protected]>
3645
3646 * python/py-inferior.c (infpy_dealloc): New function.
3647 (inferior_to_inferior_object): Return a new object, or a
3648 new reference to the existing object.
3649 (find_thread_object): Cleanup references to inferior.
3650 (delete_thread_object): Ditto.
3651 * python/py-infthread.c (create_thread_object): Do not increment
3652 inferior reference count.
3653
5e44ecb3
TT
36542011-07-08 Tom Tromey <[email protected]>
3655
3656 * dwarf2loc.c (locexpr_regname): New function.
3657 (locexpr_describe_location_piece): Use it.
3658 (disassemble_dwarf_expression): Add per_cu argument. Use
3659 locexpr_regname.
3660 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3661 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3662 New cases.
3663 (locexpr_describe_location_1): Add per_cu argument.
3664 (locexpr_describe_location): Update.
3665 (loclist_describe_location): Update.
3666
e0e9434c
TT
36672011-07-08 Tom Tromey <[email protected]>
3668
3669 * dwarf2expr.c (execute_stack_op): Add QUIT.
3670
26afc0d7
HZ
36712011-07-07 Hui Zhu <[email protected]>
3672
3673 Revert:
3674 2011-07-06 Hui Zhu <[email protected]>
3675 * remote.c (remote_start_remote): Add TRY_CATCH for
3676 remote_get_trace_status.
3677 * tracepoint.c (disconnect_tracing): Ditto.
3678
a40a111f
AB
36792011-07-07 Andrew Burgess <[email protected]>
3680
3681 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3682 variables as signed, not unsigned.
3683
e2bd3b15
JB
36842011-07-06 Joel Brobecker <[email protected]>
3685
3686 * jit.c (jit_inferior_init): Reformat forward declaration.
3687
e3d961fe 36882011-07-06 Matt Rice <[email protected]>
3689
3690 * MAINTAINERS (Write After Approval): Add myself to the list.
3691
0f3428f0
HZ
36922011-07-06 Hui Zhu <[email protected]>
3693
3694 * remote.c (remote_start_remote): Add TRY_CATCH for
3695 remote_get_trace_status.
3696 * tracepoint.c (disconnect_tracing): Ditto.
3697
fc9f3a69
TT
36982011-07-05 Tom Tromey <[email protected]>
3699
3700 * symtab.c (operator_chars): Now static.
3701 * linespec.c (operator_chars): Don't declare.
3702
26e519b9
TJB
37032011-07-05 Thiago Jung Bauermann <[email protected]>
3704
3705 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3706
eb2a6f42
TT
37072011-07-05 Tom Tromey <[email protected]>
3708
3709 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3710 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3711 (TYPE_CPLUS_REALLY_JAVA): New macro.
3712 * dwarf2read.c (process_structure_scope): Set
3713 TYPE_CPLUS_REALLY_JAVA.
3714
21083d0f 37152011-07-05 Thiago Jung Bauermann <[email protected]>
177b42fe
TJB
3716
3717 * ada-lang.c: Fix typos.
3718 * amd64-tdep.c: Likewise.
3719 * breakpoint.c: Likewise.
3720 * cli/cli-decode.c: Likewise.
3721 * findcmd.c: Likewise.
3722 * inline-frame.c: Likewise.
3723 * mi/mi-main.c: Likewise.
3724 * minsyms.c: Likewise.
3725 * monitor.c: Likewise.
3726 * monitor.h: Likewise.
3727 * prologue-value.c: Likewise.
3728 * reverse.c: Likewise.
3729 * s390-tdep.c: Likewise.
3730
3b2a0cf2
JB
37312011-07-06 Paul Pluzhnikov <[email protected]>
3732
3733 * jit.c (jit_inferior_init): Forward declare.
3734 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3735
efae1d92
JB
37362011-07-04 Joel Brobecker <[email protected]>
3737
3738 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3739
6040a59d
JB
37402011-07-04 Tristan Gingold <[email protected]>
3741
3742 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3743 (tcb_fieldno): Add activation_link field.
3744 (get_known_tasks_addr): Moved and rewritten.
3745 (get_tcb_types_info): Set activation_link field.
3746 (read_known_tasks_array): Add parameter. Rewritten.
3747 (read_known_tasks_list): New function.
3748 (read_known_tasks): New function.
3749 (ada_build_task_list): Call read_known_tasks instead of
3750 read_known_tasks_array.
3751 * ravenscar-thread.c: Add first_task_name constant.
3752 (has_ravenscar_runtime): Check for task list too.
3753
cb741e45
JB
37542011-07-04 Tristan Gingold <[email protected]>
3755
3756 * ada-tasks.c: Renames fieldno to actb_fieldno.
3757 (ada_get_task_number): Indentation.
3758 (get_tcb_types_info): Remove all parameters. Write directly
3759 the globals.
3760 (ptid_from_atcb_common): Adjust.
3761 (read_atcb): Adjust.
3762
7475b06c
TJB
37632011-07-04 Thiago Jung Bauermann <[email protected]>
3764
3765 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3766
15230f37
TJB
37672011-07-04 Thiago Jung Bauermann <[email protected]>
3768
3769 * ui-out.c (ui_out_field_core_addr): Mention that the function
3770 description is in the header file.
3771 * ui-out.h (ui_out_field_core_addr): Document function.
3772
65743aba
TJB
37732011-07-04 Thiago Jung Bauermann <[email protected]>
3774
3775 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3776 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3777
c37a5aab
TJB
37782011-07-04 Thiago Jung Bauermann <[email protected]>
3779
3780 * symtab.c (expand_line_sal): Remove empty line.
3781
59adf69e
TS
37822011-07-04 Thomas Schwinge <[email protected]>
3783
3784 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3785 same way as ELFOSABI_NONE.
3786 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3787
e5dd4106
TJB
37882011-07-04 Thiago Jung Bauermann <[email protected]>
3789
3790 * breakpoint.c: Fix typos in comments.
3791 * linespec.c: Likewise.
3792 * symtab.c: Likewise.
3793
d40102a1
JB
37942011-07-04 Joel Brobecker <[email protected]>
3795
3796 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3797 section in separate object files.
3798
2f741504
JK
37992011-07-04 Jan Kratochvil <[email protected]>
3800
3801 Fix false GCC warning.
3802 * linespec.c (decode_line_1): Initialize values.
3803
418c7cf7
JK
38042011-07-01 Jan Kratochvil <[email protected]>
3805
3806 * linespec.c (find_method): Accept the function type automatically only
3807 if it was specified with parameter types.
3808
3d50dd94
JK
38092011-07-01 Jan Kratochvil <[email protected]>
3810
3811 Stop on first linespec terminator instead of eating what we can.
3812 * linespec.c (is_linespec_boundary): New function.
3813 (name_end): Remove function.
3814 (keep_name_info): New parameter on_boundary, replace the body.
3815 (decode_line_1): Provide the parameter to keep_name_info.
3816 (decode_compound): Likewise. Drop the trailing java return type
3817 handling. Twice.
3818
dcf9f4ab
JK
38192011-07-01 Jan Kratochvil <[email protected]>
3820
3821 Fall back linespec to minimal symbols.
3822 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3823 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3824 (find_method, symbol_found): Change error to cplusplus_error.
3825
3f542ed1
JK
38262011-07-01 Jan Kratochvil <[email protected]>
3827
bc68c4e5 3828 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3829
900e11f9
JK
38302011-07-01 Jan Kratochvil <[email protected]>
3831 Tom Tromey <[email protected]>
3832
3833 * dwarf2read.c (check_physname): New variable.
3834 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3835 (show_check_physname): New function.
3836 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3837
2301925d
JB
38382011-07-01 Joel Brobecker <[email protected]>
3839
3840 * machoread.c (macho_symfile_read): Delete OBE comment.
3841
38947cca
JB
38422011-07-01 Joel Brobecker <[email protected]>
3843
3844 * machoread.c (struct macho_oso_data): Delete.
3845 (current_oso): Delete.
3846 (macho_relocate_common_syms): New function, mostly extracted
3847 out of
3848 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3849 Remove code that sets and unset current_oso.
3850 (macho_symfile_relocate): Delete handling of common symbols,
3851 now moved to macho_relocate_common_syms.
3852
a7aa0d73
JB
38532011-07-01 Joel Brobecker <[email protected]>
3854
3855 * darwin-nat.c (darwin_ptrace): Add documentation.
3856 Set errno to zero before calling ptrace. If ptrace returns
3857 -1 and errno is zero, then change then return zero.
3858 (darwin_kill_inferior): Issue a warning instead of triggering
3859 a failed assertion when the PT_KILL ptrace operations returned
3860 nonzero.
3861
5e9bc145
JB
38622011-07-01 Joel Brobecker <[email protected]>
3863
3864 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3865 only when inf->private->no_ptrace.
3866
00eb2c4a
JB
38672011-07-01 Joel Brobecker <[email protected]>
3868
3869 * ada-lang.c (print_it_exception): Print temporary catchpoints
3870 as "Temporary catchpoint".
3871 (print_mention_exception): Likewise.
3872
127c81bc
TT
38732011-07-01 Tom Tromey <[email protected]>
3874
3875 * jv-lang.c (java_language_defn): Use java_printchar,
3876 java_printstr.
3877 (java_get_encoding): New function.
3878 (java_emit_char): Use generic_emit_char.
3879 (java_printchar): New function.
3880 (java_printstr): Likewise.
3881
25552254
JB
38822011-07-01 Joel Brobecker <[email protected]>
3883
3884 * ada-typeprint.c (print_record_type): If unable to decode
3885 the name of the parent type, use the encoded name.
3886
d2d43431
JB
38872011-07-01 Jean-Charles Delay <[email protected]>
3888
3889 * ada-typeprint.c (ada_print_type): Fix both PAD type and
3890 pointer to constrained packed array type output.
3891 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
3892 packed array output.
3893
54ae186f
JB
38942011-07-01 Jean-Charles Delay <[email protected]>
3895
3896 * ada-typeprint.c (print_array_type): removed if condition on show
3897 being negative for bounds printing.
3898
8f17729f
JB
38992011-07-01 Joel Brobecker <[email protected]>
3900
3901 * ada-lang.c (ada_identical_enum_types_p): New function.
3902 (symbols_are_identical_enums): New function.
3903 (remove_extra_symbols): Do nothing if NSYMS < 2.
3904 Use symbols_are_identical_enums.
3905
f5aa6869
JB
39062011-07-01 Joel Brobecker <[email protected]>
3907
3908 * ada-valprint.c (ada_value_print): Handle typedefs.
3909
8f465ea7
JB
39102011-07-01 Joel Brobecker <[email protected]>
3911
3912 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
3913
828292f2
JB
39142011-07-01 Eric Botcazou <[email protected]>
3915
3916 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
3917 (decode_constrained_packed_array): Likewise.
3918 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
3919
18920c42
JB
39202011-07-01 Joel Brobecker <[email protected]>
3921
3922 * ada-exp.y (convert_char_literal): Handle typedef types.
3923
c90092fe
JB
39242011-07-01 Joel Brobecker <[email protected]>
3925
3926 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
3927
f748fb40
TT
39282011-06-30 Tom Tromey <[email protected]>
3929
3930 * varobj.c (varobj_create): Call do_cleanups on early exit path.
3931 * valops.c (find_overload_match): Call do_cleanups on early exit
3932 path.
3933 * solib.c (solib_find): Call do_cleanups on early exit path.
3934
3bb47e8b
TT
39352011-06-30 Tom Tromey <[email protected]>
3936
3937 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
3938 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
3939 return paths. Defer final do_cleanups until last return.
3940 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
3941 early return.
3942
4727bad3
TT
39432011-06-30 Tom Tromey <[email protected]>
3944
3945 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
3946
bb361dbf
AB
39472011-06-30 Andrew Burgess <[email protected]>
3948
3949 * MAINTAINERS (Write After Approval): Add myself to the list.
3950
e0d00bc7
JK
39512011-06-29 Jan Kratochvil <[email protected]>
3952
3953 Disable epilogue unwinders on recent GCCs.
3954 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
3955 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3956 * dwarf2read.c (process_full_comp_unit): Initialize
3957 EPILOGUE_UNWIND_VALID.
3958 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
3959 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
3960 * symtab.h (struct symtab): New field epilogue_unwind_valid.
3961
4632c0d0
JK
39622011-06-29 Jan Kratochvil <[email protected]>
3963
3964 Code cleanup - reformatting.
3965 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
3966 (producer_is_gcc_ge_4): ... here, change the return value.
3967 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
3968 interpretation.
3969
32019081
JK
39702011-06-29 Jan Kratochvil <[email protected]>
3971
3972 Fix non-only rename list for Fortran modules import.
3973 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
3974 cp_add_using_directive caller.
3975 (cp_add_using_directive): New parameter excludes, describe it. New
3976 variables ix and param. Compare if also excludes match. Allocate NEW
3977 with variable size, initialize EXCLUDES there.
3978 (cp_lookup_symbol_imports): New variable excludep, test
3979 current->EXCLUDES with it.
3980 * cp-support.h: Include vec.h.
3981 (struct using_direct): New field excludes, describe it.
3982 (DEF_VEC_P (const_char_ptr)): New.
3983 (cp_add_using_directive): New parameter excludes.
3984 * defs.h (const_char_ptr): New typedef.
3985 * dwarf2read.c (read_import_statement): New variables child_die,
3986 excludes and cleanups, read in excludes.
3987 (read_namespace): Adjust the cp_add_using_directive caller.
3988
70c622a3
JK
39892011-06-29 Jan Kratochvil <[email protected]>
3990
3991 Code cleanup.
3992 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
3993 negative comparisons.
3994
39c4d40a
TT
39952011-06-29 André Pönitz <[email protected]>
3996
3997 * mi/mi-main.c (mi_cmd_list_features): Emit
3998 breakpoint-notifications.
3999
3b2b8fea
TT
40002011-06-29 Tom Tromey <[email protected]>
4001
4002 PR fortran/10036:
4003 * valprint.h (generic_emit_char, generic_printstr): Declare.
4004 * valprint.c (wchar_printable, append_string_as_wide)
4005 (print_wchar): Move from c-lang.c.
4006 (generic_emit_char): New function; mostly taken from c_emit_char.
4007 (generic_printstr): New function; mostly taken from c_printstr.
4008 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4009 represented as arrays.
4010 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4011 type.
4012 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4013 identically to TYPE_CODE_INT.
4014 * f-lang.c (f_get_encoding): New function.
4015 (f_emit_char): Use generic_emit_char.
4016 (f_printchar): Replace comment.
4017 (f_printstr): Use generic_printstr.
4018 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4019 "character" types specially.
4020 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4021 for Fortran.
4022 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4023 Move to valprint.c
4024 (c_emit_char): Call generic_emit_char.
4025 (c_printstr): Call generic_printstr.
4026
168e6d44
GB
40272011-06-29 Gary Benson <[email protected]>
4028
4029 * breakpoint.c (bpstat_what): Removed duplicated case.
4030
1c033f8c
TT
40312011-06-28 Tom Tromey <[email protected]>
4032
4033 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4034
5fe41fbf
TT
40352011-06-27 Tom Tromey <[email protected]>
4036
4037 * valops.c (find_overload_match): Call do_cleanups before early
4038 return.
4039 * top.c (execute_command): Call do_cleanups before early return.
4040 (command_loop): Likewise.
4041 * stack.c (backtrace_command): Make a null cleanup early. Don't
4042 conditionally call do_cleanups.
4043 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4044 TRY_CATCH.
4045 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4046 so cleanups are always run.
4047 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4048 * findcmd.c (parse_find_args): Call do_cleanups on early return
4049 path.
4050 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4051 Don't conditionally call do_cleanups.
4052 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4053 later.
4054
e26bd57d
EB
40552011-06-27 Eric Botcazou <[email protected]>
4056
4057 * MAINTAINERS (Write After Approval): Use default email address.
4058
6c3097fc
JB
40592011-06-27 Joel Brobecker <[email protected]>
4060
4061 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4062
369c397b
JB
40632011-06-27 Eric Botcazou <[email protected]>
4064
4065 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4066 saved_regs_mask and copied_regs_mask fields.
4067 (sparc_record_save_insn): New prototype.
4068 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4069 (sparc_record_save_insn): New function.
4070 (sparc_analyze_prologue): Add head comment. Recognize store insns
4071 of call-saved registers. Use OFFSET consistently. Recognize flat
4072 frames and cache their settings.
4073 (sparc32_skip_prologue): Handle flat frames.
4074 (sparc_frame_cache): Add frame_offset to the base address.
4075 (sparc32_frame_cache): Adjust to new frame description.
4076 (sparc32_frame_prev_register): Likewise.
4077 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4078 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4079 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4080 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4081 frame by calling sparc_record_save_insn.
4082 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4083 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4084 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4085
b315ab21
TG
40862011-06-27 Tristan Gingold <[email protected]>
4087
4088 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4089 field by map_addr and map_len.
4090 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4091 (munmap_section_buffer): Likewise.
4092
ddd49eee
TT
40932011-06-24 Tom Tromey <[email protected]>
4094
4095 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4096 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4097 * python/python.c (gdbpy_parameter): Make 'arg' const.
4098 (execute_gdb_command): Likewise.
4099 (gdbpy_decode_line): Likewise. Copy it.
4100 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4101 (gdbpy_write): Make 'arg' const.
4102 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4103 const.
4104 (gdbpy_lookup_type): Likewise.
4105 * python/py-prettyprint.c (print_children): Make 'name' const.
4106 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4107 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4108 Py_ssize_t.
4109 * python/py-function.c (fnpy_init): Make 'name' const.
4110 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4111 (gdbpy_string_to_argv): Make 'input' const.
4112 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4113 it.
4114 * gdbtypes.h (lookup_typename): Update.
4115 * gdbtypes.c (lookup_typename): Make 'name' const.
4116 (lookup_struct): Likewise.
4117 (lookup_union): Likewise.
4118 (lookup_enum): Likewise.
4119
5998129b
TT
41202011-06-24 Tom Tromey <[email protected]>
4121
4122 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4123 gdb_thread_db.h. Move all common/ entries to be together.
4124 (TAGS): Don't depend on DEPFILES.
4125
6e586cc5
YQ
41262011-06-23 Yao Qi <[email protected]>
4127
4128 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4129 * remote.c (remote_start_remote): ... here.
4130 * monitor.c (monitor_open): ... here.
4131
86c3c1fc
AB
41322011-06-23 Andrew Burgess <[email protected]>
4133
4134 * gdbtypes.c (append_composite_type_field_aligned): Fix
4135 calculation of bit position based on alignment.
4136
28010a5d
PA
41372011-06-22 Pedro Alves <[email protected]>
4138
4139 * breakpoint.c (bpstat_stop_status): Call the check_status
4140 breakpoint_ops method.
4141 (print_one_breakpoint_location): Also print the condition for Ada
4142 exception catchpoints.
4143 (allocate_bp_location): New, factored out from
4144 allocate_bp_location.
4145 (allocate_bp_location): Adjust. Call the owner breakpoint's
4146 allocate_location method, if there is one.
4147 (free_bp_location): Call the locations's dtor method, if there is
4148 one.
4149 (init_raw_breakpoint_without_location): New breakpoint_ops
4150 parameter. Use it.
4151 (set_raw_breakpoint_without_location): Adjust.
4152 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4153 (set_raw_breakpoint): Adjust.
4154 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4155 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4156 re_set and check_status methods.
4157 (init_catchpoint): Don't memset, initialize thread, addr_string
4158 and enable_state. Pass the ops down to init_raw_breakpoint.
4159 (install_catchpoint): Rename to ...
4160 (install_breakpoint): ... this, and make extern.
4161 (create_fork_vfork_event_catchpoint): Adjust.
4162 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4163 re_set and check_status methods.
4164 (create_syscall_event_catchpoint): Adjust.
4165 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4166 (masked_watchpoint_breakpoint_ops): Install NULL
4167 allocate_location, re_set and check_status methods.
4168 (catch_exec_command_1): Adjust.
4169 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4170 re_set and check_status methods.
4171 (create_ada_exception_breakpoint): Rename to ...
4172 (init_ada_exception_breakpoint): ... this. Add a struct
4173 breakpoint parameter, and delete the exp_string, cond_string and
4174 cond parameters. Use init_raw_breakpoint, and don't install or
4175 mention the breakpoint yet. Don't clear breakpoint fields that
4176 init_raw_breakpoint already clears.
4177 (re_set_breakpoint): Delete, split into ...
4178 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4179 functions.
4180 (breakpoint_re_set_one): Call the breakpoint's
4181 breakpoint_ops->re_set implementation, if there's one. Adjust.
4182 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4183 (struct bp_location_ops): New type.
4184 (struct bp_location): New field `ops'.
4185 (struct breakpoint_ops): New `allocate_location', `re_set' and
4186 `check_status' fields. Make `breakpoint_hit''s description match
4187 reality.
4188 (init_bp_location): Declare.
4189 (breakpoint_re_set_default): Declare.
4190 (create_ada_exception_breakpoint): Rename to ...
4191 (init_ada_exception_breakpoint): ... this. Add a struct
4192 breakpoint parameter, and delete the exp_string, cond_string and
4193 cond parameters.
4194 (install_breakpoint): Declare.
4195 * ada-lang.c: Include exceptions.h.
4196 <Ada exceptions description>: Update.
4197 (struct ada_catchpoint_location): New type.
4198 (ada_catchpoint_location_dtor): New function.
4199 (ada_catchpoint_location_ops): New global.
4200 (ada_catchpoint): New type.
4201 (create_excep_cond_exprs): New function.
4202 (dtor_exception, allocate_location_exception, re_set_exception)
4203 (should_stop_exception, check_status_exception): New functions.
4204 (print_one_exception, print_mention_exception)
4205 (print_recreate_exception): Adjust.
4206 (dtor_catch_exception, allocate_location_catch_exception)
4207 (re_set_catch_exception, check_status_catch_exception): New
4208 functions.
4209 (catch_exception_breakpoint_ops): Install them.
4210 (dtor_catch_exception_unhandled)
4211 (allocate_location_catch_exception_unhandled)
4212 (re_set_catch_exception_unhandled)
4213 (check_status_catch_exception_unhandled): New functions.
4214 (catch_exception_unhandled_breakpoint_ops): Install them.
4215 (dtor_catch_assert, allocate_location_catch_assert)
4216 (re_set_catch_assert, check_status_catch_assert): New functions.
4217 (catch_assert_breakpoint_ops): Install them.
4218 (ada_exception_catchpoint_p): Delete.
4219 (catch_ada_exception_command_split)
4220 (ada_exception_catchpoint_cond_string): Rename exp_string
4221 parameter to excep_string. Adjust.
4222 (ada_parse_catchpoint_condition): Delete.
4223 (ada_exception_sal): Rename the exp_string parameter to
4224 excep_string. Delete the cond_string and cond parameters.
4225 Adjust.
4226 (ada_decode_exception_location): Rename the exp_string parameter
4227 to excep_string. Delete the cond_string and cond parameters.
4228 Adjust.
4229 (create_ada_exception_catchpoint): New function.
4230 (catch_ada_exception_command, ada_decode_assert_location)
4231 (catch_assert_command): Adjust.
4232 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4233
9ac4176b
PA
42342011-06-22 Pedro Alves <[email protected]>
4235
4236 * ada-lang.c: Include arch-utils.h.
4237 (ada_decode_exception_location): Make static.
4238 (catch_ada_exception_command): Moved here from breakpoint.c.
4239 (ada_decode_assert_location): Make static.
4240 (catch_assert_command): Moved here from breakpoint.c.
4241 (_initialize_ada_lang): Install the exception and assert
4242 catchpoint commands here.
4243 * ada-lang.h (ada_decode_exception_location)
4244 (ada_decode_assert_location): Delete declarations.
4245 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4246 breakpoint.h.
4247 (create_ada_exception_breakpoint): Make extern.
4248 (catch_ada_exception_command, catch_assert_command): Moved to
4249 ada-lang.c.
4250 (add_catch_command): Make extern.
4251 (_initilize_breakpoint): Don't install the exception and assert
4252 catchpoint commands here.
4253 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4254 breakpoint.c
4255 (add_catch_command, create_ada_exception_breakpoint): Declare.
4256
c56053d2
PA
42572011-06-22 Pedro Alves <[email protected]>
4258
4259 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4260 the breakpoint to the breakpoint chain here.
4261 (set_raw_breakpoint_without_location): Add the breakpoint to the
4262 breakpoint chain here.
4263 (init_raw_breakpoint): Adjust comments.
4264 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4265 here.
4266 (init_catchpoint): Don't set the catchpoint's breakpoint number
4267 here.
4268 (install_catchpoint): New function.
4269 (create_fork_vfork_event_catchpoint)
4270 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4271 use install_catchpoint.
4272
d2f3fc74
PA
42732011-06-22 Pedro Alves <[email protected]>
4274
4275 * breakpoint.c (create_catchpoint_without_mention)
4276 (create_catchpoint): Delete.
4277
b4d90040
PA
42782011-06-22 Pedro Alves <[email protected]>
4279
4280 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4281 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4282 reference to exec_pathname.
4283 (struct exec_catchpoint): New type.
4284 (dtor_catch_exec): New function.
4285 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4286 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4287 (catch_exec_command_1): Adjust to use init_catchpoint.
4288 (delete_breakpoint): Remove reference to exec_pathname.
4289
be5c67c1
PA
42902011-06-22 Pedro Alves <[email protected]>
4291
4292 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4293 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4294 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4295 reference to syscalls_to_be_caught.
4296 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4297 NULL `dtor'.
4298 (struct syscall_catchpoint): New type.
4299 (dtor_catch_syscall): New function.
4300 (insert_catch_syscall, remove_catch_syscall)
4301 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4302 (print_recreate_catch_syscall): Adjust.
4303 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4304 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4305 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4306 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4307 (masked_watchpoint_breakpoint_ops)
4308 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4309 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4310 there is one. Remove references to syscalls_to_be_caught.
4311 (catching_syscall_number): Adjust.
4312 * ada-lang.c (catch_exception_breakpoint_ops)
4313 (catch_exception_unhandled_breakpoint_ops)
4314 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4315
e29a4733
PA
43162011-06-22 Pedro Alves <[email protected]>
4317
4318 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4319 field.
4320 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4321 reference to forked_inferior_pid.
4322 (struct fork_catchpoint): New type.
4323 (breakpoint_hit_catch_fork, print_it_catch_fork)
4324 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4325 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4326 (create_fork_vfork_event_catchpoint): Adjust to use
4327 init_catchpoint.
4328
346774a9
PA
43292011-06-22 Pedro Alves <[email protected]>
4330
4331 * breakpoint.c (add_to_breakpoint_chain)
4332 (init_raw_breakpoint_without_location): New functions, factored
4333 out from ...
4334 (set_raw_breakpoint_without_location): ... this one.
4335 (init_raw_breakpoint): New function, factored out from
4336 set_raw_breakpoint and adjusted to use
4337 init_raw_breakpoint_without_location.
4338 (set_raw_breakpoint): Adjust.
4339 (init_catchpoint): New function, factored out from
4340 create_catchpoint_without_mention and adjusted to use
4341 init_raw_breakpoint.
4342 (create_catchpoint_without_mention): Adjust.
4343
c38c4bc5
TT
43442011-06-22 Tom Tromey <[email protected]>
4345
4346 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4347 argument of 0 specially.
4348
b138ce37
YQ
43492011-06-22 Yao Qi <[email protected]>
4350
4351 * infrun.c (handle_inferior_event): Remove write-only local variable
4352 `sw_single_step_trap_p'.
4353
03de6823
TT
43542011-06-20 Tom Tromey <[email protected]>
4355
4356 * symtab.c (lookup_language_this): End loop if block is NULL.
4357
66a17cb6
TT
43582011-06-17 Tom Tromey <[email protected]>
4359
4360 * valops.c (value_of_this): Use lookup_language_this.
4361 * symtab.h (lookup_language_this): Declare.
4362 * symtab.c (lookup_language_this): New function.
4363 (lookup_symbol_aux): Use lookup_language_this.
4364 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4365
7518bff5
TT
43662011-06-17 Tom Tromey <[email protected]>
4367
4368 * value.h (value_of_this): Update.
4369 (value_of_local): Remove.
4370 * valops.c (value_of_this): Rename from value_of_local. Change
4371 parameters.
4372 * p-exp.y (exp): Update.
4373 (variable): Likewise.
4374 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4375
aee28ec6
TT
43762011-06-17 Tom Tromey <[email protected]>
4377
4378 * valops.c (value_of_local): Complain if NAME is NULL.
4379 * std-operator.def (OP_OBJC_SELF): Remove.
4380 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4381 * objc-exp.y (name_not_typename): Use OP_THIS.
4382 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4383 name for "this".
4384 <OP_OBJC_SELF>: Remove.
4385 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4386
eed8f803
TG
43872011-06-16 Tristan Gingold <[email protected]>
4388
4389 * python/py-events.h (gdb_py_events): Make it extern.
4390 * python/py-evtregistry.c (gdb_py_events): Declare.
4391
864ac8a7
HZ
43922011-06-16 Hui Zhu <[email protected]>
4393
4394 * remote.c (remote_trace_set_readonly_regions): Add check for
4395 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4396 output warning.
4397
ef7e8358
UW
43982011-06-15 Ulrich Weigand <[email protected]>
4399
4400 * arm-linux-tdep.c: Include "auxv.h".
4401 (AT_HWCAP): Define.
4402 (ARM_LINUX_SIZEOF_VFP): Define.
4403 (arm_linux_supply_vfp): New function.
4404 (arm_linux_collect_vfp): Likewise.
4405 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4406 (arm_linux_fpa_regset_sections): New variable.
4407 (arm_linux_vfp_regset_sections): Likewise.
4408 (arm_linux_core_read_description): New function.
4409 (arm_linux_init_abi): Install arm_linux_core_read_description and
4410 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4411 appropriate for the architecture.
4412 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4413 (tdesc_arm_with_m): Declare.
4414 (tdesc_arm_with_iwmmxt): Likewise.
4415 (tdesc_arm_with_vfpv2): Likewise.
4416 (tdesc_arm_with_vfpv3): Likewise.
4417 (tdesc_arm_with_neon): Likewise.
4418 * arm-linux-nat.c: Move features/*.c includes ...
4419 * arm-tdep.c: ... here.
4420 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4421 target description data structures ...
4422 * arm-tdep.c (_initialize_arm_tdep): ... here.
4423 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4424 HWCAP_VFPv3D16): Move definitions ...
4425 * arm-linux-tdep.h: ... here.
4426
c2fa21f1
HZ
44272011-06-15 Hui Zhu <[email protected]>
4428
4429 * remote.c (remote_trace_set_readonly_regions): Add a check for
4430 target_buf_size.
4431
dd707e8e
TT
44322011-06-14 Tom Tromey <[email protected]>
4433
4434 * coffread.c (coffread_objfile): Rename from current_objfile.
4435 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4436 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4437
86cc0029
TT
44382011-06-14 Tom Tromey <[email protected]>
4439
4440 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4441 (class_symtab): Remove.
4442 (jv_dynamics_progspace_key): New global.
4443 (jv_per_objfile_free): Reset program space data. Update assert.
4444 Don't clear globals.
4445 (get_dynamics_objfile): Use and set program space data.
4446 (get_java_class_symtab): Use get_dynamics_objfile.
4447 (add_class_symbol): Likewise.
4448 (java_link_class_type): Likewise.
4449 (java_object_type, jv_clear_object_type, set_java_object_type):
4450 Remove.
4451 (get_java_object_type): Update. Don't cache result.
4452 (is_object_type): Don't call set_java_object_type.
4453 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4454 initialize jv_dynamics_progspace_key.
4455
91a81f69
TT
44562011-06-14 Tom Tromey <[email protected]>
4457
4458 * symtab.h (current_objfile): Don't declare.
4459 * objfiles.h (current_objfile): Don't declare.
4460 * objfiles.c (current_objfile): Remove.
4461 * mdebugread.c (current_objfile): New file-scope global.
4462 * dbxread.c (current_objfile): New file-scope global.
4463 * coffread.c (current_objfile): New file-scope global.
4464
dc7eb48e
PA
44652011-06-13 Pedro Alves <[email protected]>
4466
4467 * top.h (line): Rename to ...
4468 (saved_command_line): ... this.
4469 (linesize): Rename to ...
4470 (saved_command_line_size): ... this.
4471 * top.c (line): Rename to ...
4472 (saved_command_line): ... this.
4473 (linesize): Rename to ...
4474 (saved_command_line_size): ... this.
4475 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4476 * event-top.c (command_line_handler): Adjust.
4477 * main.c (captured_main): Adjust.
4478
0d6c2135
MK
44792011-06-12 Mark Kettenis <[email protected]>
4480
4481 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4482 get_frame_func instead of get_frame_pc to determine the code
4483 address used to construct the frame ID.
4484 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4485 (i386_epilogue_frame_this_id): Likewise.
4486 (i386_epilogue_frame_prev_register): New function.
4487 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4488 (i386_stack_tramp_frame_sniffer): Fix coding style.
4489 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4490 (i386_gdbarch_init): Fix comments.
4491
8bbdd3f4
MK
44922011-06-12 Mark Kettenis <[email protected]>
4493
4494 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4495 instruction when walking back through the instruction stream.
4496
533a737e
JK
44972011-06-10 Jan Kratochvil <[email protected]>
4498
4499 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4500 fullname parameters order.
4501
44b13c5a
JK
45022011-06-10 Jan Kratochvil <[email protected]>
4503
4504 Code cleanup.
4505 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4506 for fun.
4507 * psymtab.c (map_symbol_filenames_psymtab)
4508 (map_partial_symbol_filenames): Likewise.
4509 * psymtab.h: Include symfile.h.
4510 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4511 * symfile.h (symbol_filename_ftype): New.
4512 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4513 map_symbol_filenames, clarify more the naming in comment.
4514
0b5574da
DE
45152011-06-07 Doug Evans <[email protected]>
4516
4517 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4518 Look for ../../gdb, for fullname.exp.
0b5574da 4519
5be4dfca
JK
45202011-06-07 Jan Kratochvil <[email protected]>
4521 Pedro Alves <[email protected]>
4522
4523 * cli/cli-cmds.c (shell_escape): Use waitpid.
4524 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4525
316a8b21
TG
45262011-06-07 Tristan Gingold <[email protected]>
4527
4528 * xcoffread.c (dwarf2_xcoff_names): New variable.
4529 (aix_process_linenos): Add a guard.
4530 (xcoff_symfile_finish): Free dwarf2.
4531 (xcoff_initial_scan): Add dwarf2 support.
4532
3dd5b83d
PA
45332011-06-06 Pedro Alves <[email protected]>
4534
4535 * infcall.c (run_inferior_call): Don't mask async. Instead force
4536 a synchronous wait, if the target can async.
4537
4538 * target.h (struct target_ops): Delete to_async_mask.
4539 (target_async_mask): Delete.
4540 * target.c (update_current_target): Delete references to to_async_mask.
4541 * linux-nat.c (linux_nat_async_mask_value): Delete.
4542 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4543 to linux_nat_async_mask_value.
4544 (linux_nat_async_mask): Delete.
4545 (linux_nat_async, linux_nat_close): Remove references to
4546 linux_nat_async_mask_value.
4547 * record.c (record_async_mask_value): Delete.
4548 (record_async): Remove references to record_async_mask_value.
4549 (record_async_mask): Delete.
4550 (record_can_async_p, record_is_async_p): Remove references to
4551 record_async_mask_value.
4552 (init_record_ops, init_record_core_ops): Remove references to
4553 record_async_mask.
4554 * remote.c (remote_async_mask_value): Delete.
4555 (init_remote_ops): Remove reference to remote_async_mask.
4556 (remote_can_async_p, remote_is_async_p): Remove references to
4557 remote_async_mask_value.
4558 (remote_async): Remove references to remote_async_mask_value.
4559 (remote_async_mask): Delete.
4560
4561 * infrun.c (fetch_inferior_event): Don't claim registers changed
4562 if the current thread is already not executing.
4563
64b9b334
JB
45642011-06-03 Joel Brobecker <[email protected]> (obvious fix)
4565
4566 From Stephen Kitt <[email protected]>
4567 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4568 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4569
325663dc
JB
45702011-06-03 Joel Brobecker <[email protected]>
4571
4572 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4573 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4574
8cf64490
TT
45752011-06-03 Tom Tromey <[email protected]>
4576
4577 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4578 code fields.
4579 * python/py-exitedevent.c (create_exited_event_object): Change
4580 type of 'exit_code'. Optionally add exit_code attribute.
4581 (emit_exited_event): Change type of 'exit_code'.
4582 * python/py-event.h (emit_exited_event): Update.
4583 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4584 * infrun.c (handle_inferior_event): Set exit code fields on
4585 inferior.
4586 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4587 fields.
4588 * inferior.c (exit_inferior_1): Initialize new fields.
4589
8ddd9a20
TT
45902011-06-03 Tom Tromey <[email protected]>
4591
4592 * dwarf2expr.c (get_signed_type): New function.
4593 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4594
8dfd1e6d
KS
45952011-06-02 Keith Seitz <[email protected]>
4596
4597 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4598
65fdb766
PA
45992011-06-02 Pedro Alves <[email protected]>
4600
4601 * top.h (simplified_command_loop): Delete declaration.
4602
f4b8c29b
MF
46032011-06-01 Mike Frysinger <[email protected]>
4604
4605 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4606 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4607
1706c199
YQ
46082011-06-01 Yao Qi <[email protected]>
4609
4610 * objfiles.h (obj_section_addr): Update reference to objfile from
4611 `abfd' to `obfd'.
4612 (obj_section_endaddr): Likewise.
4613
d19cd713 46142011-06-01 Daniel Jacobowitz <[email protected]>
8d07004d
DJ
4615
4616 * MAINTAINERS: Update my email address and affiliation. Also
4617 update Ian Lance Taylor's affiliation. Use UTF-8 for [email protected].
4618
e8eb7bc5
KS
46192010-05-31 Keith Seitz <[email protected]>
4620
4621 PR c++/12750
4622 * linespec.c (get_search_block): New function.
4623 (find_methods): Add FILE_SYMTATB parameter and use it and
4624 get_search_block to pass an appropriate block to
4625 lookup_symbol_in_namespace.
4626 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4627 Check if *ARGPTR starts with a filename first.
4628 If it does, call locate_first_half again to locate the next
4629 "first half" of the linespec.
4630 Pass FILE_SYMTATB to decode_objc and decode_compound.
4631 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4632 (locate_first_half): Stop on the first colon seen.
4633 (decode_compound): Add FILE_SYMTAB parameter.
4634 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4635 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4636 get_search_block with lookup_symbol.
4637 (find_method): Add FILE_SYMTAB parameter and pass it to
4638 find_methods.
4639 (decode_objc): Use get_search_block.
4640
2b1dbab0
KS
46412010-05-31 Keith Seitz <[email protected]>
4642
4643 PR symtab/12704
4644 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4645 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4646 and CP_ANONYMOUS_NAMESPACE_LEN.
4647 (cp_is_anonymous): Likewise.
4648 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4649 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4650 * dwarf2read.c (namespace_name): Likewise.
4651 (fixup_partial_die): Likewise.
4652 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4653 seen in the input, keep it.
4654
6d549500
PA
46552011-05-30 Pedro Alves <[email protected]>
4656
4657 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4658 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4659 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4660 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4661 * remote.c (_initialize_remote): Register
4662 async_remote_interrupt_twice directly as
4663 sigint_remote_twice_token event.
4664
395bff70
PA
46652011-05-30 Pedro Alves <[email protected]>
4666
4667 * target.h (enum inferior_event_type): Delete INF_ERROR.
4668 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4669
97224164
PA
46702011-05-30 Pedro Alves <[email protected]>
4671
4672 * interps.c (interp_set): Don't cancel continuations.
4673
07e78767
JK
46742011-05-30 Jan Kratochvil <[email protected]>
4675
4676 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4677
fa4cd53f
PA
46782011-05-30 Pedro Alves <[email protected]>
4679
4680 * continuations.h (continuation_ftype): Add `err' parameter.
4681 Document parameters.
4682 (do_all_continuations, do_all_continuations_thread)
4683 (do_all_intermediate_continuations)
4684 (do_all_intermediate_continuations_thread)
4685 (do_all_inferior_continuations): Add `err' parameter.
4686 * continuations.c (do_my_continuations_1, do_my_continuations)
4687 (do_all_inferior_continuations, do_all_continuations_ptid)
4688 (do_all_continuations_thread_callback)
4689 (do_all_continuations_thread, do_all_continuations)
4690 (do_all_intermediate_continuations_thread_callback)
4691 (do_all_intermediate_continuations_thread)
4692 (do_all_intermediate_continuations): Add `err' parameter, and pass
4693 it down all the way to the continuations proper.
4694 * inf-loop.c (inferior_event_handler): If fetching an inferior
4695 event throws an error, don't pop the target, and still call the
4696 continuations, but with `err' set. Adjust all other continuation
4697 calls.
4698 * breakpoint.c (until_break_command_continuation): Add `err'
4699 parameter.
4700 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4701 issue another step if `err' is set.
4702 (struct until_next_continuation_args): New.
4703 (until_next_continuation): Add `err' parameter. Adjust.
4704 (until_next_command): Adjust.
4705 (struct finish_command_continuation_args): Add `thread' field.
4706 (finish_command_continuation): Add `err' parameter. Handle it.
4707 (finish_forward): Adjust.
4708 (attach_command_continuation): Add `err' parameter. Handle it.
4709 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4710 cancel the continuations.
4711 * interps.c (interp_set): Adjust to cancel the continuations.
4712 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4713 continuations rather than discarding.
4714 (free_thread): Don't clear thread inferior resources here.
4715 (delete_thread_1): Do it here instead. And do it before removing
4716 the thread from the threads list. Tag the thread as exited before
4717 clearing thread inferior resources.
4718
c2949be0
JB
47192011-05-30 Joel Brobecker <[email protected]>
4720
4721 * infcall.c (call_function_by_hand): Rephrase error message.
4722
619cebe8
PA
47232011-05-27 Pedro Alves <[email protected]>
4724
4725 * defs.h (struct thread_info, struct inferior): Delete forward
4726 declarations.
4727 * breakpoint.h (struct thread_info): New forward declaration.
4728 * observer.sh (struct inferior): New forward declaration.
4729 * python/python-internal.h (struct inferior): New forward
4730 declaration.
4731
be34f849
PA
47322011-05-27 Pedro Alves <[email protected]>
4733
4734 * defs.h (struct continuation, continuation_ftype)
4735 (continuation_free_arg_ftype, add_continuation)
4736 (do_all_continuations, do_all_continuations_thread)
4737 (discard_all_continuations, discard_all_continuations_thread)
4738 (add_intermediate_continuation, do_all_intermediate_continuations)
4739 (do_all_intermediate_continuations_thread)
4740 (discard_all_intermediate_continuations)
4741 (discard_all_intermediate_continuations_thread)
4742 (add_inferior_continuation, do_all_inferior_continuations)
4743 (discard_all_inferior_continuations): Move to ...
4744 * continuations.h: ... this new file.
4745 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4746 infcmd.c, inferior.c, infrun.c, interps.c: Include
4747 continuations.h.
4748
432b4d03
JK
47492011-05-27 Jan Kratochvil <[email protected]>
4750 Doug Evans <[email protected]>
4751
4752 Fix PR 10970, PR 12702.
4753 * linux-nat.c (linux_lwp_is_zombie): New function.
4754 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4755 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4756
b0f260d6
PA
47572011-05-27 Pedro Alves <[email protected]>
4758
4759 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4760 typedefs.
4761 (add_continuation, add_intermediate_continuation)
4762 (add_inferior_continuation): Use them.
4763 * continuations.c (struct continuation): Use them.
4764 (make_continuation_ftype): Delete.
4765 (make_continuation, add_inferior_continuation, add_continuation)
4766 (add_intermediate_continuation): Use continuation_ftype and
4767 continuation_free_arg_ftype. Rename parameters to shorter names.
4768
af1e9a32
PA
47692011-05-27 Pedro Alves <[email protected]>
4770
4771 * continuations.c (make_continuation): Make it return void.
4772 (do_my_continuations): Rename to ...
4773 (do_my_continuations_1): ... this. Remove old_chain parameter and
4774 adjust.
4775 (do_my_continuations): New.
4776 (discard_my_continuations): Rename to ...
4777 (discard_my_continuations_1): ... this. Remove old_chain
4778 parameter and adjust.
4779 (discard_my_continuations): New.
4780 (add_inferior_continuation): Simplify.
4781 (do_all_inferior_continuations): Reimplement on top
4782 do_my_continuations.
4783 (discard_all_inferior_continuations): Simplify.
4784 (add_continuation): Simplify.
4785 (do_all_continuations_ptid): Simplify.
4786 (discard_all_continuations_thread_callback): Simplify.
4787 (add_intermediate_continuation): Simplify.
4788 (discard_all_intermediate_continuations_thread_callback):
4789 Simplify.
4790
50c0c017
PA
47912011-05-27 Pedro Alves <[email protected]>
4792
4793 * utils.c (struct continuation, add_continuation)
4794 (add_inferior_continuation)
4795 (do_all_inferior_continuations, discard_all_inferior_continuations)
4796 (restore_thread_cleanup, do_all_continuations_ptid)
4797 (do_all_continuations_thread_callback)
4798 (do_all_continuations_thread, do_all_continuations)
4799 (discard_all_continuations_thread_callback)
4800 (discard_all_continuations_thread, discard_all_continuations)
4801 (add_intermediate_continuation)
4802 (do_all_intermediate_continuations_thread_callback)
4803 (do_all_intermediate_continuations_thread)
4804 (do_all_intermediate_continuations)
4805 (discard_all_intermediate_continuations_thread_callback)
4806 (discard_all_intermediate_continuations_thread)
4807 (discard_all_intermediate_continuations): Move to ...
4808 * continuations.c: ... this new file, and adjust to no longer
4809 implement continuations on top of cleanups.
4810 * Makefile.in (SFILES): Add continuations.c.
4811 (COMMON_OBS): Add continuations.o.
4812
d8b34453
PA
48132011-05-26 Pedro Alves <[email protected]>
4814
4815 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4816 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4817 Internal error on invalid values.
4818 * reverse.c: Don't handle EXEC_ERROR.
4819 * mi/mi-main.c: Don't handle EXEC_ERROR.
4820
32231432
PA
48212011-05-26 Pedro Alves <[email protected]>
4822
4823 * record.c: Include event-loop.h, inf-loop.h.
4824 (record_beneath_to_async): New global.
4825 (tmp_to_async): New global.
4826 (record_async_inferior_event_token): New global.
4827 (record_open_1): Don't error out if async is enabled.
4828 (record_open): Handle to_async. Create an async event source in
4829 the event loop.
4830 (record_close): Delete the async event source.
4831 (record_resumed): New global.
4832 (record_execution_dir): New global.
4833 (record_resume, record_core_resume): Set them. Register the
4834 target on the event loop.
4835 (record_wait): Rename to ...
4836 (record_wait_1): ... this. Add more debug output. Handle
4837 TARGET_WNOHANG, and the target beneath returning
4838 TARGET_WAITKIND_IGNORE.
4839 (record_wait): Reimplement on top of record_wait_1.
4840 (record_async_mask_value): New global.
4841 (record_async, record_async_mask, record_can_async_p)
4842 (record_is_async_p, record_execution_direction): New functions.
4843 (init_record_ops, init_record_core_ops): Install new methods.
4844 * infrun.c (fetch_inferior_event): Temporarily switch the global
4845 execution direction to the direction the target was going.
4846 (execution_direction): Change type to int.
4847 * target.c (default_execution_direction): New function.
4848 (update_current_target): Inherit and de_fault
4849 to_execution_direction.
4850 * target.h (struct target_ops) <to_execution_direction>: New
4851 field.
4852 (target_execution_direction): New macro.
4853 * inferior.h (execution_direction): Change type to int.
4854
949dc678
PA
48552011-05-26 Pedro Alves <[email protected]>
4856
4857 * infcall.c (call_function_by_hand): Don't allow calling functions
4858 in reverse execution mode.
4859
c13bd2b5
PA
48602011-05-26 Pedro Alves <[email protected]>
4861
4862 * infcmd.c (finish_command): Allow async finish in reverse.
4863
6938fd34
YQ
48642011-05-26 Yao Qi <[email protected]>
4865
4866 * gdb_thread_db.h: Delete. Move to ...
4867 * common/gdb_thread_db.h: ... here.
4868
9da8c2a0
PA
48692011-05-26 Pedro Alves <[email protected]>
4870
4871 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4872 function's entry point instead of a manually managed momentary
4873 breakpoint, and only ever issue one proceed call.
4874 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4875 doing a reverse-finish, switch to stepi mode, to do another step.
4876 (insert_step_resume_breakpoint_at_sal): Make public.
4877 (normal_stop): No need to save function value return registers if
4878 going reverse.
4879 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4880
2c03e5be
PA
48812011-05-26 Pedro Alves <[email protected]>
4882
4883 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4884 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
4885 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
4886 at the end.
4887 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
4888 step-resume breakpoints.
4889 (print_it_typical): Handle bp_hp_step_resume.
4890 (bpstat_what): Ditto.
4891 (bptype_string): Ditto.
4892 (print_one_breakpoint_location): Ditto.
4893 (allocate_bp_location): Ditto.
4894 (mention): Ditto.
4895 (breakpoint_re_set_one): Ditto.
4896 * infrun.c (handle_inferior_event): Adjust. Split
4897 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
4898 BPSTAT_WHAT_HP_STEP_RESUME.
4899 (insert_step_resume_breakpoint_at_sal): Rename to ...
4900 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
4901 parameter. Handle it.
4902 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
4903 insert_step_resume_breakpoint_at_sal_1.
4904 (insert_step_resume_breakpoint_at_frame): Rename to ...
4905 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
4906 set a high-priority step-resume breakpoint.
4907 (insert_step_resume_breakpoint_at_frame): Adjust comment.
4908 (insert_step_resume_breakpoint_at_caller): Ditto.
4909
51be5b68
PA
49102011-05-26 Pedro Alves <[email protected]>
4911
4912 * breakpoint.c (iterate_over_related_breakpoints): New.
4913 (do_map_delete_breakpoint): New.
4914 (delete_command): Pass do_map_delete_breakpoint to
4915 map_breakpoint_numbers.
4916 (do_disable_breakpoint): New.
4917 (do_map_disable_breakpoint): Iterate over the breakpoint's related
4918 breakpoints.
4919 (do_enable_breakpoint): Rename to ...
4920 (enable_breakpoint_disp): ... this.
4921 (enable_breakpoint): Adjust.
4922 (do_enable_breakpoint): New.
4923 (enable_once_breakpoint): Delete.
4924 (do_map_enable_breakpoint): New.
4925 (do_map_enable_once_breakpoint): New.
4926 (enable_once_command, enable_delete_command)
4927 (delete_trace_command): Iterate over the breakpoint's related
4928 breakpoints.
4929
4a1be8d2
PA
49302011-05-26 Pedro Alves <[email protected]>
4931
4932 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4933 for ALPHA_ZERO_REGNUM.
4934 (alpha_supply_int_regs): Explicitly supply zero as the value for
4935 ALPHA_ZERO_REGNUM in the register cache.
4936 * alpha-nat.c (fetch_osf_core_registers): Ditto.
4937
59d70315
YQ
49382011-05-26 Yao Qi <[email protected]>
4939
4940 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
4941
251d32d9
TG
49422011-05-26 Tristan Gingold <[email protected]>
4943
4944 * symfile.h (struct dwarf2_section_names): New type.
4945 (struct dwarf2_debug_sections): New type.
4946 (dwarf2_has_info): Add parameter.
4947 * dwarf2read.c (dwarf2_elf_names): New variable.
4948 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
4949 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
4950 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
4951 (dwarf2_has_info): Add names parameter. Pass names
4952 to dwarf2_locate_sections.
4953 (section_is_p): Rewrite using the names parameter.
4954 (dwarf2_locate_sections): Use section names from the names parameter.
4955 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
4956 * elfread.c (read_psyms): Ditto.
4957 * machoread.c (macho_symfile_read): Ditto.
4958
652c71b4
AS
49592011-05-25 Andreas Schwab <[email protected]>
4960
4961 PR gdb/8677
4962 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
4963
f17170e5
KS
49642011-05-24 Keith Seitz <[email protected]>
4965
4966 PR breakpoint/12803
4967 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
4968 (decode_compound): Unconditionally call keep_name_info.
4969
cdac0397
PA
49702011-05-24 Pedro Alves <[email protected]>
4971
4972 * breakpoint.c (watchpoint_check): If the watchpoint went out of
4973 scope, clear its command list.
4974 (map_breakpoint_numbers): Don't walk the related breakpoints list
4975 of each breakpoint.
4976
91d4fe3f
TT
49772011-05-24 Tom Tromey <[email protected]>
4978
4979 * MAINTAINERS: Move Jim Blandy to past maintainers.
4980
3017a003
TG
49812011-05-24 Tristan Gingold <[email protected]>
4982
4983 * symfile.h (enum dwarf2_section_enum): New type.
4984 (dwarf2_get_section_info): New prototype.
4985 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
4986 section_name by sect. Use a switch to select the info.
4987 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
4988 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
4989
c91c8c16
PA
49902011-05-24 Pedro Alves <[email protected]>
4991
4992 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
4993 shared library event breakpoint if there's no execution.
4994
77bc418a
TJB
49952011-05-24 Thiago Jung Bauermann <[email protected]>
4996
4997 * breakpont.c (remove_hw_watchpoints): Remove unused function.
4998 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
4999
c50491a7
TT
50002011-05-23 Tom Tromey <[email protected]>
5001
5002 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5003 NULL.
5004
6d64e6d4
DE
50052011-05-23 Doug Evans <[email protected]>
5006
5007 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5008 entry for RuntimeError to doc string.
5009
2067c8d4
JG
50102011-05-23 Jerome Guitton <[email protected]>
5011
5012 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5013 sequence for probing loops.
5014
b136cd05
PA
50152011-05-23 Pedro Alves <[email protected]>
5016
5017 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5018 comment.
5019
22e74ef9
MK
50202011-05-21 Mark Kettenis <[email protected]>
5021
5022 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5023 zero as the value for %g0 in the register cache.
5024 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5025 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5026
842951eb
PA
50272011-05-20 Pedro Alves <[email protected]>
5028
5029 * infrun.c (proceed): Set previous_inferior_ptid here.
5030 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5031 inferior_ptid, not null_ptid.
5032 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5033 (fetch_inferior_event): Nor here.
5034
46cf51e6
PA
50352011-05-20 Pedro Alves <[email protected]>
5036
5037 * inf-loop.c (inferior_event_handler): Only output a message if
5038 verbose.
5039
29ef4c46
LM
50402011-05-20 Luis Machado <[email protected]>
5041
5042 * MAINTAINERS: Update my e-mail address.
5043
f148b27e
PA
50442011-05-20 Pedro Alves <[email protected]>
5045
5046 * infrun.c (proceed): Switch the inferior event loop to
5047 INF_EXEC_COMPLETE if the target refused to resume from a
5048 vfork/fork.
5049
09cee04b
PA
50502011-05-20 Pedro Alves <[email protected]>
5051
5052 * infcmd.c: Include "inf-loop.h".
5053 (step_once): When stepping into an inline subroutine, pretend the
5054 target has run. If the target can async, switch the inferior
5055 event loop to INF_EXEC_COMPLETE.
5056 * inferior.h (user_visible_resume_ptid): Declare.
5057 * infrun.c (user_visible_resume_ptid): New function, factored out
5058 from `resume'.
5059 (resume): Use it.
5060 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5061 that the current thread is running. Merge async and sync
5062 branches.
5063
751b8ce1
PA
50642011-05-20 Pedro Alves <[email protected]>
5065
5066 * infcmd.c (step_1): Simplify synchronous case.
5067
e93a69ed
PA
50682011-05-20 Pedro Alves <[email protected]>
5069
5070 * tracepoint.c: Include exceptions.h.
5071 (TFILE_PID): Move higher in file.
5072 (tfile_open): Delay pushing the tfile target until we're assured
5073 the tfile header is present in the file. Wrap reading the initial
5074 newline-terminated lines in TRY_CATCH. Pop the target if the
5075 initial setup failed. Add the tfile's thread immediately
5076 aftwards, before any non-essential setup. Don't skip
5077 post_create_inferior if there are no traceframes present in the
5078 file.
5079 (tfile_close): Remove redundant check for null before xfree call.
5080 (tfile_thread_alive): New function.
5081 (init_tfile_ops): Register it as to_thread_alive callback.
5082
6823e2b1
PA
50832011-05-20 Pedro Alves <[email protected]>
5084
5085 * tracepoint.c (tfile_open): Delete #if 0'd code.
5086
b3c8eb43
JK
50872011-05-20 Jan Kratochvil <[email protected]>
5088
5089 Fix -readnow for -gdwarf-4 unused type units.
5090 * dwarf2read.c (struct signatured_type): Remove the field offset.
5091 (create_signatured_type_table_from_index): Remove its initialization.
5092 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5093 instead. Add a complaint call.
5094 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5095 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5096 (lookup_signatured_type_at_offset, read_signatured_type)
5097 (write_one_signatured_type): Update the field for per_cu.
5098
310afc76
TT
50992011-05-19 Tom Tromey <[email protected]>
5100
5101 * python/py-inferior.c (python_inferior_exit): Use
5102 target_gdbarch.
5103 (python_on_resume): Likewise.
5104
cf6c5ffb
TT
51052011-05-19 Matt Rice <[email protected]>
5106
5107 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5108
fb80a3c5
HZ
51092011-05-19 Hui Zhu <[email protected]>
5110
5111 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5112
3672b1be
HZ
51132011-05-19 Hui Zhu <[email protected]>
5114
5115 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5116
ff355380
TT
51172011-05-18 Tom Tromey <[email protected]>
5118
5119 * dwarf2read.c (dwarf2_add_field): Constify.
5120 * value.c (value_static_field): Constify.
5121 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5122 Now const.
5123 * ax-gdb.c (gen_static_field): Constify
5124
ed731959
JK
51252011-05-18 Jan Kratochvil <[email protected]>
5126
5127 * linux-nat.c (kill_callback): Use SIGKILL first.
5128
967cff16
JB
51292011-05-18 Joel Brobecker <[email protected]>
5130
5131 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5132
1d06ead6
TT
51332011-05-18 Tom Tromey <[email protected]>
5134
5135 * value.c (value_fn_field): Constify.
5136 * symtab.c (gdb_mangle_name): Constify.
5137 * stabsread.c (update_method_name_from_physname): Make 'physname'
5138 argument const.
5139 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5140 const. Use explicit fputc_filtered loop.
5141 (pascal_type_print_base): Constify.
5142 * p-lang.h (pascal_type_print_method_args): Update.
5143 * linespec.c (add_matching_methods): Constify.
5144 (add_constructors): Likewise.
5145 * jv-typeprint.c (java_type_print_base): Constify.
5146 * gdbtypes.h (struct cplus_struct_type)
5147 <fn_fieldlist.fn_field.physname>: Now const.
5148 * dwarf2read.c (compute_delayed_physnames): Constify.
5149 (dwarf2_add_member_fn): Likewise.
5150 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5151
0d9a9a5f
PA
51522011-05-18 Pedro Alves <[email protected]>
5153
5154 * infrun.c (resume): Mention which is the current thread, and its
5155 current PC in debug output.
5156 (prepare_to_proceed): Mention the thread switching in debug
5157 output.
5158
05386e9e
TT
51592011-05-18 Tom Tromey <[email protected]>
5160
5161 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5162 path check. Use xmalloc and cleanups.
5163 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5164
ee86786c
TT
51652011-05-17 Tom Tromey <[email protected]>
5166
5167 * cp-valprint.c (cp_print_value_fields): Catch errors from
5168 value_static_field.
5169
9ff3b74f
TT
51702011-05-17 Tom Tromey <[email protected]>
5171
5172 * dwarf2read.c (dwarf2_get_die_type): Call
5173 get_die_type_at_offset.
5174 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5175 get_base_type function.
5176
cd3da28e
PA
51772011-05-17 Tomas Martinec <[email protected]>
5178
5179 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5180 trap_expected.
5181
fd20d931
DE
51822011-05-16 Doug Evans <[email protected]>
5183
5184 * python/py-auto-load.c (source_section_scripts): Mention objfile
5185 name in warning.
5186
75fc9810
DE
51872011-05-15 Doug Evans <[email protected]>
5188
290351b8
DE
5189 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5190 (try_thread_db_load_from_pdir): Call it. If unable to find
5191 libthread_db in directory of libpthread, see if we're looking at
5192 the separate-debug-info copy.
5193
75fc9810
DE
5194 * python/py-autoload.c (print_script): Print "Missing" instead of
5195 "No" for missing scripts.
5196 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5197
9f7bc587
DE
51982011-05-13 Doug Evans <[email protected]>
5199
5200 * ui-file.c (stdio_file_write_async_safe): Add comment.
5201
093cee7d
HZ
52022011-05-14 Hui Zhu <[email protected]>
5203
5204 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5205
dbaefcf7
DE
52062011-05-13 Doug Evans <[email protected]>
5207
98a5dd13
DE
5208 Support $pdir and $sdir in libthread-db-search-path.
5209 * NEWS: Mention $sdir,$pdir.
5210 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5211 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5212 (try_thread_db_load_from_sdir): New function.
5213 (try_thread_db_load_from_dir): New function.
5214 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5215 system directories if search of libthread-db-search-path fails,
5216 that is now done via $sdir.
5217 (has_libpthread): New function.
5218 (thread_db_load): Remove search for libthread_db in directory of
5219 libpthread, that is now done via $pdir.
5220
dbaefcf7
DE
5221 * NEWS: Mention "info auto-load-scripts".
5222 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5223 script_not_found_warning_printed.
5224 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5225 all callers updated. Initialize script_not_found_warning_printed.
5226 (get_auto_load_pspace_data_for_loading): New function.
5227 (maybe_add_script): New function.
5228 (source_section_scripts): Simplify. Only print one warning regardless
5229 of the number of auto-load scripts not found.
5230 (clear_section_scripts): Clear script_not_found_warning_printed.
5231 (auto_load_objfile_script): Record script in hash table.
5232 (count_matching_scripts): New function.
5233 (maybe_print_script): Renamed from maybe_print_section_script, all
5234 callers updated. Rewrite to use ui_out_*.
5235 (info_auto_load_scripts): Renamed from
5236 maintenance_print_section_scripts, all callers updated.
5237 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5238 renamed as "info auto-load-scripts".
5239
9930639c
TT
52402011-05-13 Tom Tromey <[email protected]>
5241
5242 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5243 (read_sleb128): Likewise.
5244
06826322
TT
52452011-05-13 Tom Tromey <[email protected]>
5246
5247 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5248 offset display.
5249
01124a23
DE
52502011-05-13 Doug Evans <[email protected]>
5251
5252 * linux-nat.c (debug_linux_nat_async): Delete.
5253 Replace all references to use debug_linux_nat instead.
5254 (show_debug_linux_nat_async): Delete.
5255 (sigchld_handler): Call ui_file_write_async_safe instead of
5256 fprintf_unfiltered.
5257 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5258 * ui-file.c (struct ui_file): New member to_write_async_safe.
5259 (null_file_write_async_safe): New function.
5260 (ui_file_write_async_safe): New function.
5261 (set_ui_file_write_async_safe): New function.
5262 (ui_file_new): Initialize to_write_async_safe.
5263 (stdio_file_write_async_safe): New function.
5264 (struct stdio_file): New member fd.
5265 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5266 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5267 fileno.
01124a23
DE
5268 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5269 (set_ui_file_write_async_safe): Declare.
5270 (ui_file_write_async_safe): Declare.
5271
72fc29ff
TT
52722011-05-13 Tom Tromey <[email protected]>
5273
5274 * utils.c (do_value_free): New function.
5275 (make_cleanup_value_free): Likewise.
5276 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5277 freeing correctly.
5278 (dwarf2_loc_desc_needs_frame): Call
5279 make_cleanup_value_free_to_mark.
5280 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5281 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5282 value_free_to_mark.
5283 (new_dwarf_expr_context): Don't call value_mark.
5284 * dwarf2-frame.c (execute_stack_op): Call
5285 make_cleanup_value_free_to_mark.
5286 * defs.h (make_cleanup_value_free): Declare.
5287
028d0ed5
TJB
52882011-05-13 Thiago Jung Bauermann <[email protected]>
5289
5290 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5291 prepare_execute_command.
5292 * top.c (prepare_execute_command): Return cleanup.
5293 (execute_command): Use cleanup from prepare_execute_command.
5294 * top.h (prepare_execute_command): Change prototype to return
5295 cleanup.
5296 * defs.h (struct value): Add opaque declaration.
5297 (make_cleanup_value_free_to_mark): Add prototype.
5298 * utils.c (do_value_free_to_mark): New function.
5299 (make_cleanup_value_free_to_mark): Likewise.
5300
b087e0ed
TT
53012011-05-12 Tom Tromey <[email protected]>
5302
5303 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5304 cast left-hand-side to unsigned.
5305
8a9b8146
TT
53062011-05-12 Tom Tromey <[email protected]>
5307
5308 PR gdb/12617:
5309 * value.h (value_from_contents): Declare.
5310 * value.c (value_from_contents): New function.
5311 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5312 (dwarf2_get_die_type): New function.
5313 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5314 (allocate_piece_closure): Acquire reference to values.
5315 (read_pieced_value): Update for value-based expressions.
5316 (write_pieced_value): Likewise.
5317 (free_pieced_value_closure): Call value_free as needed.
5318 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5319 Update for value-based expressions.
5320 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5321 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5322 <get_base_type>: New field.
5323 (struct dwarf_expr_piece) <v.value>: Change type.
5324 <v.regno>: New field.
5325 (struct dwarf_expr_context) <mark>: New field.
5326 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5327 (dwarf_expr_pop, dwarf_expr_push): Remove.
5328 (dwarf_expr_push_address): Declare.
5329 * dwarf2expr.c (dwarf_arch_cookie): New global.
5330 (struct dwarf_gdbarch_types): New.
5331 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5332 functions.
5333 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5334 static.
5335 (dwarf_expr_push_address): New function.
5336 (dwarf_expr_pop): Now static.
5337 (dwarf_expr_fetch): Change return type.
5338 (dwarf_require_integral): New function.
5339 (dwarf_expr_fetch): Simplify.
5340 (add_piece): Update.
5341 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5342 functions.
5343 (execute_stack_op) <sign_ext>: Remove.
5344 Use values for DWARF stack.
5345 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5346 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5347 New cases.
5348 (_initialize_dwarf2expr): New function.
5349 (add_piece): Update.
5350 (new_dwarf_expr_context): Set new field.
5351 (free_dwarf_expr_context): Call value_free_to_mark.
5352 * dwarf2-frame.c (no_base_type): New function.
5353 (execute_stack_op): Set get_base_type field. Update.
5354
e8d28ef4
TT
53552011-05-12 Tom Tromey <[email protected]>
5356
5357 * dwarf2read.c (read_common_block): Fix formatting.
5358
d248b706
KY
53592011-05-12 Kwok Cheung Yeung <[email protected]>
5360
5361 * breakpoint.c (disable_breakpoint): Disable all locations
5362 associated with a tracepoint on target if a trace experiment is
5363 running.
5364 (disable_command): Disable a specific tracepoint location on target if
5365 a trace experiment is running.
5366 (do_enable_breakpoint): Enable all locations associated with a
5367 tracepoint on target if a trace experiment is running.
5368 (enable_command) Enable a specific tracepoint location on target if a
5369 trace experiment is running.
5370 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5371 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5372 to_disable_tracepoint.
5373 * target.h: Add declaration of struct bp_location.
5374 (struct target_ops): Add new functions
5375 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5376 to_disable_tracepoint to target operations.
5377 (target_supports_enable_disable_tracepoint): New macro.
5378 (target_enable_tracepoint): New macro.
5379 (target_disable_tracepoint): New macro.
5380 * remote.c (struct remote_state): Add new field.
5381 (remote_enable_disable_tracepoint_feature): New.
5382 (remote_protocol_features): Add new entry.
5383 (remote_supports_enable_disable_tracepoint): New.
5384 (remote_enable_tracepoint): New.
5385 (remote_disable_tracepoint): New.
5386 (init_remote_ops): Add remote_enable_tracepoint,
5387 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5388 to remote operations.
5389 * tracepoint.c (start_tracing): Allow tracing to start without any
5390 tracepoints enabled with just a warning if they can be re-enabled
5391 later.
5392 * NEWS: Add news item for the new behaviour of the enable and disable
5393 GDB commands when applied to tracepoints.
5394 Add news items for the new remote packets QTEnable and QTDisable.
5395
cc88a640
JK
53962011-05-11 Jan Kratochvil <[email protected]>
5397
5398 * config.in: Regenerate.
5399 * configure: Regenerate.
5400 * configure.ac <--with-system-readline> (for readline_echoing_p):
5401 Remove the test.
5402 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5403 (tui_old_rl_echoing_p): ... here.
5404 (tui_setup_io): Rename extern declaration readline_echoing_p to
5405 _rl_echoing_p. Adjust assignments for the both renames.
5406
1f84b619
TJB
54072011-05-11 Thiago Jung Bauermann <[email protected]>
5408
5409 * symtab.c (lookup_symtab): Run cleanup before returning.
5410
74ac6d43
TT
54112011-05-11 Tom Tromey <[email protected]>
5412
5413 * dwarf2read.c (handle_data_member_location): New function.
5414 (dwarf2_add_field): Use it.
5415 (read_common_block): Likewise.
5416
5488dafb
JK
54172011-05-11 Jan Kratochvil <[email protected]>
5418
5419 Make addrs->SECTINDEX always defined.
5420 * symfile.c (relative_addr_info_to_section_offsets): Check for
5421 SECTINDEX -1, not for zero ADDR.
5422 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5423 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5424 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5425 on its validity.
5426
84e578fb
DE
54272011-05-10 Doug Evans <[email protected]>
5428
2471d008
DE
5429 * linux-thread-db.c: Whitespace cleanup.
5430 (try_thread_db_load_1): Fix comment.
5431
84e578fb
DE
5432 * linux-thread-db.c (set_libthread_db_search_path): New function.
5433 (_initialize_thread_db): Add setter for libthread-db-search-path.
5434
673c2bbe
DE
54352011-05-09 Doug Evans <[email protected]>
5436
478aac75
DE
5437 * NEWS: Mention --with-iconv-bin.
5438 * configure.ac: New option --with-iconv-bin.
5439 * configure: Regenerate.
5440 * config.in: Regenerate.
5441 * defs.h (relocate_gdb_directory): Declare.
5442 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5443 removed progname parameter, and exported. All callers updated.
5444 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5445
673c2bbe
DE
5446 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5447 adding missing call to restore_child_signals_mask.
5448
e4c8541f
PA
54492011-05-09 Pedro Alves <[email protected]>
5450
5451 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5452 parameter.
5453 * infrun.c (proceed, start_remote): Adjust.
5454 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5455 and adjust to not handle it.
5456 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5457 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5458 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5459 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5460 * windows-nat.c (do_initial_windows_stuff): Adjust.
5461 * infcmd.c (attach_command): Adjust.
5462 (notice_new_inferior): Adjust.
5463
a536c6d7
UW
54642011-05-06 Ulrich Weigand <[email protected]>
5465
5466 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5467 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5468 * spu-tdep.c (op_selb): Use correct value.
5469
7845b013
UW
54702011-05-06 Ulrich Weigand <[email protected]>
5471
5472 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5473 "parent" parameter to symbol_file_add_from_bfd call.
5474
9c06b0b4
TJB
54752011-05-06 Sergio Durigan Junior <[email protected]>
5476 Thiago Jung Bauermann <[email protected]>
5477
5478 Implement support for PowerPC BookE masked watchpoints.
5479 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5480 section.
5481 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5482 method. Initialize to NULL in all existing breakpoint_ops instances.
5483 (struct breakpoint) <hw_wp_mask>: New field.
5484 * breakpoint.c (is_masked_watchpoint): Add prototype.
5485 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5486 breakpoint's breakpoint_ops.works_in_software_mode if available.
5487 (watchpoints_triggered): Handle the case of a hardware masked
5488 watchpoint trigger.
5489 (watchpoint_check): Likewise.
5490 (works_in_software_mode_watchpoint): New function.
5491 (insert_masked_watchpoint, remove_masked_watchpoint)
5492 (resources_needed_masked_watchpoint)
5493 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5494 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5495 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5496 functions.
5497 (masked_watchpoint_breakpoint_ops): New structure.
5498 (watch_command_1): Check for the existence of the `mask' parameter.
5499 Set b->ops according to the type of hardware watchpoint being created.
5500 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5501 (ppc_linux_remove_mask_watchpoint)
5502 (ppc_linux_masked_watch_num_registers): New functions.
5503 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5504 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5505 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5506 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5507 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5508 (target_masked_watch_num_registers): New functions.
5509 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5510 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5511 methods.
5512 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5513 (target_masked_watch_num_registers): Add prototypes.
5514
8be455d7
JK
55152011-05-06 Jan Kratochvil <[email protected]>
5516
5517 PR 12573
5518 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5519 (producer_is_gcc_ge_4_0): New function.
5520 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5521 symtab->language code.
5522 (var_decode_location): Set cu->has_loclist.
5523 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5524 skip. Intialize force_skip from locations_valid. Move the prologue
5525 skipping code into two passes.
5526 * symtab.h (struct symtab): Make the primary field a bitfield. New
5527 field locations_valid.
5528
d8228535
JK
55292011-05-06 Jan Kratochvil <[email protected]>
5530
5531 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5532 (classify_inner_name): Call cp_lookup_nested_type with
5533 yylval.tsym.type.
5534 * cp-namespace.c (cp_lookup_nested_type): New variable
5535 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5536 type_name_no_tag_or_error with saved_parent_type.
5537 * dwarf2read.c (load_partial_dies): Read in any children of
5538 DW_TAG_typedef with complaint in such case.
5539 * gdbtypes.c (type_name_no_tag_or_error): New function.
5540 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5541 * valops.c (destructor_name_p): New comment for parameter type. Remove
5542 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5543 * value.h (destructor_name_p): Remove type const.
5544
1976171a
JK
55452011-05-06 Jan Kratochvil <[email protected]>
5546
5547 * symtab.c (compare_symbol_name): New function.
5548 (completion_list_add_name, expand_partial_symbol_name): Call it,
5549 remove the variable ncmp.
5550 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5551 gdb_assert it.
5552
a9634178
TJB
55532011-05-05 Thiago Jung Bauermann <[email protected]>
5554
5555 Demote to sw watchpoint only in update_watchpoint.
5556 * breakpoint.c (update_watchpoint): Change between software and
5557 hardware watchpoint for all kinds of watchpoints, not just
5558 read/write ones. Determine b->exact value here instead of
5559 in watch_command_1. Error out if there are not enough resources
5560 for a read or access hardware watchpoint.
5561 (watch_command_1): Remove logic of checking whether there are
5562 enough resources available, since update_watchpoint will do that
5563 work now. Don't set b->exact here. Catch exceptions thrown by
5564 update_watchpoint and delete the watchpoint.
5565 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5566 Use target_exact_watchpoints instead.
5567 (delete_breakpoint): Notify observers only if deleted watchpoint
5568 has a breakpoint number assigned to it.
5569
4c67c798
JJ
55702011-05-05 Janis Johnson <[email protected]>
5571
5572 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5573
a3fcb948
JG
55742011-05-05 Jerome Guitton <[email protected]>
5575
5576 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5577 New functions.
5578 (i386_stack_tramp_frame_unwind): New static global.
5579 (i386_match_pattern): New function, extracted from i386_match_insn.
5580 (i386_match_insn): Use i386_match_pattern.
5581 (i386_match_insn_block): New function.
5582 (i386_tramp_chain_in_reg_insns)
5583 (i386_tramp_chain_on_stack_insns): New static variables.
5584 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5585 of unwinders.
5586
4d393d60
JM
55872011-05-04 Joseph Myers <[email protected]>
5588
5589 * configure.host (xscale*): Don't handle target.
5590 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5591 handle targets.
5592
f70bd40b
YQ
55932011-05-04 Yao Qi <[email protected]>
5594
5595 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5596
dd3295ee
JB
55972011-05-03 Joel Brobecker <[email protected]>
5598
5599 Revert:
5600 | 2011-03-07 Michael Snyder <[email protected]>
5601 | * elfread.c (elf_symtab_read): Stop memory leak.
5602
90375a0e
PM
56032011-05-03 Pierre Muller <[email protected]>
5604
5605 * nto-tdep.c (nto_target): Replace deprecated call to
5606 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5607
d07205c2
JK
56082011-05-03 Jan Kratochvil <[email protected]>
5609
5610 Fix false GCC warning.
5611 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5612
1e718ff1
TJB
56132011-05-03 Thiago Jung Bauermann <[email protected]>
5614
5615 * breakpoint.c (update_watchpoint): Move code to change
5616 the enable state of breakpoint from here ...
5617 (do_enable_breakpoint): ... to here.
5618
35bef4fd
TT
56192011-04-26 Andrew Gontarek <[email protected]>
5620
78290264
PP
5621 * valprint.c (val_print_array_elements): Fixed poor performance
5622 of printing very large arrays with repeat_count_threshold set
5623 to unlimited. New comment.
35bef4fd 5624
38a714bb
TT
56252011-04-29 Tom Tromey <[email protected]>
5626
5627 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5628 (mi_parse): Likewise.
5629 * breakpoint.c (break_range_command): Use sizeof char*, not
5630 char**.
5631 (create_breakpoint): Likewise.
5632 (parse_breakpoint_sals): Likewise.
5633
eb73ad13
PA
56342011-04-29 Pedro Alves <[email protected]>
5635
5636 * linux-nat.c (linux_child_remove_fork_catchpoint)
5637 (linux_child_remove_vfork_catchpoint)
5638 (linux_child_remove_exec_catchpoint): New functions.
5639 (linux_target_install_ops): Install them.
5640
d65aec65
PM
56412011-04-29 Phil Muldoon <[email protected]>
5642
5643 PR mi/12531
5644
5645 * varobj.c (install_default_visualizer): Do not install a
5646 visualizer if the varobj is CPLUS_FAKE_CHILD.
5647 (construct_visualizer): Likewise.
5648
165195f4
JK
56492011-04-28 Jan Kratochvil <[email protected]>
5650
5651 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5652 case insensitive comparison.
5653
30852783
UW
56542011-04-28 Ulrich Weigand <[email protected]>
5655
5656 * infrun.c (proceed): Revert previous change.
5657 (resume): Instead, handle the case of signal delivery while stepping
5658 off a breakpoint location here, and only if software single-stepping
5659 is used. Handle nested signals.
5660
7ff120b4
YQ
56612011-04-28 Yao Qi <[email protected]>
5662
5663 * arm-tdep.c (copy_unmodified): Rename to ...
5664 (arm_copy_unmodified): .. this. New.
5665 (copy_preload): Move common part to ...
5666 (install_preload): .. this. New.
5667 (arm_copy_preload): New.
5668 (copy_preload_reg): Move common part to ...
5669 (install_preload_reg): ... this. New.
5670 (arm_copy_preload_reg): New.
5671 (copy_b_bl_blx): Move common part to ...
5672 (install_b_bl_blx): .. this. New.
5673 (arm_copy_b_bl_blx): New.
5674 (copy_bx_blx_reg): Move common part to ...
5675 (install_bx_blx_reg): ... this. New.
5676 (arm_copy_bx_blx_reg): New.
5677 (copy_alu_reg): Move common part to ...
5678 (install_alu_reg): ... this. New.
5679 (arm_copy_alu_reg): New.
5680 (copy_alu_shifted_reg): Move common part to ...
5681 (install_alu_shifted_reg): ... this. New.
5682 (copy_ldr_str_ldrb_strb): Move common part to ...
5683 (install_ldr_str_ldrb_strb): ... this. New.
5684 (arm_copy_ldr_str_ldrb_strb): New.
5685 (copy_copro_load_store): Move some common part to ...
5686 (install_copy_copro_load_store): ... this. New.
5687 (arm_copy_copro_load_store): New.
5688 (copy_svc): Delete.
5689 (arm_copy_svc): Renamed from copy_svc.
5690 (copy_undef): Delete.
5691 (arm_copy_undef): Renamed from copy_undef.
5692 (decode_ext_reg_ld_st): Delete.
5693 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5694 (decode_svc_copro): Delete.
5695 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5696 (copy_copro_load_store, copy_alu_imm): update callers.
5697 (copy_extra_ld_st, copy_block_xfer): Likewise.
5698 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5699 (decode_miscellaneous, decode_dp_misc): Likewise.
5700 (decode_ld_st_word_ubyte, decode_media): Likewise.
5701 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5702 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5703 (decode_unconditional, decode_miscellaneous): Likewise.
5704 (decode_media, decode_b_bl_ldmstm): Likewise.
5705 (arm_process_displaced_insn): Likewise..
5706 (decode_misc_memhint_neon): Delete.
5707 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5708 (decode_miscellaneous): Delete.
5709 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5710 (decode_dp_misc): Delete.
5711 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5712 (decode_ld_st_word_ubyte): Delete.
5713 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5714 (decode_media): Delete.
5715 (arm_decode_media): Renamed from decode_media.
5716 (decode_b_bl_ldmstm): Delete.
5717 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5718 (decode_ext_reg_ld_st): Delete.
5719 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5720 (decode_unconditional): Delete.
5721 (arm_decode_unconditional): Renamed from decode_unconditional.
5722
559a7a62
JK
57232011-04-27 Jan Kratochvil <[email protected]>
5724
5725 Case insensitive lookups implementation.
5726 * dwarf2read.c: Include ctype.h.
5727 (struct mapped_index): New field version.
5728 (mapped_index_string_hash): New parameter index_version. New comment
5729 for it. Call tolower appropriately.
5730 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5731 Choose the right index version for mapped_index_string_hash.
5732 (dwarf2_read_index): Support also the index version 5. Initialize the
5733 new struct mapped_index field version.
5734 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5735 (find_slot): Explain the version needs. Pass INT_MAX for the new
5736 parameter.
5737 (write_psymtabs_to_index): Produce version 5.
5738 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5739 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5740 * psymtab.c (lookup_partial_symbol): Find the
5741 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5742 entries.
5743 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5744 NAME lowercasing.
5745 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5746 (completion_list_add_name): New variable ncmp, initialize it, use it.
5747 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5748 * utils.c (strcmp_iw): Support case_sensitive_off.
5749 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5750 New function comment part. New variables saved_string1,
5751 saved_string2 and case_pass. Add a proper second pass.
5752
681bf369
JK
57532011-04-27 Jan Kratochvil <[email protected]>
5754
5755 Replace re_comp/re_exec by regcomp/regexec.
5756 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5757 (search_symbols_name_matches): Use them, use regexec.
5758 (search_symbols): New variable retval_chain, adjust the use of
5759 old_chain against it. Replace re_comp by regcomp. Use the new struct
5760 search_symbols_data fields, use regexec instead of re_exec.
5761
b11b1f88
JK
57622011-04-27 Jan Kratochvil <[email protected]>
5763
5764 Format the code for the next patch.
5765 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5766 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5767 New variables c1 and c2.
5768
2484c66b
UW
57692011-04-27 Ulrich Weigand <[email protected]>
5770
5771 * infrun.c (proceed): Do not single-step into signal delivery
5772 when stepping off a breakpoint location.
5773 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5774 (insert_step_resume_breakpoint_at_caller): Likewise.
5775 (insert_step_resume_breakpoint_at_sal): Likewise.
5776 (insert_longjmp_resume_breakpoint): Likewise.
5777
47423772
YQ
57782011-04-27 Yao Qi <[email protected]>
5779
5780 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5781
13bdd2e7
JB
57822011-04-27 Joel Brobecker <[email protected]>
5783
5784 * procfs.c (procfs_pass_signals): Fix advance declaration.
5785
2455069d
UW
57862011-04-27 Ulrich Weigand <[email protected]>
5787
5788 * target.h (struct target_ops): Remove to_notice_signals;
5789 add to_pass_signals.
5790 (target_notice_signals): Remove.
5791 (target_pass_signals): Add prototype.
5792 * target.c (update_current_target): Remove to_notice_signals;
5793 mention to_pass_signals.
5794 (target_pass_signals): New function.
5795 (debug_to_notice_signals): Remove.
5796 (setup_target_debug): Do not install debug_to_notice_signals.
5797
5798 * infrun.c (signal_pass): New global.
5799 (resume): Call target_pass_signals.
5800 (handle_inferior_event): Report all signals while stepping over
5801 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5802 are re-inserted when stepping over a signal handler.
5803 (signal_cache_update): New function.
5804 (signal_stop_update): Call it.
5805 (signal_print_update): Likewise.
5806 (signal_pass_update): Likewise.
5807 (handle_command): Call signal_cache_update and target_pass_signals
5808 instead of target_notice_signals.
5809 (_initialize_infrun): Initialize signal_pass.
5810
5811 * linux-nat.c (pass_mask): New global.
5812 (linux_nat_pass_signals): New function.
5813 (linux_nat_create_inferior): Report all signals initially.
5814 (linux_nat_attach): Likewise.
5815 (linux_nat_resume): Use pass_mask to decide whether to directly
5816 handle an inferior signal.
5817 (linux_nat_wait_1): Likewise.
5818 (linux_nat_add_target): Install to_pass_signals callback.
5819
5820 * nto-procfs.c (notice_signals): Remove.
5821 (procfs_resume): Do not call notice_signals.
5822 (procfs_notice_signals): Remove.
5823 (procfs_pass_signals): New function.
5824 (init_procfs_ops): Install to_pass_signals callback instead of
5825 to_notice_signals callback.
5826 (_initialize_procfs): Report all signals initially.
5827
5828 * procfs.c (procfs_notice_signals): Remove.
5829 (procfs_pass_signals): New function.
5830 (procfs_target): Install to_pass_signals callback instead of
5831 to_notice_signals callback.
5832 (register_gdb_signals): Remove.
5833 (procfs_debug_inferior): Report all signals initially.
5834 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5835
5836 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5837 parameters; use them instead of calling signal_..._state routines.
5838 (remote_notice_signals): Remove.
5839 (remote_start_remote): Report all signals initially.
5840 (remote_resume): Do not call remote_pass_signals.
5841 (_initialize_remote): Install to_pass_signals callback instead of
5842 to_notice_signals callback.
5843
46c6471b
PA
58442011-04-27 Pedro Alves <[email protected]>
5845
5846 * breakpoint.c (user_settable_breakpoint): Delete.
5847 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5848 (delete_command): Check user_breakpoint_p instead of looking at
5849 the breakpoint's type.
5850 (disable_command): Ditto.
5851 (enable_command): Ditto.
5852 (delete_trace_command): Use user_breakpoint_p instead of looking
5853 at the breakpoint number directly. When checking if there are
5854 user visible tracepoints, in order to know whether to ask the user
5855 for confirmation, check whether the breakpoint is actually a
5856 tracepoint.
5857
f6d90398
VP
58582011-04-27 Vladimir Prus <[email protected]>
5859
5860 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5861 compilation.
5862
8d3788bd
VP
58632011-04-27 Vladimir Prus <[email protected]>
5864
5865 MI breakpoint notifications.
5866
f33edef8
PP
5867 * annotate.c (breakpoint_changed): Adjust parameter type.
5868 * breakpoint.c (set_breakpoint_condition): Adjust to change
5869 in breakpoint_modified type.
5870 (breakpoint_set_commands): Likewise.
5871 (do_map_commands_command): Likewise.
5872 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5873 changed after bumping hit count.
5874 (bpstat_stop_status): Likewise.
5875 (print_one_breakpoint_location): Don't wrap in tuple here.
5876 (print_one_breakpoint): Always print individual locations.
5877 For locations, use unnamed tuple.
5878 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5879 has changed.
5880 (create_catchpoint, create_syscall_event_catchpoint): Call
5881 breakpoint_created obsever.
5882 (mention): Don't call breakpoint_created observer.
5883 (create_breakpoint_sal): Call breakpoint_created observer.
5884 (create_breakpoint, watch_command_1): Likewise.
5885 (create_ada_exception_breakpoint): Likewise.
5886 (delete_breakpoint): Call breakpoint_deleted breakpoint.
5887 (locations_are_equal): New.
5888 (update_breakpoint_locations): If locations were changed, notify.
5889 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
5890 Call breakpoint_modified observer.
5891
5892 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
5893 (mi_cmd_break_insert): Don't set observers for modify and delete.
5894 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
5895 (mi_breakpoint_created, mi_breakpoint_deleted)
5896 (mi_breakpoint_modified): New.
5897 (mi_interpreter_init): Hook the above.
5898 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
5899 while -break-* commands are executing.
5900 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
5901 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
5902 (mi_redirect): New.
5903 (mi_ui_out_impl): Hook in mi_redirect.
5904 (mi_field_skip): True to the name, skip the field, don't output
5905 a field with an empty value.
5906
5907 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5908 (gdbpy_breakpoint_deleted): Adjust.
5909 * tui/tui-hooks.c (tui_event_create_breakpoint)
5910 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 5911
a8f42b45
UW
59122011-04-26 Aleksandar Ristovski <[email protected]>
5913
5914 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
5915 (procfs_remove_hw_watchpoint): Likewise.
5916
57e12211
TT
59172011-04-26 Michael Walle <[email protected]>
5918
5919 * remote.c (remote_start_remote): Ack packet after sending the
5920 interrupt sequence.
5921
af96c192
YQ
59222011-04-26 Yao Qi <[email protected]>
5923
f33edef8
PP
5924 * linux-nat.c: Move common macros to ...
5925 Include linux-ptrace.h.
5926 * common/linux-ptrace.h: ... here. New.
af96c192 5927
3e03848b
JK
59282011-04-25 Jan Kratochvil <[email protected]>
5929
5930 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
5931 !objfile_has_partial_symbols. New comment.
5932 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
5933 SYM_READ_PSYMBOLS is not present. Extend the comment.
5934 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
5935
1ae0d051
JK
59362011-04-25 Jan Kratochvil <[email protected]>
5937
5938 * defs.h (ENUM_BITFIELD): Remove.
5939
03f2bd59
JK
59402011-04-24 Jan Kratochvil <[email protected]>
5941 Eli Zaretskii <[email protected]>
5942
5943 * NEWS: Document the new gdbserver --once option.
5944
4161fbb0
JZ
59452011-04-21 Jie Zhang <[email protected]>
5946
5947 * MAINTAINERS: Update my email address.
5948
bcb28afc
PM
59492011-04-21 Pierre Muller <[email protected]>
5950
5951 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
5952 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
5953 function call if __STDC_ISO_10646__ macro is defined.
5954 (intermediate_encoding): New prototype.
5955 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
5956 to generate compile time error for unsupported gdb_wchar_t size.
5957 (ENDIAN_SUFFIX): New macro.
5958 (intermediate_encoding): New function.
5959
7b08b9eb
JK
59602011-04-20 Jan Kratochvil <[email protected]>
5961
5962 * ada-lang.c (struct add_partial_datum): Update the comment for
5963 expand_partial_symbol_name.
5964 (ada_add_partial_symbol_completions): Rename to ...
5965 (ada_expand_partial_symbol_name): ... here, change return type, update
5966 function comment, call symbol_completion_match instead of
5967 symbol_completion_add.
5968 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
5969 and ada_expand_partial_symbol_name.
5970 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
5971 FILE_MATCHER.
5972 (dw2_map_symbol_names): Remove.
5973 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
5974 * psymtab.c (map_symbol_names_psymtab): Remove.
5975 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
5976 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
5977 order.
5978 (psym_functions): Unlist map_symbol_names_psymtab.
5979 (map_partial_symbol_names): Rename to ...
5980 (expand_partial_symbol_names): ... here, change the FUN type, call
5981 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
5982 * psymtab.h (map_partial_symbol_names): Rename to ...
5983 (expand_partial_symbol_names): ... here, change the FUN type.
5984 * symfile.h (struct quick_symbol_functions): Update the description of
5985 expand_symtabs_matching. Remove map_symbol_names.
5986 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
5987 (struct add_name_data): Update the comment for
5988 expand_partial_symbol_name.
5989 (add_partial_symbol_name): Rename to ...
5990 (expand_partial_symbol_name): ... here. Replace
5991 completion_list_add_name call by strncmp.
5992 (default_make_symbol_completion_list_break_on): Use now
5993 expand_partial_symbol_names and expand_partial_symbol_name.
5994 * symtab.h (enum search_domain): New element ALL_DOMAIN.
5995
90476074
TT
59962011-04-20 Tom Tromey <[email protected]>
5997
5998 * dwarf2read.c (save_gdb_index_command): Replace format
5999 documentation with a pointer to the manual.
6000
c21236dc
PA
60012011-04-20 Pedro Alves <[email protected]>
6002
6003 * regcache.c: Include remote.h.
6004 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6005 (regcache_dump): Handle regcache_dump_remote.
6006 (maintenance_print_remote_registers): New function.
6007 (_initialize_regcache): Install "maint print remote-registers"
6008 command.
6009 * remote.c (map_regcache_remote_table): New function, factored out
6010 from ...
6011 (init_remote_state): ... here.
6012 (remote_register_number_and_offset): New.
6013 * remote.h (remote_register_number_and_offset): Declare.
6014
b78974c3
PA
60152011-04-20 Pedro Alves <[email protected]>
6016
6017 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6018 null_ptid, assume and allow a NULL address space, instead of
6019 asking the target for the ptid's address space.
6020 * infrun.c (ptid_is_pid): Remove assertion.
6021
7a9dd1b2
TT
60222011-04-19 Tom Tromey <[email protected]>
6023
6024 * windows-tdep.c (windows_xfer_shared_library):
6025 * windows-nat.c (get_module_name, windows_make_so):
6026 * v850-tdep.c (v850_handle_pushm):
6027 * utils.c (null_cleanup, gdb_realpath):
6028 * ui-out.c (get_next_header):
6029 * tracepoint.c (clear_traceframe_info):
6030 * symtab.c (lookup_symtab):
6031 * serial.h (struct serial_ops):
6032 * mipsread.c (read_alphacoff_dynamic_symtab):
6033 * infcmd.c (print_return_value):
6034 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6035 * f-exp.y (parse_number):
6036 * exceptions.c (catch_exceptions):
6037 * dummy-frame.c (dummy_frame_this_id):
6038 * defs.h (struct cleanup):
6039 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6040 * arm-tdep.c (arm_push_dummy_call):
6041 * amd64-tdep.h (amd64_collect_xsave):
6042 * amd64-tdep.c (amd64_collect_xsave):
6043 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6044 * README (typing): Remove duplicate words.
6045 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6046 * infrun.c (siginfo_value_read): Fix typo.
6047 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6048 * top.c (source_line_number): Add comma.
6049
9941e0c5
MK
60502011-04-19 Marc Khouzam <[email protected]>
6051
6052 * thread.c (any_live_thread_of_process): Prioritize threads
6053 that are not executing.
6054 * gdbthread.h (any_live_thread_of_process): Update comment
6055 as per above change.
6056
ed4b0e6a
AS
60572011-04-19 Andreas Schwab <[email protected]>
6058
6059 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6060 (scan_xcoff_symtab): Likewise.
6061
9b13a2db
PM
60622011-04-19 Pierre Muller <[email protected]>
6063
6064 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6065 inside if clause.
6066
1c6e1b0d
PM
60672011-04-19 Pierre Muller <[email protected]>
6068 Pedro Alves <[email protected]>
6069
6070 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6071 variables to simplify code and avoid == operator at end of
6072 line as this is against GNU coding standards.
6073
74de0234
PM
60742011-04-19 Pierre Muller <[email protected]>
6075
6076 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6077 lm_name to name_lm to avoid conflict with lm_name function.
6078
b23518f0
PM
60792011-04-19 Pierre Muller <[email protected]>
6080
6081 ARI fixes: Use only lowercase function name for static functions.
6082 * nto-tdep.c (LM_ADDR): Rename to...
6083 (lm_addr): New function name.
6084 (nto_relocate_section_addresses): Adapt to change above.
6085 * solib-sunos.c (LM_ADDR): Rename to...
6086 (lm_addr): New function name.
6087 (LM_NEXT): Rename to...
6088 (lm_next): New function name.
6089 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6090 function name changes above.
6091 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6092 (lm_addr_from_link_map): New function name.
6093 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6094 (has_lm_dynamic_from_link_map): New function name.
6095 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6096 (lm_dynamic_from_link_map): New function name.
6097 (LM_ADDR_CHECK): Rename to...
6098 (lm_addr_check): New function name.
6099 (LM_NEXT): Rename to...
6100 (lm_next): New function name.
6101 (LM_PREV): Rename to...
6102 (lm_prev): New function name.
6103 (LM_NAME): Rename to...
6104 (lm_name): New function name.
6105 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6106 (ignore_first_link_map_entry): New function name.
6107 (svr4_keep_data_in_core): Adapt to function name changes above.
6108 (svr4_current_sos): Likewise.
6109 (enable_break): Likewise.
6110 (svr4_relocate_section_addresses): Likewise.
6111
1448a0a2
PM
61122011-04-19 Pierre Muller <[email protected]>
6113
6114 ARI cleanup.
6115 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6116 sprintf. Simplify code and avoid loosing memory.
6117 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6118 (call0_frame_cache): Remove && operator from end of line.
6119
02835898
JK
61202011-04-17 Jan Kratochvil <[email protected]>
6121
6122 Fix libraries displacement if they change whether they were prelinked.
6123 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6124 does not match. Comment why.
6125
9a845ea2
JK
61262011-04-17 Jan Kratochvil <[email protected]>
6127
6128 * corelow.c: Include wrapper.h.
6129 (core_open): Call now gdb_target_find_new_threads.
6130 * wrapper.c: Include target.h.
6131 (gdb_target_find_new_threads): New.
6132 * wrapper.h (gdb_target_find_new_threads): New declaration.
6133
254f582e
JK
61342011-04-17 Jan Kratochvil <[email protected]>
6135
6136 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6137 even if !TARGET_HAS_EXECUTION.
6138
63524580
JK
61392011-04-17 Jan Kratochvil <[email protected]>
6140
6141 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6142 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6143 bfd_get_synthetic_symtab.
6144 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6145 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6146 parameter parent, remove the call to add_separate_debug_objfile.
6147 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6148 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6149 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6150 parent, new comment for it, call add_separate_debug_objfile for it.
6151 (symbol_file_add_separate): Pass objfile as the parameter parent,
6152 remove the call to add_separate_debug_objfile.
6153 (symbol_file_add_from_bfd): New parameter parent, pass it.
6154 (symbol_file_add): Pass NULL to the new parameter parent.
6155 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6156
90359a16
JK
61572011-04-17 Jan Kratochvil <[email protected]>
6158
6159 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6160 BSF_SYNTHETIC.
6161
626e7282
JK
61622011-04-17 Jan Kratochvil <[email protected]>
6163
6164 Fix Python access to inlined frames.
6165 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6166 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6167
cf31e6f9
TT
61682011-04-15 Tom Tromey <[email protected]>
6169
6170 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6171
c8d895f1
GB
61722011-04-15 Gary Benson <[email protected]>
6173
6174 * MAINTAINERS: Add myself to write-after-approval section.
6175
56a9aa1d
MF
61762011-04-14 Mike Frysinger <[email protected]>
6177
6178 * remote-sim.c (sim_command_completer): New function.
6179 (_initialize_remote_sim): Set completer to sim_command_completer.
6180
ba770c9c
TJB
61812011-04-13 Thiago Jung Bauermann <[email protected]>
6182
6183 * breakpoint.c (print_exception_catchpoint): Rename to ...
6184 (print_it_exception_catchpoint): ... this.
6185 (gnu_v3_exception_catchpoint_ops): Update with new name
6186 for print_it_exception_catchpoint.
6187
51bf2553
EBM
61882011-04-13 Edjunior Machado <[email protected]>
6189
6190 * MAINTAINERS: Add myself for write after approval privileges.
6191
d242658c
MP
61922011-04-13 Marek Polacek <[email protected]>
6193
6194 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6195
4a4106ca
TJB
61962011-04-13 Thiago Jung Bauermann <[email protected]>
6197
6198 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6199
26063d49
TJB
62002011-04-13 Thiago Jung Bauermann <[email protected]>
6201
6202 * breakpoint.c (save_breakpoints): Verify whether
6203 breakpoint_ops.print_recreate is defined before calling it.
6204
7782b183
GB
62052011-04-11 Gary Benson <[email protected]>
6206
6207 Fix failure with --enable-maintainer-mode.
6208 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6209
e8930875
JK
62102011-04-09 Jan Kratochvil <[email protected]>
6211
6212 Code cleanup.
6213 * symtab.c (search_symbols): Reorder the KIND description in the
6214 function comment. Remove the unused 4th element of types, types2,
6215 types3 and types4. New gdb_assert on KIND.
6216 (symtab_symbol_info): Remove the unused 4th element of classnames.
6217 New gdb_assert on KIND.
6218 * symtab.h (enum search_domain): New warning in the enum comment.
6219 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6220 TYPES_DOMAIN.
6221
b4f2f049
JK
62222011-04-09 Jan Kratochvil <[email protected]>
6223
6224 Fix crash of gdb save-index on a STABS file.
6225 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6226 PSYMTABS_ADDRMAP.
6227
60d5a603
JK
62282011-04-09 Jan Kratochvil <[email protected]>
6229
6230 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6231 * dwarf2read.c: Include ctype.h.
6232 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6233 functions.
6234 (dwarf2_add_field): Fix new_field->accessibility by calling
6235 dwarf2_default_access_attribute. Restructure setting accessibility
6236 vs. virtuality.
6237 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6238 is_private and is_protected by calling
6239 dwarf2_default_access_attribute.
6240
e0f68161
KB
62412011-04-08 Kevin Buettner <[email protected]>
6242
6243 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6244 to the initialization.
6245
2e1aae43
SE
62462011-04-08 Steve Ellcey <[email protected]>
6247
6248 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6249 initalization.
6250
c6ca3dab
PM
62512011-04-07 Pierre Muller <[email protected]>
6252
6253 Remove support for old Cygwin 1.5 versions.
6254 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6255 function on old Cygwin version.
6256 * windows-nat.c: Remove cygwin version check and always define
6257 __USEWIDE for Cygwin compilation.
6258
bd18283a
YQ
62592011-04-07 Yao Qi <[email protected]>
6260
6261 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6262 and TO.
6263 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6264 (arm_copy_svc): Remove parameters INSN and TO.
6265 (decode_svc_copro): Update caller.
6266 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6267 from function pointer `copy_svc_os'.
6268
8c8dba6d
YQ
62692011-04-07 Yao Qi <[email protected]>
6270
6271 * arm-tdep.c (cleanup_branch): Set a correct return address in
6272 LR for ARM and Thumb.
6273
59d7bcaf
JK
62742011-04-06 Jan Kratochvil <[email protected]>
6275
6276 Code cleanup.
6277 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6278 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6279 in the function comment, a new note on values compatibility.
6280 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6281 * symtab.h (SYMBOL_HASH_NEXT): New.
6282
e7db58ea
TJB
62832011-04-06 Thiago Jung Bauermann <[email protected]>
6284
6285 * ppc-linux-nat.c (check_condition): Add len output parameter.
6286 Set it based on the memory region referenced in the condition
6287 expression. Update all callers.
6288
9f743ef6
JK
62892011-04-06 Jan Kratochvil <[email protected]>
6290
6291 Fix crash regression on systems featuring .gdb_index.
6292 * objfiles.c (free_objfile): Move the
6293 forget_cached_source_info_for_objfile call earlier. Comment it.
6294 Extend the comment for objfile_free_data.
6295
9182c5bc
JK
62962011-04-06 Jan Kratochvil <[email protected]>
6297
6298 Fix regression of displaying the debug format.
6299 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6300 subfile.
6301
04bd08de
TT
63022011-04-04 Tom Tromey <[email protected]>
6303
6304 * cli/cli-interp.c (struct captured_execute_command_args):
6305 Remove.
6306 (do_captured_execute_command): Remove.
6307 (safe_execute_command): Use TRY_CATCH.
6308 * cli/cli-script.c (struct wrapped_read_command_file_args):
6309 Remove.
6310 (wrapped_read_command_file): Remove.
6311 (script_from_file): Use TRY_CATCH.
6312 * exceptions.c (catch_exception): Remove.
6313 * exceptions.h (catch_exception): Remove.
6314 (deprecated_throw_reason): Update comment.
6315 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6316 argument to 'context'.
6317 (mi_execute_command): Use TRY_CATCH.
6318 * remote.c (struct start_remote_args): Remove.
6319 (remote_start_remote): Update; change arguments.
6320 (remote_open_1): Use TRY_CATCH.
6321
58438ac1
TT
63222011-04-04 Tom Tromey <[email protected]>
6323
6324 * tracepoint.c (scope_info): Update.
6325 * symtab.c (decode_line_spec): Update.
6326 * python/python.c (gdbpy_decode_line): Update.
6327 * linespec.h (decode_line_1): Update.
6328 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6329 (decode_compound, find_method, symtab_from_filename)
6330 (decode_variable): Likewise.
6331 * cli/cli-cmds.c (edit_command): Update.
6332 (list_command): Update.
6333 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6334 argument.
6335 (create_breakpoint): Update.
6336 (until_break_command): Update.
6337 (addr_string_to_sals): Update.
6338 (decode_line_spec_1): Update.
6339
b78a6381
TT
63402011-04-04 Tom Tromey <[email protected]>
6341
6342 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6343 (do_captured_parse_breakpoint): Remove.
6344 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6345 Use TRY_CATCH directly.
6346
00174a86
TT
63472011-04-04 Tom Tromey <[email protected]>
6348
6349 * symtab.h (free_symtab): Remove.
6350 (forget_cached_source_info_for_objfile): Declare.
6351 * symmisc.c (free_symtab): Remove.
6352 * source.c (forget_cached_source_info_for_objfile): New function.
6353 (forget_cached_source_info): Use it.
6354 * objfiles.c (free_objfile): Simplify check before calling
6355 clear_current_source_symtab_and_line. Call
6356 forget_cached_source_info_for_objfile.
6357
30cc903e
TT
63582011-04-04 Tom Tromey <[email protected]>
6359
6360 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6361 (new_symtab): Don't set `free_code' on symtab.
6362 (new_linetable): Properly handle size==0.
6363 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6364 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6365 free_func.
6366 * jv-lang.c (struct jv_per_objfile_data): New.
6367 (jv_per_objfile_free): Free the data.
6368 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6369 (get_java_class_symtab): Set the `dict' field on the
6370 jv_per_objfile_data.
6371 (free_class_block): Remove.
6372 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6373 the symtab.
6374
0c2e6019
TT
63752011-04-04 Tom Tromey <[email protected]>
6376
6377 * symfile.c (reread_symbols): Update.
6378 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6379 field.
6380 * objfiles.c (allocate_objfile): Update.
6381 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6382 declare.
6383 * cp-namespace.c (lookup_symbol_file): Don't call
6384 lookup_possible_namespace_symbol.
6385 (initialize_namespace_symtab, get_possible_namespace_block)
6386 (free_namespace_block, cp_check_possible_namespace_symbols)
6387 (check_possible_namespace_symbols_loop)
6388 (check_one_possible_namespace_symbol)
6389 (lookup_possible_namespace_symbol): Remove.
6390 (maintenance_cplus_namespace): Replace with notice.
6391 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6392
554d387d
TT
63932011-04-04 Tom Tromey <[email protected]>
6394
6395 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6396 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6397 * symmisc.c (free_symtab): Don't free debugformat.
6398 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6399 (record_debugformat, record_producer): Document.
6400 * buildsym.c (end_symtab): Don't save debugformat and producer
6401 names on obstack.
6402 (end_symtab): Don't free debugformat and producer fields.
6403 (record_debugformat): Don't call xstrdup.
6404 (record_producer): Likewise.
6405
d4d4db8a
TT
64062011-04-04 Tom Tromey <[email protected]>
6407
6408 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6409 (source_line_charpos, source_charpos_line): Remove.
6410
8903c50d
TT
64112011-04-04 Tom Tromey <[email protected]>
6412
6413 * symtab.h (domain_enum): Split in two...
6414 (enum search_domain): New.
6415 (search_symbols): Update.
6416 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6417 redundant declarations.
6418 (search_symbols): Change 'kind' argument to search_domain.
6419 Update.
6420 (print_symbol_info): Likewise.
6421 (symtab_symbol_info): Likewise.
6422 * symfile.h (struct quick_symbol_functions)
6423 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6424 <expand_symtabs_matching>: Likewise.
6425 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6426 (expand_symtabs_matching_via_partial): Update.
6427 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6428 (dw2_expand_symtabs_for_function): Update.
6429 * block.h: Moved anonymous enum...
6430 * defs.h (enum block_enum): ... here. Now named.
6431
d9351f5f 64322011-04-03 Joel Brobecker <[email protected]>
6433
6434 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6435 * version.in: Bump version to 7.3.50.20110403-cvs.
6436
d6e00af6
JB
64372011-04-03 Joel Brobecker <[email protected]>
6438
6439 * NEWS: Create a new section for the next release branch.
6440 Rename the section of the current branch, now that it has
6441 been cut.
6442
2b9e5ea6
UW
64432011-04-01 Ulrich Weigand <[email protected]>
6444
6445 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6446 for "fpscr" in target description.
6447
0cf03b49
JK
64482011-04-01 Jan Kratochvil <[email protected]>
6449
6450 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6451 initialize it. Delay HASH initialization. Strip the part after open
6452 parenthesis for languages with qualifiers. Call do_cleanups.
6453
5d901a73
TT
64542011-04-01 Tom Tromey <[email protected]>
6455
6456 * utils.c (report_command_stats): Don't print `-' for negative
6457 number.
6458
b0dd7688
JB
64592011-04-01 Eric Botcazou <[email protected]>
6460
6461 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6462 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6463 typedefs.
6464
956a9fb9
JB
64652011-04-01 Joel Brobecker <[email protected]>
6466
6467 * breakpoint.h (bpdisp_text): Add declaration.
6468 * breakpoint.c (bpdisp_text): Make non-static.
6469 * ada-lang.c: #include "mi/mi-common.h".
6470 (print_it_exception): Rewrite to improve GDB/MI output.
6471
3352110b
PA
64722011-04-01 Pedro Alves <[email protected]>
6473
6474 * arm-tdep.h (struct address_space): Add forward declaration.
6475
18819fa6
UW
64762011-04-01 Ulrich Weigand <[email protected]>
6477
6478 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6479 * arm-tdep.c (arm_override_mode): New global.
6480 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6481 execution mode heuristics.
6482 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6483 second single-step breakpoint if needed, using
6484 arm_insert_single_step_breakpoint.
6485 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6486 ARM execution mode, do not call thumb_get_next_pc_raw.
6487 (arm_get_next_pc): Encode execution mode in return value. Call
6488 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6489 (arm_insert_single_step_breakpoint): New function.
6490 (arm_software_single_step): Call it.
6491 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6492 argument to return execution mode of sigreturn target.
6493 (arm_linux_syscall_next_pc): Use it.
6494 (arm_linux_copy_svc): Update call.
6495 (arm_linux_software_single_step): Call
6496 arm_insert_single_step_breakpoint.
6497
a6e293d1
JK
64982011-03-31 Jan Kratochvil <[email protected]>
6499
6500 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6501 the comment.
6502
a4c8e806
TT
65032011-03-31 Tom Tromey <[email protected]>
6504
6505 * varobj.c (update_dynamic_varobj_children): Properly handle
6506 errors from iterator.
6507
df5c6c50
JK
65082011-03-31 Jan Kratochvil <[email protected]>
6509
6510 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6511 struct linkage name twice.
6512
1dae3efc
TT
65132011-03-31 Tom Tromey <[email protected]>
6514
6515 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6516 missing ">" to message.
6517
f4f7ab05
TT
65182011-03-31 Tom Tromey <[email protected]>
6519
6520 * varobj.c (instantiate_pretty_printer): Remove duplicate
6521 'return'.
6522
fcf250e2
UW
65232011-03-31 Ulrich Weigand <[email protected]>
6524
6525 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6526 if neither saved value nor register available (e.g. signal frame).
6527
ee6436e3
TJB
65282011-03-31 Thiago Jung Bauermann <[email protected]>
6529
6530 * macroexp.c (expand): Avoid uninitialized variable
6531 compiler warning.
6532
423f41a5
TJB
65332011-03-31 Thiago Jung Bauermann <[email protected]>
6534
6535 * breakpoint.c (break_range_command): Fix typo in comment.
6536
f1310107
TJB
65372011-03-31 Thiago Jung Bauermann <[email protected]>
6538 Sergio Durigan Junior <[email protected]>
6539
6540 Implement support for PowerPC BookE ranged breakpoints.
6541 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6542 * breakpoint.h (struct bp_target_info) <length>: New member
6543 variable.
6544 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6545 instead of struct breakpoint as argument, and also add ASPACE
6546 and BP_ADDR arguments. Update all callers.
6547 (struct breakpoint_ops) <print_one_detail>: New method.
6548 (struct breakpoint) <addr_string_range_end>: New member variable.
6549 * breakpoint.c (breakpoint_location_address_match): Add function
6550 prototype.
6551 (insert_bp_location): Set bl->target_info.length.
6552 (breakpoint_here_p): Call breakpoint_location_address_match.
6553 (moribund_breakpoint_here_p): Likewise.
6554 (regular_breakpoint_inserted_here_p): Likewise.
6555 (breakpoint_thread_match): Likewise.
6556 (bpstat_stop_status): Likewise.
6557 (bpstat_check_location): Move call to
6558 breakpoint_ops.breakpoint_hit to the top.
6559 (print_one_breakpoint_location): Call
6560 breakpoint_ops.print_one_detail if available.
6561 (breakpoint_address_match_range): New function.
6562 (breakpoint_location_address_match): Likewise.
6563 (breakpoint_locations_match): Compare the length field of the
6564 locations too.
6565 (hw_breakpoint_used_count): Count resources used by all locations
6566 in a breakpoint, and use breakpoint_ops.resources_needed if
6567 available.
6568 (breakpoint_hit_ranged_breakpoint): New function.
6569 (resources_needed_ranged_breakpoint): Likewise.
6570 (print_it_ranged_breakpoint): Likewise.
6571 (print_one_ranged_breakpoint): Likewise.
6572 (print_one_detail_ranged_breakpoint): Likewise.
6573 (print_mention_ranged_breakpoint): Likewise.
6574 (print_recreate_ranged_breakpoint): Likewise.
6575 (ranged_breakpoint_ops): New structure.
6576 (find_breakpoint_range_end): New function.
6577 (break_range_command): Likewise.
6578 (delete_breakpoint): Free addr_string_range_end.
6579 (update_breakpoint_locations): Add SALS_END argument. Update
6580 all callers. Calculate breakpoint length if a non-zero SALS_END
6581 is given. Call breakpoint_locations_match instead of
6582 breakpoint_address_match.
6583 (reset_breakpoint): Find SaL of the end of the range if B is a
6584 ranged breakpoint.
6585 (_initialize_breakpoint): Register break-range command.
6586 * defs.h (print_core_address): Add function prototype.
6587 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6588 function.
6589 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6590 (ppc_linux_remove_hw_breakpoint): Likewise.
6591 (_initialize_ppc_linux_nat): Initialize
6592 to_ranged_break_num_registers.
6593 * target.c (update_current_target): Add comment about
6594 to_ranged_break_num_registers.
6595 (target_ranged_break_num_registers): New function.
6596 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6597 New method.
6598 (target_ranged_break_num_registers): Add function prototype.
6599 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6600 * utils.c (print_core_address): ... here.
6601
02d20e4a
UW
66022011-03-31 Ulrich Weigand <[email protected]>
6603
6604 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6605 variable compiler warning.
6606
ef23e705
TJB
66072011-03-30 Thiago Jung Bauermann <[email protected]>
6608
6609 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6610 code from here ...
6611 (re_set_breakpoint): ... to here ...
6612 (addr_string_to_sals): ... and here.
6613
311e6ab3
PM
66142011-03-29 Pierre Muller <[email protected]>
6615
6616 * Makefile.in (SFILES): Add missing C sources.
6617 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6618 Add missing headers.
6619
acd1d99c
MF
66202011-03-29 Mike Frysinger <[email protected]>
6621
6622 * .gitignore: New file.
6623
66ee2731
MF
66242011-03-29 Mike Frysinger <[email protected]>
6625
6626 * NEWS: Mention new cfi device simulation.
6627
53832f31
TT
66282011-03-29 Tom Tromey <[email protected]>
6629
6630 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6631 otherwise anonymous types.
6632 (dwarf2_name): Likewise.
6633 * valops.c (value_struct_elt_for_reference): Refine artificial
6634 type logic. Call error if j==-1.
6635
09b58708
JK
66362011-03-29 Andreas Tobler <[email protected]>
6637
6638 Fix false GCC warning.
6639 * infcall.c (find_function_addr): Initialize funaddr.
6640
6023c606
PM
66412011-03-29 Pierre Muller <[email protected]>
6642
6643 Fix mingw compilation with --enable-targets=all.
6644 * remote-mips.c (gdb_usleep.h): Include header.
6645 (mips_enter_debug): Use gdb_usleep instead of sleep.
6646
0e30163f
JK
66472011-03-28 Jan Kratochvil <[email protected]>
6648
6649 Support resolution of STT_GNU_IFUNC via breakpoints.
6650 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6651 bp_gnu_ifunc_resolver_return.
6652 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6653 the loop. Support bp_gnu_ifunc_resolver and
6654 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6655 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6656 breakpoints.
6657 (bptype_string, print_one_breakpoint_location): Support
6658 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6659 (user_settable_breakpoint): Return true also for
6660 bp_gnu_ifunc_resolver.
6661 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6662 bp_gnu_ifunc_resolver_return.
6663 (set_breakpoint_location_function): New parameter explicit_loc,
6664 describe it. Call find_pc_partial_function_gnu_ifunc with new
6665 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6666 EXPLICIT_LOC is not set.
6667 (set_raw_breakpoint): Set EXPLICIT_LOC for
6668 set_breakpoint_location_function.
6669 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6670 set_breakpoint_location_function.
6671 (mention): Support bp_gnu_ifunc_resolver and
6672 bp_gnu_ifunc_resolver_return.
6673 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6674 set_breakpoint_location_function.
6675 (update_breakpoint_locations): Remove static.
6676 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6677 bp_gnu_ifunc_resolver_return.
6678 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6679 bp_gnu_ifunc_resolver_return.
6680 (update_breakpoint_locations): New declaration.
6681 * elfread.c: Include gdbthread.h and regcache.h.
6682 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6683 functions.
6684 (elf_gnu_ifunc_fns): Install them.
6685 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6686 (stub_gnu_ifunc_resolver_return_stop): New functions.
6687 (stub_gnu_ifunc_fns): Install them.
6688 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6689 and gnu_ifunc_resolver_return_stop.
6690 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6691
07be84bf
JK
66922011-03-28 Jan Kratochvil <[email protected]>
6693
6694 STT_GNU_IFUNC reader implementation.
6695 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6696 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6697 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6698 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6699 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6700 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6701 (elf_gnu_ifunc_resolve_addr): New.
6702 (elf_symfile_read): Call elf_rel_plt_read.
6703 (elf_gnu_ifunc_fns): New.
6704 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6705 Install elf_gnu_ifunc_fns.
6706 * infcall.c (find_function_return_type): New function.
6707 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6708 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6709 (stub_gnu_ifunc_resolve_name): New functions.
6710 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6711 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6712 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6713
300f8e10
JK
67142011-03-28 Jan Kratochvil <[email protected]>
6715
6716 Code cleanup for later STT_GNU_IFUNC support.
6717 * infcall.c (find_function_addr): Remove variable code, use explicit
6718 dereferences for it. Move VALUE_TYPE initialization later.
6719
11c81455
JK
67202011-03-28 Jan Kratochvil <[email protected]>
6721
6722 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6723 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6724 (clear_pc_function_cache): Clear it.
6725 (find_pc_partial_function): Rename to ...
6726 (find_pc_partial_function_gnu_ifunc): ... this function. New
6727 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6728 (find_pc_partial_function): New wrapper for this function.
6729 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6730
0875794a
JK
67312011-03-28 Jan Kratochvil <[email protected]>
6732
6733 GDB internal type support for STT_GNU_IFUNC.
6734 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6735 (elf_symtab_read): Set mst_text_gnu_ifunc for
6736 BSF_GNU_INDIRECT_FUNCTION.
6737 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6738 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6739 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6740 nodebug_got_plt_symbol.
6741 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6742 (TYPE_GNU_IFUNC): New.
6743 (struct main_type): New field flag_gnu_ifunc.
6744 (struct builtin_type): New field builtin_func_func.
6745 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6746 nodebug_got_plt_symbol.
6747 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6748 (in_gnu_ifunc_stub): New.
6749 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6750 mst_text_gnu_ifunc.
6751 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6752 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6753 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6754 in_gnu_ifunc_stub.
6755 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6756 * symtab.c (search_symbols): Likewise.
6757 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6758 and mst_slot_got_plt.
6759 (in_gnu_ifunc_stub): New declaration.
6760
d0fb5eae
JK
67612011-03-28 Jan Kratochvil <[email protected]>
6762
6763 Support a ring of related breakpoints.
6764 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6765 other functions, add gdb_assert.
6766 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6767 watchpoint_del_at_next_stop.
6768 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6769 (bpstat_stop_status): Handle ring in related_breakpoint.
6770 (set_raw_breakpoint_without_location): Initialize ring in
6771 related_breakpoint.
6772 (delete_breakpoint): Handle ring in related_breakpoint, use
6773 watchpoint_del_at_next_stop.
6774 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6775
9cded63f
TT
67762011-03-28 Tom Tromey <[email protected]>
6777
6778 PR symtab/12441:
6779 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6780 with `language_minimal'.
6781
467d42c4
UW
67822011-03-25 Ulrich Weigand <[email protected]>
6783
6784 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6785 instead of checking for STT_ARM_TFUNC symbol type.
6786
62853458
TT
67872011-03-25 Tom Tromey <[email protected]>
6788
6789 * linespec.c (symbol_found): Restore line-based result for
6790 non-LOC_LABEL symbols.
6791
a7417d46
KT
67922011-03-25 Kai Tietz <[email protected]>
6793
6794 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6795 instead of strcmp for comparison.
6796 (tui_source_is_displayed): Likewise.
6797 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6798
55f1336d
TT
67992011-03-24 Mark Wielaard <[email protected]>
6800
f33edef8
PP
6801 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6802 complaint.
6803 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6804 (find_partial_die_in_comp_unit): Likewise in comment.
6805 (read_attribute_value): Likewise.
6806 (lookup_die_type): Likewise.
6807 (dwarf_form_name): Likewise.
6808 (dump_die_shallow): Likewise.
6809 (follow_die_ref_or_sig): Likewise.
55f1336d 6810
9ef07c8c
TT
68112011-03-24 Tom Tromey <[email protected]>
6812
6813 PR breakpoints/11816:
6814 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6815 (decode_compound): Update.
6816 (find_function_symbol): New function.
6817 (decode_dollar): Update.
6818 (decode_label): Add 'function_symbol' parameter. Handle
6819 function-relative labels.
6820 (decode_variable): Update.
6821 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6822 not its line. Set `special_display' and canonical name for
6823 labels.
6824
56435ebe
TT
68252011-03-24 Tom Tromey <[email protected]>
6826
6827 * linespec.h (struct linespec_result) <special_display>: New
6828 field.
6829 * breakpoint.h (struct breakpoint) <display_canonical>: New
6830 field.
6831 * breakpoint.c (print_breakpoint_location): Respect
6832 display_canonical.
6833 (create_breakpoint_sal): Add 'display_canonical' parameter.
6834 (create_breakpoints_sal): Update.
6835 (create_breakpoint): Update.
6836
7efd8fc2
TT
68372011-03-24 Tom Tromey <[email protected]>
6838
6839 * symtab.c (decode_line_spec): Update.
6840 * linespec.c (build_canonical_line_spec): Change type of
6841 'canonical'.
6842 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6843 (find_method, decode_all_digits, decode_dollar, decode_label)
6844 (symbol_found): Likewise.
6845 (init_linespec_result): New function.
6846 * breakpoint.c (struct captured_parse_breakpoint_args)
6847 <canonical_p>: New field, replaces addr_string_p.
6848 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6849 'addr_string'.
6850 (parse_breakpoint_sals): Likewise.
6851 (do_captured_parse_breakpoint): Update.
6852 (create_breakpoint): Use struct linespec_result.
6853 (until_break_command): Update.
6854 (breakpoint_re_set_one): Update.
6855 (decode_line_spec_1): Update.
6856 * linespec.h (struct linespec_result): New.
6857 (init_linespec_result): Declare.
6858
788c8b10
PA
68592011-03-23 Pedro Alves <[email protected]>
6860
6861 * regcache.c (regcache_raw_read): If the target didn't supply a
6862 given raw register, mark it as unavailable.
6863
0ba1096a
KT
68642011-03-23 Kai Tietz <[email protected]>
6865
6866 * breakpoint.c (clear_command): Use filename_cmp
6867 instead of strcmp for comparison.
6868 * buildsym.c (watch_main_source_file_lossage): Likewise.
6869 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6870 checking just for slash.
6871 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6872 strrchr and filename_cmp instead of strcmp for filenames.
6873 (add_old_header_file): Use filename_cmp
6874 instead of strcmp for comparison.
6875 * exec.c (exec_set_section_address): Likewise.
6876 * macrotab.c (macro_lookup_inclusion): Likewise.
6877 (macro_lookup_inclusion): Likewise.
6878 * elfread.c (_initialize_elfread): Likewise.
6879 (elfstab_offset_sections): Likewise.
6880 (elfstab_offset_sections): Use lbasename instead of
6881 strrchr.
6882 * mdebugread.c (parse_partial_symbols): Likewise.
6883 (arse_partial_symbols): Use filename_(n)cmp instead of
6884 str(n)cmp for comparison.
6885 * minsyms.c (lookup_minimal_symbol): Likewise.
6886 * psymtab.c (read_psymtabs_with_filename): Likewise.
6887 * solib.c (solib_read_symbols): Likewise.
6888 (reload_shared_libraries_1): Likewise.
6889 * symmisc.c (maintenance_print_symbols): Likewise.
6890 * symfile.c (separate_debug_file_exists): Likewise.
6891 (reread_symbols): Likewise.
6892 (find_separate_debug_file_by_debuglink): Likewise.
6893 * remote-fileio.c (remote_fileio_func_rename): Likewise.
6894 * source.c (add_path): Likewise.
6895 * symtab.c (filename_seen): Likewise.
6896 (file_matches): Likewise.
6897 (print_symbol_info): Likewise.
6898 (maybe_add_partial_symtab_filename): Likewise.
6899 (make_source_files_completion_list): Likewise.
6900 * xml-syscall.c (init_sysinfo): Likewise.
6901 * windows-nat.c (_initialize_check_for_gdb_ini): Use
6902 IS_DIR_SEPARATOR for checking for trailing path separator.
6903
dd90784c
JK
69042011-03-22 Jan Kratochvil <[email protected]>
6905
6906 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
6907 label abort_expression.
6908 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
6909 DWARF_VALUE_OPTIMIZED_OUT.
6910
3167638f
JK
69112011-03-22 Jan Kratochvil <[email protected]>
6912
6913 Code cleanup.
6914 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
6915 to linkage_name. Invert its value. Update the function comment.
6916 (c_type_print_varspec_suffix): Invert it at the caller.
6917 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
6918
ce406537
PA
69192011-03-22 Pedro Alves <[email protected]>
6920
6921 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
6922 errors when reading the `stop_pc'.
6923 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
6924 get_frame_pc.
6925
da5d4055
PM
69262011-03-22 Phil Muldoon <[email protected]>
6927
6928 * NEWS: Document gdb.Write stream keyword.
6929
29e0eb9c
JK
69302011-03-22 Jan Kratochvil <[email protected]>
6931
6932 Revert:
6933 2011-03-21 Jan Kratochvil <[email protected]>
6934 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6935 (dwarf2_add_field): Fix new_field->accessibility for
6936 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6937
05775840
PM
69382011-03-22 Phil Muldoon <[email protected]>
6939
f33edef8 6940 PR python/12183
05775840
PM
6941
6942 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
6943 other error classes. Do not print stack trace.
6944
a0cb7835
JK
69452011-03-21 Jan Kratochvil <[email protected]>
6946
6947 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
6948 (dwarf2_add_field): Fix new_field->accessibility for
6949 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
6950
d19f7eee
UW
69512011-03-21 Ulrich Weigand <[email protected]>
6952
6953 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
6954 encountering a load via a non-SP register.
6955
4a2fbb50
UW
69562011-03-21 Ulrich Weigand <[email protected]>
6957
6958 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
6959 field in returned unwinder.
6960
3489610d
JB
69612012-03-21 Jan Kratochvil <[email protected]>
6962
6963 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
6964
8c1a34e7
JB
69652012-03-21 Joel Brobecker <[email protected]>
6966
6967 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
6968 of xmalloc.
6969
8fbca658
PA
69702012-03-18 Pedro Alves <[email protected]>
6971
6972 * frame.c (frame_unwind_register): Throw an error if unwinding the
6973 register failed.
6974 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
6975 an unwind stop reason.
6976 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
6977 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
6978 UNWIND_UNAVAILABLE>: New.
6979 * inline-frame.c (inline_frame_unwind): Install
6980 default_frame_unwind_stop_reason.
6981 * frame-unwind.c: Include "exceptions.h".
6982 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
6983 (default_frame_unwind_stop_reason): New.
6984 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
6985 (default_frame_unwind_stop_reason): Declare.
6986 (struct frame_unwind) <stop_reason>: New function pointer.
6987
6988 * dummy-frame.c: Install default_frame_unwind_stop_reason.
6989 * dwarf2-frame.c: Include exceptions.h.
6990 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
6991 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
6992 computing the CFA. If such an error was thrown, set
6993 unavailable_retaddr.
6994 (dwarf2_frame_unwind_stop_reason): New.
6995 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
6996 unavailable.
6997 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
6998 (dwarf2_signal_frame_unwind): Ditto.
6999
7000 * amd64-tdep.c: Include "exceptions.h".
7001 (struct amd64_frame_cache): New field "base_p".
7002 (amd64_init_frame_cache): Clear it.
7003 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7004 Avoid reading registers with functions that throw if the register
7005 is not necessary to compute the frame base.
7006 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7007 swallowing NOT_AVAILABLE_ERROR.
7008 (amd64_frame_unwind_stop_reason): New.
7009 (amd64_frame_this_id): Don't build a frame id if the frame base
7010 was unavailable.
7011 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7012 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7013 base_p if the frame base was computable.
7014 (amd64_sigtramp_frame_unwind_stop_reason): New.
7015 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7016 frame base was unavailable.
7017 (amd64_sigtramp_frame_unwind): Install
7018 amd64_sigtramp_frame_unwind_stop_reason.
7019 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7020 base_p if the frame base was computable.
7021 (amd64_epilogue_frame_unwind_stop_reason): New.
7022 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7023 frame base was unavailable.
7024 (amd64_epilogue_frame_unwind): Install
7025 amd64_epilogue_frame_unwind_stop_reason.
7026 * i386-tdep.c: Include "exceptions.h".
7027 (struct i386_frame_cache): New field "base_p".
7028 (i386_init_frame_cache): Clear it.
7029 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7030 Avoid reading registers with functions that throw if the register
7031 is not necessary to compute the frame base.
7032 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7033 swallowing NOT_AVAILABLE_ERROR.
7034 (i386_frame_unwind_stop_reason): New.
7035 (i386_frame_this_id): Don't build a frame id if the frame base was
7036 unavailable.
7037 (i386_frame_prev_register): Handle unavailable SP.
7038 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7039 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7040 base_p if the frame base was computable.
7041 (i386_epilogue_frame_unwind_stop_reason): New.
7042 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7043 base was unavailable.
7044 (i386_epilogue_frame_unwind): Install
7045 i386_epilogue_frame_unwind_stop_reason.
7046 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7047 base_p if the frame base was computable.
7048 (i386_sigtramp_frame_unwind_stop_reason): New.
7049 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7050 base was unavailable.
7051 (i386_sigtramp_frame_unwind): Install
7052 i386_sigtramp_frame_unwind_stop_reason.
7053 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7054 type's size, not the register's.
7055 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7056
7057 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7058 default_frame_unwind_stop_reason.
7059 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7060 (alpha_heuristic_frame_unwind): Ditto.
7061 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7062 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7063 * avr-tdep.c (avr_frame_unwind): Ditto.
7064 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7065 Ditto.
7066 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7067 * frv-tdep.c (frv_frame_unwind): Ditto.
7068 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7069 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7070 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7071 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7072 (hppa_stub_frame_unwind): Ditto.
7073 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7074 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7075 (ia64_libunwind_frame_unwind)
7076 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7077 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7078 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7079 * m32c-tdep.c (m32c_unwind): Ditto.
7080 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7081 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7082 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7083 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7084 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7085 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7086 * mep-tdep.c (mep_frame_unwind): Ditto.
7087 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7088 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7089 (mips_stub_frame_unwind): Ditto.
7090 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7091 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7092 * mt-tdep.c (mt_frame_unwind): Ditto.
7093 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7094 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7095 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7096 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7097 (s390_sigtramp_frame_unwind): Ditto.
7098 * score-tdep.c (score_prologue_unwind): Ditto.
7099 * sh-tdep.c (sh_frame_unwind): Ditto.
7100 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7101 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7102 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7103 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7104 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7105 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7106 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7107 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7108 (sparc64obsd_trapframe_unwind): Ditto.
7109 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7110 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7111 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7112 * v850-tdep.c (v850_frame_unwind): Ditto.
7113 * vax-tdep.c (vax_frame_unwind): Ditto.
7114 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7115 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7116 * xtensa-tdep.c (xtensa_unwind): Ditto.
7117
f23d1b92
PA
71182011-03-18 Pedro Alves <[email protected]>
7119
7120 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7121 there's always a frame. Use get_frame_pc_if_available instead of
7122 get_frame_pc, and if there's no PC available, don't look up a
7123 symtab.
7124
1d4f5741
PA
71252011-03-18 Pedro Alves <[email protected]>
7126
7127 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7128 unavailable PC.
7129
dba09041
PA
71302011-03-18 Pedro Alves <[email protected]>
7131
7132 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7133 gracefully.
7134
9a26e44c
PA
71352011-03-18 Pedro Alves <[email protected]>
7136
7137 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7138 * frame.c (frame_unwind_caller_pc_if_available): New.
7139 * stack.c (frame_info): Handle unavailable PC.
7140
71412011-03-18 Pedro Alves <[email protected]>
7142
7143 * frame.c (frame_unwind_pc): Rename to ...
7144 (frame_unwind_pc_if_available): ... this. New `pc' output
7145 parameter. Change return type to int. Gracefully handle
7146 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7147 happened, or 1 otherwise.
7148 (frame_unwind_pc): Reimplement on top of
7149 frame_unwind_pc_if_available.
7150 (get_frame_func): Rename to ...
7151 (get_frame_func_if_available): New `pc' output parameter. Change
7152 return type to int. Gracefully handle the PC not being available.
7153 (get_frame_func): Reimplement on top of
7154 get_frame_func_if_available.
7155 (select_frame): Handle the PC being unavailable.
7156 (get_prev_frame): Handle the PC being unavailable.
7157 (get_frame_pc_if_available): New.
7158 (get_frame_address_in_block_if_available): New.
7159 (find_frame_sal): Handle the frame PC not being available.
7160 * frame.h (get_frame_pc_if_available): Declare.
7161 (get_frame_address_in_block_if_available): Declare.
7162 (get_frame_func_if_available): Declare.
7163 * stack.c (print_frame_info): Handle the PC being unavailable.
7164 (find_frame_funname): Ditto.
7165 (print_frame): Handle the PC being unavailable.
7166 (get_frame_language): Ditto.
7167 * blockframe.c (get_frame_block): Ditto.
7168 * macroscope.c (default_macro_scope): Ditto.
7169 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7170
71712011-03-18 Pedro Alves <[email protected]>
7172
7173 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7174 NOT_AVAILABLE_ERROR when evaluating the location expression.
7175
71762011-03-18 Pedro Alves <[email protected]>
7177
7178 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7179 returning that the register piece is unavailable/optimized out.
7180 (write_pieced_value): Handle get_frame_register_bytes returning
7181 that the register piece is unavailable/optimized out when doing a
7182 read-modify write of a bitfield.
7183 * findvar.c (value_from_register): Handle get_frame_register_bytes
7184 returning that the register piece is unavailable/optimized out.
7185 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7186 and `unavailablep'. Throw error on bad debug info. Use
7187 frame_register instead of frame_register_read, to fill in the new
7188 arguments.
7189 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7190 and `unavailablep'.
7191 * valops.c: (value_assign): Adjust, and handle
7192 get_frame_register_bytes failing.
7193 * spu-tdep.c: Include exceptions.h.
7194 (spu_software_single_step): Adjust, and handle
7195 get_frame_register_bytes failing.
7196 (spu_get_longjmp_target): Ditto.
7197 * gdbarch.sh (register_to_value): Change to return int. New
7198 parameters `optimizedp' and `unavailablep'.
7199 * gdbarch.h, gdbarch.c: Regenerate.
7200 * i386-tdep.c (i386_register_to_value): Adjust to new
7201 gdbarch_register_to_value interface.
7202 * i387-tdep.c (i387_register_to_value): Ditto.
7203 * i387-tdep.h (i387_register_to_value): Ditto.
7204 * alpha-tdep.c (alpha_register_to_value): Ditto.
7205 * ia64-tdep.c (ia64_register_to_value): Ditto.
7206 * m68k-tdep.c (m68k_register_to_value): Ditto.
7207 * mips-tdep.c (mips_register_to_value): Ditto.
7208 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7209
0fdb4f18
PA
72102011-03-18 Pedro Alves <[email protected]>
7211
7212 * findvar.c (value_of_register): Mark the value as unavailable, if
7213 the register is unavailable.
7214 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7215 (frame_register): New `unavailablep' parameter.
7216 (frame_register_read): Update comment.
7217 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7218 Set it if the register is unavailable. If the register is
7219 unavailable, clear the output buffer.
7220 (frame_register): New `unavailablep' parameter. Pass it down.
7221 (frame_unwind_register): Adjust.
7222 (put_frame_register): Adjust.
7223 (frame_register_read): Adjust. Also return false if the register
7224 is not available.
7225 (frame_register_unwind_location): Adjust.
7226 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7227 is unavailable, mark the value accordingly.
7228 * stack.c (frame_info): Handle unavailable registers.
7229
e69aa73e
PA
72302011-03-18 Pedro Alves <[email protected]>
7231
7232 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7233 simplify, using regcache_cooked_read.
7234
05d1431c
PA
72352011-03-18 Pedro Alves <[email protected]>
7236
7237 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7238 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7239 (regcache_raw_read_unsigned, regcache_raw_read_part)
7240 (regcache_cooked_read, regcache_cooked_read_signed)
7241 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7242 (regcache_cooked_read_ftype): Change return to enum
7243 register_status.
7244 * regcache.c: Include exceptions.h
7245 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7246 (do_cooked_read): Change return to enum register_status. Always
7247 forward to regcache_cooked_read.
7248 (regcache_raw_read): Change return to enum register_status. If
7249 the register is not REG_VALID, memset the buffer. Return the
7250 register's status.
7251 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7252 return the register's status.
7253 (regcache_raw_read_unsigned): Ditto.
7254 (regcache_cooked_read): Change return to enum register_status.
7255 Assert that with read-only regcaches, the register's status must
7256 be known. If the regcache is read-only, and the register is not
7257 REG_VALID, memset the buffer. Return the register's status.
7258 (regcache_cooked_read_signed): Change return to enum
7259 register_status. Handle non-REG_VALID registers and return the
7260 register's status.
7261 (regcache_cooked_read_unsigned): Change return to enum
7262 register_status. Handle non-REG_VALID registers and return the
7263 register's status.
7264 (regcache_xfer_part, regcache_raw_read_part)
7265 (regcache_cooked_read_part): Change return to enum
7266 register_status. Return the register's status.
7267 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7268 unavailable.
7269 (regcache_dump): Handle unavailable cooked registers.
7270 * frame.c (do_frame_register_read): Adjust interface to match
7271 regcache_cooked_read_ftype.
7272 * gdbarch.sh (pseudo_register_read): Change return to enum
7273 register_status.
7274 * gdbarch.h, gdbarch.c: Regenerate.
7275
7276 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7277 register_status.
7278 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7279 register_status. If reading a raw register indicates the raw
7280 register is not valid, return the raw register's status,
7281 otherwise, return REG_VALID.
7282 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7283 register_status. Handle non-REG_VALID raw registers and return
7284 the register's status.
7285 * arm-tdep.c (arm_neon_quad_read)
7286 (arm_pseudo_read): Change return to enum register_status. Handle
7287 non-REG_VALID raw registers and return the register's status.
7288 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7289 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7290 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7291 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7292 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7293 register_status.
7294 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7295 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7296 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7297 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7298 (m32c_pseudo_register_read): Change return to enum
7299 register_status. Adjust.
7300 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7301 enum register_status. Return the register's status.
7302 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7303 register_status. Return the register's status.
7304 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7305 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7306 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7307 * rs6000-tdep.c (move_ev_register_func): New typedef.
7308 (e500_move_ev_register): Use it. Change return to enum
7309 register_status. Return the register's status.
7310 (do_regcache_raw_read): New function.
7311 (do_regcache_raw_write): New function.
7312 (e500_pseudo_register_read): Change return to enum
7313 register_status. Return the register's status. Use
7314 do_regcache_raw_read.
7315 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7316 (dfp_pseudo_register_read): Change return to enum register_status.
7317 Return the register's status.
7318 (vsx_pseudo_register_read): Ditto.
7319 (efpr_pseudo_register_read): Ditto.
7320 (rs6000_pseudo_register_read): Ditto.
7321 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7322 register_status. Return the register's status.
7323 * sh64-tdep.c (pseudo_register_read_portions): New function.
7324 (sh64_pseudo_register_read): Change return to enum
7325 register_status. Use pseudo_register_read_portions. Return the
7326 register's status.
7327 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7328 register_status. Return the register's status.
7329 * sh-tdep.c (pseudo_register_read_portions): New function.
7330 (sh_pseudo_register_read): Change return to enum register_status.
7331 Use pseudo_register_read_portions. Return the register's status.
7332 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7333 enum register_status. Return the register's status.
7334 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7335 * spu-tdep.c (spu_pseudo_register_read_spu)
7336 (spu_pseudo_register_read): Ditto.
7337 * xtensa-tdep.c (xtensa_register_read_masked)
7338 (xtensa_pseudo_register_read): Ditto.
7339 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7340
e10abd8f
PM
73412011-03-18 Pierre Muller <[email protected]>
7342
7343 * python/py-value.c (valpy_getitem): Fix formatting of error function
7344 call.
7345
7ea6d463
PM
73462011-03-18 Pierre Muller <[email protected]>
7347
7348 ARI fixes: Add missing internationalization markups throughout
7349 C source files.
7350 * darwin-nat-info.c: Ditto.
7351 * record.c: Ditto.
7352 * remote.c: Ditto.
7353 * mi/mi-main.c: Ditto.
7354
001083c6
PM
73552011-03-18 Pierre Muller <[email protected]>
7356
7357 ARI fixes: Add missing internationalization markups throughout
7358 yacc files.
7359 * c-exp.y: Ditto.
7360 * cp-name-parser.y: Ditto.
7361 * f-exp.y: Ditto.
7362 * m2-exp.y: Ditto.
7363 * objc-exp.y: Ditto.
7364 * p-exp.y: Ditto.
7365
4f1cdeec
PM
73662011-03-18 Pierre Muller <[email protected]>
7367
7368 ARI fixes: Messages should have no trailing new lines.
7369 * darwin-nat.c (mach_check_error): Remove trailing new line from
7370 warning function call message.
7371 * record.c (bfdcore_read): Idem for error call.
7372
28e698f1
PM
73732011-03-18 Pierre Muller <[email protected]>
7374
7375 * common/signals.c (target_signal_from_host): Add _ markup to error
7376 function call message.
7377 (target_signal_to_host): Add _ markup and remove trailing new line
7378 from warning call message.
7379 (target_signal_from_command): Add _ markup to error function call
7380 message.
7381
99c3dc11
PM
73822011-03-18 Phil Muldoon <[email protected]>
7383
f33edef8 7384 PR python/12149
99c3dc11
PM
7385
7386 * python/python.c (gdbpy_write): Accept a stream argument and
7387 operate to the appropriate stream.
7388 (gdbpy_flush): Likewise.
7389 (_initialize_python): Add stream constants.
7390 (finish_python_initialization): Add GdbOutputErrorFile class.
7391
c20800be
KY
73922011-03-18 Kwok Cheung Yeung <[email protected]>
7393
7394 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7395
f4a1794a
KY
73962011-03-18 Kwok Cheung Yeung <[email protected]>
7397
7398 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7399 to store_signed_integer. Add debug message when relocating CALL
7400 instructions. Fix formatting of debug message.
7401 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7402
d4862372
JB
74032011-03-17 Joel Brobecker <[email protected]>
7404
7405 * target.h (struct target_ops): Remove to_lookup_symbol field.
7406 (target_lookup_symbol): Delete macro.
7407 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7408 (update_current_target, setup_target_debug): Remove handling
7409 of to_lookup_symbol target_ops field.
7410 * ada-tasks.c (get_known_tasks_addr): Remove use of
7411 target_lookup_symbol.
7412 * coffread.c (coff_symtab_read): Likewise.
7413 * dbxread.c (read_dbx_symtab): Ditto.
7414
d645e32e
JB
74152011-03-17 Joel Brobecker <[email protected]>
7416
7417 PR gdb/12116:
7418 * configure.ac: Add getthrds declaration check.
7419 * configure, config.in: Regenerate.
7420 * aix-thread.c (getthrds): Declare only if not already declared
7421 in procinfo.h. More declaration out of get_signaled_thread to
7422 global scope.
7423
29703da4
PM
74242011-03-17 Phil Muldoon <[email protected]>
7425
7426 * python/py-symtab.c: Populate symtab_object_methods,
7427 sal_object_methods.
7428 (stpy_is_valid): New function.
7429 (salpy_is_valid): Ditto.
7430 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7431 (sympy_is_valid): New function.
7432 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7433 (objfpy_is_valid): New function.
7434 * python/py-inferior.c: Populate inferior_object_methods.
7435 (infpy_is_valid): New function.
7436 * python/py-infthread.c: Populate thread_object_methods.
7437 (thpy_is_valid): New function.
7438 * python/py-block.c: Declare block_object_methods. Populate. Declare
7439 block_iterator_object_methods. Populate.
7440 (blpy_is_valid): New function.
7441 (blpy_iter_is_valid): Ditto.
7442
c00f8484
KS
74432011-03-16 Keith Seitz <[email protected]>
7444
7445 * linespec.c (find_methods): Canonicalize NAME before looking
7446 up the symbol.
7447 (name_end): New function.
7448 (keep_name_info): New function.
7449 (decode_line_1): Use keep_name_info.
7450 (decode_compound): Likewise.
7451 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7452 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7453
7454 PR c++/12273
7455 * linespec.c (locate_first_half): Keep overload information, too.
7456 (decode_compound): Use a string to represent break characters
7457 to escape the loop.
7458 If P points to a break character, do not increment it.
7459 For C++ and Java, keep overload information and relevant keywords.
7460 If we cannot find a symbol, search the minimal symbols.
7461
7462 PR c++/11734
7463 * linespec.c (decode_compound): Rename SAVED_ARG to
7464 THE_REAL_SAVED_ARG.
7465 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7466 single-quotes.
7467 Pass a valid block to lookup_symbol.
7468 (lookup_prefix_sym): Likewise.
7469 (find_method): Construct search name based on SYM_CLASS instead
7470 of SAVED_ARG.
7471 * psymtab.c (lookup_partial_symbol): Add language parameter.
7472 (lookup_symbol_aux_psymtabs): Likewise.
7473 Don't assume that the psymtab we found was the right one. Search
7474 for the desired symbol in the symtab to be certain.
7475 (psymtab_search_name): New function.
7476 (lookup_partial_symbol): Use psymtab_search_name.
7477 Add language parameter.
7478 (read_symtabs_for_function): Add language parameter and pass to
7479 lookup_partial_symbol.
7480 (find_symbol_file_from_partial): Likewise.
7481
c91513d8
PP
74822011-03-16 Paul Pluzhnikov <[email protected]>
7483
7484 PR gdb/12528
7485 * dwarf2read.c (noop_record_line): New function.
7486 (dwarf_decode_lines): Ignore line tables for GCd functions.
7487
b37520b6
PM
74882011-03-16 Pierre Muller <[email protected]>
7489
7490 Fix ARI warnings about new lines at the end of messages, which
7491 are unneeded as there is a new line added at the end of the message
7492 automatically.
7493 * darwin-nat.c (darwin_stop_inferior): Ditto.
7494 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7495 * dfp.c (decimal_to_number): Ditto.
7496 * exec.c (print_section_info): Ditto.
7497 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7498 * osdata.c (get_osdata): Ditto.
7499 * record.c (bfdcore_write): Ditto.
7500 * remote-mips.c (mips_readchar): Ditto.
7501 * remote.c (read_ptid): Ditto.
7502 * ser-mingw.c (ser_windows_raw): Ditto.
7503 * tracepoint.c (add_local_symbols): Ditto.
7504 * windows-nat.c (fake_create_process): Ditto.
7505
b08ee6a2
TT
75062011-03-16 Tom Tromey <[email protected]>
7507
7508 * tracepoint.c (stop_tracing): Don't declare.
7509 * event-top.c (after_char_processing_hook): Add `(void)'.
7510
9a6f1302
PM
75112011-03-16 Phil Muldoon <[email protected]>
7512
7513 * NEWS: Add Parameter sub-classing description.
7514
7ceb86b1
KT
75152011-03-16 Kai Tietz <[email protected]>
7516
7517 * MAINTAINERS: Update my e-mail address.
7518
efeff6cf
AT
75192011-03-15 Andreas Tobler <[email protected]>
7520
7521 * MAINTAINERS: Add myself for write after approval privileges.
7522
681c238c
MS
75232011-03-15 Michael Snyder <[email protected]>
7524
f3df5b08
MS
7525 * frame.c (find_frame_sal): Assert sym is not null.
7526
13f6513c
MS
7527 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7528
50412521
MS
7529 * objc-lang.c (selectors_info): Check strchr for null result.
7530
681c238c
MS
7531 * stabsread.c (define_symbol): Guard against bad stabstring input.
7532
6ced1581
PM
75332011-03-15 Pierre Muller <[email protected]>
7534
7535 Remove trailing spaces and tabulations from pascal language
7536 support sources.
7537 p-exp.y: Ditto.
7538 p-lang.c: Ditto.
7539 p-lang.h: Ditto.
7540 p-valprint.c: Ditto.
7541
9373cf26
JK
75422011-03-15 Jan Kratochvil <[email protected]>
7543
7544 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7545 than LOW. Comment it.
7546 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7547 HIGHPC not strictly higher than LOWPC.
7548
9a1edae6
PM
75492011-03-15 Pierre Muller <[email protected]>
7550
7551 Fix formatting of function declarations returning a pointer in
7552 previous commit.
7553 * varobj.c (varobj_add_child): Ditto.
7554 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7555 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7556
24e9cda0
UW
75572011-03-15 Ulrich Weigand <[email protected]>
7558
7559 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7560 for the "generic" vector ABI used with GCC 4.3 and later.
7561 (ppc64_sysv_abi_return_value): Likewise.
7562
75632011-03-15 Ulrich Weigand <[email protected]>
81b4675a
UW
7564
7565 * infcall.c (call_function_by_hand): Function return value is
7566 always a non_lval, even when using struct_return.
7567
c9174737
PA
75682011-03-15 Pedro Alves <[email protected]>
7569
7570 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7571 (map_display_numbers): New.
7572 (do_delete_display): New.
7573 (undisplay_command): Use map_display_numbers.
7574 (do_enable_disable_display): New.
7575 (enable_disable_display_command): New function.
7576 (enable_display): Delete.
7577 (enable_display_command): New.
7578 (disable_display_command): Reimplement.
7579 (_initialize_printcmd): Adjust "enable display" command to use
7580 `enable_display_command' as callback.
7581
350c6c65
PM
75822011-03-14 Phil Muldoon <[email protected]>
7583
7584 * NEWS: Add Python breakpoint 'stop' operation.
7585
824446ad
PM
75862011-03-14 Phil Muldoon <[email protected]>
7587
7588 * NEWS: Delete duplicate entry. Fix typo.
7589
2021ad3a
PM
75902011-03-14 Pierre Muller <[email protected]>
7591
7592 Fix ARI warning about function names in first column.
7593 Put prototype declaration on same line as return type.
7594 * objc-exp.y: Ditto.
7595 * p-exp.y: Ditto.
7596 * python/py-stopevent.h: Ditto.
7597 For long function names, split parameters to
7598 allow function name on same line as return type.
7599 * solib-pa64.c: Ditto.
7600 * varobj.c: Ditto.
7601 * varobj.h: Ditto.
7602 For long function declaration, use single line.
7603 * hppa-tdep.h: Ditto.
7604 * inferior.h: Ditto.
7605
7371cf6d
PM
76062011-03-14 Phil Muldoon <[email protected]>
7607
7608 * python/python.h: Declare gdbpy_should_stop and
7609 gdbpy_breakpoint_has_py_cond.
7610 * python/python.c: Add python.h to includes. Remove python.h from
7611 HAVE_PYTHON definition
7612 (gdbpy_should_stop): New dummy function.
7613 (gdbpy_breakpoint_has_py_cond): New dummy function.
7614 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7615 sub-classing capabilities.
7616 (gdbpy_should_stop): New function.
7617 (gdbpy_breakpoint_has_py_cond): New function.
7618 (local_setattro): New function.
7619 * breakpoint.c (condition_command): Add check for Python 'stop'
7620 operation.
7621 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7622 operation function as part of stop/continue tests.
7623
37b50a69
TT
76242011-03-14 Tom Tromey <[email protected]>
7625
7626 PR gdb/12576:
7627 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7628 (needs_frame_dwarf_call): Likewise.
7629
eeae04df
PM
76302011-03-14 Pierre Muller <[email protected]>
7631
7632 Fix ARI warning about functions without parameters that do not
7633 use (void).
7634 * breakpoint.c (all_tracepoints): Replace () by (void).
7635 * f-exp.y (match_string_literal): Ditto.
7636 (yylex): Ditto.
7637 * m2-exp.y (yylex): Ditto.
7638 * mep-tdep.c (current_me_module): Ditto.
7639 (current_options): Ditto.
7640 (current_cop_data_bus_width): Ditto.
7641 (current_cr_names): Ditto.
7642 (current_cr_is_float): Ditto.
7643 (current_ccr_names): Ditto.
7644 * objc-exp.y (yylex): Ditto.
7645 * p-exp.y (yylex): Ditto.
7646 * remote.c (send_interrupt_sequence): Ditto.
7647 * tracepoint.c (current_trace_status): Ditto.
7648 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7649 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7650
6dc3565d
MS
76512011-03-11 Michael Snyder <[email protected]>
7652
1427fe5e
MS
7653 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7654 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7655 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7656 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7657 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7658
60bc018f
MS
7659 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7660 (delete_async_event_handler): Ditto.
7661
f3be5b64
MS
7662 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7663
4c2d5724
MS
7664 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7665
6dc3565d
MS
7666 * top.c (set_verbose): Assert showcmd was found.
7667
4e6ca6d5
MG
76682011-03-11 Maxim Grigoriev <[email protected]>
7669
7670 * xtensa-tdep.c (warning_once): Correct style issues.
7671
815a83e4
YQ
76722011-03-11 Yao Qi <[email protected]>
7673
7674 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7675
f2eb0bc8
AS
76762011-03-11 Andreas Schwab <[email protected]>
7677
7678 * common/aclocal.m4: Remove.
7679
b801de47
MG
76802011-03-10 Maxim Grigoriev <[email protected]>
7681
7682 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7683 (xtensa_write_register, xtensa_read_register): Likewise.
7684 (xtensa_hextochar): Removed.
7685 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7686
dbab50de
MG
76872011-03-10 Maxim Grigoriev <[email protected]>
7688
7689 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7690 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7691 (xtensa_alloc_frame_cache): Add initialization for new fields.
7692 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7693 (warning_once): New function.
7694 (xtensa_insn_kind): New item c0opc_and.
7695 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7696 (call0_track_op): Change arguments. New local variable litbase.
7697 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7698 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7699 in the prologue.
dbab50de 7700 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7701 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7702 Add the variety of updates to handle extended prologues, which now can
7703 conduct dynamic stack adjustments.
7704 (call0_frame_cache): Likewise.
7705 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7706 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7707
b2c04452
MS
77082011-03-10 Michael Snyder <[email protected]>
7709
f8f67713
MS
7710 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7711 (cmd_qtframe): Ditto.
7712 (cmd_qtbuffer): Ditto.
7713 (cmd_bigqtbuffer): Ditto.
7714
197f0a60
TT
77152011-03-10 Tom Tromey <[email protected]>
7716
7717 * tracepoint.c (trace_actions_command): Update.
7718 * thread.c (thread_apply_command): Update.
7719 * reverse.c (delete_bookmark_command): Update.
7720 (bookmarks_info): Update.
7721 * printcmd.c (undisplay_command): Update.
7722 * memattr.c (mem_enable_command): Update.
7723 (mem_disable_command): Update.
7724 (mem_delete_command): Update.
7725 * inferior.c (detach_inferior_command): Update.
7726 (kill_inferior_command): Update.
7727 (remove_inferior_command): Update.
7728 * cli/cli-utils.h (struct get_number_or_range_state): New.
7729 (init_number_or_range): Declare.
7730 (get_number_or_range): Update.
7731 * cli/cli-utils.c (init_number_or_range): New function.
7732 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7733 static variables.
7734 (number_is_in_list): Update.
7735 * breakpoint.h (get_tracepoint_by_number): Update.
7736 * breakpoint.c (map_breakpoint_numbers): Update for change to
7737 get_number_or_range.
7738 (find_location_by_number): Use get_number, not
7739 get_number_or_range.
7740 (trace_pass_set_count): New function.
7741 (trace_pass_command): Update for change to get_number_or_range.
7742 Rework loop logic.
7743 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7744 'state' parameter.
7745
ecec24e6
PM
77462011-03-10 Phil Muldoon <[email protected]>
7747
7748 * python/py-param.c (add_setshow_generic): Add set/show callback
7749 parameters. Register Python object context.
7750 (get_show_value): New function.
7751 (get_set_value): New function.
7752 (call_doc_function): New function.
7753 (get_doc_string): Move behind get_show_value/get_set_value.
7754
6d6c6b1f
JK
77552011-03-10 Andreas Tobler <[email protected]>
7756
7757 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7758
68d6df83
MG
77592011-03-09 Maxim Grigoriev <[email protected]>
7760
dbab50de 7761 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7762 (xtensa_write_register): Likewise.
7763 (xtensa_hextochar): Add comment and update to match coding conventions.
7764 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7765 (execute_l32e, execute_s32e, execute_code): Update comments.
7766 (xtensa_exception_handler_t): Update to match coding conventions.
7767 (xtensa_insn_kind): Likewise.
7768
85c9d6a6
MS
77692011-03-09 Michael Snyder <[email protected]>
7770
7771 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7772
91495617
PA
77732011-03-09 Pedro Alves <[email protected]>
7774
7775 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7776
eb8c0621
TT
77772011-03-09 Tom Tromey <[email protected]>
7778
7779 * thread.c (restore_selected_frame): Handle frame_level == -1.
7780 (make_cleanup_restore_current_thread): Use
7781 get_selected_frame_if_set.
7782 * frame.h (get_selected_frame_if_set): Declare.
7783 * frame.c (get_selected_frame_if_set): New function.
7784
9f37bbcc
PA
77852011-03-09 Pedro Alves <[email protected]>
7786
7787 * cli/cli-cmds.c (shell_escape): Use lbasename.
7788 * coffread.c (coff_start_symtab): Constify parameter.
7789 (complete_symtab): Constify `name' parameter.
7790 (coff_symtab_read): Constify `filestring' local.
7791 (coff_getfilename): Constify return and `result' local.
7792 Use lbasename.
7793 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7794 * linux-fork.c (info_checkpoints_command): Use lbasename.
7795 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7796 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7797 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7798 * procfs.c (procfs_make_note_section): Use lbasename.
7799 * tui/tui-io.c (printable_part): Constity return and parameter.
7800 Use lbasename.
7801 (print_filename): Constify parameters, and local `s'.
7802 (tui_rl_display_match_list): Constify local `temp'.
7803
f8de3c55
JK
78042011-03-09 Jan Kratochvil <[email protected]>
7805
7806 Revert:
7807 2011-03-08 Jan Kratochvil <[email protected]>
7808 Fix DWARF-3+ DW_AT_accessibility default assumption.
7809 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7810 cu->header.version >= 3.
7811
d9837b00
YQ
78122011-03-09 Yao Qi <[email protected]>
7813
7814 * common/Makefile.in: Remove.
7815 * common/configure: Remove.
7816 * common/configure.ac: Remove.
7817
e637a4f5
YQ
78182011-03-09 Yao Qi <[email protected]>
7819
7820 Revert:
7821 2011-02-11 Yao Qi <[email protected]>
7822
7823 * common/Makefile.in: Add copyright header.
7824
7825 2011-02-11 Yao Qi <[email protected]>
7826
7827 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7828 libcommon.a.
7829 * configure.ac: Add common to sub dir.
7830 * configure: Regenerate.
7831
f976a05d
MG
78322011-03-08 Maxim Grigoriev <[email protected]>
7833
7834 * xtensa-tdep.c (call0_ret): New function.
7835 (xtensa_skip_prologue): Speed up analysis.
7836
57041825
MG
78372011-03-08 Maxim Grigoriev <[email protected]>
7838
7839 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7840 while executing MI command -data-list-changed-registers.
7841
08b9c608
MG
78422011-03-08 Maxim Grigoriev <[email protected]>
7843
7844 * xtensa-tdep.c (xtensa_read_register): New function.
7845 (xtensa_write_register): New function.
7846 (xtensa_find_register_by_name): New function.
7847 (xtensa_windowed_frame_cache): Update comments in type description.
7848 (xtensa_frame_cache): Likewise.
7849 (xtensa_window_interrupt_insn): New function.
7850 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7851 (xtensa_insn_kind): Add new instructions.
7852 (rwx_special_register): New function.
7853 (call0_classify_opcode): Add new instructions to the analysis.
7854 (a0_saved, a7_saved, a11_saved): New variables.
7855 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7856 (execute_l32e): New function.
7857 (execute_s32e): New function.
7858 (xtensa_exception_handler_t): New type.
7859 (execute_code): New function.
7860 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7861 analysis for Xtensa Window Exception handlers.
7862
4d1acb11
MG
78632011-03-08 Maxim Grigoriev <[email protected]>
7864
98689b25
MG
7865 * xtensa-tdep.c (TX_PS): New.
7866 (windowing_enabled): Update to count for Call0 ABI.
7867 (xtensa_hextochar): New.
7868 (xtensa_init_reggroups): Make algorithm generic.
7869 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7870
78712011-03-08 Maxim Grigoriev <[email protected]>
7872
7873 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7874
d3f323f3
MS
78752011-03-08 Michael Snyder <[email protected]>
7876
3dcabaa8
MS
7877 * i386-tdep.c (i386_follow_jump): Check return value of
7878 target_read_memory.
7879 (i386_analyze_struct_return): Ditto.
7880 (i386_skip_probe): Ditto.
7881 (i386_match_insn): Ditto.
7882 (i386_skip_noop): Ditto.
7883 (i386_analyze_frame_setup): Ditto.
7884 (i386_analyze_register_saves): Ditto.
7885 (i386_skip_prologue): Ditto.
7886 (i386_skip_main_prologue): Ditto.
7887
13b3fd9b
MS
7888 * target.c (read_whatever_is_readable): Fix memory leak.
7889
d3f323f3
MS
7890 * i386-tdep.c (i386_process_record): Document fall through.
7891
421d5c74
JK
78922011-03-08 Jan Kratochvil <[email protected]>
7893
7894 Fix DWARF-3+ DW_AT_accessibility default assumption.
7895 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7896 cu->header.version >= 3.
7897
63154eca
PA
78982011-03-08 Pedro Alves <[email protected]>
7899
7900 * remote.c (remote_check_symbols): Skip if the target has no
7901 execution.
7902
f1a507a1
JB
79032011-03-08 Joel Brobecker <[email protected]>
7904
7905 * target.c (read_whatever_is_readable): Reformat comment,
7906 with a minor typo fix. Minor reformatting of the code.
7907
36073a92
YQ
79082011-03-08 Yao Qi <[email protected]>
7909
7910 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
7911 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
7912 Use cached result instead of calling displaced_in_arm_mode again.
7913 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
7914 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
7915 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
7916 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
7917 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
7918 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
7919 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
7920 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
7921 (cleanup_block_load_pc, copy_block_xfer): Likewise.
7922 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
7923 (arm_catch_kernel_helper_return): Likewise.
7924 * gdb/arm-tdep.h : Update function declarations.
7925
d3f323f3 79262011-03-07 Michael Snyder <[email protected]>
e6040cbd 7927
e0e40094
MS
7928 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
7929
0b2381f5
MS
7930 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
7931
0350914a
MS
7932 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
7933
69feea6f
MS
7934 * elfread.c (elf_symtab_read): Stop memory leak.
7935
e6040cbd
MS
7936 * main.c (captured_main): Fix memory leak.
7937
052874e8
AS
79382011-03-07 Andreas Schwab <[email protected]>
7939
7940 * ada-lang.c (compare_names): Call is_name_suffix with string1
7941 instead of string2.
7942
b11896a5
TT
79432011-03-07 Tom Tromey <[email protected]>
7944
7945 * xcoffread.c (xcoff_sym_fns): Update.
7946 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
7947 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
7948 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
7949 (symbol_file_add_with_addrs_or_offsets): Likewise.
7950 (reread_symbols): Handle OBJF_PSYMTABS_READ.
7951 * somread.c (som_sym_fns): Update.
7952 * psymtab.h (require_partial_symbols): Declare.
7953 * psymtab.c (require_partial_symbols): New function.
7954 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
7955 (ALL_OBJFILE_PSYMTABS): Undef.
7956 (ALL_PSYMTABS): Move from psympriv.h.
7957 (lookup_partial_symtab, find_pc_sect_psymtab)
7958 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
7959 (find_last_source_symtab_from_partial)
7960 (forget_cached_source_info_partial)
7961 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
7962 (expand_partial_symbol_tables, read_psymtabs_with_filename)
7963 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
7964 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
7965 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
7966 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
7967 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
7968 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
7969 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
7970 psymtabs.
7971 * mipsread.c (ecoff_sym_fns): Update.
7972 * machoread.c (macho_sym_fns): Update.
7973 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
7974 (read_psyms): New function.
7975 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
7976 (elf_sym_fns_lazy_psyms): New global.
7977 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
7978 dwarf2_build_psymtabs.
7979 * dbxread.c (aout_sym_fns): Update.
7980 * coffread.c (coff_sym_fns): Update.
7981
fda326dd
TT
79822011-03-07 Tom Tromey <[email protected]>
7983
7984 * infrun.c (print_exited_reason): Include inferior id and pid in
7985 message.
7986
aeaec162
TT
79872011-03-07 Tom Tromey <[email protected]>
7988
7989 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
7990 parameter.
7991 (target_has_execution_1): Update.
7992 (target_has_execution_current): Declare.
7993 (target_has_execution): Call target_has_execution_current.
7994 (default_child_has_execution): Update.
7995 * target.c (default_child_has_execution): Add 'the_ptid'
7996 parameter.
7997 (target_has_execution_1): Likewise.
7998 (target_has_execution_current): New function.
7999 (add_target): Update.
8000 (init_dummy_target): Update.
8001 * remote-m32r-sdi.c (m32r_has_execution): New function.
8002 (init_m32r_ops): Use it.
8003 * record.c (record_core_has_execution): Now static. Add
8004 'the_ptid' parameter.
8005 * inferior.c (have_live_inferiors): Don't save current thread.
8006 Use target_has_execution_1.
8007
08e14083
YQ
80082011-03-07 Yao Qi <[email protected]>
8009
8010 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8011
c05d19c5
JB
80122011-03-07 Joel Brobecker <[email protected]>
8013
8014 * elfread.c (elf_symtab_read): Minor reformatting.
8015
3e6ef9e4
JB
80162011-03-07 Joel Brobecker <[email protected]>
8017
8018 * objc-lang.c (selectors_info): Minor reformatting.
8019
dbb8534f
JB
80202011-03-07 Joel Brobecker <[email protected]>
8021
8022 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8023
dd70cc93
JB
80242011-03-07 Joel Brobecker <[email protected]>
8025 Michael Snyder <[email protected]>
8026
8027 * ada-valprint.c (ada_val_print_array): Move the declaration of
8028 "byte_order" and "elttype" inside the block where these variables
8029 are actually used. Remove some special handling for the case
8030 where "elttype" and "eltlen" are null. Replace by a comment
8031 and a couple of assertion checks.
8032
b27cf2b3
MS
80332011-03-05 Michael Snyder <[email protected]>
8034
8035 * source.c (add_path): Replace semicolon at end of block.
8036 * dwarf2expr.c (execute_stack_op): Ditto.
8037
5387a0c6
MF
80382011-03-05 Mike Frysinger <[email protected]>
8039
8040 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8041 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8042 (bfin-*-*): Likewise.
8043
e3aa49af
MS
80442011-03-05 Michael Snyder <[email protected]>
8045
82ae4854
MS
8046 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8047 * mdebugread.c (parse_symbol): Ditto.
8048 * parse.c (parse_exp_in_context): Ditto.
8049 * source.c (add_path): Ditto.
8050 * utils.c (gnu_debuglink_crc32): Ditto.
8051 * varobj.c (variable_language): Ditto.
8052
e3aa49af
MS
8053 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8054
154f592e
MS
80552011-03-04 Michael Snyder <[email protected]>
8056
da3ecdc6
MS
8057 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8058
9cc89665
MS
8059 * symfile.c (simple_overlay_update): Check for null return value
8060 from lookup_minimal_symbol.
8061
154f592e
MS
8062 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8063
63ffa6ee
TJB
80642011-03-04 Thiago Jung Bauermann <[email protected]>
8065
8066 * eval.c (parse_and_eval_address_1): Remove function.
8067 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8068 instead of parse_and_eval_address_1.
8069 * value.h (parse_and_eval_address_1): Remove prototype.
8070
a17d146e
MS
80712011-03-04 Michael Snyder <[email protected]>
8072
8073 * remote.c (putpkt_binary): Document that case stmt falls through.
8074
1a6a67de
TJB
80752011-03-04 Thiago Jung Bauermann <[email protected]>
8076
8077 * breakpointc (print_it_typical): Move NULL check from here...
8078 (print_bp_stop_message): ... to here.
8079
488919c4
MS
80802011-03-04 Michael Snyder <[email protected]>
8081
8082 * breakpoint.c (enable_command): Use break instead of continue,
8083 and fill in a missing break.
8084 (disable_command): Ditto.
8085
1e182ce8
UW
80862011-03-04 Ulrich Weigand <[email protected]>
8087
8088 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8089 (terminal_save_ours): Remove misleading comment.
8090 (inflow_inferior_data_cleanup): Free ttystate.
8091 (inflow_inferior_exit): Likewise.
8092 (copy_terminal_info): Copy ttystate.
8093
8094 * serial.c (serial_copy_tty_state): New function.
8095 * serial.h (serial_copy_tty_state): Add prototype.
8096 (struct serial_ops): Add copy_tty_state callback.
8097 * ser-base.c (ser_base_copy_tty_state): New function.
8098 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8099 * ser-go32.c (dos_copy_tty_state): New function.
8100 (dos_ops): Install copy_tty_state callback.
8101 * ser-mingw.c (_initialize_ser_windows): Likewise.
8102 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8103 * ser-unix.c (hardwire_copy_tty_state): New function.
8104 (_initialize_ser_hardwire): Install it.
8105
b2c5f112
MS
81062011-03-04 Michael Snyder <[email protected]>
8107
2abae994
MS
8108 * breakpoint.c (create_breakpoint): Add missing break statement.
8109
7f5936f9
MS
8110 Reverting this patch:
8111 * infcall.c (call_function_by_hand): Add break statements for lint.
8112
b2c5f112
MS
8113 Reverting this patch:
8114 * cli/cli-script.c (script_from_file): Add break for lint.
8115
42b1321c
MS
81162011-03-04 Michael Snyder <[email protected]>
8117
8118 * solib.c (reload_shared_libraries_1): Close memory leak.
8119
3e2a0cee
TT
81202011-03-03 Tom Tromey <[email protected]>
8121
8122 PR gdb/12538:
8123 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8124 DW_STRING is NULL.
8125
58397cb7
MS
81262011-03-03 Michael Snyder <[email protected]>
8127
2e3fd767
MS
8128 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8129 fields of struct 'st' to zero.
8130
58397cb7
MS
8131 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8132 sal.pspace before calling set_current_source_symtab_and_line.
8133
ced54c8f
YQ
81342011-03-03 Yao Qi <[email protected]>
8135
8136 * Makefile.in (configure-common): Remove. Let Makefile
8137 in dir common to rebuild itself.
8138 (common/Makefile): Likewise.
8139
3351ea09
JB
81402011-03-03 Joel Brobecker <[email protected]>
8141
8142 * utils.c (parse_escape): Add i18n markup in error message.
8143
bf9f652a
YQ
81442011-03-03 Yao Qi <[email protected]>
8145
8146 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8147 ARM_PC_REGNUM.
8148 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8149 (displaced_write_reg, displaced_read_reg): Likewise.
8150 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8151 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8152 (cleanup_branch): Replace magic number 14 and 15 with
8153 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8154
d42de051
MS
81552011-03-02 Michael Snyder <[email protected]>
8156
240f9570
MS
8157 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8158
10dd8b54
MS
8159 * cli/cli-script.c (script_from_file): Add break for lint.
8160
b98bd911
MS
8161 * mdebugread.c (parse_partial_symbols): Fix indent.
8162
3494b66d
MS
8163 * target-descriptions.c (tdesc_gdb_type): No need to call
8164 xstrdup, callee saves a copy.
8165
daac021a
MS
8166 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8167
c38d16a7
MS
8168 * infcall.c (call_function_by_hand): Add break statements for lint.
8169
905b671b
MS
8170 * utils.c (parse_escape): Escape the escape char.
8171
f2eb0bc8 8172 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8173 PyList_Append fails.
8174 (gdbpy_inferiors): Error out if build_inferior_list fails.
8175
8c6a60d1
MS
8176 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8177 a function call.
8178
d42de051
MS
8179 * record.c (record_restore): Move printf to before error return.
8180
4db71c0b
YQ
81812011-03-02 Yao Qi <[email protected]>
8182
8183 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8184 is_thumb and insn_size.
8185 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8186 on both ARM and Thumb mode.
8187 (arm_process_displaced_insn): Set is_thumb and insn_size.
8188 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8189 (arm_displaced_step_fixup): Likewise.
8190
a9dc8dcc
MS
81912011-03-01 Michael Snyder <[email protected]>
8192
53624a93
MS
8193 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8194
77766669
MS
8195 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8196
62d5b8da
MS
8197 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8198
5e9e105f
MS
8199 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8200
dc19db01
MS
8201 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8202 with xmalloc.
8203
5ce64950
MS
8204 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8205 which shadows function parameter.
8206
a0aa2878
MS
8207 * tracepoint.c (create_tsv_from_upload): Superfluous call
8208 to xstrdup. Callee already calls xstrdup.
8209
e325fb69
MS
8210 * linespec.c (decode_line_1): Remove unnecessary null check.
8211
21cbba77
MS
8212 * tracepoint.c (scope_info): Fix mem leak, remove underused
8213 variable.
8214
63360adc
MS
8215 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8216 superfluous null check.
8217
18ea20ac 8218 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8219 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8220
d014929c
MS
8221 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8222
6e9130cf
MS
8223 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8224 be null.
8225
5f01dbc0
MS
8226 * linespec.c (decode_line_1): Check for null before dereference.
8227
d684ab85
MS
8228 * reverse.c (record_restore): Move null-check to before pointer
8229 dereference.
8230
bfffb7e3
MS
8231 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8232
a9dc8dcc
MS
8233 * objc-lang.c (selectors_info): Add explanitory comment.
8234 (classes_info): Ditto.
8235
478fd957
UW
82362011-03-01 Ulrich Weigand <[email protected]>
8237
8238 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8239 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8240 versions of the trampoline. Handle Thumb vs. ARM addresses.
8241 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8242 (arm_linux_init_abi): Install it.
8243 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8244 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8245
0480cefa
MS
82462011-02-28 Michael Snyder <[email protected]>
8247
ac50ab3b
MS
8248 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8249 a little bigger, to avoid possibility of an overflow.
8250
f63fbe86
MS
8251 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8252 buffers a little bigger, to avoid possibility of an overflow.
8253
9e91a352
MS
8254 * coffread.c (coff_getfilename): Add check to avoid overflow.
8255
f2eb0bc8 8256 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8257 avoid overflow.
8258 (classes_info): Error out on too long REGEXP.
8259
098ab512
MS
8260 * infrun.c (handle_inferior_event): Remove unused function call.
8261
bcbd1de9
MS
8262 * fork-child.c (fork_inferior): Remove ifdef'd code and
8263 unused variable.
8264
2e456570
MS
8265 * linux-thread-db.c (attach_thread): Discard unused value.
8266
14571dad
MS
8267 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8268
a9cbf802
MS
8269 * remote.c (remote_get_noisy_reply): Discard unused value.
8270 (remote_vcont_resume): Ditto.
8271 (remote_stop_ns): Ditto.
8272
5715d26e
MS
8273 * linespec.c (decode_objc): Delete unused variable.
8274
4a9bca80
MS
8275 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8276
f47fb265
MS
8277 * dwarf2read.c (add_partial_symbol): Discard unused values.
8278 (read_base_type): Delete unused variable.
8279
e81cff30
MS
8280 * dbxread.c (read_dbx_symtab): Discard unused value.
8281
262acaeb
MS
8282 * eval.c (evaluate_subexp_standard): Delete unused variable,
8283 and discard unused values.
8284
df983543
MS
8285 * infcmd.c (_initialize_infcmd): Discard unused values.
8286
89acf84d
MS
8287 * stabsread.c (rs6000_builtin_type): Missing break statement.
8288
ab8b8aca
MS
8289 * dbxread.c (process_one_symbol): Discard unused value.
8290
6b4511ab
MS
8291 * coffread.c (coff_end_symtab): Delete unused variable.
8292
e8e80198
MS
8293 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8294 (dwarf2_add_typedef): Delete unused variable.
8295 (read_namespace): Ditto.
8296 (dwarf_decode_macros): Ditto.
8297
976aa66e
MS
8298 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8299
5b92b49f
MS
8300 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8301
91e8df85
MS
8302 * p-valprint.c (pascal_val_print): Discard unused value.
8303
899500d6
MS
8304 * utils.c (nquery): Call va_end before return;
8305 (yquery): Ditto.
8306 (query): Ditto.
8307
0480cefa
MS
8308 * proc-service.c (ps_plog): Call va_end before return.
8309
fb6a3ed3
TT
83102011-02-28 Tom Tromey <[email protected]>
8311
8312 * python/python.c (gdbpy_value_cst): New global.
8313 (_initialize_python): Initialize it.
8314 * python/python-internal.h (gdbpy_value_cst): Declare.
8315 * python/py-value.c (convert_value_from_python): Use
8316 gdbpy_value_cst.
8317
c05202a1
MS
83182011-02-28 Michael Snyder <[email protected]>
8319
e463f587
MS
8320 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8321
c38eea1a
MS
8322 * breakpoint.c (catch_syscall_completer): Free malloced list.
8323
3ef09ab5
MS
8324 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8325
8f9a01ee
MS
8326 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8327 (lval_func_check_synthetic_pointer): Ditto.
8328 (lval_func_free_closure): Fix use-after-free.
c05202a1 8329
477d0d57
TT
83302011-02-28 Tom Tromey <[email protected]>
8331
8332 * psymtab.c (expand_partial_symbol_tables): Use
8333 ALL_OBJFILE_PSYMTABS.
8334
20937029
JK
83352011-02-28 Jan Kratochvil <[email protected]>
8336
8337 * objc-lang.c (selectors_info): Error on too long REGEXP.
8338
907b7f4f
MS
83392011-02-28 Michael Snyder <[email protected]>
8340
92e96192
MS
8341 * python/py-param.c (set_parameter_value): Add missing
8342 break statement.
8343
907b7f4f
MS
8344 * linux-record.c (record_linux_system_call): Add missing
8345 break statement.
8346
12c5a436
UW
83472011-02-28 Ulrich Weigand <[email protected]>
8348
8349 * breakpoint.c (print_one_breakpoint_location): Remove unused
8350 argument PRINT_ADDRESS_BITS. Update callers.
8351 (print_one_breakpoint): Likewise.
8352
170b53b2
UW
83532011-02-28 Ulrich Weigand <[email protected]>
8354
8355 * breakpoint.c (wrap_indent_at_field): New function.
8356 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8357 Allocate ui_stream locally instead of using STB argument.
8358 (print_one_breakpoint_location): Update call.
8359 * ui-out.c (ui_out_query_field): New function.
8360 * ui-out.h (ui_out_query_field): Add prototype.
8361
8ab1f94d
JB
83622011-02-28 Joel Brobecker <[email protected]>
8363
8364 From Michael Snyder <[email protected]>
8365 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8366
7d488639
MS
83672011-02-27 Michael Snyder <[email protected]>
8368
ae179fba
MS
8369 * objc-lang.c (selectors_info): Prevent string overrun.
8370
086dbf66
MS
8371 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8372 error in strncpy.
8373
f2eb0bc8 8374 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8375 outer scope.
8376
7d488639
MS
8377 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8378 param with a local variable of the same name.
8379
3bd0f5ef
MS
83802011-02-27 Michael Snyder <[email protected]>
8381
8382 * value.c (value_from_history_ref): New function.
8383 * value.h (value_from_history_ref): Export.
8384 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8385 to parse value history references.
8386 * cli/cli-utils.h (get_number_trailer): Update comment.
8387
83882011-02-27 Michael Snyder <[email protected]>
8389
8390 * inferior.c (detach_inferior_command): Use get_number_or_range.
8391 (kill_inferior_command): Ditto.
8392 (remove_inferior_command): Ditto.
8393 (initialize_inferiors): Make command names plural.
8394 Update help strings.
8395
766062f6
MS
83962011-02-27 Michael Snyder <[email protected]>
8397
8398 * darwin-nat-info.c: Fix comment typo.
8399 * dwarf2expr.h: Ditto.
8400 * fbsd-nat.c: Ditto.
8401 * fbsd-nat.h: Ditto.
8402 * frame-unwind.h: Ditto.
8403 * frame.h: Ditto.
8404 * hppa-hpux-tdep.c: Ditto.
8405 * i386-linux-nat.c: Ditto.
8406 * linux-nat.c: Ditto.
8407 * nbsd-nat.c: Ditto.
8408 * nbsd-nat.h: Ditto.
8409 * ppc-linux-tdep.c: Ditto.
8410 * serial.c: Ditto.
8411 * ui-file.h: Ditto.
8412 * tui/tui-winsource.c: Ditto.
8413
f2c4ead5
MS
84142011-02-26 Michael Snyder <[email protected]>
8415
86b887df
MS
8416 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8417
66fd3b1e
MS
8418 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8419
8c814cdd
MS
8420 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8421 with a local variable of the same name.
8422
6d5e094a 8423 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8424 param with a local variable of the same name.
6d5e094a 8425 (i387_supply_xsave): Ditto.
e5b3d7d6 8426
5eee517d
MS
8427 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8428 that it does not shadow a function parameter.
8429
8fbf6b93
MS
8430 * i386-nat.c (i386_length_and_rw_bits): Document that case
8431 statement is meant to fall through.
8432
cb969d61
MS
8433 * expprint.c (dump_subexp_body_standard): Document that case
8434 statement is meant to fall through.
8435
f2c4ead5
MS
8436 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8437 dead if statement. Condition can't be false.
8438
b021a221
MS
84392011-02-25 Michael Snyder <[email protected]>
8440
8441 * arm-tdep.c: Fix typos in comments.
8442 * bsd-uthread.c: Ditto.
8443 * completer.c: Ditto.
8444 * corelow.c: Ditto.
8445 * cp-namespace.c: Ditto.
8446 * cp-support.c: Ditto.
8447 * cris-tdep.c: Ditto.
8448 * dbxread.c: Ditto.
8449 * dwarf2read.c: Ditto.
8450 * frame.h: Ditto.
8451 * gdbtypes.h: Ditto.
8452 * inferior.h: Ditto.
8453 * mdebugread.c: Ditto.
8454 * mips-tdep.c: Ditto.
8455 * ppc-linux-nat.c: Ditto.
8456 * ppc-linux-tdep.c: Ditto.
8457 * printcmd.c: Ditto.
8458 * sol-thread.c: Ditto.
8459 * solib-frv.c: Ditto.
8460 * solist.h: Ditto.
8461 * sparc64-tdep.c: Ditto.
8462 * spu-tdep.c: Ditto.
8463 * stabsread.c: Ditto.
8464 * symfile.c: Ditto.
8465 * valops.c: Ditto.
8466 * varobj.c: Ditto.
8467 * vax-nat.c: Ditto.
8468 * python/py-block.c: Ditto.
8469 * python/py-symbol.c: Ditto.
8470 * python/py-symtab.c: Ditto.
8471 * python/py-value.c: Ditto.
8472 * tui/tui-win.c: Ditto.
8473
c82c0b55
MS
84742011-02-25 Michael Snyder <[email protected]>
8475
8476 * inferior.c (print_inferior): Accept a string instead of an int
8477 for requested_inferiors, and use get_number_or_range to parse it.
8478 (info_inferiors_command): Pass args string to print_inferior.
8479 (initialize_inferiors): Change help string for info inferiors.
8480 * inferior.h (print_inferior): Export prototype change.
8481
ee00cd23
TT
84822011-02-25 Tom Tromey <[email protected]>
8483
8484 * common/ax.def (invalid2): Set to 0x31.
8485
0502ed8c
JK
84862011-02-25 Jan Kratochvil <[email protected]>
8487
8488 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8489 L and plongest.
8490 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8491 use L and plongest.
8492 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8493
2c9de912
MS
84942011-02-24 Michael Snyder <[email protected]>
8495
8496 * Makefile.in (clean): Make clean should remove generated files
8497 observer.h and observer.inc.
8498
a04b0428
JB
84992011-02-24 Joel Brobecker <[email protected]>
8500
8501 Revert the following patch (not approved yet):
8502 2011-02-21 Hui Zhu <[email protected]>
8503 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8504 * ax-gdb.c (gen_printf_expr_callback): New function.
8505 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8506 * ax-general.c (ax_memcpy): New function.
8507 (ax_print): Handle "printf".
8508 (ax_reqs): Ditto.
8509 * ax.h (ax_memcpy): Forward declare.
8510 * common/ax.def (invalid2): Removed.
8511 (printf): New entry.
8512 * printcmd.c (printcmd.h): New include.
8513 (string_printf): New function.
8514 (ui_printf): Removed.
8515 (printf_command): Remove static. Call string_printf.
8516 (eval_command): Call string_printf.
8517 * printcmd.h: New file.
8518 * tracepoint.c (validate_actionline,
8519 encode_actions_1): handle printf_command.
8520
2b52013f
TT
85212011-02-23 Tom Tromey <[email protected]>
8522
8523 * ax-general.c (ax_pick): Add missing newline.
8524
e5a67952
MS
85252011-02-23 Michael Snyder <[email protected]>
8526
8527 * breakpoint.c (breakpoint_1): Change first argument from an int
8528 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8529 breakpoints rather than just one. Use new function
e5a67952
MS
8530 'number_is_in_list' to implement.
8531 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8532 (watchpoints_info): Ditto.
8533 (tracepoints_info): Ditto.
8534 (maintenance_info_breakpoints): Ditto.
8535 (_initialize_breakpoint): Update help strings to reflect the fact
8536 that these functions can now take more than one argument.
8537 * cli/cli-utils.c (number_is_in_list): New function.
8538 * cli/cli-utils.h (number_is_in_list): Export.
8539
85402011-02-23 Michael Snyder <[email protected]>
fbcb778d
MS
8541
8542 * memattr.c (mem_enable_command): Use get_number_or_range.
8543 (mem_disable_command): Ditto.
8544 (mem_delete_command): Ditto.
8545 (_initialize_mem): Tweak usage message to reflect multiple
8546 arguments.
8547
6e6fbe60
DE
85482011-02-22 Doug Evans <[email protected]>
8549
8550 Add gdb.lookup_global_symbol python function.
8551 * NEWS: Add entry.
8552 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8553 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8554 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8555
79b97fa8
TT
85562011-02-22 Tom Tromey <[email protected]>
8557
8558 * language.c (language_class_name_from_physname): Rename
8559 'curr_language' argument to 'lang'; use in body.
8560
298f437a
MS
85612011-02-22 Michael Snyder <[email protected]>
8562
8563 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8564
b7ea3126
PA
85652011-02-22 Pedro Alves <[email protected]>
8566
8567 * frame-unwind.h: Fix comment to mention the this frame, not the
8568 next.
8569
58ee6d60
TT
85702011-02-22 Tom Tromey <[email protected]>
8571
8572 * symfile.c (auto_solib_limit): Remove.
8573 * symfile.h (auto_solib_limit): Remove.
8574
36238dbc
JB
85752011-02-22 Joel Brobecker <[email protected]>
8576
8577 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8578
aea5b279
MS
85792011-02-21 Michael Snyder <[email protected]>
8580
8581 * gdbthread.h (print_thread_info): Change prototype.
8582 * thread.c (print_thread_info): Accept char* instead of int for
8583 requested_threads argument. Use new function number_is_in_list
8584 to determine which threads to list.
8585 (info_threads_command): Pass char* to print_thread_info.
8586 * cli/cli-utils.c (number_is_in_list): New function.
8587 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8588 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8589 print_thread_info.
8590 (print_one_inferior): Ditto.
8591 (mi_cmd_list_thread_groups): Ditto.
8592
8caa75ee
JK
85932011-02-21 Jan Kratochvil <[email protected]>
8594
8595 * common/Makefile.in (CFLAGS): New.
8596 (COMPILE): Add $(CFLAGS).
8597
ea666128
TT
85982011-02-21 Tom Tromey <[email protected]>
8599
8600 * breakpoint.c (catch_syscall_command_1): Fix typo.
8601
e9cafbcc
TT
86022011-02-21 Tom Tromey <[email protected]>
8603
8604 * reverse.c: Include cli-utils.h.
8605 * printcmd.c: Include cli-utils.h.
8606 (string_printf): Use skip_spaces.
8607 * cli/cli-utils.h: New file.
8608 * cli/cli-utils.c: New file.
8609 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8610 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8611 * breakpoint.h (get_number, get_number_or_range): Move to
8612 cli-utils.h.
8613 * breakpoint.c: Include cli-utils.h.
8614 (get_number_trailer, get_number, get_number_or_range)
8615 (ep_skip_leading_whitespace): Move to cli-utils.c.
8616 (create_breakpoint_sal, find_condition_and_thread)
8617 (decode_static_tracepoint_spec, watch_command_1)
8618 (watch_maybe_just_location, ep_parse_optional_if_clause)
8619 (catch_fork_command_1, catch_exec_command_1)
8620 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8621 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8622 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8623 (HFILES_NO_SRCDIR): Add cli-utils.h.
8624 (cli-utils.o): New target.
8625
f67fd822
PM
86262011-02-18 Pierre Muller <[email protected]>
8627
8628 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8629 before calling discard_all_inferiors.
8630
c9def01d
UW
86312011-02-21 Ulrich Weigand <[email protected]>
8632
8633 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8634 (struct builtin_opencl_type): Remove.
8635 (builtin_opencl_type): Change return type to "struct type **".
8636 (lookup_opencl_vector_type): Update caller.
8637 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8638 (build_opencl_types): Install plain array of "struct type *"
8639 instead of "struct builtin_opencl_type".
8640
e3039479
UW
86412011-02-21 Matthew Gretton-Dann <[email protected]>
8642 Ulrich Weigand <[email protected]>
8643
8644 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8645 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8646 (struct arm_linux_hwbp_cap): New type.
8647 (arm_linux_get_hwbp_cap): New function.
8648 (arm_linux_get_hw_breakpoint_count): Likewise.
8649 (arm_linux_get_hw_watchpoint_count): Likewise.
8650 (arm_linux_can_use_hw_breakpoint): Likewise.
8651 (arm_hwbp_type): New type.
8652 (arm_hwbp_control_t): Likewise.
8653 (struct arm_linux_hw_breakpoint): Likewise.
8654 (struct arm_linux_thread_points): Likewise.
8655 (arm_threads): New global variable.
8656 (arm_linux_find_breakpoints_by_tid): New function.
8657 (arm_hwbp_control_initialize): Likewise.
8658 (arm_hwbp_control_is_enabled): Likewise.
8659 (arm_hwbp_control_disable): Likewise.
8660 (arm_linux_hw_breakpoint_initialize): Likewise.
8661 (arm_linux_get_hwbp_type): Likewise.
8662 (arm_linux_hw_watchpoint_initialize): Likewise.
8663 (arm_linux_hw_breakpoint_equal): Likewise.
8664 (arm_linux_insert_hw_breakpoint1): Likewise.
8665 (arm_linux_remove_hw_breakpoint1): Likewise.
8666 (arm_linux_insert_hw_breakpoint): Likewise.
8667 (arm_linux_remove_hw_breakpoint): Likewise.
8668 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8669 (arm_linux_insert_watchpoint): Likewise.
8670 (arm_linux_remove_watchpoint): Likewise.
8671 (arm_linux_stopped_data_address): Likewise.
8672 (arm_linux_stopped_by_watchpoint): Likewise.
8673 (arm_linux_watchpoint_addr_within_range): Likewise.
8674 (arm_linux_new_thread): Likewise.
8675 (arm_linux_thread_exit): Likewise.
8676 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8677 related target callbacks. Register arm_linux_new_thread and
8678 arm_linux_thread_exit.
8679 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8680 * arm-tdep.c (arm_pc_is_thumb): Make global.
8681 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8682
b5db5dfc
UW
86832011-02-21 Ulrich Weigand <[email protected]>
8684
8685 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8686 per-frame locations while within a function epilogue.
8687
e25b2cfa
PM
86882011-02-21 Pierre Muller <[email protected]>
8689
8690 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8691 to GNU coding standards.
8692
4af53f97
PM
86932011-02-21 Pierre Muller <[email protected]>
8694
8695 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8696 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8697 (ser_windows_close): Only call CancelIo if function exists.
8698 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8699 to check for existence of CancelIo function in kernel32 DLL.
8700
d0e92d82
HZ
87012011-02-21 Hui Zhu <[email protected]>
8702
8703 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8704 * ax-gdb.c (gen_printf_expr_callback): New function.
8705 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8706 * ax-general.c (ax_memcpy): New function.
8707 (ax_print): Handle "printf".
8708 (ax_reqs): Ditto.
8709 * ax.h (ax_memcpy): Forward declare.
8710 * common/ax.def (invalid2): Removed.
8711 (printf): New entry.
8712 * printcmd.c (printcmd.h): New include.
8713 (string_printf): New function.
8714 (ui_printf): Removed.
8715 (printf_command): Remove static. Call string_printf.
8716 (eval_command): Call string_printf.
8717 * printcmd.h: New file.
8718 * tracepoint.c (validate_actionline,
8719 encode_actions_1): handle printf_command.
8720
7d357efd
MS
87212011-02-19 Michael Snyder <[email protected]>
8722
8723 * reverse.c (delete_one_bookmark): Argument is now bookmark
8724 id rather than pointer to bookmark struct.
8725 (delete_bookmark_command): Use get_number_or_range.
8726 (goto_bookmark_command): Parse with get_number instead of strtoul.
8727 (bookmark_1): New function. Print info for one bookmark.
8728 (bookmarks_info): Use get_number_or_range and bookmark_1.
8729
7a45ebd7
MS
87302011-02-18 Michael Snyder <[email protected]>
8731
f2eb0bc8 8732 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8733 get_number_or_range.
65ebfb52 8734 (thread_apply_command): Ditto.
7a45ebd7 8735
94d5e490
TT
87362011-02-18 Tom Tromey <[email protected]>
8737
8738 * common/ax.def: New file.
8739 * ax.h (enum agent_op): Use ax.def.
8740 * ax-general.c (aop_map): Use ax.def.
8741
c7f96d2b
TT
87422011-02-18 Tom Tromey <[email protected]>
8743
8744 * ax-general.c (aop_map): Add pick and rot.
8745 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8746 <DW_OP_rot>: Implement.
8747 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8748 (ax_pick): Declare.
8749 * ax-general.c (ax_pick): New function.
8750
66694b75
TT
87512011-02-18 Tom Tromey <[email protected]>
8752
8753 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8754
eeaafae2
JK
87552011-02-18 Jan Kratochvil <[email protected]>
8756 Tom Tromey <[email protected]>
8757
8758 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8759 make_symbol_overload_list_block with NULL BLOCK.
8760 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8761
3c3fe74c
PA
87622011-02-18 Pedro Alves <[email protected]>
8763
8764 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8765 * breakpoint.h (get_number_or_range): Declare.
8766 * printcmd.c (ALL_DISPLAYS): Declare.
8767 (delete_display): Reimplement taking a display pointer.
8768 (undisplay_command): Accept a range of displays to delete, using
8769 get_number_or_range.
8770
13163d80
PM
87712011-02-18 Pierre Muller <[email protected]>
8772
8773 * c-valprint.c (c_val_print): Add embedded_offset to address
8774 for arrays of unspecified length.
8775 * p-valprint.c (pascal_val_print): Likewise.
8776
b434a28f
YQ
87772011-02-18 Yao Qi <[email protected]>
8778
8779 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8780 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8781 (thumb_process_displaced_insn): New.
8782 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8783 call to arm_process_displaced_insn.
8784 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8785
9f6f94ff
TT
87862011-02-17 Tom Tromey <[email protected]>
8787
8788 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8789 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8790 compile_dwarf_to_ax. No longer static. Call
8791 dwarf2_compile_cfa_to_ax.
8792 (locexpr_tracepoint_var_ref): Update.
8793 (loclist_tracepoint_var_ref): Update.
8794 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8795 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8796 argument; add 'gdbarch' and 'pc'.
8797 (dwarf2_compile_cfa_to_ax): New function.
8798 (dwarf2_frame_cache): Update.
8799
e67ad678
JB
88002011-02-17 Joel Brobecker <[email protected]>
8801
8802 * ada-lang.c (ada_type_of_array): Fix the size of the array
8803 in the case of an unconstrained packed array.
8804
946ebb0d
YQ
88052011-02-17 Yao Qi <[email protected]>
8806
8807 * common/Makefile.in: Add more targets for make.
8808
1ba1b353
TT
88092011-02-16 Tom Tromey <[email protected]>
8810
8811 * dwarf2loc.c (unimplemented): Fix typo.
8812
b1bfef65
TT
88132011-02-16 Tom Tromey <[email protected]>
8814
8815 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8816 (compile_dwarf_to_ax) <default>: Use unimplemented.
8817 <DW_OP_deref>: Update.
8818 (disassemble_dwarf_expression): Update.
8819 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8820 (decode_locdesc): Update.
8821 * dwarf2expr.h (dwarf_stack_op_name): Update.
8822
5f1e6f19
TT
88232011-02-16 Tom Tromey <[email protected]>
8824
8825 * ax.h (struct aop_map) <name>: Now const.
8826
a0c78a73
PA
88272011-02-16 Tom Tromey <[email protected]>
8828
8829 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8830 than axs_rvalue.
8831
946ebb0d 88322011-02-16 Yao Qi <[email protected]>
a42244db
YQ
8833
8834 * infrun.c (get_displaced_step_closure_by_addr): New.
8835 * inferior.h: Declare it.
8836 * arm-tdep.c: (arm_pc_is_thumb): Call
8837 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8838 returns non-NULL.
8839
08807d5a
PA
88402011-02-16 Pedro Alves <[email protected]>
8841 Jan Kratochvil <[email protected]>
8842
8843 gdb/
8844 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8845
29976f3f
PA
88462011-02-16 Pedro Alves <[email protected]>
8847 Jan Kratochvil <[email protected]>
8848
8849 * value.c (value_contents_copy_raw): Extend describing comment.
8850 Assert that the destination contents we're overwriting are wholly
8851 available.
fb68ae73 8852 (value_contents_copy): Extend describing comment.
29976f3f 8853
cd24cfaa
PA
88542011-02-16 Pedro Alves <[email protected]>
8855 Jan Kratochvil <[email protected]>
8856
8857 * value.c (value_available_contents_eq): Remove redundant local
8858 variables. Fix available contents comparision.
8859 * value.h (value_available_contents_eq): Extend describing
8860 comment.
8861
60bbf338
YQ
88622011-02-16 Yao Qi <[email protected]>
8863
8864 * thread.c (info_threads_command): Add missing i18n markup and remove
8865 trailing newline.
8866
17450429
PP
88672011-02-15 Paul Pluzhnikov <[email protected]>
8868
8869 * breakpoint.c (longjmp_names): New variable.
8870 (struct breakpoint_objfile_data): New type.
8871 (breakpoint_objfile_key): New variable.
8872 (msym_not_found): New variable.
8873 (msym_not_found_p): New predicate.
8874 (get_breakpoint_objfile_data): New function.
8875 (create_overlay_event_breakpoint): Check per-objfile cache for
8876 symbols first.
8877 (create_longjmp_master_breakpoint): Likewise.
8878 (create_std_terminate_master_breakpoint): Likewise.
8879 (create_exception_master_breakpoint): Likewise.
8880 (_initialize_breakpoint): Register per-objfile data key.
8881
af02033e
PP
88822011-02-15 Paul Pluzhnikov <[email protected]>
8883
8884 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
8885 parameter value.
8886 (create_longjmp_master_breakpoint): Loop over longjmp names.
8887 (create_std_terminate_master_breakpoint): Const-propagate parameter
8888 value.
8889 (update_breakpoints_after_exec): Adjust.
8890 (breakpoint_re_set): Adjust.
8891
60f98dde
MS
88922011-02-15 Michael Snyder <[email protected]>
8893
cdf99611
MS
8894 * thread.c (info_threads_command): Process arg as thread id,
8895 or list of thread ids.
8896 (thread_find_command): New command.
8897 (_initialize_thread): Document argument for info threads.
8898 Document 'thread find' command.
8899 * NEWS: Document new command "thread find".
60f98dde 8900
0feedb2c
JK
89012011-02-15 Jan Kratochvil <[email protected]>
8902
8903 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
8904 * aclocal.m4: Regenerated with aclocal-1.11.1.
8905 * common/configure: Regenerate with autoconf-2.64.
8906
648cd113
KW
89072011-02-15 Ken Werner <[email protected]>
8908
8909 * opencl-lang.c (build_opencl_types): Set the size of the built-in
8910 bool data type to a size of one byte.
8911
5657161f
PA
89122011-02-15 Pedro Alves <[email protected]>
8913 Jan Kratochvil <[email protected]>
8914
8915 * target.c (memory_xfer_live_readonly_partial): Document where to
8916 look for interface description.
8917
494e194e
YQ
89182011-02-15 Yao Qi <[email protected]>
8919
8920 PR tdep/12352
8921 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
8922 order to store PC value on stack instead of text section.
8923
d9492458
TJB
89242011-02-15 Thiago Jung Bauermann <[email protected]>
8925
8926 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
8927 the EFP register set size.
8928 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
8929 data from the VMX register.
8930 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
8931 and write data from/to the VMX register.
8932
cdf99611
MS
89332011-02-14 Michael Snyder <[email protected]>
8934
8935 * command.h (enum command_class): New class 'no_set_class', for
8936 "show" commands without a corresponding "set" command.
8937 * value.c (_initialize_values): Use 'no_set_class' for "show values".
8938 * copying.c (_initialize_copying): Ditto for "show copying" and
8939 "show warranty".
8940 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
8941 "show version".
8942 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
8943 which there is no corresponding "set" command (eg. "show copying").
8944
424447ee
PA
89452011-02-14 Pedro Alves <[email protected]>
8946 Jan Kratochvil <[email protected]>
8947
8948 * exec.c (section_table_available_memory): Change `len' parameter
8949 type to ULONGEST.
8950 * exec.h (section_table_available_memory): Ditto.
8951 * value.h (read_value_memory): Rename the `offset' parameter to
8952 `embedded_offset'.
8953
c0f61f9c 89542011-02-14 Pedro Alves <[email protected]>
e0ccc0c7 8955 Jan Kratochvil <[email protected]>
c0f61f9c
PA
8956
8957 * memrange.c (compare_mem_ranges): Mention sort order in
8958 describing comment.
8959 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
8960 * tracepoint.c (traceframe_available_memory): Extend comment to
8961 mention what happens to RESULT when the target does not support
8962 the query.
8963
6bfc80c7
PA
89642011-02-14 Pedro Alves <[email protected]>
8965 Jan Kratochvil <[email protected]>
8966
8967 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
8968 range.
8969
e7303042
PA
89702011-02-14 Pedro Alves <[email protected]>
8971
8972 * value.c (value_bits_valid, value_bits_synthetic_pointer):
8973 No longer handle NULL values.
8974
8af8e3bc
PA
89752011-02-14 Pedro Alves <[email protected]>
8976
8977 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
8978 * value.c: Include "exceptions.h".
8979 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
8980 generic error.
8981 * cp-abi.c: Include gdb_assert.h.
8982 (baseclass_offset): Add `embedded_offset' and `val' parameters.
8983 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
8984 errors.
8985 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
8986 parameters. No longer returns -1 on error.
8987 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
8988 `val' parameters.
8989 * cp-valprint.c: Include exceptions.h.
8990 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
8991 the baseclass_offset. Handle unavailable base classes. Use
8992 val_print_invalid_address.
8993 * p-valprint.c: Include exceptions.h.
8994 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
8995 when fetching the baseclass_offset. No longer expect
8996 baseclass_offset returning -1. Handle unavailable base classes.
8997 Use val_print_invalid_address.
8998 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
8999 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9000 `embedded_offset' and `val' parameters. Adjust.
9001 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9002 parameter, and change its type to gdb_byte pointer. Add
9003 `embedded_offset' and `val' parameters. Adjust. No longer expect
9004 baseclass_offset returning -1.
9005 (value_dynamic_cast): Use value_contents_for_printing rather than
9006 value_contents. Adjust.
9007 (search_struct_field): No longer expect baseclass_offset returning
9008 -1.
9009 (search_struct_method): If reading memory from the target is
9010 necessary, wrap it in a new value to pass to baseclass_offset. No
9011 longer expect baseclass_offset returning -1.
9012 (find_method_list): No longer expect baseclass_offset returning
9013 -1. Use value_contents_for_printing rather than value_contents.
9014 * valprint.c (val_print_invalid_address): New function.
9015 * valprint.h (val_print_invalid_address): Declare.
9016 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9017 and `val' parameters. No longer expect baseclass_offset returning
9018 -1. Adjust.
9019 * gnu-v2-abi.c: Include "exceptions.h".
9020 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9021 parameters. Handle unavailable memory. Recurse through
9022 gnuv2_baseclass_offset directly, rather than through
9023 baseclass_offset. No longer returns -1 on not found, instead
9024 throw an error.
9025 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9026 `val' parameters. Adjust.
9027
1b28d0b3
PA
90282011-02-14 Pedro Alves <[email protected]>
9029
9030 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9031 almost but not quite adjacent.
9032
ec0a52e1
PA
90332011-02-14 Pedro Alves <[email protected]>
9034
9035 * value.h (value_entirely_available): Declare.
9036 * value.c (value_entirely_available): New function.
9037 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9038 real type if the pointer is unavailable.
9039
24e6bcee
PA
90402011-02-14 Pedro Alves <[email protected]>
9041
9042 * valops.c (value_repeat): Use read_value_memory instead of
9043 read_memory.
9044
39d37385
PA
90452011-02-14 Pedro Alves <[email protected]>
9046
9047 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9048 * value.c (value_contents_copy_raw, value_contents_copy): New
9049 functions.
9050 (value_primitive_field): Use value_contents_copy_raw instead of
9051 memcpy.
9052 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9053 memcpy.
9054 (value_array, value_slice): Ditto.
9055 * valarith.c (value_subscripted_rvalue): Use
9056 value_contents_copy_raw instead of memcpy.
9057
a3d34bf4
PA
90582011-02-14 Pedro Alves <[email protected]>
9059
9060 <unavailable> references.
9061
9062 * valops.c (get_value_at): Use value_from_contents_and_address,
9063 avoiding read_memory.
9064
9fc6d940
PA
90652011-02-14 Pedro Alves <[email protected]>
9066
9067 * c-valprint.c (c_val_print): Print a string with unavailable
9068 contents as an array.
9069
5467c6c8
PA
90702011-02-14 Pedro Alves <[email protected]>
9071
9072 * value.h (unpack_bits_as_long): Delete declaration.
9073 (unpack_value_bits_as_long): Declare.
9074 (unpack_value_field_as_long): Declare.
9075 (value_field_bitfield): Declare.
9076 * value.c (unpack_bits_as_long): Rename to...
9077 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9078 value parameters. Return the extracted result in a new output
9079 parameter. If the value contents are unavailable, return false,
9080 otherwise return true.
9081 (unpack_value_bits_as_long): New.
9082 (unpack_field_as_long): Rename to...
9083 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9084 Add embedded_offset and value parameters. Return the extracted
9085 result in a new output parameter. If the value contents are
9086 unavailable, return false, otherwise return true.
9087 (unpack_value_field_as_long): New.
9088 (unpack_field_as_long_1): New.
9089 (unpack_field_as_long): Reimplement as wrapper around
9090 unpack_value_field_as_long_1.
9091 (value_field_bitfield): New function.
9092 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9093 unpack_value_bits_as_long. Mark the value as unavailable, if it
9094 is unavailable.
9095 * jv-valprint.c (java_print_value_fields): Use
9096 value_field_bitfield.
9097 * p-valprint.c (pascal_object_print_value_fields): Use
9098 value_field_bitfield.
9099 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9100
3158c6ed
PA
91012011-02-14 Pedro Alves <[email protected]>
9102
9103 * value.c (get_internalvar_integer): Also return the int value of
9104 TYPE_CODE_INT INTERNALVAR_VALUE values.
9105 (set_internalvar): Don't special case TYPE_CODE_INT.
9106
9fbdca0d
PA
91072011-02-14 Pedro Alves <[email protected]>
9108
9109 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9110 INTERNALVAR_POINTER.
9111 <pointer>: Delete.
9112 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9113 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9114 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9115
c8c1c22f
PA
91162011-02-14 Pedro Alves <[email protected]>
9117
9118 * value.h (value_available_contents_eq): Declare.
9119 * value.c (find_first_range_overlap): New function.
9120 (value_available_contents_eq): New function.
9121 * valprint.c (val_print_array_elements): Use
9122 value_available_contents_eq.
9123 * ada-valprint.c (val_print_packed_array_elements): Use
9124 value_available_contents_eq.
9125 * jv-valprint.c (java_value_print): Use
9126 value_available_contents_eq.
9127
e6e4e701
PA
91282011-02-14 Pedro Alves <[email protected]>
9129
9130 * target.c (target_read_live_memory): New function.
9131 (memory_xfer_live_readonly_partial): New.
9132 (memory_xfer_partial): If reading from a traceframe, fallback to
9133 reading unavailable read-only memory from read-only regions of
9134 live target memory.
9135 * tracepoint.c (disconnect_tracing): Adjust.
9136 (set_current_traceframe): New, factored out from
9137 set_traceframe_number.
9138 (set_traceframe_number): Reimplement to only change the traceframe
9139 number on the GDB side.
9140 (do_restore_current_traceframe_cleanup): Adjust.
9141 (make_cleanup_restore_traceframe_number): New.
9142 (cur_traceframe_number): New global.
9143 (tfile_open): Set cur_traceframe_number to no traceframe.
9144 (set_tfile_traceframe): New function.
9145 (tfile_trace_find): If looking up a traceframe using any method
9146 other than by number, make sure the current tfile traceframe
9147 matches gdb's current traceframe. Update the current tfile
9148 traceframe if the lookup succeeded.
9149 (tfile_fetch_registers, tfile_xfer_partial)
9150 (tfile_get_trace_state_variable_value): Make sure the remote
9151 traceframe matches gdb's current traceframe.
9152 * remote.c (remote_traceframe_number): New global.
9153 (remote_open_1): Set it to -1.
9154 (set_remote_traceframe): New function.
9155 (remote_fetch_registers, remote_store_registers)
9156 (remote_xfer_memory, remote_xfer_partial)
9157 (remote_get_trace_state_variable_value): Make sure the remote
9158 traceframe matches gdb's current traceframe.
9159 (remote_trace_find): If looking up a traceframe using any method
9160 other than by number, make sure the current remote traceframe
9161 matches gdb's current traceframe. Update the current remote
9162 traceframe if the lookup succeeded.
9163 * infrun.c (fetch_inferior_event): Adjust.
9164 * tracepoint.h (set_current_traceframe): Declare.
9165 (get_traceframe_number, set_traceframe_number): Add describing
9166 comments.
9167
e6ca34fc
PA
91682011-02-14 Pedro Alves <[email protected]>
9169
9170 Mark pieces of values as unavailable if the corresponding memory
9171 is unavailable.
9172
9173 * valops.c: Include tracepoint.h.
9174 (value_fetch_lazy): Use read_value_memory.
9175 (read_value_memory): New.
9176 * value.h (read_value_memory): Declare.
9177 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9178 * exec.c (section_table_available_memory): New function.
9179 * exec.h (section_table_available_memory): Declare.
9180
2a7498d8
PA
91812011-02-14 Pedro Alves <[email protected]>
9182
9183 * Makefile.in (SFILES): Add memrange.c.
9184 (HFILES_NO_SRCDIR): Add memrange.h.
9185 (COMMON_OBS): Add memrange.o.
9186 * memrange.c: New file.
9187 * memrange.h: New file.
9188 * tracepoint.c: Include memrange.h.
9189 (struct mem_range): Delete.
9190 (mem_range_s): Delete.
9191 (traceframe_available_memory): New function.
9192 * tracepoint.h (traceframe_available_memory): Declare.
9193
b3b9301e
PA
91942011-02-14 Pedro Alves <[email protected]>
9195
9196 * target.h (struct traceframe_info): Forward declare.
9197 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9198 (struct target_ops) <to_traceframe_info>: New field.
9199 (target_traceframe_info): New.
9200 * target.c (update_current_target): Inherit and default
9201 to_traceframe_info.
9202 * remote.c (PACKET_qXfer_traceframe_info): New.
9203 (remote_protocol_features): Register qXfer:traceframe-info:read.
9204 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9205 (remote_traceframe_info): New.
9206 (init_remote_ops): Install it.
9207 (_initialize_remote): Install "set/show remote traceframe-info"
9208 commands.
9209 * tracepoint.h (parse_traceframe_info): Declare.
9210 * tracepoint.c (struct mem_range): New.
9211 (mem_range_s): New typedef.
9212 (struct traceframe_info): New.
9213 (traceframe_info): New global.
9214 (free_traceframe_info): New function.
9215 (clear_traceframe_info): New function.
9216 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9217 info.
9218 (build_traceframe_info): New function.
9219 (tfile_traceframe_info): New function.
9220 (init_tfile_ops): Install tfile_traceframe_info.
9221 (traceframe_info_start_memory, free_result): New functions.
9222 (memory_attributes, traceframe_info_elements): New globals.
9223 (parse_traceframe_info, get_traceframe_info): New functions.
9224 * features/traceframe-info.dtd: New file.
9225 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9226
4e07d55f
PA
92272011-02-14 Pedro Alves <[email protected]>
9228
9229 Base support for <unavailable> value contents.
9230
4e07d55f
PA
9231 * value.h (value_bytes_available): Declare.
9232 (mark_value_bytes_unavailable): Declare.
9233 * value.c (struct range): New struct.
9234 (range_s): New typedef.
9235 (ranges_overlap): New function.
9236 (range_lessthan): New function.
9237 (ranges_contain_p): New function.
9238 (struct value) <unavailable>: New field.
9239 (value_bytes_available): New function.
9240 (mark_value_bytes_unavailable): New function.
9241 (require_not_optimized_out): Constify parameter.
9242 (require_available): New function.
9243 (value_contents_all, value_contents): Require all bytes be
9244 available.
9245 (value_free): Free `unavailable'.
9246 (value_copy): Copy `unavailable'.
9247 * valprint.h (val_print_unavailable): Declare.
9248 * valprint.c (valprint_check_validity): Rename `offset' parameter
9249 to `embedded_offset'. If printing a scalar, check whether the
9250 value chunk is available.
9251 (val_print_unavailable): New.
9252 (val_print_scalar_formatted): Check whether the value is
9253 available.
9254 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9255 pretty-printing unavailable values.
9256
bc9a5551
JK
92572011-02-13 Jan Kratochvil <[email protected]>
9258
9259 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9260 * c-typeprint.c (c_type_print_args): Update the function comment. New
9261 variable param_type, initialize it. Remove const/volatile qualifiers
9262 for language_cplus and !show_artificial. Use param_type.
9263
93b55aa1
JK
92642011-02-13 Jan Kratochvil <[email protected]>
9265
9266 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9267 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9268 * symtab.h (struct symtab) <next>: Comment extension.
9269
181d9476
YQ
92702011-02-12 Yao Qi <[email protected]>
9271
9272 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9273
b708a5c7
JK
92742011-02-11 Yao Qi <[email protected]>
9275
9276 * common/Makefile.in: Add copyright header.
9277
c5187ac6
PA
92782011-02-11 Pedro Alves <[email protected]>
9279
9280 * infrun.c (proceed): Move switching out and in of tfind mode from
9281 here ...
9282 (fetch_inferior_event): ... to here.
9283
4f3e6fb7
YQ
92842011-02-11 Yao Qi <[email protected]>
9285
9286 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9287 libcommon.a.
9288 * configure.ac: Add common to sub dir.
9289 * configure: Regenerate.
9290
b708a5c7
JK
92912011-02-11 Yao Qi <[email protected]>
9292
9293 Build libcommon.a.
9294
9295 * common/Makefile.in: New.
9296 * common/configure.ac: New.
9297 * common/aclocal.m4: New.
9298 * common/configure: Generate.
9299
2287cc7e
PA
93002011-02-10 Pedro Alves <[email protected]>
9301
9302 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9303 side of the parenthesis.
9304
9305 Merge from GCC:
9306 2010-07-13 Jakub Jelinek <[email protected]>
fc013618 9307 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9308
fd62cb89
MS
93092011-02-08 Michael Snyder <[email protected]>
9310
9311 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9312
56d2815c
JK
93132011-02-08 Jan Kratochvil <[email protected]>
9314
9315 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9316 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9317 psubd and paddd.
9318
4f7d61a8
JK
93192011-02-08 Jan Kratochvil <[email protected]>
9320
9321 PR 12361.
9322 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9323 phsubsw.
9324 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9325 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9326
54fcddd0
UW
93272011-02-08 Ulrich Weigand <[email protected]>
9328
9329 * dwarf2read.c (read_subroutine_type): Set special calling
9330 convention flag for functions compiled by IBM XL C for OpenCL.
9331 * ppc-sysv-tdep.c: Include "dwarf2.h"
9332 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9333 calling convention.
9334 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9335 IBM OpenCL vector types calling convention.
9336 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9337 (ppc_sysv_abi_broken_return_value): Likewise.
9338 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9339 types calling convention.
9340 (ppc64_sysv_abi_return_value): Likewise.
9341 * spu-tdep.c: Include "dwarf2.h"
9342 (spu_return_value): Implement IBM OpenCL vector types calling
9343 convention.
9344
d6dafb7c
UW
93452011-02-08 Ulrich Weigand <[email protected]>
9346
9347 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9348 correct ABI for AltiVec vector arguments.
9349
32b72a42
PA
93502011-02-07 Pedro Alves <[email protected]>
9351
9352 * valprint.c (val_print): Extend comment.
9353 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9354 interface explanation to val_print.
9355 (ada_val_print_array): Adjust comment to current interface.
9356 (print_field_values): Adjust comment to current interface.
9357 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9358 explanation to val_print.
9359 * f-valprint.c (f_val_print): Ditto.
9360 * jv-valprint.c (java_val_print): Ditto.
9361 * m2-valprint.c (m2_val_print): Ditto.
9362 * p-valprint.c (pascal_val_print): Ditto.
9363
9998af43
TJB
93642011-02-07 Thiago Jung Bauermann <[email protected]>
9365
9366 * breakpoint.c (parse_breakpoint_sals): Fix description.
9367
505500db 93682011-02-04 Sami Wagiaalla <[email protected]>
9998af43 9369 Oguz Kayral <[email protected]>
505500db
SW
9370
9371 * python/py-inferior.c (python_on_normal_stop): New function.
9372 (python_on_resume): New function.
9373 (python_inferior_exit): New function.
9374 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9375 inferior_exit observers.
9376 * python/py-evtregistry.c: New file.
9377 * python/py-threadevent.c : New file.
9378 * python/py-event.c: New file.
9379 * python/py-evts.c: New file.
9380 * python/py-continueevent.c: New file.
9381 * python/py-bpevent.c: New file.
9382 * python/py-signalevent.c: New file.
9383 * python/py-exetiedevent.c: New file.
9384 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9385 Move struct breakpoint_object from here...
9386 * python/python-internal.h: ... to here.
9387 * python/py-event.h: New file.
9388 * python/py-events.h: New file.
9389 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9390 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9391 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9392 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9393 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9394 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9395 Add build rules for all the above.
9396
9e0ac564
TT
93972011-02-04 Tom Tromey <[email protected]>
9398
9399 * dwarf2read.c (dwarf2_section_empty_p): New function.
9400 (dwarf2_read_section): Use dwarf2_section_empty_p.
9401 (dwarf2_section_size): New function.
9402 (dwarf2_get_section_info): Unconditionally read section.
9403 (dwarf2_read_index): Use dwarf2_section_empty_p.
9404 (partial_read_comp_unit_head): Use dwarf2_section_size.
9405 (dwarf2_symbol_mark_computed): Likewise.
9406
eee5b35e
DD
94072011-02-04 David Daney <[email protected]>
9408
9409 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9410
385203ed
DD
94112011-02-04 David Daney <[email protected]>
9412
9413 * mips-linux-tdep.c: Include xml-syscall.h.
9414 (mips_linux_get_syscall_number): New function.
9415 (mips_linux_init_abi): Add calls to
9416 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9417 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9418 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9419 * syscalls/mips-n32-linux.xml: New file.
9420 * syscalls/mips-n64-linux.xml: New file.
9421 * syscalls/mips-o32-linux.xml: New file.
9422
9277c30c
UW
94232011-02-04 Ulrich Weigand <[email protected]>
9424
9425 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9426 Complain about inverted range entries.
9427 (dwarf2_record_block_ranges): Likewise.
9428
a3be7890
TJB
94292011-02-04 Thiago Jung Bauermann <[email protected]>
9430
9431 Fix some typos.
9432 * breakpoint.c (update_watchpoint): Fix name of the
9433 update_global_location_list function.
9434 (print_one_breakpoint): Fix typo.
9435 (_initialize_breakpoint): Remove extra space in hbreak help
9436 string.
9437 * breakpoint.h (struct bp_location) <length>: Fix field
9438 description.
9439
041274d8
PA
94402011-02-04 Pedro Alves <[email protected]>
9441
9442 * regcache.c (registers_changed_ptid): Don't explictly always
9443 clear `current_regcache'. Only clear current_thread_ptid and
9444 current_thread_arch when PTID matches. Only reinit the frame
9445 cache if PTID matches the current inferior_ptid. Move alloca(0)
9446 call to ...
9447 (registers_changed): ... here.
9448
c1c2ab58
UW
94492011-02-03 Ulrich Weigand <[email protected]>
9450
9451 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9452 starts with __stack_chk_guard as stack guard symbol.
9453
9011945e
AB
94542011-02-03 Andrew Burgess <[email protected]>
9455
9456 * disasm.c (compare_lines): Handle the end of sequence markers
9457 within the line table to better support disassembling over
9458 compilation unit boundaries.
9459
e0634ccf
UW
94602011-02-02 Ulrich Weigand <[email protected]>
9461
9462 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9463 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9464 implementation even if no symbols are available.
9465 (thumb_analyze_prologue): Update call to skip_prologue_function.
9466 (arm_analyze_prologue): Likewise.
9467
0e9e9abd
UW
94682011-02-02 Ulrich Weigand <[email protected]>
9469
9470 * arm-tdep.c: Include "observer.h".
9471 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9472 (arm_exidx_data_key): New static variable.
9473 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9474 (struct arm_exidx_data): Likewise.
9475 (arm_exidx_data_free): New function.
9476 (arm_compare_exidx_entries): Likewise.
9477 (arm_obj_section_from_vma): Likewise.
9478 (arm_exidx_new_objfile): Likewise.
9479 (arm_find_exidx_entry): Likewise.
9480 (arm_exidx_fill_cache): Likewise.
9481 (arm_exidx_unwind_sniffer): Likewise.
9482 (arm_exidx_unwind): New global variable.
9483 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9484 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9485 observer. Register arm_exidx_data_key as objfile data.
9486
2e9e421f
UW
94872011-02-02 Ulrich Weigand <[email protected]>
9488
9489 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9490 due to accessing uninitialized variable. Fix indentation.
9491
580688f3
PA
94922011-02-02 Pedro Alves <[email protected]>
9493
9494 * c-valprint.c (c_value_print): When doing virtual base pointer
9495 adjustment, create a new value with adjusted contents rather than
9496 changing the contents of the value being printed (and getting it
9497 wrong).
9498
3d2c1d41
PA
94992011-02-02 Pedro Alves <[email protected]>
9500
9501 * xml-support.c (xml_find_attribute): New.
9502 (xinclude_start_include): Use it.
9503 * xml-support.h (xml_find_attribute): Declare.
9504 * memory-map.c (memory_map_start_memory)
9505 (memory_map_start_property): Use xml_find_attribute.
9506 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9507 xml_find_attribute.
9508 * remote.c (start_thread): Use xml_find_attribute.
9509 * solib-target.c (library_list_start_segment)
9510 (library_list_start_section, library_list_start_library)
9511 (library_list_start_list): Use xml_find_attribute.
9512 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9513 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9514 (tdesc_start_field): Use xml_find_attribute.
9515
0af3e2db
UW
95162011-02-02 Ulrich Weigand <[email protected]>
9517
9518 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9519 (BUILD_OCL_VTYPES): Update.
9520
c1039e3c
JB
95212011-02-02 Joel Brobecker <[email protected]>
9522
9523 * configure.ac: Work around non-GNU sed limitation when computing
9524 python version number.
9525 * configure: Regenerate.
9526
600ea1be
JK
95272011-02-01 Jan Kratochvil <[email protected]>
9528
9529 Fix debug printing of TYPE_INSTANCE.
9530 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9531 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9532
56c12414
JK
95332011-02-01 Jan Kratochvil <[email protected]>
9534
9535 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9536 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9537 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9538 * ada-operator.inc: Rename the file to ...
9539 * ada-operator.def: ... here, wrap all the entries by macro OP.
9540 * expprint.c (op_name_standard): Remove all the entries. Include
9541 "std-operator.def" instead.
9542 * expression.h (enum exp_opcode): Include "std-operator.def" and
9543 "ada-operator.def". Move all the entries ...
9544 * std-operator.def: ... here, wrap all the entries by macro OP.
9545
c52b559d
PP
95462011-01-31 Paul Pluzhnikov <[email protected]>
9547
9548 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9549 * breakpoint.c (remove_jit_event_breakpoints): New function.
9550 * jit.c (jit_descriptor_addr): Delete.
9551 (registering_code): Delete.
9552 (clear_int): Delete.
9553 (jit_inferior_data): New variable.
9554 (struct jit_inferior_data): New type.
9555 (get_jit_inferior_data): New function.
9556 (jit_inferior_data_cleanup): New function.
9557 (jit_read_descriptor): Adjust.
9558 (jit_register_code): Adjust.
9559 (jit_breakpoint_re_set_internal): New function; move code here ...
9560 (jit_inferior_init): ... from here.
9561 (jit_breakpoint_re_set): Adjust.
9562 (jit_reset_inferior_data_and_breakpoints): New function.
9563 (jit_inferior_created_observer): Adjust.
9564 (jit_inferior_exit_hook): Adjust.
9565 (jit_executable_changed_observer): New function.
9566 (jit_event_handler): Adjust.
9567 (_initialize_jit): Adjust.
9568
e839132d
MS
95692011-01-31 Michael Snyder <[email protected]>
9570
9571 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9572 line.
9573
47a80e90
TT
95742011-01-31 Tom Tromey <[email protected]>
9575
9576 PR python/12216:
9577 * python/python.c (execute_gdb_command): Call
9578 prevent_dont_repeat.
9579 * top.c (suppress_dont_repeat): New global.
9580 (dont_repeat): Use it.
9581 (prevent_dont_repeat): New function.
9582 * command.h (prevent_dont_repeat): Declare.
9583
45a43567
TT
95842011-01-31 Tom Tromey <[email protected]>
9585
9586 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9587 * python/py-breakpoint.c (bppy_set_silent): Use
9588 breakpoint_set_silent.
9589 (bppy_set_thread): Use breakpoint_set_thread.
9590 (bppy_set_task): Use breakpoint_set_task.
9591 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9592 (breakpoint_set_task): Declare.
9593 (make_breakpoint_silent): Remove.
9594 * breakpoint.c (breakpoint_set_silent): New function.
9595 (breakpoint_set_thread): Likewise.
9596 (breakpoint_set_task): Likewise.
9597 (make_breakpoint_silent): Remove.
9598
09d682a4
TT
95992011-01-31 Tom Tromey <[email protected]>
9600
9601 * breakpoint.h (user_breakpoint_p): Declare.
9602 * breakpoint.c (user_breakpoint_p): New function.
9603 (breakpoint_1): Use it.
9604 (save_breakpoints): Likewise.
9605
9c4ea6c5
JB
96062011-01-31 Joel Brobecker <[email protected]>
9607
9608 * configure.ac: Add handling of Python distribution on Windows.
9609 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9610 sysconfig variables are not defined, then do not use them.
9611 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9612 instead. On Windows, return all paths using forward-slashes
9613 rather than backslashes.
9614
ac534cba
JB
96152011-01-31 Joel Brobecker <[email protected]>
9616
9617 * configure.ac: Remove fallback behavior for building
9618 against Python. Remove tweaking of Python include path.
9619 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9620 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9621 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9622 Always restore CPPFLAGS and LIBS after linking test.
9623 * configure: Regenerated.
9624 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9625 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9626 * python/python-internal.h: Adjust includes of Python .h files.
9627
c2f0d045
JB
96282011-01-31 Joel Brobecker <[email protected]>
9629
9630 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9631 in error message.
9632
6b0c4c1f
JB
96332011-01-31 Joel Brobecker <[email protected]>
9634
9635 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9636 value test.
9637
672c9795
YQ
96382011-01-31 Yao Qi <[email protected]>
9639
9640 * arm-linux-nat.c: Update calls to regcache_register_status
9641 instead of regcache_valid_p.
9642 * aix-thread.c: Likewise.
9643 * i386gnu-nat.c: Likewise.
9644
80b23b6a
JK
96452011-01-29 Jan Kratochvil <[email protected]>
9646
9647 Fix crash.
9648 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9649 touching TYPE_FIELD_ARTIFICIAL.
9650
4cd712bd
RE
96512011-01-28 Richard Earnshaw <[email protected]>
9652
9653 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9654 Committers.
9655
ffd5ec24
PA
96562011-01-28 Pedro Alves <[email protected]>
9657
9658 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9659 selected, don't try iterating over the traceframe's blocks.
9660 (tfile_has_stack): If there's no traceframe selected, then there's
9661 no stack.
9662 (tfile_has_registers): If there's no traceframe selected, then
9663 there's no registers.
9664
e8c9e0a1
PA
96652011-01-28 Pedro Alves <[email protected]>
9666
9667 * target.c (memory_xfer_partial): No need to restore shadows if we
9668 haven't read anything.
9669
de15c4ab
PA
96702011-01-28 Pedro Alves <[email protected]>
9671
9672 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9673 and val_print_scalar_formatted.
9674
9f41c731
PA
96752011-01-27 Pedro Alves <[email protected]>
9676
9677 * tracepoint.c (tfile_read): New.
9678 (tfile_open): Use it.
9679 (tfile_get_traceframe_address): Use it.
9680 (tfile_trace_find): Use it.
9681 (walk_blocks_callback_func): New typedef.
9682 (match_blocktype): New function.
9683 (traceframe_walk_blocks): New function.
9684 (traceframe_find_block_type): New function.
9685 (tfile_fetch_registers, tfile_xfer_partial)
9686 (tfile_get_trace_state_variable_value): Use
9687 traceframe_find_block_type and tfile_read.
9688
cdefc55d
KB
96892011-01-26 Kevin Buettner <[email protected]>
9690
9691 * remote-mips.c: Add internationalization mark ups. Remove
9692 trailing \n from already marked up strings.
9693
a81766d8
TT
96942011-01-26 Tom Tromey <[email protected]>
9695
9696 * python/py-prettyprint.c (print_string_repr): Clear
9697 'addressprint' option when calling val_print_string.
9698 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9699 option when calling val_print_string.
9700
74aedc46
TT
97012011-01-26 Tom Tromey <[email protected]>
9702
9703 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9704 GDB_PY_LL_ARG.
9705 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9706 macros.
9707 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9708 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9709 (gdb_py_long_as_ulongest): New defines.
9710 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9711 (gdb_py_int_as_long): Declare.
9712 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9713 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9714 (valpy_long): Add comment.
9715 * python/py-utils.c (get_addr_from_python): Use
9716 gdb_py_long_as_ulongest. Handle overflow properly.
9717 (gdb_py_object_from_longest): New function.
9718 (gdb_py_object_from_ulongest): Likewise.
9719 (gdb_py_int_as_long): Likewise.
9720 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9721 * python/py-symtab.c (salpy_get_pc): Use
9722 gdb_py_long_from_ulongest.
9723 (salpy_get_line): Use PyInt_FromLong.
9724 * python/py-param.c (set_parameter_value): Use
9725 gdb_py_int_as_long.
9726 * python/py-lazy-string.c (stpy_get_address): Use
9727 gdb_py_long_from_ulongest.
9728 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9729 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9730 * python/py-breakpoint.c (bppy_set_thread): Use
9731 gdb_py_int_as_long.
9732 (bppy_set_task): Likewise.
9733 (bppy_set_ignore_count): Likewise.
9734 (bppy_set_hit_count): Likewise.
9735 * python/py-block.c (blpy_get_start): Use
9736 gdb_py_object_from_ulongest.
9737 (blpy_get_end): Likewise.
9738 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9739
e4f6d2ec
TJB
97402011-01-25 Mathieu Lacage <[email protected]>
9741
9742 PR/symtab 11766:
9743 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9744 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9745 equality test for objfile, initialize addr_low if needed.
9746
b30aa278
PA
97472011-01-25 Pedro Alves <[email protected]>
9748
9749 * tui/tui-regs.c (tui_register_format): Remove dead code.
9750
ab2188aa
PA
97512011-01-25 Pedro Alves <[email protected]>
9752
9753 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9754 instead of print_scalar_formatted.
9755 (print_scalar_formatted): Don't handle 's' format strings here,
9756 and add an assertion that we never see such format here.
9757 * valprint.h (val_print_scalar_formatted): Declare.
9758 * valprint.c (val_print_scalar_formatted): New.
9759 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9760 instead of print_scalar_formatted.
9761 * jv-valprint.c (java_val_print): Ditto.
9762 * p-valprint.c (pascal_val_print): Ditto.
9763 * ada-valprint.c (ada_val_print_1): Ditto.
9764 * f-valprint.c (f_val_print): Ditto.
9765 * infcmd.c (registers_info): Ditto.
9766 * m2-valprint.c (m2_val_print): Ditto.
9767
66d61a4c
PA
97682011-01-25 Pedro Alves <[email protected]>
9769
9770 * m2-valprint.c (print_unbounded_array): Pass
9771 value_contents_for_printing rather than value_contents, to
9772 m2_print_array_contents. Also pass in the value.
9773
831adc1f
JK
97742011-01-25 Jan Kratochvil <[email protected]>
9775
9776 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9777 (save_gdb_index_command): Switch to .gdb_index version 4.
9778
20622269
PA
97792011-01-25 Pedro Alves <[email protected]>
9780
9781 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9782 than frame_register, and always pass a valid value to val_print.
9783
585fdaa1
PA
97842011-01-25 Pedro Alves <[email protected]>
9785
9786 Centralize printing "<optimized out>".
9787
9788 * valprint.h (val_print_optimized_out): Declare.
9789 * cp-valprint.c (cp_print_value_fields): Use
9790 val_print_optimized_out.
9791 * jv-valprint.c (java_print_value_fields): Ditto.
9792 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9793 * printcmd.c (print_formatted): Ditto.
9794 * valprint.c (valprint_check_validity): Ditto.
9795 (value_check_printable): Ditto.
9796 (val_print_optimized_out): New.
9797
29ec5263
PA
97982011-01-25 Pedro Alves <[email protected]>
9799
9800 * infcmd.c (default_print_registers_info): Allocate values so to
9801 never pass a NULL value to val_print.
9802
de4127a3
PA
98032011-01-25 Pedro Alves <[email protected]>
9804
9805 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9806 boolean. Make sure to always pass a value that matches the
9807 contents buffer to callees. Preserve `address' for following
9808 iterations.
9809 * value.c (value_contents_for_printing_const): New.
9810 (value_address): Constify value argument.
9811 * value.h (value_contents_for_printing_const): Declare.
9812 (value_address): Constify value argument.
9813
ee99023e
PA
98142011-01-25 Pedro Alves <[email protected]>
9815
9816 * regcache.c (struct regcache_descr): Rename
9817 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9818 and sizeof_cooked_register_valid_p to
9819 sizeof_cooked_register_status.
9820 (init_regcache_descr): Adjust.
9821 (struct regcache): Rename register_valid_p field to
9822 register_status.
9823 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9824 (do_cooked_read): Adjust.
9825 (regcache_valid_p): Rename to ...
9826 (regcache_register_status): ... this. Adjust.
9827 (regcache_invalidate): Adjust.
9828 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9829 Adjust.
9830 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9831 as unavailable, not valid.
9832 (regcache_dump): Adjust.
9833 * regcache.h (enum register_status): New.
9834 (regcache_register_status): Declare.
9835 (regcache_invalidate): Delete declaration.
9836 * corelow.c (get_core_registers): Adjust.
9837 * tracepoint.c (tfile_fetch_registers): Adjust.
9838 * trad-frame.c (REG_VALUE): Rename to ...
9839 (TF_REG_VALUE): ... this.
9840 (REG_UNKNOWN): Rename to ...
9841 (TF_REG_UNKNOWN): ... this.
9842 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9843 * mi/mi-main.c (register_changed_p): Adjust.
9844
99e42fd8
PA
98452011-01-25 Pedro Alves <[email protected]>
9846
9847 * regcache.c (struct regcache_descr): Remove outdated comment.
9848 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9849 overallocate hack.
9850 (regcache_xmalloc): Rename to ...
9851 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9852 Allocate the regcache type accordingly.
9853 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9854 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9855 cooked registers, not raw.
9856 (regcache_dup_no_passthrough): Delete.
9857 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9858 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9859 mention obsolete write_register_bytes.
9860 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9861
f7605bc2
PA
98622011-01-25 Pedro Alves <[email protected]>
9863
9864 Stop remote_read_bytes from handling partial reads itself.
9865
9866 * remote-fileio.c: Include target.h.
9867 (remote_fileio_write_bytes): Delete.
9868 (remote_fileio_func_open, remote_fileio_func_write)
9869 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9870 target_read_memory.
9871 (remote_fileio_func_stat): Use target_read_memory and
9872 target_write_memory.
9873 (remote_fileio_func_gettimeofday): Use target_write_memory.
9874 (remote_fileio_func_system): Use target_read_memory.
9875 * remote.c (remote_write_bytes): Make it static.
9876 (remote_read_bytes): Don't handle partial reads here.
9877 * remote.h (remote_read_bytes): Delete declaration.
9878
efc0eabd
PA
98792011-01-25 Pedro Alves <[email protected]>
9880
9881 Simplify XML parsing a bit.
9882
9883 * xml-support.h (gdb_xml_parse_quick): Declare.
9884 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
9885 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
9886 parameter.
9887 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
9888 gdb_xml_create_parser_and_cleanup_1.
9889 (gdb_xml_parse_quick): New.
9890 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
9891 * osdata.c (osdata_parse): Ditto.
9892 * remote.c (remote_threads_info): Ditto.
9893 * solib-target.c (solib_target_parse_libraries): Ditto.
9894 * xml-syscall.c (syscall_parse_xml): Ditto.
9895 * xml-tdesc.c (tdesc_parse_xml): Ditto.
9896
314d366a
KB
98972011-01-24 Kevin Buettner <[email protected]>
9898
9899 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
9900 with remote-mips.o added to gdb_target_obs.
9901 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
9902
a491d753
PA
99032011-01-24 Pedro Alves <[email protected]>
9904
9905 * ada-valprint.c (val_print_packed_array_elements): Pass the
9906 correct struct value to val_print.
9907 (ada_val_print_1): Ditto.
9908
490f124f
PA
99092011-01-24 Pedro Alves <[email protected]>
9910
9911 Don't lose embedded_offset in printing routines throughout.
9912
9913 * valprint.h (val_print_array_elements): Change prototype.
9914 * valprint.c (val_print_array_elements): Add `embedded_offset'
9915 parameter, and adjust to pass it down to val_print, while passing
9916 `valaddr' or `address' unmodified. Take embedded_offset into
9917 account when checking repetitions.
9918 * c-valprint.c (c_val_print): Pass embedded_offset to
9919 val_print_array_elements instead of adjusting `valaddr' and
9920 `address'.
9921 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
9922 embedded_offset to val_print_array_elements instead of adjusting
9923 `valaddr'.
9924 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
9925 * p-valprint.c (pascal_val_print): Pass embedded_offset to
9926 val_print_array_elements and pascal_object_print_value_fields
9927 instead of adjusting `valaddr'.
9928 (pascal_object_print_value_fields): Add `offset' parameter, and
9929 adjust to use it.
9930 (pascal_object_print_value): Add `offset' parameter, and adjust to
9931 use it.
9932 (pascal_object_print_static_field): Use
9933 value_contents_for_printing/value_embedded_offset, rather than
9934 value_contents.
9935 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
9936 parameter, and adjust to use it. Use
9937 value_contents_for_printing/value_embedded_offset, rather than
9938 value_contents.
9939 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
9940 (ada_val_print_array): Add `offset' parameter, and adjust to use
9941 it.
9942 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
9943 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
9944 Instead work with offsets. Use
9945 value_contents_for_printing/value_embedded_offset, rather than
9946 value_contents. Change `defer_val_int' local type to CORE_ADDR,
9947 and use value_from_pointer to extract a target pointer, rather
9948 than value_from_longest.
9949 (print_variant_part): Add `offset' parameter. Replace
9950 `outer_valaddr' parameter by a new `outer_offset' parameter.
9951 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9952 (ada_value_print): Use
9953 value_contents_for_printing/value_embedded_offset, rather than
9954 value_contents.
9955 (print_record): Add `offset' parameter, and adjust to pass it
9956 down.
9957 (print_field_values): Add `offset' parameter. Replace
9958 `outer_valaddr' parameter by a new `outer_offset' parameter.
9959 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9960 Use value_contents_for_printing/value_embedded_offset, rather than
9961 value_contents.
9962 * d-valprint.c (dynamic_array_type): Use
9963 value_contents_for_printing/value_embedded_offset, rather than
9964 value_contents.
9965 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
9966 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
9967 (java_print_value_fields): Take `offset' into account. Don't
9968 re-adjust `valaddr'. Instead pass down adjusted offsets.
9969 (java_val_print): Take `embedded_offset' into account. Pass it to
9970 java_print_value_fields.
9971 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
9972 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
9973 down adjusted offsets.
9974 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
9975 (f_val_print): Take `embedded_offset' into account.
9976
7bfc9434
JB
99772011-01-21 Joel Brobecker <[email protected]>
9978
9979 * inflow.c: Include "gdbcmd.h".
9980 (interactive_mode): New static global, moved here from top.c.
9981 (show_interactive_mode): New function, moved here from top.c.
9982 use gdb_has_a_terminal instead of input_from_terminal_p to
9983 determine the current mode.
9984 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
9985 setting.
9986 (_initialize_inflow): Add the "set/show interactive-mode"
9987 commands. Moved here from top.c, after having adjusted slightly
9988 the help text.
9989 * top.c (interactive_mode, show_interactive_mode): Delete, moved
9990 to inflow.c.
9991 (input_from_terminal_p): Remove handling of "interactive-mode"
9992 setting, moved to infow.c.
9993 (init_main): Remove creation of the "set/show interactive-mode"
9994 commands, moved to inflow.c.
9995
44603653
JB
99962011-01-19 Joel Brobecker <[email protected]>
9997
9998 * NEWS: Add entry for native ia64-hpux support.
9999
4694da01
TT
100002011-01-19 Tom Tromey <[email protected]>
10001
10002 PR mi/8618:
10003 * thread.c (free_thread): Free 'name'.
10004 (print_thread_info): Emit thread name. Change CLI output.
10005 (thread_name_command): New function.
10006 (do_captured_thread_select): Emit newline.
10007 (_initialize_thread): Register 'thread name' command.
10008 * target.h (struct target_ops) <to_thread_name>: New field.
10009 (target_thread_name): New macro.
10010 * target.c (update_current_target): Handle to_thread_name.
10011 * python/py-infthread.c (thpy_get_name): New function.
10012 (thpy_set_name): Likewise.
10013 (thread_object_getset): Add "name".
10014 * linux-nat.c (linux_nat_thread_name): New function.
10015 (linux_nat_add_target): Set to_thread_name.
10016 * gdbthread.h (struct thread_info) <name>: New field.
10017
10d44370
JB
100182011-01-18 Joel Brobecker <[email protected]>
10019
10020 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10021 (ada_val_print_1): Likewise.
10022
e3acb115
JB
100232011-01-18 Joel Brobecker <[email protected]>
10024
10025 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10026 upper limit address is not greater than the function end address
10027 when the upper limit could not be computed using the debugging
10028 info.
10029
dc92e161
TT
100302011-01-17 Tom Tromey <[email protected]>
10031
10032 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10033 get_regcomp_error.
10034 * utils.c: Include gdb_regex.h.
10035 (do_regfree_cleanup): New function.
10036 (make_regfree_cleanup): Likewise.
10037 (get_regcomp_error): Likewise.
10038 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10039
f55af66d
TT
100402011-01-17 Tom Tromey <[email protected]>
10041
10042 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10043 re_compile_fastmap.
10044
a5a44b53
PM
100452011-01-17 Pierre Muller <[email protected]>
10046
10047 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10048 for internal variables.
10049 (last_was_structop): New static variable.
10050 (COMPLETE): New token.
10051 (field_exp): New rule to group all '.' suffix handling.
10052 Add mark_struct_expression calls when approriate to be able
10053 to correctly find fields for completion.
10054 (yylex): Adapt to handle field completion and set INTVAR when
10055 required.
10056
2c291032
YQ
100572011-01-14 Yao Qi <[email protected]>
10058
10059 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10060 save_reggroup, restore_reggroup and all_reggroup.
10061
447b483c
JB
100622011-01-14 Joel Brobecker <[email protected]>
10063
10064 * ada-valprint. (ada_printchar): Use the correct type length
10065 in call to ada_emit_char.
10066 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10067
7b64a93b
PM
100682011-01-14 Pierre Muller <[email protected]>
10069
10070 * solib-som.h (hpux_major_release): Declare variable here.
10071 * solib-som.c: Remove <sys/utsname.h> header.
10072 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10073 (hpux_major_release): Make global, change default value to
10074 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10075 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10076 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10077 Add "solib-som.h" header.
10078 (set_hpux_major_release): New function.
10079 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10080
4e18c053
MF
100812011-01-14 Mike Frysinger <[email protected]>
10082
10083 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10084
a9df6b22
JB
100852011-01-14 Joel Brobecker <[email protected]>
10086
10087 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10088 new-line at end of warning message.
10089 (ia64_hpux_store_register): Remove trailing new-line at end of
10090 error message.
10091 * ia64-hpux-tdep.c: Rephrase comment.
10092 * solib-ia64-hpux.c (struct dld_info): Change type of field
10093 dld_flags from "long long" to ULONGEST.
10094
ecb956dd
PA
100952011-01-14 Pedro Alves <[email protected]>
10096
10097 * target.h (deprecated_child_ops): Delete declaration.
10098 * target.c (deprecated_child_ops): Delete definition.
10099
76adfcae
PA
101002011-01-14 Pedro Alves <[email protected]>
10101
10102 * Makefile.in (hpux-thread.o): Delete rule.
10103 * configure.ac: Don't check for HPUX DCE threads support.
10104 * configure, config.in: Regenerate.
10105 * hppa-hpux-nat.c (child_suppress_run): Delete.
10106 (hppa_hpux_child_can_run): Delete.
10107 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10108 * hpux-thread.c: Delete.
10109
042e866e
JB
101102011-01-13 Joel Brobecker <[email protected]>
10111
10112 * hpux-thread.c (hpux_pid_to_str): Delete.
10113
4ffa5a33
JB
101142011-01-13 Joel Brobecker <[email protected]>
10115
10116 * ada-valprint.c (ada_emit_char): Remove strange code.
10117 Check that c is <= UCHAR_MAX before passing it to isascii.
10118 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10119
de8fa76c
JB
101202011-01-13 Joel Brobecker <[email protected]>
10121
10122 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10123 to the case where instream is stdin.
10124
c4de7027
JB
101252011-01-13 Joel Brobecker <[email protected]>
10126
10127 * ia64-tdep.h (struct regcache): Forward declare.
10128 (struct ia64_infcall_ops): New struct type.
10129 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10130 and "infcall_ops".
10131 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10132 Renames ia64_find_global_pointer.
10133 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10134 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10135 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10136 methods.
10137 (ia64_infcall_ops): New static global constant.
10138 (ia64_gdbarch_init): Set tdep->infcall_ops.
10139 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10140 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10141 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10142 (ia64_hpux_dummy_code): New static global constant.
10143 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10144 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10145 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10146 New function.
10147 (ia64_hpux_infcall_ops): New static global constant.
10148 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10149 for inferior function calls to work properly on ia64-hpux.
10150
77ca787b
JB
101512011-01-13 Joel Brobecker <[email protected]>
10152
10153 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10154 * ia64-tdep.h (struct frame_info): forward declaration.
10155 (struct gdbarch_tdep): Add field size_of_register_frame.
10156 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10157 to determine the size of the register frame.
10158 (ia64_size_of_register_frame): New function.
10159 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10160 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10161 (IA64_HPUX_UREG_REASON): New macro.
10162 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10163 New functions.
10164 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10165 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10166 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10167 objects.
10168
92c9a463
JB
101692011-01-13 Joel Brobecker <[email protected]>
10170
10171 Add support for ia64-hpux.
10172 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10173 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10174
10175 * configure.host: Add handling for ia64-hpux hosts. Add associated
10176 floatformats.
10177 * configure.tgt: Add handling for ia64-hpux targets.
10178 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10179 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10180 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10181
f688d93f
JB
101822011-01-13 Joel Brobecker <[email protected]>
10183
10184 [ttrace] Compute thread list immediately after attach.
10185 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10186 New subprogram.
10187 (inf_ttrace_attach): Use it.
10188
1b89e62f
JB
101892011-01-13 Joel Brobecker <[email protected]>
10190
10191 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10192 if we could not determine the frame's function address. Instead,
10193 use the frame's PC, and then continue.
10194
3e5e6e2a
JB
101952011-01-13 Joel Brobecker <[email protected]>
10196
10197 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10198 not already defined.
10199
825d6d8a
JB
102002011-01-13 Joel Brobecker <[email protected]>
10201
10202 * ia64-tdep.c (ia64_struct_type_p): New function.
10203 (ia64_extract_return_value): Handle integral values that are
10204 less than 8 bytes long.
10205 (ia64_push_dummy_call): Likewise.
10206
7458e667
JB
102072011-01-13 Joel Brobecker <[email protected]>
10208
10209 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10210 floatformat_ia64_ext.
10211 (floatformat_ia64_ext_big): New static const.
10212 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10213
1b05df00
TT
102142011-01-12 Tom Tromey <[email protected]>
10215
10216 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10217 messages.
10218 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10219 (mi_cmd_thread_list_ids): Likewise.
10220 (mi_cmd_data_list_changed_registers): Likewise.
10221 (mi_cmd_data_list_register_values): Likewise.
10222 (mi_cmd_data_write_register_values): Likewise.
10223 (mi_cmd_data_evaluate_expression): Likewise.
10224 (mi_cmd_data_read_memory): Likewise.
10225 (mi_cmd_data_read_memory_bytes): Likewise.
10226 (mi_cmd_data_write_memory): Likewise.
10227 (mi_cmd_enable_timings): Likewise.
10228 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10229 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10230 (mi_cmd_var_delete): Likewise.
10231 (mi_cmd_var_set_format): Likewise.
10232 (mi_cmd_var_show_format): Likewise.
10233 (mi_cmd_var_info_num_children): Likewise.
10234 (mi_cmd_var_list_children): Likewise.
10235 (mi_cmd_var_info_type): Likewise.
10236 (mi_cmd_var_info_expression): Likewise.
10237 (mi_cmd_var_show_attributes): Likewise.
10238 (mi_cmd_var_assign): Likewise.
10239 (mi_cmd_var_update): Likewise.
10240 (mi_cmd_enable_pretty_printing): Likewise.
10241 (mi_cmd_var_set_update_range): Likewise.
10242 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10243 messages.
10244 (mi_cmd_target_file_put): Likewise.
10245 (mi_cmd_target_file_delete): Likewise.
10246 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10247 messages.
10248 (mi_cmd_stack_info_depth): Likewise.
10249 (mi_cmd_stack_list_locals): Likewise.
10250 (mi_cmd_stack_list_args): Likewise.
10251 (mi_cmd_stack_select_frame): Likewise.
10252 (mi_cmd_stack_select_frame): Likewise.
10253 (mi_cmd_stack_info_frame): Likewise.
10254 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10255 messages.
10256 (mi_cmd_file_list_exec_source_files): Likewise.
10257 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10258 (mi_cmd_env_cd): Likewise.
10259 (mi_cmd_env_path): Likewise.
10260 (mi_cmd_env_dir): Likewise.
10261 (mi_cmd_inferior_tty_show): Likewise.
10262 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10263 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10264 (mi_cmd_break_watch): Likewise.
10265
ad422571
TJB
102662011-01-12 Thiago Jung Bauermann <[email protected]>
10267
10268 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10269 (ppc_linux_insert_hw_breakpoint): Likewise.
10270 (ppc_linux_remove_hw_breakpoint): Likewise.
10271 (ppc_linux_insert_watchpoint): Likewise.
10272
c2ff108b
JK
102732011-01-12 Andrew Burgess <[email protected]>
10274 Jan Kratochvil <[email protected]>
10275
10276 PR fortran/11104 and DWARF unbound arrays detection.
10277 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10278 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10279 unspecified upper bound.
10280 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10281 variables array_size_array, tmp_type and offset_item. New variable
10282 array. Remove call to f77_get_upperbound. New variables array_type
10283 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10284 the final call to deprecated_set_value_type.
10285
41e8491f
JK
102862011-01-12 Jan Kratochvil <[email protected]>
10287
10288 Make value allocations more lazy.
10289 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10290 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10291 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10292 instead of allocate_value and set_value_lazy.
10293 * findvar.c (value_of_register_lazy): Likewise.
10294 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10295 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10296 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10297 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10298 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10299 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10300 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10301 the end, remove set_value_lazy there.
10302 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10303 instead of allocate_value and set_value_lazy when possible.
10304 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10305 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10306 of allocate_value and set_value_lazy.
10307 (value_from_contents_and_address): Use allocate_value_lazy instead of
10308 allocate_value and set_value_lazy when possible.
10309
b716877b
AB
103102011-01-12 Andrew Burgess <[email protected]>
10311
10312 * disasm.c (dump_insns): Support dumping opcodes for MI.
10313 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10314 dumping of instruction opcodes.
10315
d5ae309f
JB
103162011-01-09 Robert Millan <[email protected]> (tiny patch)
10317
10318 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10319 appropiately.
10320
98871305
TT
103212011-01-11 Tom Tromey <[email protected]>
10322
10323 * thread.c (do_captured_thread_select): Emit newline before
10324 printing frame.
10325
c378eb4e
MS
103262011-01-11 Michael Snyder <[email protected]>
10327
10328 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10329 * score-tdep.c: Ditto.
10330 * score-tdep.h: Ditto.
10331 * ser-base.c: Ditto.
10332 * ser-go32.c: Ditto.
10333 * serial.c: Ditto.
10334 * serial.h: Ditto.
10335 * ser-mingw.c: Ditto.
10336 * ser-pipe.c: Ditto.
10337 * ser-tcp.c: Ditto.
10338 * ser-unix.c: Ditto.
10339 * sh64-tdep.c: Ditto.
10340 * shnbsd-nat.c: Ditto.
10341 * sh-tdep.c: Ditto.
10342 * sh-tdep.h: Ditto.
10343 * solib.c: Ditto.
10344 * solib-darwin.c: Ditto.
10345 * solib-frv.c: Ditto.
10346 * solib.h: Ditto.
10347 * solib-irix.c: Ditto.
10348 * solib-osf.c: Ditto.
10349 * solib-pa64.c: Ditto.
10350 * solib-som.c: Ditto.
10351 * solib-spu.c: Ditto.
10352 * solib-sunos.c: Ditto.
10353 * solib-svr4.c: Ditto.
10354 * solist.h: Ditto.
10355 * sol-thread.c: Ditto.
10356 * somread.c: Ditto.
10357 * source.c: Ditto.
10358 * source.h: Ditto.
10359 * sparc64-linux-tdep.c: Ditto.
10360 * sparc64-tdep.c: Ditto.
10361 * sparc-linux-nat.c: Ditto.
10362 * sparc-linux-tdep.c: Ditto.
10363 * sparc-sol2-nat.c: Ditto.
10364 * sparc-sol2-tdep.c: Ditto.
10365 * sparc-tdep.c: Ditto.
10366 * sparc-tdep.h: Ditto.
10367 * spu-tdep.c: Ditto.
10368 * stabsread.c: Ditto.
10369 * stabsread.h: Ditto.
10370 * stack.c: Ditto.
10371 * symfile.c: Ditto.
10372 * symfile.h: Ditto.
10373 * symmisc.c: Ditto.
10374 * symtab.c: Ditto.
10375 * symtab.h: Ditto.
10376 * target.c: Ditto.
10377 * target-descriptions.c: Ditto.
10378 * target-descriptions.h: Ditto.
10379 * target.h: Ditto.
10380 * target-memory.c: Ditto.
10381 * terminal.h: Ditto.
10382 * thread.c: Ditto.
10383 * top.c: Ditto.
10384 * tracepoint.c: Ditto.
10385 * tracepoint.h: Ditto.
10386 * trad-frame.h: Ditto.
10387 * typeprint.c: Ditto.
10388
581e13c1
MS
103892011-01-11 Michael Snyder <[email protected]>
10390
10391 * ui-file.c: Comment cleanup, mostly periods and spaces.
10392 * ui-file.h: Ditto.
10393 * ui-out.c: Ditto.
10394 * ui-out.h: Ditto.
10395 * utils.c: Ditto.
10396 * v850-tdep.c: Ditto.
10397 * valarith.c: Ditto.
10398 * valops.c: Ditto.
10399 * valprint.c: Ditto.
10400 * valprint.h: Ditto.
10401 * value.c: Ditto.
10402 * value.h: Ditto.
10403 * varobj.c: Ditto.
10404 * varobj.h: Ditto.
10405 * vax-tdep.c: Ditto.
10406 * vec.c: Ditto.
10407 * vec.h: Ditto.
10408 * version.h: Ditto.
10409 * windows-nat.c: Ditto.
10410 * windows-tdep.c: Ditto.
10411 * xcoffread.c: Ditto.
10412 * xcoffsolib.c: Ditto.
10413 * xml-support.c: Ditto.
10414 * xstormy16-tdep.c: Ditto.
10415 * xtensa-tdep.c: Ditto.
10416 * xtensa-tdep.h: Ditto.
10417
90e4670f
TJB
104182011-01-11 Thiago Jung Bauermann <[email protected]>
10419
10420 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10421 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10422
e09342b5
TJB
104232011-01-11 Sergio Durigan Junior <[email protected]>
10424 Thiago Jung Bauermann <[email protected]>
10425
10426 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10427 * breakpoint.h
e09342b5
TJB
10428 (struct breakpoint_ops) <resources_needed>: New method.
10429 Initialize to NULL in all existing breakpoint_ops instances.
10430 (struct breakpoint) <exact>: New field.
10431 (target_exact_watchpoints): Declare external global.
10432 * breakpoint.c (target_exact_watchpoints): New global flag.
10433 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10434 b->enable_state to bp_enabled before calling
10435 hw_watchpoint_used_count.
10436 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10437 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10438 if available.
10439 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10440 if the watchpoint is exact.
10441 (resources_needed_watchpoint): New function.
10442 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10443 (watch_command_1): Set b->exact if the user asked for an exact
10444 watchpoint and one can be set.
10445 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10446 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10447 the user asks for an exact watchpoint and one can be set. Return
10448 number of needed debug registers to watch the expression.
10449 * gdbtypes.c (is_scalar_type): New function, based on
10450 valprint.c:scalar_type_p.
10451 (is_scalar_type_recursive): New function.
10452 * gdbtypes.h (is_scalar_type_recursive): Declare.
10453 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10454 handle regions when ranged watchpoints are available.
10455 (create_watchpoint_request): New function.
10456 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10457 create_watchpoint_request.
10458 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10459 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10460 `set powerpc' and `show powerpc' commands.
10461 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10462 Mention documentation comment in the target macro.
10463 (target_region_ok_for_hw_watchpoint): Document return value.
10464
9fa40276
TJB
104652011-01-11 Thiago Jung Bauermann <[email protected]>
10466
10467 * breakpoint.c (update_watchpoint): Decide on using a software or
10468 hardware watchpoint after the bp_locations are created.
10469
77b06cd7
TJB
104702010-01-11 Thiago Jung Bauermann <[email protected]>
10471
10472 Convert hardware watchpoints to use breakpoint_ops.
10473 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10474 <insert_location>: ... this. Return int instead of void.
10475 Accept pointer to struct bp_location instead of pointer to
10476 struct breakpoint. Adapt all implementations.
f2eb0bc8 10477 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10478 <remove_location>: ... this. Accept pointer to struct bp_location
10479 instead of pointer to struct breakpoint. Adapt all implementations.
10480 * breakpoint.c (insert_catchpoint): Delete function.
10481 (insert_bp_location): Call the watchpoint or catchpoint's
10482 breakpoint_ops.insert method.
10483 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10484 breakpoint_ops.remove method.
10485 (insert_watchpoint, remove_watchpoint): New functions.
10486 (watchpoint_breakpoint_ops): New structure.
10487 (watch_command_1): Initialize the OPS field.
10488 * inf-child.c (inf_child_insert_fork_catchpoint)
10489 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10490 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10491 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10492 Delete functions.
10493 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10494 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10495 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10496 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10497 * target.c (update_current_target): Change default implementation of
10498 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10499 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10500 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10501 to_set_syscall_catchpoint to return_one.
10502 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10503 (debug_to_insert_exec_catchpoint): Report return value.
10504 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10505 (to_insert_exec_catchpoint): Change declaration to return int instead
10506 of void.
10507
9b20d036
MS
105082011-01-11 Michael Snyder <[email protected]>
10509
10510 * arm-tdep.c: Internationalization.
10511 * c-lang.c: Ditto.
10512 * charset.c: Ditto.
10513 * fork-child.c: Ditto.
10514 * nto-procfs.c: Ditto.
10515 * ppc-sysv-tdep.c: Ditto.
10516 * procfs.c: Ditto.
10517 * remote-mips.c: Ditto.
10518 * remote.c: Ditto.
10519 * rs6000-nat.c: Ditto.
10520 * rs6000-tdep.c: Ditto.
10521 * target.c: Ditto.
10522 * valops.c: Ditto.
10523 * value.c: Ditto.
10524 * xml-support.c: Ditto.
10525 * mi/mi-cmd-break.c: Ditto.
10526 * mi/mi-cmd-var.c: Ditto.
10527 * mi/mi-interp.c: Ditto.
10528 * mi/mi-main.c: Ditto.
10529
dae477fe
AB
105302011-01-11 Andrew Burgess <[email protected]>
10531
10532 * remote-sim.c (gdbsim_store_register): Update API to
10533 sim_store_register to check more error conditions.
10534
0df8b418
MS
105352011-01-10 Michael Snyder <[email protected]>
10536
10537 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10538 * nto-tdep.c: Ditto.
10539 * nto-tdep.h: Ditto.
10540 * objc-exp.y: Ditto.
10541 * objc-lang.c: Ditto.
10542 * objfiles.c: Ditto.
10543 * objfiles.h: Ditto.
10544 * observer.c: Ditto.
10545 * opencl-lang.c: Ditto.
10546 * osabi.c: Ditto.
10547 * parse.c: Ditto.
10548 * parser-defs.h: Ditto.
10549 * p-exp.y: Ditto.
10550 * p-lang.c: Ditto.
10551 * posix-hdep.c: Ditto.
10552 * ppcbug-rom.c: Ditto.
10553 * ppc-linux-nat.c: Ditto.
10554 * ppc-linux-tdep.c: Ditto.
10555 * ppc-linux-tdep.h: Ditto.
10556 * ppcnbsd-tdep.c: Ditto.
10557 * ppcobsd-tdep.c: Ditto.
10558 * ppcobsd-tdep.h: Ditto.
10559 * ppc-sysv-tdep.c: Ditto.
10560 * ppc-tdep.h: Ditto.
10561 * printcmd.c: Ditto.
10562 * proc-abi.c: Ditto.
10563 * proc-flags.c: Ditto.
10564 * procfs.c: Ditto.
10565 * proc-utils.h: Ditto.
10566 * progspace.h: Ditto.
10567 * prologue-value.c: Ditto.
10568 * prologue-value.h: Ditto.
10569 * psympriv.h: Ditto.
10570 * psymtab.c: Ditto.
10571 * p-typeprint.c: Ditto.
10572 * p-valprint.c: Ditto.
10573 * ravenscar-sparc-thread.c: Ditto.
10574 * ravenscar-thread.c: Ditto.
10575 * ravenscar-thread.h: Ditto.
10576 * record.c: Ditto.
10577 * regcache.c: Ditto.
10578 * regcache.h: Ditto.
10579 * remote.c: Ditto.
10580 * remote-fileio.c: Ditto.
10581 * remote-fileio.h: Ditto.
10582 * remote.h: Ditto.
10583 * remote-m32r-sdi.c: Ditto.
10584 * remote-mips.c: Ditto.
10585 * remote-sim.c: Ditto.
10586 * rs6000-aix-tdep.c: Ditto.
10587 * rs6000-nat.c: Ditto.
10588 * rs6000-tdep.c: Ditto.
10589
0d7a18f7
MS
105902011-01-10 Michael Snyder <[email protected]>
10591
10592 * charset.c (validate): Internationalization.
10593 * coffread.c (read_one_sym): Ditto.
10594 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10595 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10596 * inflow.c (new_tty): Ditto.
10597 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10598 * m32c-tdep.c (m32c_return_value): Ditto.
10599 * mep-tdep.c (mep_store_return_value): Ditto.
10600 * score-tdep.c (score7_fetch_insn): Ditto.
10601 * ser-mingw.c (pipe_windows_open): Ditto.
10602 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10603 * spu-tdep.c (spu_register_type): Ditto.
10604 * tracepoint.c (trace_find_command): Ditto.
10605 * valarith.c (value_pos): Ditto.
10606
9a153e0b
JB
106072011-01-10 Joel Brobecker <[email protected]>
10608
10609 * ada-valprint.c (printstr): Minor comment reformatting.
10610
35ecd2d6
MS
106112011-01-08 Michael Snyder <[email protected]>
10612
10613 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10614 markup.
10615
1777feb0
MS
106162011-01-08 Michael Snyder <[email protected]>
10617
10618 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10619 * hppa-hpux-tdep.c: Ditto.
10620 * hppa-linux-nat.c: Ditto.
10621 * hppa-linux-tdep.c: Ditto.
10622 * hppanbsd-tdep.c: Ditto.
10623 * hppa-tdep.c: Ditto.
10624 * hppa-tdep.h: Ditto.
10625 * hpux-thread.c: Ditto.
10626 * i386-cygwin-tdep.c: Ditto.
10627 * i386-darwin-nat.c: Ditto.
10628 * i386gnu-nat.c: Ditto.
10629 * i386-linux-nat.c: Ditto.
10630 * i386-linux-tdep.c: Ditto.
10631 * i386-nat.c: Ditto.
10632 * i386-nat.h: Ditto.
10633 * i386nbsd-tdep.c: Ditto.
10634 * i386-sol2-nat.c: Ditto.
10635 * i386-stub.c: Ditto.
10636 * i386-tdep.c: Ditto.
10637 * i386-tdep.h: Ditto.
10638 * i387-tdep.c: Ditto.
10639 * ia64-linux-nat.c: Ditto.
10640 * ia64-linux-tdep.c: Ditto.
10641 * ia64-tdep.c: Ditto.
10642 * infcall.c: Ditto.
10643 * infcall.h: Ditto.
10644 * infcmd.c: Ditto.
10645 * inferior.c: Ditto.
10646 * inferior.h: Ditto.
10647 * infloop.c: Ditto.
10648 * inflow.c: Ditto.
10649 * infrun.c: Ditto.
10650 * interps.c: Ditto.
10651 * interps.h: Ditto.
10652 * iq2000-tdep.c: Ditto.
10653 * irix5-nat.c: Ditto.
10654 * jit.c: Ditto.
10655 * jit.h: Ditto.
10656 * jv-exp.y: Ditto.
10657 * jv-lang.c: Ditto.
10658 * jv-lang.h: Ditto.
10659 * jv-typeprint.c: Ditto.
10660 * jv-valprint.c: Ditto.
10661 * language.c: Ditto.
10662 * language.h: Ditto.
10663 * linespec.c: Ditto.
10664 * linux-fork.c: Ditto.
10665 * linux-nat.c: Ditto.
10666 * linux-thread-db.c: Ditto.
10667 * lm32-tdep.c: Ditto.
10668
025bb325
MS
106692011-01-08 Michael Snyder <[email protected]>
10670
10671 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10672 * m2-lang.c: Ditto.
10673 * m2-typeprint.c: Ditto.
10674 * m2-valprint.c: Ditto.
10675 * m32c-tdep.c: Ditto.
10676 * m32r-linux-nat.c: Ditto.
10677 * m32r-rom.c: Ditto.
10678 * m32r-tdep.c: Ditto.
10679 * m32r-tdep.h: Ditto.
10680 * m68hc11-tdep.c: Ditto.
10681 * m58klinux-nat.c: Ditto.
10682 * m68k-tdep.c: Ditto.
10683 * m88k-tdep.c: Ditto.
10684 * m88k-tdep.h: Ditto.
10685 * machoread.c: Ditto.
10686 * macrocmd.c: Ditto.
10687 * macroexp.c: Ditto.
10688 * macrotab.c: Ditto.
10689 * main.c: Ditto.
10690 * maint.c: Ditto.
10691 * mdebugread.c: Ditto.
10692 * mdebugread.h: Ditto.
10693 * memattr.c: Ditto.
10694 * memattr.h: Ditto.
10695 * memory-map.h: Ditto.
10696 * mep-tdep.c: Ditto.
10697 * microblaze-rom.c: Ditto.
10698 * microblaze-tdep.c: Ditto.
10699 * minsyms.c: Ditto.
10700 * mips-irix-tdep.c: Ditto.
10701 * mips-linux-nat.c: Ditto.
10702 * mips-linux-tdep.c: Ditto.
10703 * mips-linux-tdep.h: Ditto.
10704 * mipsnbsd-nat.c: Ditto.
10705 * mipsnbsd-tdep.c: Ditto.
10706 * mipsread.c: Ditto.
10707 * mips-tdep.c: Ditto.
10708 * mips-tdep.h: Ditto.
10709 * mn10300-linux-tdep.c: Ditto.
10710 * mn10300-tdep.c: Ditto.
10711 * mn10300-tdep.h: Ditto.
10712 * monitor.c: Ditto.
10713 * monitor.h: Ditto.
10714 * moxie-tdep.c: Ditto.
10715 * moxie-tdep.h: Ditto.
10716 * mt-tdep.c: Ditto.
10717
1642781b
MF
107182011-01-08 Mike Frysinger <[email protected]>
10719
10720 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10721
394b0adb
JB
107222011-01-08 Robert Millan <[email protected]>
10723
10724 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10725
b670013c
MS
107262011-01-07 Michael Snyder <[email protected]>
10727
10728 * charset.c (_initialize_charset): Fix typo in string.
10729
a743e542
MS
107302011-01-07 Michael Snyder <[email protected]>
10731
10732 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10733 for i18n.
f2eb0bc8 10734 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10735 Split line so that operator goes to beginning of line.
10736 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10737 assignment out of if statement.
10738
0963b4bd
MS
107392011-01-07 Michael Snyder <[email protected]>
10740
10741 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10742 * ada-lang.h: Ditto.
10743 * ada-tasks.c: Ditto.
10744 * ada-valprint.c: Ditto.
10745 * aix-threads.c: Ditto.
10746 * alpha-linux-nat.c: Ditto.
10747 * alpha-linux-tdep.c: Ditto.
10748 * alpha-mdebug-tdep.c: Ditto.
10749 * alpha-nat.c: Ditto.
10750 * alpha-osf1-tdep.c: Ditto.
10751 * alpha-tdep.c: Ditto.
10752 * alphabsd-nat.c: Ditto.
10753 * alphabsd-tdep.c: Ditto.
10754 * amd64-darwin-tdep.c: Ditto.
10755 * amd64-linux-nat.c: Ditto.
10756 * amd64-linux-tdep.c: Ditto.
10757 * amd64-sol2-tdep.c: Ditto.
10758 * amd64-tdep.c: Ditto.
10759 * amd64-fbsd-tdep.c: Ditto.
10760 * amd64-nbsd-tdep.c: Ditto.
10761 * amd64-obsd-tdep.c: Ditto.
10762 * amd64-linux-nat.c: Ditto.
10763 * amd64-linux-tdep.c: Ditto.
10764 * arm-tdep.c: Ditto.
10765 * arm-tdep.h: Ditto.
10766 * armnbsd-nat.c: Ditto.
10767 * avr-tdep.c: Ditto.
10768 * bfin-tdep.c: Ditto.
10769 * bsd-kvm.c: Ditto.
10770 * c-typeprintc: Ditto.
10771 * c-valprint.c: Ditto.
10772 * coff-pe-read.h: Ditto.
10773 * coffreead.c: Ditto.
10774 * cris-tdep.c: Ditto.
10775 * d-lang.c: Ditto.
10776 * darwin-nat-info.c: Ditto.
10777 * darwin-nat.c: Ditto.
10778 * dbug-rom.c: Ditto.
10779 * dbxread.c: Ditto.
10780 * dcache.c: Ditto.
10781 * dcache.h: Ditto.
10782 * dec-thread.c: Ditto.
10783 * defs.h: Ditto.
10784 * demangle.c: Ditto.
10785 * dicos-tdep.c: Ditto.
10786 * dictionary.c: Ditto.
10787 * dictionary.h: Ditto.
10788 * dink32-rom.c: Ditto.
10789 * disasm.c: Ditto.
10790 * doublest.c: Ditto.
10791 * dsrec.c: Ditto.
10792 * dummy-frame.c: Ditto.
10793 * dwarf2-frame.c: Ditto.
10794 * dwarf2expr.c: Ditto.
10795 * dwarf2loc.c: Ditto.
10796 * dwarf2read.c: Ditto.
10797 * elfread.c: Ditto.
10798 * environ.c: Ditto.
10799 * eval.c: Ditto.
10800 * event-top.h: Ditto.
10801 * exceptions.c: Ditto.
10802 * exceptions.h: Ditto.
10803 * exec.c: Ditto.
10804 * expprint.c: Ditto.
10805 * expression.h: Ditto.
10806 * f-exp.y: Ditto.
10807 * f-lang.c: Ditto.
10808 * f-lang.h: Ditto.
10809 * f-typeprint.c: Ditto.
10810 * f-valprint.c: Ditto.
10811 * fbsd-nat.c: Ditto.
10812 * findvar.c: Ditto.
10813 * fork-child.c: Ditto.
10814 * frame.c: Ditto.
10815 * frame.h: Ditto.
10816 * frv-linux-tdep.c: Ditto.
10817 * frv-tdep.c: Ditto.
10818 * gcore.c: Ditto.
10819 * gdb-stabs.h: Ditto.
10820 * gdb_assert.h: Ditto.
10821 * gdb_string.h: Ditto.
10822 * gdb_thread_db.h: Ditto.
10823 * gdb_wait.h: Ditto.
10824 * gdbarch.sh: Ditto.
10825 * gdbcore.h: Ditto.
10826 * gdbthread.h: Ditto.
10827 * gdbtypes.c: Ditto.
10828 * gdbtypes.h: Ditto.
10829 * gnu-nat.c: Ditto.
10830 * gnu-nat.h: Ditto.
10831 * gnu-v2-abi.c: Ditto.
10832 * gnu-v3-abi.c: Ditto.
10833 * go32-nat.c: Ditto.
10834 * gdbarch.c: Regenerate.
10835 * gdbarch.h: Regenerate.
10836
ac74f770
MS
108372011-01-07 Michael Snyder <[email protected]>
10838
10839 * ax-gdb.c: Adjust some long output strings.
10840 * breakpoint.c: Ditto.
10841 * charset.c: Ditto.
10842 * cp-abi.c: Ditto.
10843 * infcall.c: Ditto.
10844 * infrun.c: Ditto.
10845 * linux-nat.c: Ditto.
10846 * solib-pa64.c: Ditto.
10847 * solib-som.c: Ditto.
10848
d8e22779
TT
108492011-01-06 Tom Tromey <[email protected]>
10850
10851 PR python/12367:
10852 * NEWS: Add item.
10853 * python/python.c (GdbMethods): Add "newest_frame" method.
10854 * python/python-internal.h (gdbpy_newest_frame): Declare.
10855 * python/py-frame.c (gdbpy_newest_frame): New function.
10856
a255712f
PP
108572010-01-06 Paul Pluzhnikov <[email protected]>
10858
10859 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10860 * jit.c (jit_debug): New variable.
10861 (show_jit_debug): New function.
10862 (struct target_buffer): Use ULONGEST.
10863 (bfd_open_from_target_memory): Likewise.
10864 (jit_register_code, jit_inferior_init): Add debug output.
10865 (_initialize_jit): Register "debug jit" command.
10866
ccfc3d6e
TT
108672011-01-06 Tom Tromey <[email protected]>
10868
10869 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10870 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10871 and ARCH_FRAME.
10872
57126e4a
TT
108732011-01-06 Tom Tromey <[email protected]>
10874
10875 * python/py-frame.c (frapy_block): Use get_frame_block.
10876
16dfc9ce
JB
108772011-01-06 Joel Brobecker <[email protected]>
10878
10879 Do not stop on SIGPRIO signals by default
10880 * infrun.c (_initialize_infrun): Unset signal_stop and
10881 signal_print for TARGET_SIGNAL_PRIO.
10882
b1ce2347
JB
108832011-01-06 Joel Brobecker <[email protected]>
10884
10885 * ada-tasks.c: Fix style violation in comment.
10886
8f7e195f
JB
108872011-01-06 Joel Brobecker <[email protected]>
10888
10889 * linespec.c (decode_compound, find_method): Remove trailing \n
10890 at end of error string.
10891 * solib-irix.c (irix_current_sos): Likewise.
10892 * varobj.c (uninstall_variable): Likewise.
10893
e9bdf92c
JB
108942011-01-06 Joel Brobecker <[email protected]>
10895
10896 * copyright.py: New script.
10897 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
10898 Launch emacs without exec'ing. Call copyright.py afterwards.
10899
3e43a32a
MS
109002011-01-05 Michael Snyder <[email protected]>
10901
10902 * addrmap.c: Shorten lines of >= 80 columns.
10903 * arch-utils.c: Ditto.
10904 * arch-utils.h: Ditto.
10905 * ax-gdb.c: Ditto.
10906 * ax-general.c: Ditto.
10907 * bcache.c: Ditto.
10908 * blockframe.c: Ditto.
10909 * breakpoint.c: Ditto.
10910 * buildsym.c: Ditto.
10911 * c-lang.c: Ditto.
10912 * c-typeprint.c: Ditto.
10913 * charset.c: Ditto.
10914 * coffread.c: Ditto.
10915 * command.h: Ditto.
10916 * corelow.c: Ditto.
10917 * cp-abi.c: Ditto.
10918 * cp-namespace.c: Ditto.
10919 * cp-support.c: Ditto.
10920 * dbug-rom.c: Ditto.
10921 * dbxread.c: Ditto.
10922 * defs.h: Ditto.
10923 * dfp.c: Ditto.
10924 * dfp.h: Ditto.
10925 * dictionary.c: Ditto.
10926 * disasm.c: Ditto.
10927 * doublest.c: Ditto.
10928 * dwarf2-frame.c: Ditto.
10929 * dwarf2expr.c: Ditto.
10930 * dwarf2loc.c: Ditto.
10931 * dwarf2read.c: Ditto.
10932 * elfread.c: Ditto.
10933 * eval.c: Ditto.
10934 * event-loop.c: Ditto.
10935 * event-loop.h: Ditto.
10936 * exceptions.h: Ditto.
10937 * exec.c: Ditto.
10938 * expprint.c: Ditto.
10939 * expression.h: Ditto.
10940 * f-lang.c: Ditto.
10941 * f-valprint.c: Ditto.
10942 * findcmd.c: Ditto.
10943 * frame-base.c: Ditto.
10944 * frame-unwind.c: Ditto.
10945 * frame-unwind.h: Ditto.
10946 * frame.c: Ditto.
10947 * frame.h: Ditto.
10948 * gcore.c: Ditto.
10949 * gdb-stabs.h: Ditto.
10950 * gdb_assert.h: Ditto.
10951 * gdb_dirent.h: Ditto.
10952 * gdb_obstack.h: Ditto.
10953 * gdbcore.h: Ditto.
10954 * gdbtypes.c: Ditto.
10955 * gdbtypes.h: Ditto.
10956 * inf-ttrace.c: Ditto.
10957 * infcall.c: Ditto.
10958 * infcmd.c: Ditto.
10959 * inflow.c: Ditto.
10960 * infrun.c: Ditto.
10961 * inline-frame.h: Ditto.
10962 * language.c: Ditto.
10963 * language.h: Ditto.
10964 * libunwind-frame.c: Ditto.
10965 * libunwind-frame.h: Ditto.
10966 * linespec.c: Ditto.
10967 * linux-nat.c: Ditto.
10968 * linux-nat.h: Ditto.
10969 * linux-thread-db.c: Ditto.
10970 * machoread.c: Ditto.
10971 * macroexp.c: Ditto.
10972 * macrotab.c: Ditto.
10973 * main.c: Ditto.
10974 * maint.c: Ditto.
10975 * mdebugread.c: Ditto.
10976 * memattr.c: Ditto.
10977 * minsyms.c: Ditto.
10978 * monitor.c: Ditto.
10979 * monitor.h: Ditto.
10980 * objfiles.c: Ditto.
10981 * objfiles.h: Ditto.
10982 * osabi.c: Ditto.
10983 * p-typeprint.c: Ditto.
10984 * p-valprint.c: Ditto.
10985 * parse.c: Ditto.
10986 * printcmd.c: Ditto.
10987 * proc-events.c: Ditto.
10988 * procfs.c: Ditto.
10989 * progspace.c: Ditto.
10990 * progspace.h: Ditto.
10991 * psympriv.h: Ditto.
10992 * psymtab.c: Ditto.
10993 * record.c: Ditto.
10994 * regcache.c: Ditto.
10995 * regcache.h: Ditto.
10996 * remote-fileio.c: Ditto.
10997 * remote.c: Ditto.
10998 * ser-mingw.c: Ditto.
10999 * ser-tcp.c: Ditto.
11000 * ser-unix.c: Ditto.
11001 * serial.c: Ditto.
11002 * serial.h: Ditto.
11003 * solib-frv.c: Ditto.
11004 * solib-irix.c: Ditto.
11005 * solib-osf.c: Ditto.
11006 * solib-pa64.c: Ditto.
11007 * solib-som.c: Ditto.
11008 * solib-sunos.c: Ditto.
11009 * solib-svr4.c: Ditto.
11010 * solib-target.c: Ditto.
11011 * solib.c: Ditto.
11012 * somread.c: Ditto.
11013 * source.c: Ditto.
11014 * stabsread.c: Ditto.
11015 * stabsread.c: Ditto.
11016 * stack.c: Ditto.
11017 * stack.h: Ditto.
11018 * symfile-mem.c: Ditto.
11019 * symfile.c: Ditto.
11020 * symfile.h: Ditto.
11021 * symmisc.c: Ditto.
11022 * symtab.c: Ditto.
11023 * symtab.h: Ditto.
11024 * target-descriptions.c: Ditto.
11025 * target-memory.c: Ditto.
11026 * target.c: Ditto.
11027 * target.h: Ditto.
11028 * terminal.h: Ditto.
11029 * thread.c: Ditto.
11030 * top.c: Ditto.
11031 * tracepoint.c: Ditto.
11032 * tracepoint.h: Ditto.
11033 * ui-file.c: Ditto.
11034 * ui-file.h: Ditto.
11035 * ui-out.h: Ditto.
11036 * user-regs.c: Ditto.
11037 * user-regs.h: Ditto.
11038 * utils.c: Ditto.
11039 * valarith.c: Ditto.
11040 * valops.c: Ditto.
11041 * valprint.c: Ditto.
11042 * valprint.h: Ditto.
11043 * value.c: Ditto.
11044 * varobj.c: Ditto.
11045 * varobj.h: Ditto.
11046 * vec.h: Ditto.
11047 * xcoffread.c: Ditto.
11048 * xcoffsolib.c: Ditto.
11049 * xcoffsolib.h: Ditto.
11050 * xml-syscall.c: Ditto.
11051 * xml-tdesc.c: Ditto.
11052
9a2b4c1b
MS
110532011-01-05 Michael Snyder <[email protected]>
11054
11055 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11056 * cli/cli-decode.c: Ditto.
11057 * cli/cli-dump.c: Ditto.
11058 * cli/cli-logging.c: Ditto.
11059 * cli/cli-script.c: Ditto.
11060 * cli/cli-setshow.c: Ditto.
11061 * common/signals.c: Ditto.
11062 * mi/mi-cmd-break.c: Ditto.
11063 * mi/mi-cmd-disas.c: Ditto.
11064 * mi/mi-cmd-stack.c: Ditto.
11065 * mi/mi-cmd-var.c: Ditto.
11066 * mi/mi-cmds.c: Ditto.
11067 * mi/mi-common.h: Ditto.
11068 * mi/mi-console.c: Ditto.
11069 * mi/mi-interp.c: Ditto.
11070 * mi/mi-main.c: Ditto.
11071 * osf-share/cma_attr.c: Ditto.
11072 * osf-share/cma_deb_core.h: Ditto.
11073 * osf-share/cma_debug_client.h: Ditto.
11074 * osf-share/cma_handle.h: Ditto.
11075 * osf-share/cma_mutex.h: Ditto.
11076 * osf-share/cma_stack_int.h: Ditto.
11077 * osf-share/cma_tcb_defs.h: Ditto.
11078 * python/py-auto-load.c: Ditto.
11079 * python/py-breakpoint.c: Ditto.
11080 * python/py-cmd.c: Ditto.
11081 * python/py-frame.c: Ditto.
11082 * python/py-objfile.c: Ditto.
11083 * python/py-param.c: Ditto.
11084 * python/py-progspace.c: Ditto.
11085 * python/py-symbol.c: Ditto.
11086 * python/py-value.c: Ditto.
11087 * python/python-internal.h: Ditto.
11088 * python/python.c: Ditto.
11089 * tui/tui-data.c: Ditto.
11090 * tui/tui-disasm.c: Ditto.
11091 * tui/tui-hooks.c: Ditto.
11092 * tui/tui-io.c: Ditto.
11093 * tui/tui-layout.c: Ditto.
11094 * tui/tui-regs.c: Ditto.
11095 * tui/tui-source.c: Ditto.
11096 * tui/tui-stack.c: Ditto.
11097 * tui/tui-win.c: Ditto.
11098 * tui/tui-windata.c: Ditto.
11099 * tui/tui-winsource.c: Ditto.
11100
44944448
JB
111012011-01-05 Joel Brobecker <[email protected]>
11102
11103 * configure.ac, gdb.1: Copyright year update.
11104
ebedcab5
JK
111052011-01-03 Jan Kratochvil <[email protected]>
11106
11107 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11108 this_pc_in_block, morestack_msym and morestack_name. Check for
11109 "__morestack" minimal symbol there.
11110
e5cc9f32
JB
111112011-01-03 Joel Brobecker <[email protected]>
11112
11113 * symfile.c (find_sym_fns): Add call to dont_repeat.
11114
7b6bb8da
JB
111152011-01-01 Joel Brobecker <[email protected]>
11116
11117 Copyright year update in most files (performed by copyright.sh).
11118
71ce852c
JB
111192011-01-01 Joel Brobecker <[email protected]>
11120
11121 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11122
c3c1ebe8 11123For older changes see ChangeLog-2010.
c906108c
SS
11124\f
11125Local Variables:
11126mode: change-log
11127left-margin: 8
11128fill-column: 74
11129version-control: never
57da7796 11130coding: utf-8
c906108c 11131End:
This page took 4.034726 seconds and 4 git commands to generate.