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