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