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