* NEWS: Mention tracepoint additions.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f196051f
SS
12011-11-20 Stan Shebs <stan@codesourcery.com>
2
3 * NEWS: Mention tracepoint additions.
4 * breakpoint.h (struct tracepoint): New field traceframe_usage.
5 * breakpoint.c (print_one_breakpoint_location): Identify
6 tracepoints as such when reporting hit counts, report
7 trace buffer usage.
8 (create_tracepoint_from_upload): Copy status info.
9 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
10 add fields user_name, notes, start_time, stop_time.
11 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
12 * tracepoint.c (trace_user): New global.
13 (trace_notes): New global.
14 (trace_stop_notes): New global.
15 (start_tracing): Add argument and trace note handling.
16 (stop_tracing): Ditto.
17 (trace_start_command): Add notes argument.
18 (trace_stop_command): Ditto.
19 (trace_status_command): Report additional status info.
20 (trace_status_mi): Similarly.
21 (trace_save): Update, record tracepoint status.
22 (set_disconnected_tracing): Call target method directly.
23 (send_disconnected_tracing_value): Remove.
24 (set_trace_user): New function.
25 (set_trace_notes): New function.
26 (set_trace_stop_notes): New function.
27 (parse_trace_status): Handle additional status.
28 (parse_tracepoint_status): New function.
29 (parse_tracepoint_definition): Call it.
30 (tfile_get_tracepoint_status): New function.
31 (init_tfile_ops): Use it.
32 (_initialize_tracepoint): Add new setshows.
33 * target.h (struct target_ops): New methods to_get_tracepoint_status
34 and to_set_trace_notes.
35 (target_get_tracepoint_status): New macro.
36 (target_set_trace_notes): New macro.
37 * target.c (update_current_target): Add new methods.
38 * remote.c (remote_get_tracepoint_status): New function.
39 (remote_set_trace_notes): New function.
40 (init_remote_ops): Add them.
41 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
42 (mi_cmd_trace_stop): Ditto.
43
3623dc3a
SD
442011-11-20 Sanjoy Das <sdas@igalia.com>
45
46 * jit.c: Include regcache.h.
47 (jit_gdbarch_data, jit_frame_unwind): New static variables.
48 (jit_unwind_reg_set_impl, free_reg_value_impl)
49 (jit_unwind_reg_get_impl, jit_frame_sniffer)
50 (jit_frame_unwind_stop_reason, jit_frame_this_id)
51 (jit_frame_prev_register, jit_dealloc_cache)
52 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
53 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
54 jit_prepend_unwinder.
55 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
56
1825a88d
SD
572011-11-20 Sanjoy Das <sdas@igalia.com>
58
59 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
60 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
61 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
62 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
63 (finalize_symtab, jit_object_close_impl)
64 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
65 (free_objfile_data): New functions.
66 (_initialize_jit): Register jit_objfile_data with a proper cleanup
67 function.
68
784c47ee
SD
692011-11-20 Sanjoy Das <sdas@igalia.com>
70
71 * jit.c: Include gdb-dlfcn.h.
72 (loaded_jit_reader, reader_init_fn_sym): New static variables.
73 (jit_reader_load, jit_reader_load_command)
74 (jit_reader_unload_command): New functions.
75 (_initialize_jit): Add commands "jit-reader-load" and
76 "jit-reader-unload".
77
a2d08b9e
SD
782011-11-20 Sanjoy Das <sdas@igalia.com>
79
80 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
81 * config.in: Add new #define HAVE_LIBDL.
82 * configure.ac: Add check for -ldl.
83 * configure: Re-generated by autoconf.
84 * gdb-dlfcn.c: New file.
85 * gdb-dlfcn.h: New file.
86
b8e0a31c
SD
872011-11-20 Sanjoy Das <sdas@igalia.com>
88
89 * config.in: Add new #defines: JIT_READER_DIR and
90 JIT_READER_DIR_RELOCATABLE.
91 * configure.ac: New GDB directory entry for jit-reader-dir.
92 * configure: Re-generated by autoconf.
93 * jit.c: New static variable: const char *jit_reader_dir.
94 (_initialize_jit): Relocate jit_reader_dir.
95
f997c383
SD
962011-11-20 Sanjoy Das <sdas@igalia.com>
97
98 * Makefile.in: Add jit-reader.h as a header. Have it installed in
99 $(includedir)/gdb.
100 * configure.ac: Generate a correct value for TARGET_PTR for
101 jit-reader.h. Tell configure to generate jit-reader.h from
102 jit-reader.in.
103 * configure: Re-generated by autoconf.
104 * jit-reader.in: New file.
105 * jit.c: Include jit-reader.h.
106
dc8c0494
SD
1072011-11-20 Sanjoy Das <sdas@igalia.com>
108
109 * MAINTAINERS (Write After Approval): Add myself to the list.
110
01efb936
UW
1112011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
112
113 * findvar.c (read_frame_register_value): Respect value_offset
114 of the register value. Remove big-endian special case.
115
732f3f12
TT
1162011-11-18 Tom Tromey <tromey@redhat.com>
117
118 PR build/7196:
119 * remote.c (putpkt_for_catch_errors): New function.
120 (remote_kill): Use it.
121
bfccc43c
YQ
1222011-11-18 Yao Qi <yao@codesourcery.com>
123
124 * breakpoint.c (create_breakpoint): Produce query message according to
125 breakpoint's type.
126 Allocate tracepoint per correct type.
127 Don't check SALs for pending fast tracepoints.
128 * tracepoint.c (process_tracepoint_on_disconnect): New.
129 (disconnect_tracing): Call process_tracepoint_on_disconnect.
130
3ea46bff
YQ
1312011-11-18 Yao Qi <yao@codesourcery.com>
132
133 * breakpoint.c (install_breakpoint): Add one more parameter so that
134 update_global_location_list is called conditionally.
135 (create_fork_vfork_event_catchpoint): Update.
136 (create_syscall_event_catchpoint): Update.
137 (create_breakpoint_sal): Update.
138 (create_breakpoint_sal): Update. Call do_cleanups before
139 install_breakpoint.
140 * ada-lang.c (create_ada_exception_catchpoint): Update.
141 * breakpoint.h (install_breakpoint): Update declaration.
142
598cfb71
UW
1432011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
144
145 * spu-tdep.c (spu_return_value): Fix handling of
146 TYPE_CALLING_CONVENTION annotation.
147
caf4328c
UW
1482011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
149
150 * skip.c (skip_function_command): Work around uninitialized
151 variable warning.
152
2b54dda2
DM
1532011-11-16 David S. Miller <davem@davemloft.net>
154
155 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
156 'tv_usec' to long for printf since these fields have a type which
157 varies.
158
93bf33fd
DE
1592011-11-15 Doug Evans <dje@google.com>
160
161 * buildsym.c (add_symbol_to_list): Delete outdated comment.
162
9cc10fd1
PK
1632011-11-15 Paul Koning <paul_koning@dell.com>
164
165 * python/py-type.c (typy_get_composite): New function.
166 (typy_nonzero): New function.
167 (typy_values): Rename from typy_fields.
168 (typy_fields): New function.
169 (typy_length): Raise exception if not struct, union, or enum type.
170 (typy_getitem): Ditto.
171 (typy_has_key): Ditto.
172 (typy_make_iter): Ditto.
173
c011a4f4
DE
1742011-11-15 Doug Evans <dje@google.com>
175
176 * NEWS: Mention new parameter basenames-may-differ.
177 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
178 ! basenames_may_differ.
179 * psymtab.c (lookup_partial_symtab): Ditto.
180 * symtab.c (lookup_symtab): Ditto.
181 (basenames_may_differ): New global.
182 (_initialize_symtab): New parameter basenames-may-differ.
183 * symtab.h (basenames_may_differ): Declare.
184
865ecab4
LM
1852011-11-15 Pedro Alves <pedro@codesourcery.com>
186 Luis Machado <lgustavo@codesourcery.com>
187
188 * auxv.c: Include observer.h.
189 (auxv_inferior_data_cleanup): New.
190 (invalidate_auxv_cache_inf): New.
191 (invalidate_auxv_cache): New.
192 (get_auxv_inferior_data): New.
193 (auxv_inferior_data): New static global.
194 (auxv_info): New structure.
195 (target_auxv_search): Use get_auxv_inferior_data instead of
196 target_read_alloc and don't free cached buffers.
197 (fprint_target_auxv): Likewise
198 (_initialize_auxv): Register per-inferior auxv cache and register
199 observers to invalidate auxv cache when needed.
200
ed59ded5
DE
2012011-11-14 Doug Evans <dje@google.com>
202
203 Make "!" an alias for "shell".
204 * NEWS: Add mention.
205 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
206 adding "!" command, always add it.
207 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
208 command of length one.
209
405f8e94
SS
2102011-11-14 Stan Shebs <stan@codesourcery.com>
211 Kwok Cheung Yeung <kcy@codesourcery.com>
212
213 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
214 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
215 the minimum instruction size for fast tracepoints.
216 * target.h (struct target_ops): Add new method
217 to_get_min_fast_tracepoint_insn_len.
218 (target_get_min_fast_tracepoint_insn_len): New.
219 * target.c (update_current_target): Set up new target operation.
220 * remote.c (remote_write_bytes_aux): Fix typo.
221 (remote_get_min_fast_tracepoint_insn_len): New.
222 (init_remote_ops): Initialize new field.
223
3e05895e
TT
2242011-11-14 Tom Tromey <tromey@redhat.com>
225
226 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
227 (encode_actions): Likewise.
228
1e4d1764
YQ
2292011-11-14 Yao Qi <yao@codesourcery.com>
230
231 * remote.c (struct remote_state): <install_in_trace> new field.
232 (PACKET_InstallInTrace): New enum value.
233 (remote_install_in_trace_feature): Support InstallInTrace.
234 (remote_supports_install_in_trace): Likewise.
235 (remote_protocol_features): Likewise.
236 (_initialize_remote): Likewise.
237 (remote_can_download_tracepoint): New.
238 * target.h (struct target): New field
239 `to_can_download_tracepoint'.
240 (target_can_download_tracepoint): New macro.
241 * target.c (update_current_target): Update.
242 * breakpoint.h (struct bp_location): Add comment on field
243 `duplicate'.
3ccd4ac6
YQ
244 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
245 and tracepoint.
1e4d1764
YQ
246 (remove_breakpoints): Don't remove tracepoints.
247 (tracepoint_locations_match ): New.
248 (breakpoint_locations_match): Call it.
249 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
250 (download_tracepoint_locations): New.
251 (update_global_location_list): Call it.
252 * tracepoint.c (find_matching_tracepoint): Delete.
253 (find_matching_tracepoint_location): Renamed from
254 find_matching_tracepoint. Return bp_location rather than
255 tracepoint.
256 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
257 tracepoint is found.
258
e8ba3115
YQ
2592011-11-14 Yao Qi <yao@codesourcery.com>
260
261 * target.h (struct target): <to_download_tracepoint> Change type
262 of parameter from tracepoint to bp_location.
263 * target.c (update_current_target): Update.
264 * tracepoint.c (start_tracing): Update.
265 * remote.c (remote_download_tracepoint): Remove loop for each location
266 of a tracepoint.
267
edcc485a
MR
2682011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
269
270 * i386-nat.c (i386_insert_hw_breakpoint): Call
271 i386_update_inferior_debug_regs.
272 (i386_remove_hw_breakpoint): Likewise.
273
3742cc8b
YQ
2742011-11-14 Yao Qi <yao@codesourcery.com>
275
276 * breakpoint.c (init_raw_breakpoint): Call
277 add_location_to_breakpoint to replace duplicated code.
278 (add_location_to_breakpoint): Adjust the breakpoint's
279 address prior to allocating a location.
280
71eba9c2 2812011-11-12 Matt Rice <ratmice@gmail.com>
282
283 * macrocmd.c (macro_no_macro_info): New function.
284 (macro_expand_command): Use macro_no_macro_info.
285 (macro_expand_once_command): Ditto.
286 (info_macro_command): Add argument processing,
287 move info_definitions_command here.
288 (_initialize_macrocmd): Remove info definitions command.
289 Add arguments to info macro help text.
290 * NEWS: Replace info definitions command with new info macro options.
291
731971ed
KS
2922011-11-11 Keith Seitz <keiths@redhat.com>
293
294 PR gdb/12843
295 * linespec.c (locate_first_half): Keep ':' if it looks
296 like it could be part of a Windows path starting with
297 a drive letter.
298
6953d224
PA
2992011-11-10 Pedro Alves <pedro@codesourcery.com>
300
301 * linux-nat.c (linux_nat_wait): Don't force waking up the event
302 loop when returning a TARGET_WAITKIND_NO_RESUMED.
303
0c94aa73
PA
3042011-11-10 Pedro Alves <pedro@codesourcery.com>
305
306 * target.c (target_waitstatus_to_string): Handle
307 TARGET_WAITKIND_NO_RESUMED.
308
f6b47be4
DE
3092011-11-10 Doug Evans <dje@google.com>
310
74e2f255
DE
311 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
312 `need_fullname'.
313 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
314 (map_partial_symbol_filenames): Ditto. All callers updated.
315 * psymtab.h (map_partial_symbol_filenames): Update prototype.
316 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
317 parameter need_fullname.
318
256f06f3
DE
319 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
320 * source.c (symtab_to_fullname): Ditto.
321
50f182aa
DE
322 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
323 * gdb-demangle.h: ... here. New file.
324 * demangle.c: #include "gdb-demangle.h".
325 (_initialize_demangler): Use initialize_file_ftype for prototype.
326 Move "set demangle" and "set asm-demangle" parameters here from utils.c
327 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
328 from utils.c
329 * utils.c: Update. #include "gdb-demangle.h".
330 * symtab.h (asm_demangle): Delete.
331 (demangle): Move declaration next to use.
332 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
333 * dwarf2read.c: #include "gdb-demangle.h".
334 * gnu-v2-abi.c: Ditto.
335 * jv-typeprint.c: Ditto.
336 * mdebugread.c: Ditto.
337 * p-typeprint.c: Ditto.
338 * stabsread.c: Ditto.
339 * printcmd.c: Ditto.
340 (asm_demangle): Delete declaration.
341 * tui/tui-stack.c: #include "gdb-demangle.h".
342
f6b47be4
DE
343 * python/py-type.c (typy_fields_items): Call check_typedef.
344
22355c90
JB
3452011-11-10 Joel Brobecker <brobecker@adacore.com>
346
347 * findvar.c (read_frame_register_value): Read the correct bytes
348 from registers on big-endian architectures.
349
bd119cf1 3502011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
351
352 * procfs.c (load_syscalls): Make a cleanup.
353 (open_procinfo_files): fd==0 is ok.
354
0a86f364
JB
3552011-11-10 Joel Brobecker <brobecker@adacore.com>
356
357 * procfs.c (iterate_over_mappings): Call do_cleanups before
358 returning.
359
9bc118a5
DE
3602011-11-09 Doug Evans <dje@google.com>
361
362 * gdbtypes.c (check_typedef): Document that this function can
363 throw an exception.
364
a7860e76
TT
3652011-11-09 Tom Tromey <tromey@redhat.com>
366
367 PR c++/13342:
368 * valops.c (value_full_object): Return early if real type is
369 smaller than the enclosing type.
370
60965737
YQ
3712011-11-08 Yao Qi <yao@codesourcery.com>
372
373 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
374
72a2e3dc
MI
3752011-11-08 Meador Inge <meadori@codesourcery.com>
376
377 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
378 register when the frame can't be determined.
379 * arm-tdep.c (arm_analyze_prologue): Ditto.
380
ce3b0ff7
SS
3812011-11-07 Stan Shebs <stan@codesourcery.com>
382
383 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
384
2b914b52
JB
3852011-11-07 Joel Brobecker <brobecker@adacore.com>
386
387 * infrun.c (handle_inferior_event): Minor reformatting.
388
6f809020
DE
3892011-11-05 Doug Evans <dje@google.com>
390
391 * source.c (forget_cached_source_info_for_objfile): Move call to
392 objfile->sf->qf->forget_cached_source_info outside of
393 ALL_OBJFILE_SYMTABS loop.
394 (forget_cached_source_info): Delete unused variable `s'.
395
75d12218
JK
3962011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
397
398 * i386-nat.c (dr_ref_count): Remove unused variable.
399
e565b837
DE
4002011-11-05 Doug Evans <dje@google.com>
401
402 * main.c (captured_main): Set lim_at_start before calling
403 make_command_stats_cleanup.
404
0a1c4d10
DE
4052011-11-04 Doug Evans <dje@google.com>
406
407 * utils.c: #include "timeval-utils.h".
408 (cmd_stats): Rename start_time to start_cpu_time.
409 New member start_wall_time.
410 (report_command_stats): Report wall time.
411 (make_command_stats_cleanup): Record start wall time.
412
a1d705ee
TT
4132011-11-04 Tom Tromey <tromey@redhat.com>
414
415 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
416
81de56be
RO
4172011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
418
419 * coff-pe-read.c: Include defs.h before bfd.h.
420
3ab1ec27
PM
4212011-11-04 Phil Muldoon <pmuldoon@redhat.com>
422
423 PR Python/13345
424
425 * python/python.c (python_run_simple_file): Expand tilde in path.
426
cd829959
PM
4272011-11-04 Phil Muldoon <pmuldoon@redhat.com>
428
429 PR Python/13363
430
431 * python/py-type.c (typy_lookup_type): Do not return a type in
432 an exception handler.
433
080ad648
JK
4342011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
435 Eli Zaretskii <eliz@gnu.org>
436
437 * linux-nat.c (_initialize_linux_nat): Improve help
438 for `info proc stat', `info proc status', `info proc cwd',
439 `info proc cmdline' and `info proc exe'.
440
3065dfb6
SS
4412011-11-02 Stan Shebs <stan@codesourcery.com>
442
443 String collection for tracepoints.
444 * NEWS: Mention string collection.
445 * common/ax.def (tracenz): New bytecode.
446 * ax-gdb.h (trace_string_kludge): Declare.
447 * ax-gdb.c: Include valprint.h and c-lang.h.
448 (trace_string_kludge): New global.
449 (gen_traced_pop): Add string case.
450 (agent_command): Add string case.
451 * tracepoint.h (decode_agent_options): Declare.
452 * tracepoint.c: Include cli-utils.h.
453 (decode_agent_options): New function.
454 (validate_actionline): Call it.
455 (encode_actions_1): Ditto.
456 * target.h (struct target_ops): New method to_supports_string_tracing.
457 (target_supports_string_tracing): New macro.
458 * target.c (update_current_target): Add to_supports_string_tracing.
459 * remote.c (struct remote_state): New field string_tracing.
460 (remote_string_tracing_feature): New function.
461 (remote_protocol_features): New feature tracenz.
462 (remote_supports_string_tracing): New function.
463 (init_remote_ops): Set to_supports_string_tracing.
464
f179e162
JK
4652011-11-02 Pedro Alves <pedro@codesourcery.com>
466 Jan Kratochvil <jan.kratochvil@redhat.com>
467
468 * linux-nat.c: Include cli/cli-utils.h.
469 (enum info_proc_what): New.
470 (linux_nat_info_proc_cmd): Rename to ...
471 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
472 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
473 status_f and stat_f from WHAT. Throw error on extra parameters.
474 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
475 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
476 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
477 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
478 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
479 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
480 `info proc cmdline', `info proc exe' and `info proc all' as real
481 subcommands of `info proc'.
482
7b35ec7f 4832011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
484
485 * Makefile.in: (SFILES): Add skip.c.
486 (HFILES_NO_SRCDIR): Add skip.h.
487 (COMMON_OBS): Add skip.o.
488 * skip.h, skip.c: New.
489 * breakpoint.h (set_default_breakpoint): Remove.
490 (get_sal_arch): Declare.
491 * breakpoint.c: Remove default_breakpoint_valid,
492 default_breakpoint_address, default_breakpoint_symtab,
493 default_breakpoint_line, default_breakpoint_pspace variables.
494 (get_sal_arch): Make public.
495 (set_default_breakpoint): Remove.
496 (parse_breakpoint_sals, create_breakpoint, clear_command,
497 decode_line_spec_1): Remove uses of default_breakpoint variables;
498 replaced with function calls into stack.c.
499 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
500 * cli/cli-cmds.c: Add skiplist.
501 (init_cmd_lists): Initialize skiplist.
502 (init_cli_cmds): Fix comment (classes of commands appear in
503 alphabetical order).
504 * infrun.c (handle_inferior_event): Add check that we don't step into
505 a function whose pc is marked for skip.
506 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
507 last_displayed_addr, last_displayed_symtab, last_displayed_line
508 variables.
509 (set_last_displayed_sal): New static function.
510 (print_frame_info): Switch call to set_default_breakpoint to call to
511 set_last_displayed_sal.
512 (clear_last_displayed_sal, last_displayed_sal_is_valid,
513 get_last_displayed_pspace, get_last_displayed_addr,
514 get_last_displayed_symtab, get_last_displayed_line,
515 get_last_displayed_sal): New public functions.
516 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
517 get_last_displayed_pspace, get_last_displayed_addr,
518 get_last_displayed_symtab, get_last_displayed_line,
519 get_last_displayed_sal): Declare.
520
b60e1588
JL
5212011-11-01 Justin Lebar <justin.lebar@gmail.com>
522
523 * MAINTAINERS (Write After Approval): Add myself to the list.
524
d31647d2
YQ
5252011-10-29 Yao Qi <yao@codesourcery.com>
526
527 * infcmd.c (disconnect_command): Call disconnect_tracing.
528
b1d96efd
JK
5292011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
530
531 Code cleanup.
532 * symtab.c (skip_prologue_sal): Code reformatting.
533
4dfb2365
JK
5342011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
535
536 PR symtab/13208
537 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
538 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
539 SAI.
540
0e5bf2a8
PA
5412011-10-28 Pedro Alves <pedro@codesourcery.com>
542
543 * linux-nat.c (linux_nat_filter_event): Remove `options'
544 parameter, and dead code that used it. If we're handling a
545 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
546 in our lwp list, re-add it.
547 (check_zombie_leaders): New.
548 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
549 wait for children with WNOHANG, and always wait for all children.
550 Don't check for no resumed children upfront. Simplify wait loop.
551 Check for zombie thread group leaders after handling all wait
552 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
553 unwaited-for children left.
554 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
555 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
556 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
557 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
558
821296b7
SA
5592011-10-28 Sterling Augustine <saugustine@google.com>
560
561 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
562 * symtab.c (free_completion_list): New function.
563 (do_free_completion_list): Likewise.
564 (default_make_symbol_completion_list_break_on): New variable
565 back_to. Call make_cleanup and discard_cleanups.
566 (make_source_files_completion_list): Likewise.
567
03c3051a
PK
5682011-10-28 Paul Koning <paul_koning@dell.com>
569
570 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
571 * NEWS: Mention deep_items.
572
8e7ebaf5
PA
5732011-10-28 Alen Skondro <askondro@gmail.com>
574
8de33dc2 575 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
576 defined.
577
e0c6ef61
MI
5782011-10-27 Meador Inge <meadori@codesourcery.com>
579
580 * MAINTAINERS (Write After Approval): Add myself to the list.
581
b56d6f31
JB
5822011-10-27 Joel Brobecker <brobecker@adacore.com>
583
584 * value.h (read_frame_register_value): Add declaration.
585 * findvar.c (read_frame_register_value): New function.
586 (value_from_register): Use read_frame_register_value
587 instead of get_frame_register_value + value_contents_copy
588 to get value contents.
589
d234ef5c
DE
5902011-10-27 Doug Evans <dje@google.com>
591
592 * cli/cli-cmds.c (source_script_with_search): Pass full path to
593 source_script_from_stream if it may have been found on the search path.
594 * python/py-auto-load.c (source_section_scripts): Pass full path to
595 source_python_script_for_objfile.
596 * python/python.c (source_python_script): Delete stream parameter.
597 All callers updated.
598 (source_python_script_for_objfile): Ditto.
599 * python/python-internal.h (source_python_script_for_objfile): Update.
600 * python/python.h (source_python_script): Update.
601
d849d44f
TT
6022011-10-27 Tom Tromey <tromey@redhat.com>
603
604 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
605 (ada_sals_for_line): Remove declarations.
606
2231f1fb
KP
6072011-10-27 Kevin Pouget <kevin.pouget@st.com>
608
609 Move unwind reasons to an external .def file
610 * frame.c (frame_stop_reason_string): Rewrite using
611 unwind_stop_reasons.def.
612 * frame.h (enum unwind_stop_reason): Likewise.
613 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
614 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
615 constants for bound-checking.
616 * unwind_stop_reasons.def: New file.
617 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
618 instead of a distinct value.
619
f77b9a5d
PM
6202011-10-27 Phil Muldoon <pmuldoon@redhat.com>
621
622 PR python/13331
623
624 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
625 (convert_values_to_python): Return on Python tuple allocation
626 failure. Return NULL on value conversion error.
627
76dce0be
PM
6282011-10-27 Phil Muldoon <pmuldoon@redhat.com>
629
630 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
631 (bppy_set_task): Ditto.
632 (bppy_delete_breakpoint): Ditto.
633 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
634 (gdbpy_lookup_global_symbol): Ditto.
635 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
636 * python/py-frame.c (frapy_is_valid): Ditto.
637 (frame_info_to_frame_object): Ditto.
638 * python/py-type.c (typy_lookup_type): Ditto.
639 (typy_getitem): Ditto.
640 (typy_has_key): Ditto.
641 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
642
f17b6955
JB
6432011-10-26 Joel Brobecker <brobecker@adacore.com>
644
645 * gdbarch.h: Regenerate.
646
86ba1042
JB
6472011-10-26 Meador Inge <meadori@codesourcery.com>
648
649 * gdbarch.sh (function_list): Use 'pstring' when printing
650 'gcore_bfd_target'.
651 * gdbarch.c: Regenerate.
652
c34fd852
UW
6532011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
654
655 * regcache.c (registers_changed_ptid): Invalidate thread architecture
656 and frame caches if PTID refers to all threads of a process.
657
931bb47f
UW
6582011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
659
660 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
661 to create_breakpoint.
662
88aed45e
UW
6632011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
664
665 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
666 (ppc_sysv_abi_push_dummy_call): Use it.
667 (do_ppc_sysv_return_value): Likewise.
668 (ppc64_sysv_abi_push_dummy_call): Likewise.
669 (ppc64_sysv_abi_return_value): Likewise.
670
3eaf3fa2
PK
6712011-10-26 Paul Koning <paul_koning@dell.com>
672
673 * python/lib/gdb/types.py (deepitems): New function.
674
913460fc
PK
6752011-10-25 Paul Koning <paul_koning@dell.com>
676
677 PR python/13327
678
679 * python/py-value.c (value_to_value_object): Remove fetching of
680 the value if it was lazy.
681 (valpy_get_is_lazy): New function.
682 (valpy_fetch_lazy): New function.
683
2b5b9d09
JB
6842011-10-24 Joel Brobecker <brobecker@adacore.com>
685
686 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
687 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
688
e21ffe51
PA
6892011-10-24 Pedro Alves <pedro@codesourcery.com>
690
691 * linux-nat.c (linux_handle_extended_wait): When handling a clone
692 event, in non-stop, if not stopping, make sure the new lwp has
693 last_resume_kind set to resume_continue. Assert that when we're
694 resuming the new lwp, its last_resume_kind is resume_continue.
695
7aee8dc2
PA
6962011-10-24 Pedro Alves <pedro@codesourcery.com>
697
698 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
699 already set when marking the event thread as not executing in
700 non-stop mode.
701
4b4e080e
PA
7022011-10-24 Pedro Alves <pedro@codesourcery.com>
703
704 * infrun.c (handle_inferior_event): Add debug output for
705 TARGET_WAITKIND_NO_HISTORY.
706
baacfb07
PM
7072011-10-24 Phil Muldoon <pmuldoon@redhat.com>
708
709 * NEWS: Move set/show extended-prompt to "New Options". Expand
710 description. Fix typos.
711
8432bc41
PM
7122011-10-24 Phil Muldoon <pmuldoon@redhat.com>
713
714 PR python/13310
715
716 * python/py-param.c (call_doc_function): Correctly deference on
717 function exit.
718
6cda5a20
JB
7192011-10-21 Joel Brobecker <brobecker@adacore.com>
720
721 * ada-tasks.c (print_ada_task_info): Fix computation of
722 number of tasks displayed in command output.
723
13294f7d
JK
7242011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
725 Ulrich Weigand <uweigand@de.ibm.com>
726
727 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
728 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
729 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
730 gdbarch_pc_regnum and frame_unwind_register_unsigned by
731 gdbarch_unwind_pc.
732
460c1c54
CC
7332011-10-20 Cary Coutant <ccoutant@google.com>
734
735 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
736 section to...
737 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
738 flag. Adjust all callers.
739 (process_psymtab_comp_unit): Remove adjustment for type section.
740
a10964d1
AR
7412011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
742
743 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
744 arguments by adding OBJFILE. Instead of getting objfile from
745 symbol's symtab, use new argument OBJFILE.
746 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
747 arguments by adding OBJFILE.
748 * gdb/dwarf2read.c (new_symbol_full): Change call to
749 cp_scan_for_anonymous_namespaces to match new signature.
750 * gdb/stabsread.c (define_symbol): Change call to
751 cp_scan_for_anonymous_namespaces to match new signature.
752
27ca1a5b
PM
7532011-10-20 Phil Muldoon <pmuldoon@redhat.com>
754
755 PR python/13308
756 PR python/13309
757
758 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
759 leak.
760 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
761 leak. Delete unused variables.
762
9df2fbc4
PM
7632011-10-20 Phil Muldoon <pmuldoon@redhat.com>
764
765 PR python/12656
766
767 * python/py-frame.c (frapy_read_var): Use const struct *block.
768 * python/py-type.c (typy_lookup_typename): Likewise.
769 (typy_lookup_type): Likewise.
770 (typy_legacy_template_argument): Likewise.
771 (typy_template_argument): Likewise.
772 (gdbpy_lookup_type): Likewise.
773 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
774 * python/py-block.c (blpy_block_object): Likewise.
775 (blpy_iter): Likewise.
776 (blpy_get_start): Likewise.
777 (blpy_get_end): Likewise.
778 (blpy_get_function): Likewise.
779 (blpy_get_superblock): Likewise.
780 (set_block): Likewise.
781 (block_to_block_object): Likewise.
782 (block_object_to_block): Likewise.
783 (blpy_is_valid): Likewise.
784 (blpy_get_global_block): New function.
785 (blpy_get_static_block): New function.
786 (blpy_is_global): New function.
787 (blpy_is_static): New function.
788 * blockframe.c (block_innermost_frame): Likewise.
789 * valops.c (value_of_variable): Likewise.
790 * frame.h: Update prototypes.
791 * python/python-internal.h: Likewise.
792 * value.h: Likewise.
793
4743b735
CC
7942011-10-19 Cary Coutant <ccoutant@google.com>
795
796 * dwarf2read.c (create_debug_types_hash_table): Fix size of
797 type_offset field.
798
6caca83c
CC
7992011-10-19 Cary Coutant <ccoutant@google.com>
800
801 * dwarf2read.c (peek_abbrev_code): New function.
802 (dw2_get_file_names): Check for dummy compilation units.
803 (create_debug_types_hash_table): Likewise.
804 (process_psymtab_comp_unit): Likewise.
805 (load_partial_comp_unit): Likewise.
806 (load_full_comp_unit): Likewise.
807
43136979
AR
8082011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
809
810 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
811 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
812 pt_phdr if PT_PHDR was found.
813
0a07729b
TT
8142011-10-17 Joost van der Sluis <joost@cnoc.nl>
815
816 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
817 type or "<unnamed type"> when there is no name assigned.
818 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
819 avoid a sigint when no name is assigned.
820
21ae7a4d
JK
8212011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
822
823 Revert:
824 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
825 * dwarf2expr.c (ctx_no_read_reg): New function.
826 * dwarf2expr.h (ctx_no_read_reg): New declaration.
827 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
828 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
829 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
830
32d1c362
DE
8312011-10-16 Doug Evans <dje@google.com>
832
833 * NEWS: Document python gdb.printing.register_pretty_printer's new
834 `replace' parameter.
835
da096638
KS
8362011-10-14 Keith Seitz <keiths@redhat.com>
837
838 PR c++/13225
839 * eval.c (evaluate_subexp_standard): Do not construct
840 an array of types; pass the value array directly to
841 find_overload_match.
842 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
843 (rank_function): Take an array of values instead of types.
844 (rank_one_type): Add struct value * parameter.
845 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
846 (rank_function): For each argument, pass the argument's
847 value to rank_one_type.
848 (rank_one_type): Add VALUE parameter.
849 If the parameter type is a pointer and the argument type
850 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
851 VALUE is zero.
852 Update all calls to rank_one_type, passing NULL for new
853 VALUE parameter.
854 * valarith.c (value_user_defined_cpp_op): Do not construct
855 an array of types; pass the value array directly to
856 find_overload_match.
857 * valops.c (find_overload_method_list): Take an array of
858 values instead of types.
859 Save the type of OBJP for later use.
860 Update calls to find_oload_champ, and find_oload_champ_namespace.
861 (find_oload_champ_namespace): Take an array of values instead
862 of types.
863 (find_oload_champ_namespace_loop): Likewise.
864 (find_oload_champ): Likewise.
865 (classify_oload_match): Inspect all arguments
866 until INCOMPATIBLE is found. Return the worst badness found
867 otherwise.
868 (compare_parameters): Update call to rank_one_type.
869 * value.h (find_overload_match): Take an array of values instead
870 of types.
871
3957565a
JK
8722011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
873
874 Drop lazy lm_info reading.
875 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
876 l_addr_inferior, l_ld, l_next, l_prev and l_name.
877 (lm_info_read): New function.
878 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
879 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
880 lm_dynamic_from_link_map.
881 (lm_next, lm_prev, lm_name): Remove.
882 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
883 initialization incl. read_memory. No longer use lm_name.
884 (svr4_free_so): Drop lm_info->lm freeing.
885 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
886 explicit lm_addr and lm initialization.
887 (svr4_read_so_list): Use lm_info_read, drop the initailization of
888 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
889 lm_name.
890
cb08cc53
JK
8912011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
892 Paul Pluzhnikov <ppluzhnikov@google.com>
893
894 * defs.h (struct so_list): New forward declaration.
895 (make_cleanup_free_so): New declaration.
896 * solib-svr4.c (ignore_first_link_map_entry): Remove.
897 (svr4_free_so): Move the function here from downwards. Handle NULL
898 so->lm_info.
899 (svr4_free_library_list): New.
900 (svr4_read_so_list): New, moved here code from svr4_current_sos.
901 Use more cleanups. Use new parameter ignore_first instead of
902 ignore_first_link_map_entry.
903 (svr4_current_sos): New variable ignore_first, initialize it. New
904 variable back_to, use it for svr4_free_library_list protection.
905 (svr4_free_so): Remove - move upwards.
906 * utils.c: Include solist.h.
907 (do_free_so, make_cleanup_free_so): New functions.
908
22c05d8a
JK
9092011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 Fix internal error regression.
912 * value.c (value_primitive_field): Handle value_optimized_out. Move
913 packed bitfields comment.
914
d930d06e
TT
9152011-10-13 Tom Tromey <tromey@redhat.com>
916
917 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
918 always released.
919
2ff6b080
TT
9202011-10-13 Tom Tromey <tromey@redhat.com>
921
922 * python/py-type.c (typy_has_key): Make 'field' const.
923
d6c5869f
LM
9242011-10-13 Luis Machado <lgustavo@codesourcery.com>
925
926 * remote.c (remote_save_trace_data): Invert comparison.
927
a70633a2
LM
9282011-10-13 Luis Machado <lgustavo@codesourcery.com>
929
930 * tracepoint.c (trace_save_command): Use filename instead of
931 args when printing.
932
e103e986
JK
9332011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
934
935 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
936 if .size is 0.
937
db24da6d
YQ
9382011-10-13 Yao Qi <yao@codesourcery.com>
939
940 PR gdb/12703
941 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
942 whether insn is a 32-bit Thumb-2 instruction.
943 (thumb_in_function_epilogue_p): Likewise.
944 (thumb_get_next_pc_raw): Likewise.
945 (arm_breakpoint_from_pc): Likewise.
946
1d6edc3c
JK
9472011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
948
949 Fix empty DWARF expressions DATA vs. SIZE conditionals.
950 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
951 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
952 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
953 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
954 zero DATA.
955 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
956 validity.
957 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
958 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
959 clear DATA on zero SIZE.
960
adabb602
DE
9612011-10-12 Doug Evans <dje@google.com>
962
963 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
964 header->first_die_offset here. All callers updated.
965
5048e516
JK
9662011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
967
968 Fix compatibility with texinfo versions older than 4.12.
969 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
970 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
971 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
972 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
973 * configure: Regenerate.
974 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
975 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
976 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
977
0574c78f
GB
9782011-10-12 Gary Benson <gbenson@redhat.com>
979
980 * breakpoint.h (pc_at_non_inline_function): Declare.
981 * breakpoint.c (is_non_inline_function,
982 pc_at_non_inline_function): New functions.
983 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
984 if the stop is at a location where functions cannot be inlined.
985
12d9289a
PA
9862011-10-12 Pedro Alves <pedro@codesourcery.com>
987
988 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
989 the core wanted them stopped, or if they now have a pending event
990 to report.
ecf8e7f5
PA
991 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
992 down to stop_and_resume_callback.
993 (linux_nat_wait_1): Always clear `options' when retrying. Handle
994 having new pending events after calling linux_nat_filter_event.
12d9289a 995
96408a79
SA
9962011-10-11 Sterling Augustine <saugustine@google.com>
997
998 * dwarf2read.c: Undo inadvertent changes in previous commit.
999
9c6c53f7
SA
10002011-10-11 Sterling Augustine <saugustine@google.com>
1001
1002 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1003 logic.
1004
0e8aefe7
UW
10052011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1006
1007 * symfile.c (separate_debug_file_exists): Fix condition.
1008
349d1385
DM
10092011-10-11 David S. Miller <davem@davemloft.net>
1010
1011 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1012 static.
1013 * regcache.h (regcache_restore): Remove declaration.
1014
205c306f
DM
1015 * gdbarch.sh: New field 'long_long_align_bit'.
1016 * gdbarch.c, gdbarch.h: Regenerate.
1017 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1018 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1019
941b2081
JK
10202011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1021
1022 Revert this part of:
1023 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 Support @entry in input expressions.
1025 * c-exp.y (ENTRY, unknown_cpp_name): New.
1026 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1027 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1028 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1029 (name_not_typename: ENTRY): New.
1030 (yylex): Recognize ENTRY.
1031
1032 Reimplement @entry in input expressions.
1033 * c-exp.y (ENTRY): New.
1034 (variable: name_not_typename ENTRY): New.
1035 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1036
3c4d7e12
PA
10372011-10-11 Pedro Alves <pedro@codesourcery.com>
1038
1039 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1040 parent and child's pids as soon as we detect a clone event.
1041 Adjust another debug message.
1042
ea23808b
PA
10432011-10-11 Pedro Alves <pedro@codesourcery.com>
1044
1045 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1046 not zombie instead of reading the whole file.
1047
904578ed
JK
10482011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1049
1050 Fix separate debuginfo warning with "remote:" access.
1051 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1052 * symfile.c (get_file_crc): New function with the code moved from ...
1053 (separate_debug_file_exists): ... this function, specifically variables
1054 buffer and count. New variable verified_as_different, set it. Remove
1055 file_crc initialization. Verify also if both files are not the same
1056 manually, if needed.
1057
51370a33
YQ
10582011-10-11 Yao Qi <yao@codesourcery.com>
1059
1060 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1061 to get address.
1062
0838fb57
DE
10632011-10-10 Doug Evans <dje@google.com>
1064
1065 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1066 libthread_db when we load libpthread or the main symbol file.
1067 (thread_db_inferior_created): New function.
1068 (_initialize_thread_db): Attach inferior_created observer.
1069 * linux-nat.c (linux_child_post_attach): Remove call to
1070 check_for_thread_db.
1071 (linux_child_post_startup_inferior): Ditto.
1072 * objfiles.h (OBJF_MAINLINE): Define.
1073 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1074 allocate_objfile when appropriate.
1075
623bd5b7
UW
10762011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1077
1078 PR gdb/13218
1079 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1080 Remove unused variables.
1081 (get_linux_version): Remove function.
1082 (_initialize_arm_linux_nat): Do not call it.
1083
79395f92
PA
10842011-10-10 Pedro Alves <pedro@codesourcery.com>
1085
1086 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1087 new clone lwp if the core asked it to stop. Don't pass on
1088 unexpected signals to the new clone; leave them pending instead.
1089
eff3df78
PA
10902011-10-10 Pedro Alves <pedro@codesourcery.com>
1091
1092 * linux-nat.c (resume_lwp): Remove redundant debug output.
1093
4b60df3d
PA
10942011-10-10 Pedro Alves <pedro@codesourcery.com>
1095
1096 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1097 last_resume_kind before clearing it, and use the copy instead to
1098 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1099 resume_clear_callback in the non-stop path too.
1100
6501578c
YQ
11012011-10-09 Yao Qi <yao@codesourcery.com>
1102
1103 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1104 Honor OPTIONS and VAL's type.
1105 (common_val_print, value_print): Update to pass one more parameter.
1106
5a56e9c5
DE
11072011-10-09 Doug Evans <dje@google.com>
1108
1109 Add new "alias" command.
1110 * NEWS: Mention new command.
1111 * command.h (valid_user_defined_cmd_name_p): Declare.
1112 * defs.h (make_cleanup_dyn_string_delete): Declare.
1113 * utils.c: #include "dyn-string.h".
1114 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1115 * cli/cli-cmds.c: #include "dyn-string.h".
1116 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1117 (init_cli_cmds): Add new command.
1118 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1119
509f0fd9
JK
11202011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1121
1122 Fix compatibility with older GCCs.
1123 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1124 * stack.c (read_frame_arg): Initialize val_deref.
1125
2bda9cc5
JK
11262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1127
1128 Entry values NEWS entries, DWARF disassembly support.
1129 * NEWS: New entry values entry.
1130 (set print entry-values, show print entry-values)
1131 (set debug entry-values, show debug entry-values): New entries.
1132 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1133 indent. Remove variable start. Move header printing out. Respect
1134 INDENT. Support DW_OP_GNU_entry_value.
1135 (locexpr_describe_location_1): Move the header printing here, extend
1136 the disassemble_dwarf_expression passed parameters.
1137
a471c594
JK
11382011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1139
1140 Display @entry parameter values even for references.
1141 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1142 coerce_ref_if_computed.
1143 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1144 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1145 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1146 existing push_dwarf_reg_entry_value call. Add new detection calling
1147 dwarf_block_to_dwarf_reg_deref. Update the error message.
1148 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1149 * dwarf2expr.h
1150 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1151 parameter deref_size, describe it in the comment.
1152 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1153 (dwarf_block_to_dwarf_reg_deref): New declaration.
1154 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1155 deref_size, describe it in the function comment. New variables
1156 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1157 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1158 describe it in the function comment. Fetch the alternative block
1159 accoring to DEREF_SIZE.
1160 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1161 (entry_data_value_free_closure, entry_data_value_funcs): New.
1162 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1163 outer_val, target_val, val and addr. Try to fetch and create also
1164 referenced value content.
1165 (pieced_value_funcs): NULL value for coerce_ref.
1166 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1167 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1168 coerce_ref_if_computed.
1169 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1170 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1171 * stack.c (read_frame_arg): Compare also dereferenced values.
1172 * value.c (value_computed_funcs): Make the parameter v const, use
1173 value_lval_const for it.
1174 (value_lval_const, coerce_ref_if_computed): New function.
1175 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1176 * value.h (struct lval_funcs): New field coerce_ref.
1177 (value_computed_funcs): Make the parameter v const.
1178 (value_lval_const, coerce_ref_if_computed): New declarations.
1179
36b11add
JK
11802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1181
1182 Support @entry in input expressions.
1183 * c-exp.y (ENTRY, unknown_cpp_name): New.
1184 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1185 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1186 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1187 (name_not_typename: ENTRY): New.
1188 (yylex): Recognize ENTRY.
1189 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1190 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1191 Likewise.
1192 * parse.c (operator_length_standard): Likewise.
1193 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1194
3343315b
JK
11952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1196
1197 Display referenced values in backtraces.
1198 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1199 * stack.c (print_frame_arg): Likewise.
1200
ac71a68c
JK
12012011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1202
1203 Make some lval_funcs methods to default on NULL.
1204 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1205 NULL.
1206 (value_assign): Check if lval_computed write method is NULL.
1207 * value.h (struct lval_funcs): Comment NULL values for read and write
1208 methods.
1209
e18b2753
JK
12102011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1211
1212 Display @entry parameter values (without references).
1213 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1214 New functions.
1215 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1216 New declarations.
1217 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1218 entry record.
1219 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1220 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1221 functions.
1222 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1223 (loclist_read_variable_at_entry): New function.
1224 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1225 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1226 DW_AT_location, call dwarf_block_to_sp_offset for it.
1227 * frame.h (print_entry_values_no, print_entry_values_only)
1228 (print_entry_values_preferred, print_entry_values_if_needed)
1229 (print_entry_values_both, print_entry_values_compact)
1230 (print_entry_values_default, print_entry_values): New declarations.
1231 (struct frame_arg): New field entry_kind.
1232 (read_frame_arg): New parameter entryargp.
1233 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1234 arg->entry_kind. Optionally print the `@entry' suffix.
1235 (list_args_or_locals): New variable entryarg, initialize it.
1236 Initialize also entry_kind of arg and entryarg. Conditionalize
1237 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1238 xfree for entryarg.error.
1239 * stack.c (print_entry_values_no, print_entry_values_only)
1240 (print_entry_values_preferred, print_entry_values_if_needed)
1241 (print_entry_values_both, print_entry_values_compact)
1242 (print_entry_values_default, print_entry_values_choices)
1243 (print_entry_values): New variables.
1244 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1245 print the `@entry' suffix, possibly in combination for
1246 print_entry_values_compact.
1247 (read_frame_arg): New parameter entryargp, new variables entryval,
1248 entryval_error and val_equal. Read in also entryargp, respect
1249 print_entry_values, compare the values using val_equal, fill in also
1250 argp->entry_kind (together with entryargp->entry_kind).
1251 (print_frame_args): New variable entryarg, initialize it.
1252 Conditionalize print_frame_arg for arg, add print_frame_arg for
1253 entryarg. Call xfree for entryarg.error.
1254 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1255 * symtab.h (struct symbol_computed_ops): New field
1256 read_variable_at_entry.
1257
93d86cef
JK
12582011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1259
1260 Code reshuffle.
1261 * frame.h (struct frame_arg): New definition.
1262 (read_frame_arg): New declaration.
1263 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1264 (list_args_or_locals): ... the code here. New variable arg, call
1265 read_frame_arg and list_arg_or_local with it. Unify the
1266 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1267 arg.error.
1268 * stack.c (print_frame_arg): New functiom from the code of
1269 print_frame_args.
1270 (read_frame_arg): New function.
1271 (print_frame_args): Remove variable val. New variable arg, call
1272 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1273
2d6c5dc2
JK
12742011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1275
1276 Protect entry values against self tail calls.
1277 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1278 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1279
111c6489
JK
12802011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 Recognize virtual tail call frames.
1283 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1284 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1285 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1286 * dwarf2-frame-tailcall.c: New file.
1287 * dwarf2-frame-tailcall.h: New file.
1288 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1289 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1290 REGS.PREV only after CIE execution.
1291 (struct dwarf2_frame_cache): New field tailcall_cache.
1292 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1293 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1294 parts, try to find entry_cfa_sp_offset. Call
1295 dwarf2_tailcall_sniffer_first.
1296 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1297 when appropriate.
1298 (dwarf2_frame_dealloc_cache): New function.
1299 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1300 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1301 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1302 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1303 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1304 * dwarf2loc.c (func_addr_to_tail_call_list)
1305 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1306 (call_site_find_chain_1, call_site_find_chain): New.
1307 * dwarf2loc.h (struct call_site_chain): New.
1308 (call_site_find_chain): New declaration.
1309 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1310 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1311 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1312 * stack.c (frame_info): Support also TAILCALL_FRAME.
1313
bb984ff1
JK
13142011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1315
1316 Tail call sites reader implementation.
1317 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1318 fill in TYPE_TAIL_CALL_LIST.
1319 * gdbtypes.h (struct func_type): New field tail_call_list.
1320 (struct call_site): New field tail_call_next.
1321 (TYPE_TAIL_CALL_LIST): New definition.
1322
8e3b41a9
JK
13232011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1324
1325 Implement basic support for DW_TAG_GNU_call_site.
1326 * block.c: Include gdbtypes.h and exceptions.h.
1327 (call_site_for_pc): New function.
1328 * block.h (call_site_for_pc): New declaration.
1329 * defs.h: Include hashtab.h.
1330 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1331 declarations.
1332 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1333 ctx_no_push_dwarf_reg_entry_value.
1334 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1335 (dwarf_block_to_dwarf_reg): New function.
1336 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1337 (ctx_no_push_dwarf_reg_entry_value): New function.
1338 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1339 push_dwarf_reg_entry_value.
1340 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1341 declarations.
1342 * dwarf2loc.c: Include gdbcmd.h.
1343 (dwarf_expr_ctx_funcs): New forward declaration.
1344 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1345 (dwarf_expr_reg_to_entry_parameter)
1346 (dwarf_expr_push_dwarf_reg_entry_value): New.
1347 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1348 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1349 (needs_dwarf_reg_entry_value): New function.
1350 (needs_frame_ctx_funcs): Install it.
1351 (_initialize_dwarf2loc): New function.
1352 * dwarf2loc.h (entry_values_debug): New declaration.
1353 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1354 (read_call_site_scope): New forward declaration.
1355 (process_full_comp_unit): Copy call_site_htab.
1356 (process_die): Support DW_TAG_GNU_call_site.
1357 (read_call_site_scope): New function.
1358 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1359 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1360 (cleanup_htab): Delete.
1361 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1362 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1363 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1364 FIELD_LOC_KIND_DWARF_BLOCK.
1365 * gdbtypes.h (enum field_loc_kind): New entry
1366 FIELD_LOC_KIND_DWARF_BLOCK.
1367 (struct main_type): New loc entry dwarf_block.
1368 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1369 (TYPE_FIELD_DWARF_BLOCK): New.
1370 * python/py-type.c: Include dwarf2loc.h.
1371 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1372 internal_error call on unknown FIELD_LOC_KIND.
1373 * symtab.h (struct symtab): New field call_site_htab.
1374 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1375 (core_addr_hash, core_addr_eq): New functions.
1376
b6cdc2c1
JK
13772011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1378
1379 Code reshuffle.
1380 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1381 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1382 calling_convention under func_stuff there.
1383 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1384 (init_type) <TYPE_CODE_FUNC>: Likewise.
1385 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1386 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1387 * gdbtypes.h (enum type_specific_kind): Change
1388 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1389 (struct main_type) <type_specific>: Change calling_convention to
1390 func_stuff. Move calling_convention to ...
1391 (struct func_type): ... this new struct.
1392 (INIT_FUNC_SPECIFIC): New #define.
1393 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1394
181cebd4
JK
13952011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1396
1397 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1398 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1399 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1400 ctx->ref_addr_size. Handle its invalid value.
1401 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1402 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1403 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1404 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1405 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1406 (dwarf2_per_cu_ref_addr_size): New function.
1407
c471e790
JK
14082011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1409
1410 Code cleanup.
1411 * dwarf2read.c (per_cu_header_read_in): New function.
1412 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1413 variables cu_header_local and cu_headerp.
1414
741f5e3c
JK
14152011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1416
1417 Fix initial language detection with -readnow.
1418 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1419 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1420 searches only for global symbols.
1421
a73d2258
JK
14222011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1423
1424 Fix printed anonymous struct name.
1425 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1426 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1427 (anonymous_struct_prefix): New function.
1428 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1429 (dwarf2_name): Strip for anonymous structs any prefixes.
1430
749fd4ea
DE
14312011-10-07 Doug Evans <dje@google.com>
1432
1fa57852
DE
1433 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1434 `replace'.
1435
690a4937
DE
1436 * python/lib/gdb/printing.py: Whitespace cleanup.
1437
749fd4ea
DE
1438 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1439 warning.
1440
4c38200f
PA
14412011-10-07 Pedro Alves <pedro@codesourcery.com>
1442
1443 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1444 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1445 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1446 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1447 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1448 (arm_linux_remove_watchpoint): Adjust.
1449 * i386-linux-nat.c (i386_linux_dr_set_control)
1450 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1451 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1452 (ia64_linux_remove_watchpoint): Adjust.
1453 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1454 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1455 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1456 (ppc_linux_insert_mask_watchpoint)
1457 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1458 (ppc_linux_remove_watchpoint): Adjust.
1459 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1460 Adjust.
1461
b7ff339d
CV
14622011-10-07 Corinna Vinschen <vinschen@redhat.com>
1463
1464 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1465 (clear_win32_environment): New function for Cygwin to clear out
1466 Win32 environment.
1467 (windows_create_inferior): Prepare new environment from in_env
1468 for Cygwin, too.
1469
f287c1f3
PM
14702011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1471
5631e596 1472 PR python/13264
f287c1f3
PM
1473 * python/py-value.c (valpy_call): Check that arguments are
1474 a tuple.
1475 (is_intlike): Remove call to CHECK_TYPEDEF.
1476 (valpy_nonzero): Catch GDB exceptions.
1477 (valpy_absolute): Ditto.
1478 (valpy_lazy_string): Ditto.
1479 (valpy_call): Ditto.
1480 (valpy_get_is_optimized_out): Ditto.
1481 (valpy_long): Ditto.
1482 (valpy_float): Ditto.
1483 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1484 (valpy_richcompare): Ditto.
1485
03583c20
UW
14862011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1487
1488 * inferior.h (disable_randomization): Declare.
1489 * infrun.c (disable_randomization): New global variable.
1490 (show_disable_randomization): New function.
1491 (set_disable_randomization): Likewise.
1492 (_initialize_infrun): Install set/show disable-randomization
1493 commands.
1494 * linux-nat.c (disable_randomization): Remove.
1495 (show_disable_randomization): Likewise.
1496 (set_disable_randomization): Likewise.
1497 (_initialize_linux_nat): No longer install set/show
1498 disable-randomization commands here.
1499 (linux_nat_supports_disable_randomization): New function.
1500 (linux_nat_add_target): Install it.
1501 * remote.c (PACKET_QDisableRandomization): New enum value.
1502 (remote_protocol_packets): Support QDisableRandomization.
1503 (_initialize_remote): Likewise.
1504 (remote_supports_disable_randomization): New function.
1505 (init_remote_ops): Install it.
1506 (extended_remote_supports_disable_randomization): New function.
1507 (init_extended_remote_ops): Install it.
1508 (extended_remote_disable_randomization): New function.
1509 (extended_remote_create_inferior_1): Call it.
1510 * target.h (struct target_ops): Add to_supports_disable_randomization.
1511 (target_supports_disable_randomization): Add prototype.
1512 * target.c (target_supports_disable_randomization): New function.
1513 (find_default_supports_disable_randomization): Likewise.
1514 (init_dummy_target): Install it.
1515
20c168b5
KP
15162011-10-07 Kevin Pouget <kevin.pouget@st.com>
1517
1518 Allow Python notification of new object-file loadings.
1519 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1520 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1521 Add build rule for this file.
1522 * python/py-event.h (emit_new_objfile_event): New prototype.
1523 (newobjfile): New Python event emitter.
1524 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1525 Python event registry.
1526 * python/py-inferior.c: Include objfiles.h
1527 (python_new_objfile): New function.
1528 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1529 observers.
1530 * python/py-newobjfileevent.c: New file.
1531 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1532 prototype.
1533 * python/python.c (_initialize_python): Add
1534 gdbpy_initialize_new_objfile_event call.
1535 * NEWS: Add item for new Python event "gdb.newobjfile"
1536
b1c8db38
TG
15372011-10-05 Tristan Gingold <gingold@adacore.com>
1538
1539 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1540 Extract the ravenscar task name from the symbol for the atcb.
1541
0dab82e9
PK
15422011-10-04 Paul Koning <paul_koning@dell.com>
1543
1544 * python/py-type.c (typy_make_iter): Add forward declaration.
1545 (typy_fields_items): Use the gdb.Type iterator.
1546
84ad80e6
PK
15472011-10-04 Paul Koning <paul_koning@dell.com>
1548
1549 * NEWS: Add entry for Python gdb.Type mapping methods.
1550
cb6be26b
KP
15512011-10-04 Kevin Pouget <kevin.pouget@st.com>
1552
1553 PR python/12691: Add the inferior to Python exited event
1554 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1555 to exited_event.
1556 * python/py-event.h (emit_exited_event): Likewise
1557 * python/-inferior.c (python_inferior_exit): Likewise
1558
6005b210
JB
15592011-10-03 Joel Brobecker <brobecker@adacore.com>
1560
1561 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1562 in output of -ada-task-info GDB/MI command.
1563
75082e8c
JB
15642011-10-03 Joel Brobecker <brobecker@adacore.com>
1565
1566 * ada-lang.h (struct inferior): Declare.
1567 (print_ada_task_info): Add declaration.
1568 * ada-tasks.c (print_ada_task_info): Make non-static.
1569 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1570 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1571 * mi/mi-main.c: #include "ada-lang.h".
1572 (mi_cmd_list_features): Add "ada-task-info" to the list
1573 of supported features.
1574 (mi_cmd_ada_task_info): New function.
1575
7ed7d719
JB
15762011-10-03 Joel Brobecker <brobecker@adacore.com>
1577
1578 * python/python.c (python_run_simple_file): New function.
1579 (source_python_script, source_python_script_for_objfile):
1580 Replace call to PyRun_SimpleFile by call to
1581 python_run_simple_file.
1582
3fcaed38
PK
15832011-10-03 Paul Koning <paul_koning@dell.com>
1584
1585 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1586 (value_to_value_object): Fetch value if it was lazy.
1587
8e5c319d
JK
15882011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1589
1590 Code cleanup.
1591 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1592 Rearrange the code for it.
1593
dd11a36c
JB
15942011-10-02 Joel Brobecker <brobecker@adacore.com>
1595
1596 * breakpoint.c (bkpt_print_recreate): Add call to
1597 print_recreate_thread.
1598
723b724b
MF
15992011-09-29 Mike Frysinger <vapier@gentoo.org>
1600
1601 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1602 PTRACE_GETFDPIC_INTERP): Define.
1603
412946b6
YQ
16042011-09-28 Yao Qi <yao@codesourcery.com>
1605
1606 * symfile.c (add_symbol_file_command): Update message on usage.
1607
a73bb892
PK
16082011-09-28 Paul Koning <paul_koning@dell.com>
1609
1610 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1611 (typy_length, typy_get, typy_has_key, typy_make_iter)
1612 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1613 (typy_iterator_iter, typy_iterator_iternext)
1614 (typy_iterator_dealloc): New functions to implement standard
1615 Python mapping methods on gdb.Type object.
1616 (gdb.TypeIterator): New Python type.
1617 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 1618
fe10a582
DM
16192011-09-28 David S. Miller <davem@davemloft.net>
1620
1621 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1622 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1623 * sparc-tdep.c (sparc_complex_floating_p): New function.
1624 (sparc32_store_arguments): Handle complex floats.
1625 (sparc32_extract_return_value): Likewise.
1626 (sparc32_store_return_value): Likewise.
1627 (sparc32_stabs_argument_has_addr): Likewise.
1628 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1629 (sparc64_store_floating_fields): Handle complex floats.
1630 (sparc64_store_arguments): Likewise.
1631 (sparc64_store_return_value): Likewise.
1632
c93dbcba
EZ
16332011-09-28 Eli Zaretskii <eliz@gnu.org>
1634
1635 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1636 before the change on 2006-12-09.
1637 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1638 generates the environment block for CreateProcessA, modulo the
1639 Cygwin-specific parts that are not needed here.
1640
f00c55f8
TG
16412011-09-27 Tristan Gingold <gingold@adacore.com>
1642
1643 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1644 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1645 (darwin_solib_get_all_image_info_addr_at_init): New function.
1646 (darwin_solib_read_all_image_info_addr): Likewise.
1647 (darwin_solib_create_inferior_hook): Use the above two functions.
1648 * darwin-nat.c (darwin_execvp): Renames retval to res.
1649 (darwin_read_write_inferior): Update comment.
1650 (darwin_read_dyld_info): New function.
1651 (darwin_xfer_partial): Handle DYLD_INFO.
1652
6710bf39
SS
16532011-09-27 Stan Shebs <stan@codesourcery.com>
1654
1655 Add return address collection for tracepoints.
1656 * tracepoint.c (encode_actions_1): Add case for $_ret.
1657 (validate_actionline): Check for $_ret.
1658 (trace_dump_actions): Ditto.
1659 * ax-gdb.h (gen_trace_for_return_address): Declare.
1660 * ax-gdb.c: Include arch-utils.h.
1661 (gen_trace_for_return_address): New function.
1662 (agent_command): Add return address special case.
1663 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1664 (amd64_gen_return_address): New function.
1665 (amd64_init_abi): Call it.
1666 * i386-tdep.c: Include ax.h and ax-gdb.h.
1667 (i386_gen_return_address): New function.
1668 (i386_init_abi): Call it.
1669 * arch-utils.h (default_gen_return_address): Declare.
1670 * arch-utils.c (default_gen_return_address): New function.
1671 * gdbarch.sh (gen_return_address): New method.
1672 * gdbarch.h, gdbarch.c: Regenerate.
1673
e04e5beb
JM
16742011-09-23 Joseph Myers <joseph@codesourcery.com>
1675
1676 PR gdb/13079
1677 * i386-tdep.c (i386_frame_align): New.
1678 (i386_gdbarch_init): Use i386_frame_align.
1679
f3d6df6d
YQ
16802011-09-23 Yao Qi <yao@codesourcery.com>
1681
1682 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1683 to get address.
1684
e69860f1
TG
16852011-09-22 Tristan Gingold <gingold@adacore.com>
1686
1687 * fork-child.c (fork_inferior): Add exec_fun parameter.
1688 Call exec_fun or execvp.
1689 * inferior.h: Adjust prototype.
1690 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1691 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1692 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1693 * procfs.c (procfs_create_inferior): Ditto.
1694 * darwin-nat.c (darwin_execvp): New function.
1695 (darwin_create_inferior): Use it.
1696
4b51d87b
YQ
16972011-09-22 Yao Qi <yao@codesourcery.com>
1698
1699 * infrun.c (context_switch): Print debug message when switching to
1700 a different thread.
1701
56b9d9ac
UW
17022011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1703
1704 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1705 complex and vector types.
1706 (s390_return_value_convention): Likewise.
1707
1708 (s390_value_from_register): Call check_typedef.
1709 (extend_simple_arg): Likewise.
1710 (alignment_of): Likewise.
1711 (s390_push_dummy_call): Likewise.
1712 (s390_return_value): Likewise.
1713
b2cd6b29
JM
17142011-09-21 Joseph Myers <joseph@codesourcery.com>
1715
1716 * event-top.c (async_disconnect): If an exception is thrown from
1717 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1718 catch_errors.
1719 * top.c (quit_cover): Return void and take no arguments.
1720 * top.h (quit_cover): Update prototype.
1721
67ba4e42
JM
17222011-09-20 Joseph Myers <joseph@codesourcery.com>
1723
1724 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1725 current_uiout, not uiout.
1726
562f943b
DE
17272011-09-19 Doug Evans <dje@google.com>
1728
1729 * python/py-auto-load.c (source_section_scripts): Fix file
1730 descriptor leak.
1731 * python/python.c (source_python_script_for_objfile): Tweak comments.
1732
34518530
YQ
17332011-09-18 Yao Qi <yao@codesourcery.com>
1734 Ulrich Weigand <ulrich.weigand@linaro.org>
1735
1736 Support displaced stepping for Thumb 16-bit insns.
1737 * arm-tdep.c (THUMB_NOP) Define.
1738 (thumb_copy_unmodified_16bit): New.
1739 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1740 (thumb_copy_alu_reg): New.
1741 (arm_copy_svc): Move some common code to ...
1742 (install_svc): ... here. New.
1743 (thumb_copy_svc): New.
1744 (install_pc_relative): New.
1745 (thumb_copy_pc_relative_16bit): New.
1746 (thumb_decode_pc_relative_16bit): New.
1747 (thumb_copy_16bit_ldr_literal): New.
1748 (thumb_copy_cbnz_cbz): New.
1749 (cleanup_pop_pc_16bit_all): New.
1750 (thumb_copy_pop_pc_16bit): New.
1751 (thumb_process_displaced_16bit_insn): New.
1752 (thumb_process_displaced_32bit_insn): New.
1753 (thumb_process_displaced_insn): process thumb instruction.
1754
1755 Support displaced stepping for Thumb 32-bit insns.
1756 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1757 (thumb2_copy_preload): New.
1758 (thumb2_copy_copro_load_store): New.
1759 (thumb2_copy_b_bl_blx): New.
1760 (thumb2_copy_alu_imm): New.
1761 (thumb2_copy_load_reg_imm): New.
1762 (thumb2_copy_load_literal): New
1763 (thumb2_copy_block_xfer): New.
1764 (thumb_32bit_copy_undef): New.
1765 (thumb_32bit_copy_unpred): New.
1766 (thumb2_decode_ext_reg_ld_st): New.
1767 (thumb2_decode_svc_copro): New.
1768 (decode_thumb_32bit_store_single_data_item): New.
1769 (thumb_copy_pc_relative_32bit): New.
1770 (thumb_decode_pc_relative_32bit): New.
1771 (decode_thumb_32bit_ld_mem_hints): New.
1772 (thumb2_copy_table_branch): New
1773 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1774 instructions.
1775
2b16b2e3
YQ
17762011-09-18 Yao Qi <yao@codesourcery.com>
1777
1778 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1779 (install_b_bl_blx): Likewise.
1780
0f6f04ba
YQ
17812011-09-17 Yao Qi <yao@codesourcery.com>
1782
1783 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1784 (install_load_store): ... this. New.
1785 Change parameter BYTE to SIZE.
1786 (arm_copy_ldr_str_ldrb_strb): Update caller.
1787 (arm_decode_ld_st_word_ubyte): Update caller.
1788
e2d96639
YQ
17892011-09-17 Yao Qi <yao@codesourcery.com>
1790
1791 * infrun.c (displaced_step_fixup): Move some code ...
1792 (displaced_step_restore): ... here. New function.
1793 (handle_inferior_event): Cleanup displaced stepping state for both
1794 child and parent when get forked or vforked event.
1795 * regcache.c (get_thread_arch_aspace_regcache): New function.
1796 get_thread_arch_regcache (): Call it.
1797
a8123151
JB
17982011-09-16 Joel Brobecker <brobecker@adacore.com>
1799
1800 * ada-tasks.c (print_ada_task_info): New function, merging
1801 short_task_info and info_tasks together. Reimplement using
1802 ui-out instead of printing to stdout directly. Move the code
1803 building and checking the task list here, instead of leaving it
1804 in info_tasks_command.
1805 (info_task): Move the code building and checking the task
1806 list here, instead of leaving it in info_tasks_command.
1807 (info_tasks_command): Delete code building and checking
1808 the task list - moved elsewhere. Update calls to info_tasks
1809 and info_task.
1810
fbf06824
JB
18112011-09-16 Joel Brobecker <brobecker@adacore.com>
1812
1813 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1814
34a0bc90
JB
18152011-09-16 Joel Brobecker <brobecker@adacore.com>
1816
1817 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1818
79779fa9
JB
18192011-09-16 Joel Brobecker <brobecker@adacore.com>
1820
1821 * ada-lang.h (ada_build_task_list): Remove parameter
1822 `warn_if_null'.
1823 * ada-tasks.c (ada_build_task_list): Remove parameter
1824 `warn_if_null'. Adjust implementation and documentation.
1825 (valid_task_id, ada_get_environment_task)
1826 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1827 (info_tasks_command): Adjust implementation.
1828 (task_command): Likewise.
1829 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1830 to ada_build_task_list.
1831
e225eb91
JB
18322011-09-16 Joel Brobecker <brobecker@adacore.com>
1833
1834 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1835 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1836 (ada_tasks_inferior_data_handle): New static global.
1837 (get_ada_tasks_inferior_data): New function.
1838 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1839 (ada_get_environment_task, iterate_over_live_ada_tasks)
1840 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1841 Adjust.
1842 (ada_set_current_inferior_known_tasks_addr): New function.
1843 (read_known_tasks, ada_build_task_list, short_task_info)
1844 (info_tasks, info_task, info_tasks_command, task_command_1)
1845 (task_command, ada_task_list_changed): Adjust.
1846 (ada_tasks_invalidate_inferior_data): New function.
1847 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1848 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1849 * ada-lang.h (struct inferior): Add declaration.
1850 (ada_task_list_changed): Update profile.
1851 * remote-wtx-pd.c: #include "inferior.h".
1852 (switch_to_pd_internal): Update call to ada_task_list_changed.
1853
6da9ca05
JB
18542011-09-16 Joel Brobecker <brobecker@adacore.com>
1855
1856 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1857 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1858 (atcb_fieldno): Delete these static globals.
1859 (struct ada_tasks_pspace_data): New struct.
1860 (ada_tasks_pspace_data_handle): New static global.
1861 (get_ada_tasks_pspace_data): New function.
1862 (ada_tasks_invalidate_pspace_data): New function.
1863 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1864 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1865 (_initialize_tasks): Create this module's per-progspace
1866 data handle.
1867
dccd3cbd
JB
18682011-09-16 Joel Brobecker <brobecker@adacore.com>
1869
1870 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1871
f877b031
TG
18722011-09-16 Tristan Gingold <gingold@adacore.com>
1873
1874 * fork-child.c (fork_inferior): Update comment. Use alloca
1875 instead of xmalloc for argv. Move len and shell_command
1876 declarations in the block where they are used.
1877 Only call execvp. Factorize failure code.
1878
ae0c443d
JK
18792011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1880
1881 Code cleanup.
1882 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1883 `exp_element' instead of an element of the same and make the function
1884 static.
1885 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1886 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1887 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1888 Change argument of `write_exp_elt' function call.
1889 Remove extra spaces from comments.
1890 * parser-defs.h (write_exp_elt): Remove prototype.
1891
5af65ec0
PK
18922011-09-15 Paul Koning <paul_koning@dell.com>
1893
1894 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1895 count of item appended to list.
1896 * python/py-type.c (typy_fields): Likewise.
1897
72be8ccc
PK
18982011-09-15 Paul Koning <paul_koning@dell.com>
1899
883640a8 1900 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 1901
92f6badc
KP
19022011-09-15 Kevin Pouget <kevin.pouget@st.com>
1903
1904 PR threads/12628
1905 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1906 processes with multiple threads.
1907 (inf_has_multiple_thread_cb): New function.
1908 (inf_has_multiple_threads): New function.
1909
0672bf41 19102011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
1911
1912 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1913 * python/py-inferior.c (GdbMethods): New Python method definition.
1914
6839b47f
KP
19152011-09-15 Kevin Pouget <kevin.pouget@st.com>
1916
1917 Handle multiple breakpoint hits in Python interface:
1918 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1919 variable to breakpoints.
1920 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1921 bps instead of single breakpoint. Fix some space typos.
1922 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1923 variable to breakpoints.
1924
672f9b60
KP
19252011-09-15 Kevin Pouget <kevin.pouget@st.com>
1926
1927 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1928 note if the breakpoint is internal.
1929
43675ae4
KP
19302011-09-15 Kevin Pouget <kevin.pouget@st.com>
1931
0672bf41 1932 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 1933
15148d6a
PA
19342011-09-14 Pedro Alves <pedro@codesourcery.com>
1935
1936 * infrun.c (prepare_for_detach, wait_for_inferior)
1937 (fetch_inferior_event): Don't flush the register cache.
1938 * remote.c (struct stop_reply) <regcache>: Add comment.
1939
d83e736b
JK
19402011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1941
1942 Remove excessive DWARF expressions memory duplication.
1943 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1944 for block.data.
1945 (indirect_pieced_value): Remove variable result. Remove variable
1946 back_to and its use for baton.data.
1947 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1948 block.data.
1949 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1950 Update the function comment.
1951
c65b3e0d
PA
19522011-09-13 Pedro Alves <pedro@codesourcery.com>
1953
1954 * inferior.h (ALL_INFERIORS): New.
1955 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1956 for a stopped thread.
1957 (thread_db_find_new_threads): Look for threads in all inferiors.
1958
a1398e0c
PA
19592011-09-13 Pedro Alves <pedro@codesourcery.com>
1960
1961 * breakpoint.c (update_watchpoint): Handle the case of the
1962 watchpoint to update not being in the breakpoint list yet.
1963 (hw_watchpoint_use_count): New, factored out from
1964 hw_watchpoint_used_count.
1965 (hw_watchpoint_used_count): Rename to ...
1966 (hw_watchpoint_used_count_others): ... this. Add `except'
1967 parameter. Don't count resources of `except'. Use
1968 hw_watchpoint_use_count.
1969
30596231
PA
19702011-09-13 Pedro Alves <pedro@codesourcery.com>
1971
1972 * gdbthread.h (enum thread_state): Moved here.
1973 (struct thread_info): Rename `executing_' field to `executing' and
1974 `state_' to `state'.
1975 * thread.c (enum thread_state): Moved to gdbthread.h.
1976 (new_thread, add_thread_silent, delete_thread_1)
1977 (any_live_thread_of_process, thread_alive, set_running)
1978 (set_running, is_thread_state, any_running, is_executing)
1979 (set_executing, finish_thread_state, print_thread_info)
1980 (do_captured_thread_select): Adjust.
1981
bede5f5f
JK
19822011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1983
1984 Fix compatibility with gcc < 4.3 and non-gcc compilers.
1985 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
1986
4801a9a3
PA
19872011-09-12 Pedro Alves <pedro@codesourcery.com>
1988 Matt Rice <ratmice@gmail.com>
1989
1990 PR gdb/13175
1991
1992 * interps.c (struct interp) <interpreter_out>: Delete field.
1993 (interp_new): Remove the data and uiout parameters and adjust.
1994 (interp_set): Only set the current_uiout from the interpreter's
1995 uiout after initializing the interpreter. Adjust call to
1996 init_proc.
1997 (interp_ui_out): Adjust to call procs->ui_out_proc.
1998 (interp_data, interp_name): New.
1999 * interps.h (interp_init_ftype): Add `self' parameter.
2000 (interp_ui_out_ftype): New typedef.
2001 (struct interp_procs) <ui_out_proc>: New method pointer.
2002 (interp_new): Remove the data and uiout parameters.
2003 (interp_data, interp_name): Declare.
2004 * tui/tui-interp.c (tui_init): Adjust prototype.
2005 (tui_ui_out): New.
2006 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2007 tui_out here. Adjust call to interp_new.
2008 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2009 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2010 (cli_ui_out): New.
2011 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2012 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2013 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2014 Initialize mi->uiout depending on the mi_version as extracted from
2015 the interpreter's name.
2016 (mi_ui_out): New.
2017 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2018 interp_new. Don't allocate the ui_out's of the interpreters here.
2019
d0afda03 20202011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 2021
d0afda03 2022 * solib.c (solib_used): New function.
59145f8c
AR
2023 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2024 by another so_list object before freeing it.
2025
bdaf8d4a
JK
20262011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2027
2028 Code cleanup.
2029 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2030 values.
2031
df15bd07
JK
20322011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2033
2034 Code cleanup.
2035 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2036 (amd64_skip_xmm_prologue): ... this new function. Describe its
2037 parameters. No longer use amd64_prologue_line_bug.
2038 * defs.h (producer_is_gcc_ge_4): New declaration.
2039 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2040 (process_full_comp_unit): Update its caller. Remove
2041 amd64_prologue_line_bug initialization.
2042 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2043 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2044
25289eb2
PA
20452011-09-09 Pedro Alves <pedro@codesourcery.com>
2046
2047 * linux-nat.h (enum resume_kind): New.
2048 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
2049 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2050 resume_stop on the new lwp.
25289eb2
PA
2051 (add_lwp): Set last_resume_kind as resume_continue by default.
2052 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2053 (resume_lwp): New, factored out from resume_callback. Also check
2054 for pending status in lp->waitstatus.
2055 (resume_callback): Reimplement.
2056 (resume_clear_callback): Set last_resume_kind as resume_stop.
2057 (resume_set_callback): Set last_resume_kind as resume_continue.
2058 (linux_nat_resume, linux_handle_extended_wait): Set
2059 last_resume_kind.
2060 (running_callback): Also check lp->waitstatus for pending events.
2061 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2062 is resume_step.
2063 (stop_and_resume_callback): Don't re-resume if the core wanted the
2064 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2065 using an invalidated pointer.
2066 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2067 SIGSTOPs if the core wanted the LWP to stop.
2068 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2069 wanted the lwp to stop. If the core wanted the lwp to stop, and
2070 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2071 of TARGET_SIGNAL_STOP.
2072 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2073 here. Instead, signal the lwp, and set the last_resume_kind to
2074 resume_stop.
2075
f687d035
PA
20762011-09-09 Pedro Alves <pedro@codesourcery.com>
2077
2078 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2079 -1 (error), if the lwp exits right after attaching.
2080
bc587a6b
DE
20812011-09-08 Doug Evans <dje@google.com>
2082
63d97a20
DE
2083 * py-cmd.c: Some minor formatting fixes.
2084 (gdbpy_parse_command_name): Rename text arg to name, make const.
2085 All callers updated.
2086 * python-internal.h (gdbpy_parse_command_name): Update.
2087
bc587a6b
DE
2088 * cli/cli-decode.c (add_cmd): Add comment.
2089
08711b9a
JK
20902011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2091
2092 PR breakpoints/12435
2093 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2094 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2095 * dwarf2read.c (process_full_comp_unit): Initialize
2096 amd64_prologue_line_bug.
2097 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2098
b2e7f004
JK
20992011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2100
2101 Fix TUI screen corruption.
2102 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2103 batch_flag.
2104
8afd712c
JK
21052011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 * findvar.c (read_var_value): Never return NULL, throw an error
2108 instead. Update the function comment. State symbol name in the error
2109 messages.
2110 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2111 read_var_value.
2112 * stack.c (print_frame_args): Likewise.
2113 * valops.c (value_of_variable): Likewise.
2114
b99b5f66
JK
21152011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2116
2117 * stack.c (print_frame_args): New variable except. Wrap
2118 read_var_value and common_val_print into TRY_CATCH.
2119
85bc8cb7
JK
21202011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2121
2122 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2123 caller to value_of_this.
2124 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2125 Twice.
2126 * valops.c (value_of_this): Remove parameter complain and variable ret.
2127 Update function comment. Never return NULL by this code.
2128 (value_of_this_silent): New function.
2129 * value.h (value_of_this): Remove parameter complain.
2130 (value_of_this_silent): New declaration.
2131
ede1849f
YQ
21322011-09-07 Yao Qi <yao@codesourcery.com>
2133
2134 * gdbthread.h (struct thread_info): Remove fields
2135 `stepping_through_solib_after_catch' and
2136 `stepping_through_solib_catchpoints'.
2137 * infrun.c (init_thread_stepping_state): Update.
2138 (process_event_stop_test, currently_stepping): Update.
2139 (currently_stepping_or_nexting_callback): Update.
2140
6aa27652
YQ
21412011-09-07 Yao Qi <yao@codesourcery.com>
2142
2143 * gdbthread.h (struct thread_info): Comment on field
2144 `step_after_step_resume_breakpoint'.
2145
00db5b94
PA
21462011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2147
2148 * remote.c (remote_console_output): Reindent.
2149
861152be
LM
21502011-09-06 Luis Machado <lgustavo@codesourcery.com>
2151
2152 * frame.c (has_stack_frames): Check for currently selected
2153 traceframe.
2154
ab821bc6
PA
21552011-09-06 Pedro Alves <pedro@codesourcery.com>
2156
2157 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2158 (set_async_annotation_level, set_async_prompt, pop_prompt)
2159 (push_prompt, new_async_prompt): Delete declarations.
2160 * top.h (get_prompt, set_prompt): Change prototype.
2161 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2162 declarations.
2163 * top.c (command_loop):
2164 (top_prompt): New global.
2165 (get_prefix, set_prefix, get_suffix, ): Delete.
2166 (get_prompt, set_prompt): Rewrite.
2167 (show_new_async_prompt): Rename to ...
2168 (show_prompt): ... this.
2169 (init_main): Adjust. Don't handle --annotate=2 here.
2170 * event-top.c (new_async_prompt): Delete.
2171 (the_prompts): Delete.
2172 (more_to_come): Make static.
2173 (display_gdb_prompt): Use top_level_prompt() to compute the top
2174 level prompt, and don't notify the before_prompt observers
2175 directly here. Always trick readline into not trying to display
2176 the prompt if sync_execution and displaying the primary prompt.
2177 If displaying a local/secondary prompt, always show it, even if
2178 sync_execution is set.
2179 (change_annotation_level): Delete.
2180 (top_level_prompt): New, based on change_annotation_level.
2181 (push_prompt, pop_prompt): Delete.
2182 (async_disable_stdin): No longer pushes prompt.
2183 (command_line_handler): No longer pushes or pops prompt. If more
2184 input is expected, call display_gdb_prompt with an explicit empty
2185 prompt.
2186 (async_stop_sig): Adjust.
2187 (set_async_annotation_level, set_async_prompt): Delete.
2188 * python/python.c (before_prompt_hook): Adjust.
2189
f1d90504
PA
21902011-09-05 Pedro Alves <pedro@codesourcery.com>
2191
2192 PR cli/13110
2193
2194 * infrun.c (fetch_inferior_event): Check if there's a selected
2195 thread before checking if the selected thread is executing.
2196
0f641c01
PA
21972011-09-05 Pedro Alves <pedro@codesourcery.com>
2198
2199 * inf-loop.c (execute_command): Don't check if the current thread
2200 if running before synchronously waiting for command completion.
2201 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2202 here.
2203 (normal_stop): Call async_enable_stdin here.
2204 * inf-loop.c (inferior_event_handler): Don't call
2205 async_enable_stdin, nor handle "set exec-done-display" here.
2206
30368258 22072011-09-04 Joel Brobecker <brobecker@adacore.com>
2208
2209 GDB 7.3.1 released.
2210
31916278
JB
22112011-09-04 Joel Brobecker <brobecker@adacore.com>
2212
2213 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2214
e8d56f18
JB
22152011-09-04 Joel Brobecker <brobecker@adacore.com>
2216
2217 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2218
5dd05d8c
JK
22192011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2220
2221 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2222
7d8e6458 22232011-09-02 Matt Rice <ratmice@gmail.com>
2224
2225 PR gdb/10720
2226 * event-top.c (cli_command_loop): Replace readline setup with
2227 direct call to display_gdb_prompt.
2228 (display_gdb_prompt): Do not call observer mechanism during
2229 synchronous execution.
2230
84636d28
PA
22312011-09-02 Pedro Alves <pedro@codesourcery.com>
2232
2233 * linux-nat.c (in_pid_list_p): New.
2234 (linux_record_stopped_pid): Delete.
2235 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2236 already attached to the LWP. Return an indication if so.
2237 (linux_nat_filter_event): Adjust.
2238 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2239 returning an indication to ignore this thread.
2240
b4a14fd0
PA
22412011-09-02 Pedro Alves <pedro@codesourcery.com>
2242
2243 * top.c: Include interps.h.
2244 (execute_command): If the target can async, but the interpreter is
2245 in sync mode, synchronously wait for the command to finish before
2246 returning.
2247 (execute_command_to_string): Force the interpreter to sync mode.
2248 * infrun.c: Include interps.h.
2249 (fetch_inferior_event): Don't restore the prompt yet if the
2250 interpreter is in sync mode.
2251 * interps.c (interpreter_async): New global.
2252 * interps.h (interpreter_async): Declare.
2253 * inf-loop.c: Include interps.h.
2254 (inferior_event_handler): Don't print the language change or run
2255 breakpoint commands yet if the interpreter in is sync mode.
2256 * main.c (captured_command_loop): Flip the interpreter to async
2257 mode.
2258 * cli/cli-script.c: Include interps.h.
2259 (execute_user_command, while_command, if_command): Force the
2260 interpreter to sync mode.
2261 * python/python.c: Include interps.h.
2262 (python_command, execute_gdb_command): Force the interpreter to
2263 sync mode.
2264
c709acd1
PA
22652011-09-02 Pedro Alves <pedro@codesourcery.com>
2266
2267 * value.c (show_convenience): Catch errors thrown while printing
2268 each internal variable.
2269 * infrun.c (validate_siginfo_access): New function.
2270 (siginfo_value_read, siginfo_value_write): Call it.
2271
9655e943
JK
22722011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2273
2274 Revert:
2275 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2276 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2277 attribute.
2278
cb457ae2
YQ
22792011-08-29 Yao Qi <yao@codesourcery.com>
2280
2281 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2282 (cmp_name): New.
2283 (enable_break2): Update caller.
2284 * solib-frv.c (bfd_lookup_symbol): Removed.
2285 (cmp_name): New.
2286 (enable_break2): Update caller.
2287 * solib-pa64.c (bfd_lookup_symbol): Removed.
2288 (cmp_name): New.
2289 * solib-svr4.c (bfd_lookup_symbol): Removed.
2290 (cmp_name_and_sec_flags): New.
2291 (enable_break): Update caller.
2292 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2293 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2294 (gdb_bfd_lookup_symbol): New.
2295 * solib.h: Functions declarations.
2296
83d1a36a
YQ
22972011-08-29 Yao Qi <yao@codesourcery.com>
2298
2299 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2300 and solib-dsbt.o.
2301
c04b3e8f
JK
23022011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 Fix TUI stepi on code without symbols.
2305 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2306 current PC instead.
2307
cb0fd152
JK
23082011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2309
2310 Code cleanup.
2311 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2312 and the static keyword.
2313 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2314 Make prefix an array.
2315 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2316 * mi/mi-main.c (get_register): Remove stb initialization and the static
2317 keyword.
2318
91174723
JK
23192011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2320
2321 Code cleanup - make mi_opt const.
2322 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2323 opts const.
2324 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2325 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2326 (mi_cmd_env_dir): Likewise.
2327 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2328 (mi_cmd_target_file_put): Likewise.
2329 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2330 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2331 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2332 (mi_valid_noargs): Make opts const.
2333 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2334 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2335 (mi_cmd_data_read_memory): Likewise.
2336 (mi_cmd_data_read_memory_bytes): Likewise.
2337 (mi_cmd_data_write_memory): Likewise.
2338
5068b8e8 23392011-08-26 Matt Rice <ratmice@gmail.com>
2340
2341 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2342 bcache_xmalloc, replace bcache_xmalloc with call to
2343 psymbol_bcache_init for psymbol_cache.
2344 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2345
a4f2ce05
JK
23462011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2347
2348 * inf-loop.c (inferior_event_handler): Add exception_print in
2349 INF_EXEC_COMPLETE.
2350
353d1d73
JK
23512011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2352
2353 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2354 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2355 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2356 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2357 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2358 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2359 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2360 * infrun.c (fetch_inferior_event): Call
2361 make_bpstat_clear_actions_cleanup.
2362 * top.c (execute_command): New variable cleanup_if_error, call
2363 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2364 * utils.c (do_bpstat_clear_actions_cleanup)
2365 (make_bpstat_clear_actions_cleanup): New functions.
2366
3ced3da4
PA
23672011-08-26 Pedro Alves <pedro@codesourcery.com>
2368
2369 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2370 either the parent or the child forks. Rename a couple locals.
2371
a9f4bb21
PA
23722011-08-26 Pedro Alves <pedro@codesourcery.com>
2373
2374 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2375 library call. Avoid reading the `status' local if all waitpid
2376 calls failed.
2377
e5798bef
PA
23782011-08-26 Pedro Alves <pedro@codesourcery.com>
2379
2380 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2381 opening /proc/PID/task always succeeds.
2382
edb2aadf
AR
23832011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2384
2385 * linespec.c (symtab_from_filename): Check for the end of string.
2386
0d932b2f
MK
23872011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2388
2389 PR mi/11912
2390 * varobj.c (cplus_describe_child): Add the keyword
2391 'class' to the output of the method when dealing
2392 with a cast to a base class.
2393
e93ca019
JK
23942011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2395
2396 No functionality change.
2397 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2398 function comment a reference, new variables tp and bs, move here code
2399 from throw_exception.
2400 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2401 describe it in the comment.
2402 * exceptions.c (throw_exception): Remove variable tp, move the code for
2403 bpstat_clear_actions to bpstat_clear_actions.
2404
13da1c97
LM
24052011-08-24 Luis Machado <lgustavo@codesourcery.com>
2406
2407 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2408 * linux-nat.c: Include linux-procfs.h.
2409 (linux_proc_get_tgid): Move to ...
2410 * common/linux-procfs.c: ... here. New file.
2411 * common/linux-procfs.h: New file.
2412 * linux-thread-db.c: Include linux-procfs.h.
2413 * Makefile.in: Update dependencies.
2414 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2415 * config/arm/linux.mh: Likewise.
2416 * config/i386/linux.mh: Likewise.
2417 * config/i386/linux64.mh: Likewise.
2418 * config/ia64/linux.mh: Likewise.
2419 * config/m32r/linux.mh: Likewise.
2420 * config/m68k/linux.mh: Likewise.
2421 * config/mips/linux.mh: Likewise.
2422 * config/pa/linux.mh: Likewise.
2423 * config/pa/linux.mh: Likewise.
2424 * config/powerpc/linux.mh: Likewise.
2425 * config/powerpc/ppc64-linux.mh: Likewise.
2426 * config/powerpc/spu-linux.mh: Likewise.
2427 * config/sparc/linux.mh: Likewise.
2428 * config/sparc/linux64.mh: Likewise.
2429 * config/xtensa/linux.mh: Likewise.
2430
4e5c165d
HZ
24312011-08-24 Hui Zhu <teawater@gmail.com>
2432
2433 * tracepoint.c (cond_string_is_same): New function.
2434 (find_matching_tracepoint): Add condition check
2435 by cond_string_is_same.
2436
6e2f5b22
JK
24372011-08-23 Josh Matthews <josh@joshmatthews.net>
2438
2439 Fix build error in Darwin port.
2440 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2441
abf85f46
JK
24422011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2443
2444 Code cleanup.
2445 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2446 (command_line_is_silent): New function.
2447 (bpstat_do_actions_1): No longer use commands_left, use
2448 command_line_is_silent for commands.
2449 (bpstat_alloc): Remove clearing of commands_left.
2450 (bpstat_stop_status): Remove initialization of commands_left, use
2451 command_line_is_silent.
2452 * breakpoint.h (struct bpstats): Remove commands_left.
2453
3a93a0c2
KS
24542011-08-18 Keith Seitz <keiths@redhat.com>
2455
2456 PR c++/12266
2457 * cp-name-parser.y (struct demangle_info): Remove unused
2458 member PREV.
2459 (d_grab): Likewise.
2460 (allocate_info): Change return type to struct demangle_info *.
2461 Always allocate a new demangle_info.
2462 Remove unused PREV pointer.
2463 (cp_new_demangle_parse_info): New function.
2464 (cp_demangled_name_parse_free): New function.
2465 (do_demangled_name_parse_free_cleanup): New function.
2466 (make_cleanup_cp_demangled_name_parse_free): New function.
2467 (cp_demangled_name_to_comp): Change return type to
2468 struct demangle_parse_info *.
2469 Allocate a new storage for each call.
2470 (main): Update usage for cp_demangled_name_to_comp
2471 API change.
2472 * cp-support.h (struct demangle_parse_info): New structure.
2473 (cp_demangled_name_to_comp): Update API change for
2474 return type.
2475 (cp_new_demangle_parse_info): Declare.
2476 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2477 (cp_demangled_name_parse_free): Declare.
2478 * cp-support.c (cp_canonicalize_string): Update API
2479 change for cp_demangled_name_to_comp.
2480 (mangled_name_to_comp): Likewise.
2481 Return struct demangle_parse_info, too.
2482 (cp_class_name_from_physname): Update mangled_name_to_comp
2483 API change.
2484 (method_name_from_physname): Likewise.
2485 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2486 (cp_remove_params): Likewise.
2487 * python/py-type.c (typy_legacy_template_argument): Likewise.
2488
2489 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2490 (cp_merge_demangle_parse_infos): Declare.
2491 * cp-support.c (ignore_typedefs): New file global.
2492 (copy_string_to_obstack): New function.
2493 (inspect_type): New function.
2494 (replace_typedefs): New function.
2495 (replace_typedefs_qualified_name): New function.
2496 (cp_canonicalize_string_no_typedefs): New function.
2497 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2498 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2499 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2500 instead of cp_canonicalize_string.
2501 (find_method): Likewise.
2502 (decode_compound): Before looking up the name, call
2503 cp_canonicalize_string_no_typedefs.
2504 (decode_variable): Likewise.
2505
fa3a4f15
PM
25062011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2507 Tom Tromey <tromey@redhat.com>
2508 Matt Rice <ratmice@gmail.com>
2509
2510 * python/lib/gdb/prompt.py: New file.
2511 * python/lib/gdb/command/prompt.py: New file.
2512 * NEWS: Document set extended-prompt and gdb.prompt library
2513
85661b1e
YQ
25142011-08-16 Yao Qi <yao@codesourcery.com>
2515
2516 * tic6x-linux-tdep.c: Move const arrays definition from here...
2517 * tic6x-tdep.c: to here ...
2518
11315641
YQ
25192011-08-14 Yao Qi <yao@codesourcery.com>
2520
2521 * NEWS: New port to Texas Instruments TMS320C6x.
2522
8cd64e00
YQ
25232011-08-14 Andrew Jenner <andrew@codesourcery.com>
2524 Bernd Schmidt <bernds@codesourcery.com>
2525 Yao Qi <yao@codesourcery.com>
2526
2527 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2528 * solib-dsbt.c: New file. Support DSBT shared object.
2529 * tic6x-linux-tdep.c: New file.
2530 * tic6x-tdep.c: New file.
2531 * tic6x-tdep.h: New file.
2532
78d85199
YQ
25332011-08-14 Andrew Stubbs <ams@codesourcery.com>
2534 Yao Qi <yao@codesourcery.com>
2535
2536 * remote.c (PACKET_qXfer_fdpic): New enum value.
2537 (remote_protocol_features): Add qXfer:fdpic:read packet.
2538 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2539 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2540 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2541
224bbe49
YQ
25422011-08-14 Yao Qi <yao@codesourcery.com>
2543
2544 Target description for tic6x.
2545 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2546 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2547 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2548 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2549 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2550 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2551 * features/tic6x-c64xp-linux.xml: New.
2552 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2553 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2554 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2555 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
2556 * regformats/tic6x-c64xp.dat,
2557 regformats/tic6x-c62x-linux.dat: Generated.
2558 * regformats/tic6x-c64x-linux.dat,
2559 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
2560 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2561 features/tic6x-*.c files.
2562 Add regformats/tic6x-*.dat files.
2563
457e09f0
DE
25642011-08-12 Doug Evans <dje@google.com>
2565
2566 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2567 * python/py-symbol.c (sympy_get_type): New function.
2568 (symbol_object_getset): Add "type".
2569
d20c1c3f
PA
25702011-08-12 Pedro Alves <pedro@codesourcery.com>
2571
2572 PR tui/13073
2573
2574 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2575 empty name.
2576 (tui_show_register_group): Don't store a byte buffer in the data
2577 element's value.
2578 (tui_register_format): Skip registers with an empty name.
2579 (tui_get_register): Store a struct value in the data element's
2580 value field instead of a byte buffer holding the raw register
2581 contents. Account for optimized-out and unavailable registers
2582 when comparing register contents.
2583
9d8fa392
PA
25842011-08-09 Pedro Alves <pedro@codesourcery.com>
2585
2586 * printcmd.c (current_display_number): Update comment.
2587 (disable_current_display_cleanup): Delete.
2588 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2589 catch errors thrown while evaluating and printing the display.
2590
401a70b8
TT
25912011-08-09 Tom Tromey <tromey@redhat.com>
2592
2593 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2594
7f86f058
PA
25952011-08-09 Pedro Alves <pedro@codesourcery.com>
2596
94b71cca 2597 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
2598 * maint.c (maintenance_command): Ditto.
2599 * somread.c (som_symtab_read): Ditto.
2600 * solib.c (solib_find, solib_map_sections, update_solib_list)
2601 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2602 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 2603 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
2604 * solib-irix.c (locate_base, disable_break, enable_break)
2605 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2606 (irix_current_sos, irix_open_symbol_file_object)
2607 (irix_special_symbol_handling): Ditto.
2608 * solib-sunos.c (locate_base, first_link_map_member)
2609 (sunos_current_sos, disable_break, enable_break)
2610 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2611 Ditto.
2612 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2613 (open_symbol_file_object, svr4_current_sos, enable_break)
2614 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2615 Ditto.
2616 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2617 (frv_current_sos, enable_break, frv_special_symbol_handling)
2618 (frv_solib_create_inferior_hook): Ditto.
2619 * solist.h (struct target_so_ops): Extend the comments of the
2620 special_symbol_handling, current_sos and open_symbol_file_object
2621 methods.
2622
5e239b84
PM
26232011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2624
2625 * python/lib/gdb/__init__.py: Auto-load files in command and
2626 function directories.
2627 * python/python.c (finish_python_initialization): Use
2628 os.path.join.
2629 * python/lib/gdb/command/pretty_printers.py: Self register
2630 command.
2631 * NEWS: Document auto-loading.
2632
b6cede78
JK
26332011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2634
2635 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2636 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2637 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2638
29d0bb3d
TT
26392011-08-08 Tom Tromey <tromey@redhat.com>
2640
2641 * breakpoint.c (clean_up_filters): Remove.
2642 (catch_syscall_split_args): Use VEC_cleanup.
2643
2f7fb8e4
JK
26442011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2645
2646 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2647 (main): Uncomment "Demangling error\n".
2648
d6c10e95
PP
26492011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2650
2651 * solib-target.c (segment_attributes): Make them static.
2652 (section_attributes, library_children, library_attributes): Likewise.
2653 (library_list_children, library_list_attributes): Likesise.
2654 (library_list_elements): Likewise.
2655
af6e93b2
PA
26562011-08-05 Pedro Alves <pedro@codesourcery.com>
2657
2658 * exceptions.c (throw_exception): Don't disable the current
2659 display.
2660 * printcmd.c (disable_current_display_cleanup): New function.
2661 (do_one_display): Install a cleanup to disable the current display
2662 if doing the display throws.
2663
6a1b1664
EZ
26642011-08-05 Eli Zaretskii <eliz@gnu.org>
2665
2666 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2667 initialization of the tp_new member to the corresponding
2668 gdbpy_initialize_* function.
2669 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2670 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2671 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2672 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2673 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2674
31a0ae49
JK
26752011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2676
2677 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2678 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2679 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2680 references to current_uiout.
2681
e0dd0826
PA
26822011-08-04 Pedro Alves <pedro@codesourcery.com>
2683
2684 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2685 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2686 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2687 * top.c (gdb_readline_wrapper): Adjust.
2688 * tui/tui-interp.c (tui_command_loop):
2689 (_initialize_tui_interp): Don't install it.
2690
79a45e25
PA
26912011-08-04 Pedro Alves <pedro@codesourcery.com>
2692
2693 * ui-out.h (uiout): Rename to ...
2694 (current_uiout): ... this.
2695 * ui-out.c (uiout): Rename to ...
2696 (current_uiout): ... this.
2697 * ada-lang.c (print_it_exception, print_one_exception)
2698 (print_mention_exception): Adjust.
2699 * breakpoint.c (watchpoint_check): Adjust.
2700 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2701 (default_collect_info, watchpoints_info, print_one_catch_fork)
2702 (print_one_catch_vfork, print_one_catch_syscall)
2703 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2704 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2705 (print_it_watchpoint, print_mention_watchpoint)
2706 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2707 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2708 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2709 (bkpt_print_mention, momentary_bkpt_print_it)
2710 (tracepoint_print_mention, update_static_tracepoint)
2711 (tracepoints_info, save_breakpoints): Adjust.
2712 * cli-out.c (field_separator): Adjust.
2713 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2714 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2715 * frame.c (get_current_frame): Adjust.
2716 * infcmd.c (run_command_1, print_return_value): Adjust.
2717 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2718 * infrun.c (print_end_stepping_range_reason): Adjust.
2719 (print_signal_exited_reason, print_exited_reason): Adjust.
2720 (print_signal_received_reason, print_no_history_reason): Adjust.
2721 * interps.c (interp_set): Adjust.
2722 * osdata.c (info_osdata_command): Adjust.
2723 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2724 * remote-fileio.c (remote_fileio_request): Adjust.
2725 * remote.c (show_remote_cmd): Adjust.
2726 * solib.c (info_sharedlibrary_command): Adjust.
2727 * source.c (print_source_lines_base): Adjust.
2728 * stack.c (print_stack_frame): Adjust.
2729 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2730 * symfile-mem.c (add_vsyscall_page): Adjust.
2731 * symfile.c (load_progress, generic_load)
2732 (print_transfer_performance): Adjust.
2733 * thread.c (info_threads_command, restore_selected_frame)
2734 (thread_command): Adjust.
2735 * top.c (make_cleanup_restore_ui_file): Adjust.
2736 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2737 (print_one_static_tracepoint_marker): Adjust.
2738 * cli/cli-cmds.c (print_disassembly): Adjust.
2739 * cli/cli-decode.c (print_doc_line): Adjust.
2740 * cli/cli-interp.c (safe_execute_command): Adjust.
2741 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2742 (handle_redirections): Adjust.
2743 * cli/cli-script.c (show_user_1): Adjust.
2744 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2745 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2746 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2747 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2748 (mi_cmd_env_dir): Adjust.
2749 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2750 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2751 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2752 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2753 (list_args_or_locals): Adjust.
2754 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2755 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2756 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2757 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2758 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2759 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2760 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2761 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2762 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2763 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2764 (list_available_thread_groups, mi_cmd_list_thread_groups)
2765 (mi_cmd_data_list_register_names)
2766 (mi_cmd_data_list_changed_registers)
2767 (mi_cmd_data_list_register_values, get_register)
2768 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2769 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2770 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2771 (mi_execute_command, mi_load_progress): Adjust.
2772 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2773 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2774 Adjust.
2775 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2776 * tui/tui-interp.c (tui_command_loop): Adjust.
2777 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2778
f9679975
PA
27792011-08-04 Pedro Alves <pedro@codesourcery.com>
2780
2781 * exceptions.c (struct catcher): Remove saved_uiout field.
2782 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2783 no longer save/resvore the global ui_out builder.
2784 (catch_exceptions_with_msg): Save/override/restore the global
2785 ui_out builder manually instead of relying on TRY_CATCH to do it.
2786 (catch_errors): Save/restore the global ui_out builder manually
2787 instead of relying on TRY_CATCH to do it.
2788 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2789 parameter.
2790 (TRY_CATCH): Adjust.
2791 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2792 the global ui_out builder manually instead of relying on TRY_CATCH
2793 to do it.
2794
934709f0
PW
27952011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2796
2797 * breakpoint.c (update_global_location_list): Ensure
2798 invariant 'first loc marked not duplicated and inserted,
2799 following locs marked duplicated/not inserted' is respected
2800 for multiple locations at the same address.
2801 (unduplicated_should_be_inserted) New function.
2802 (swap_insertion) New function.
2803
2421fe6f
JK
28042011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
2806 * stack.c (print_frame_arguments_choices): Comment typo fix.
2807
3fbb6ffa
TJB
28082011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2809
2810 Revert:
2811 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2812 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2813 argument. Update callers.
2814
fbe12357
PP
28152011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2816
2817 PR gdb/13045
2818 * doublest.c (convert_doublest_to_floatformat): Pass correct
2819 mantissa length to put_field.
2820
b1d288d3
JK
28212011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2822
2823 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2824 exception_print code path.
2825 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2826 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2827 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2828
311b5970
JK
28292011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2830
2831 Code cleanup.
2832 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2833 Remove, merge them into ...
2834 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2835 variable args and its initialization.
2836 (struct print_args_args, print_args_stub): Remove, merge them into
2837 print_frame.
2838 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2839 them into ...
2840 (do_gdb_disassembly): ... here. Remove variable args and its
2841 initialization.
2842 (print_frame): Remove variable args and its initialization, new
2843 variable gdbarch and numargs (from print_args_stub), inline here
2844 print_args_stub with a TRY_CATCH.
2845 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2846 them into ...
2847 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 2848 New variable e, remove variable btargs and its initialization.
311b5970 2849
484a26a8
TG
28502011-08-01 Tristan Gingold <gingold@adacore.com>
2851
2852 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2853
c30eee59
TJB
28542011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2855
2856 * breakpoint.c (insert_bp_location): Document return value.
2857 (insert_breakpoint_locations): Fix documentation.
2858 (remove_breakpoints): Add documentation.
2859
f116073b
TJB
28602011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2861
2862 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2863 argument. Update callers.
2864
65aa373f
JK
28652011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 * stack.c (print_frame_info): Comment typo fix.
2868
a50242fb
SA
28692011-07-29 Sterling Augustine <saugustine@google.com>
2870
2871 * MAINTAINERS (Write After Approval): Add myself to the list.
2872
267f6504
TT
28732011-07-29 Tom Tromey <tromey@redhat.com>
2874
2875 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2876 (library_list_start_segment): Update.
2877 (library_list_start_section): Update.
2878
00bd41d6
PM
28792011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2880
2881 * varobj.c (value_get_print_value): Move hint check later into the
2882 function. Comment function. Free thevalue before reusing it.
2883
18a46dbe
JK
28842011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2885 Pedro Alves <pedro@codesourcery.com>
2886
2887 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2888 value_one.
2889 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2890 Assert the result kind.
2891 * value.h (value_one): Remove parameter lv.
2892
bb7da2bf
JK
28932011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2894
2895 Fix crash on lval_computed values.
2896 * valops.c (value_zero): Use not_lval for lval_computed.
2897
2d5213f8
TT
28982011-07-27 Tom Tromey <tromey@redhat.com>
2899
2900 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2901 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2902
11081198
JK
29032011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2904
2905 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2906 "ptype" by their typedefs difference.
2907
3c6e0cb3
JK
29082011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2909
2910 * dwarf2expr.c (ctx_no_read_reg): New function.
2911 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2912 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2913 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2914 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2915
523f3620
JK
29162011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2917
2918 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2919 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2920 file.
2921 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2922 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2923 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2924 (ctx_no_get_base_type): Move the functions here.
2925 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2926 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2927 (ctx_no_get_base_type): New declarations.
2928
24d3216f
TT
29292011-07-27 Tom Tromey <tromey@redhat.com>
2930
2931 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2932 entries.
2933 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2934 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2935
5005c8a9
PP
29362011-07-26 Sterling Augustine <saugustine@google.com>
2937
2938 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2939 ULONGEST.
2940 (dump_bfd_file): Likewise.
2941
480a3f21
PW
29422011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2943
2944 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2945 (remote_hw_watchpoint_length_limit): New variable.
2946 (_initialize_remote) add set,show cmds for this new variable.
2947 * gdb.texinfo: document these new commands.
2948 * NEWS: Mention these new commands.
2949
efa80663
PA
29502011-07-26 Pedro Alves <pedro@codesourcery.com>
2951
2952 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2953 true for software watchpoints.
2954
dbdaa232 29552011-07-26 Joel Brobecker <brobecker@adacore.com>
2956
2957 GDB 7.3 released.
2958
cf2c3c16
TT
29592011-07-26 Tom Tromey <tromey@redhat.com>
2960
2961 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2962 * dwarf2read.c (read_indirect_string_at_offset): New function.
2963 (read_indirect_string): Use it.
2964 (dwarf_decode_macro_bytes): New function, taken from
2965 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2966 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2967 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2968 New functions.
2969 (struct dwarf2_per_objfile) <macro>: New field.
2970 (dwarf2_elf_names): Add .debug_macro.
2971 (dwarf2_macros_too_long_complaint): Add 'section' argument.
2972 (dwarf2_locate_sections): Handle new section.
2973 (read_file_scope): Handle DW_AT_GNU_macros.
2974 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
2975
1a532630
PP
29762011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2977
2978 * NEWS: Mention dcache configuration.
2979 * dcache.c (dcache_set_list, dcache_show_list): New variables.
2980 (dcache_size, dcache_line_size): New variables.
2981 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
2982 (struct dcache_block): Make it expandable.
2983 (struct dcache_struct): New field.
2984 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
2985 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
2986 (dcache_poke_byte, dcache_print_line): Adjust.
2987 (set_dcache_size, set_dcache_line_size): New functions.
2988 (set_dcache_command, show_dcache_command): New functions.
2989 (_initialize_dcache): Add new commands.
2990
2eff07b3
PP
29912011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
2992
2993 * progspace.h (struct program_space): Add solib_add_generation.
2994 * infcmd.c (post_create_inferior): Only call solib_add if not
2995 already done.
2996 * solib.c (solib_add): Increment solib_add_generation.
2997
543305c9
JK
29982011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2999
3000 Fix implicit pointer offsets.
3001 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3002 ptr.OFFSET.
3003
c0a91b2b
TT
30042011-07-25 Tom Tromey <tromey@redhat.com>
3005
3006 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3007 const.
3008 (ada_exception_sal): Make 'ops' const.
3009 (ada_decode_exception_location): Likewise.
3010 (ada_decode_assert_location): Likewise.
3011 (catch_assert_command): Update.
3012 (catch_ada_exception_command): Update.
3013 (create_ada_exception_catchpoint): Make 'ops' const.
3014 * breakpoint.c (set_raw_breakpoint_without_location)
3015 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3016 const.
3017 (create_internal_breakpoint): Update.
3018 (init_raw_breakpoint_without_location): Make 'ops' const.
3019 (init_raw_breakpoint, init_catchpoint)
3020 (create_fork_vfork_event_catchpoint)
3021 (create_syscall_event_catchpoint, init_breakpoint_sal)
3022 (create_breakpoint_sal, create_breakpoints_sal)
3023 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3024 * breakpoint.h (struct breakpoint) <ops>: Now const.
3025 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3026 const.
3027
6cb9b55b
PP
30282011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3029
3030 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3031
d9b3f62e
PA
30322011-07-25 Pedro Alves <pedro@codesourcery.com>
3033
3034 * breakpoint.h (print_recreate_thread): Declare.
3035 (struct breakpoint): Move step_count, pass_count,
3036 number_on_target, static_trace_marker_id,
3037 static_trace_marker_id_idx ...
3038 (struct tracepoint): ... to this new struct.
3039 (get_tracepoint, get_tracepoint_by_number_on_target)
3040 (get_tracepoint_by_number): Change return type to struct
3041 tracepoint pointer.
3042 * breakpoint.c (is_tracepoint_type): New, factored out from
3043 is_tracepoint.
3044 (is_tracepoint): Adjust.
3045 (print_one_breakpoint_location): Cast to struct tracepoint as
3046 necessary, and adjust.
3047 (print_recreate_catch_fork, print_recreate_catch_vfork)
3048 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3049 print_recreate_thread.
3050 (init_breakpoint_sal): New, factored out from
3051 create_breakpoint_sal.
3052 (create_breakpoint_sal): Reimplement.
3053 (create_breakpoint): Allocate a struct tracecepoint if the caller
3054 wanted a tracepoint. Use init_breakpoint_sal and
3055 install_breakpoint.
3056 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3057 (print_recreate_masked_watchpoint)
3058 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3059 (tracepoint_print_one_detail): Adjust.
3060 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3061 Dump the pass count here.
3062 (update_static_tracepoint): Adjust.
3063 (addr_string_to_sals): Adjust.
3064 (create_tracepoint_from_upload): Adjust. Change return type to
3065 struct tracepoint pointer.
3066 (trace_pass_set_count): Change parameter type to struct tracepoint
3067 pointer, and adjust.
3068 (trace_pass_command): Adjust.
3069 (get_tracepoint, get_tracepoint_by_number_on_target)
3070 (get_tracepoint_by_number): Change return type to struct
3071 tracepoint pointer, and adjust.
3072 (print_recreate_thread): New, factored out from save_breakpoints.
3073 (save_breakpoints): Don't print thread and task and passcount
3074 recreation here.
3075 * remote.c (remote_download_tracepoint): Adjust.
3076 * tracepoint.c (trace_actions_command, validate_actionline)
3077 (start_tracing, tfind_1, trace_find_tracepoint_command)
3078 (trace_dump_command): Adjust.
3079 (find_matching_tracepoint): Change return type to struct
3080 tracepoint pointer, and adjust.
3081 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3082 (tfile_trace_find, tfile_fetch_registers): Adjust.
3083 * tracepoint.h (create_tracepoint_from_upload): Change return type
3084 to struct tracepoint pointer.
3085 * ada-lang.c (print_recreate_exception): Call
3086 print_recreate_thread.
3087 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3088
3a5c3e22
PA
30892011-07-25 Pedro Alves <pedro@codesourcery.com>
3090
3091 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3092 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3093 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3094 watchpoint_thread, watchpoint_triggered ...
3095 (struct watchpoint): ... to this new struct.
3096 (is_watchpoint): Declare.
3097 (install_breakpoint): Add new `internal' parameter.
3098 * breakpoint.c (is_watchpoint): Delete declaration.
3099 (set_breakpoint_condition): Handle watchpoints.
3100 (is_watchpoint): Make public.
3101 (watchpoint_in_thread_scope): Change parameter type to struct
3102 watchpoint.
3103 (watchpoint_del_at_next_stop): Change parameter type to struct
3104 watchpoint. Remove assertion. Adjust.
3105 (update_watchpoint): Ditto.
3106 (insert_breakpoints, breakpoint_init_inferior)
3107 (watchpoints_triggered, watchpoint_check)
3108 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3109 (bpstat_stop_status, print_one_breakpoint_location)
3110 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3111 to struct watchpoint as necessary, and adjust.
3112 (install_breakpoint): Add `internal' argument. If true, don't
3113 mention the new breakpoint. Use set_breakpoint_number.
3114 (create_fork_vfork_event_catchpoint)
3115 (create_syscall_event_catchpoint): Adjust.
3116 (dtor_watchpoint): New.
3117 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3118 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3119 (print_it_watchpoint, print_mention_watchpoint)
3120 (print_recreate_watchpoint, insert_masked_watchpoint)
3121 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3122 (print_one_detail_masked_watchpoint)
3123 (print_mention_masked_watchpoint)
3124 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3125 necessary, and adjust.
3126 (watch_command_1): Allocate and initialize a struct watchpoint
3127 instead of a struct breakpoint. Use install_breakpoint.
3128 (catch_exec_command_1): Adjust.
3129 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3130 fields.
3131 (delete_breakpoint, enable_breakpoint_disp)
3132 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3133 as necessary, and adjust.
3134 (initialize_breakpoint_ops): Install dtor_watchpoint as
3135 watchpoints' dtor method.
3136 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3137 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3138 to struct watchpoint as necessary, and adjust.
3139
2060206e
PA
31402011-07-25 Pedro Alves <pedro@codesourcery.com>
3141
3142 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3143 the the base class ops table.
3144 (catch_exception_breakpoint_ops)
3145 (catch_exception_unhandled_breakpoint_ops)
3146 (catch_assert_breakpoint_ops): Don't statically initialize.
3147 (initialize_ada_catchpoint_ops): New.
3148 (_initialize_ada_language): Call it.
3149 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3150 (bkpt_breakpoint_ops): Forward declare.
3151 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3152 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3153 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3154 (masked_watchpoint_breakpoint_ops)
3155 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3156 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3157 base class ops table.
3158 (null_re_set, null_check_status, null_works_in_software_mode)
3159 (null_resources_needed, null_print_one_detail): Delete.
3160 (bkpt_dtor): Rename to ...
3161 (base_breakpoint_dtor): ... this. Make static.
3162 (bkpt_allocate_location): Rename to ...
3163 (base_breakpoint_allocate_location): ... this. Make static.
3164 (base_breakpoint_re_set): New.
3165 (internal_error_pure_virtual_called): New.
3166 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3167 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3168 (base_breakpoint_works_in_software_mode)
3169 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3170 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3171 (base_breakpoint_print_recreate): New functions.
3172 (base_breakpoint_ops): New global.
3173 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3174 (bkpt_breakpoint_hit): Make static.
3175 (bkpt_check_status): Delete.
3176 (bkpt_resources_needed): Make static.
3177 (bkpt_works_in_software_mode): Delete.
3178 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3179 static.
3180 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3181 (momentary_breakpoint_ops): Don't statically initialize.
3182 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3183 Delete.
3184 (tracepoint_insert_location, tracepoint_remove_location)
3185 (tracepoint_check_status, tracepoint_works_in_software_mode)
3186 (tracepoint_print_it): Delete.
3187 (tracepoint_breakpoint_ops): Don't statically initialize.
3188 (initialize_breakpoint_ops): New.
3189 (_initialize_breakpoint): Call it.
3190 * breakpoint.h (null_re_set, null_works_in_software_mode)
3191 (null_resources_needed, null_check_status, null_print_one_detail):
3192 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3193 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3194 (bkpt_check_status, bkpt_resources_needed)
3195 (bkpt_works_in_software_mode, bkpt_print_it)
3196 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3197 Delete declarations.
3198 (initialize_breakpoint_ops): Declare.
3199
001c8c33
PA
32002011-07-25 Pedro Alves <pedro@codesourcery.com>
3201
3202 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3203 (momentary_bkpt_print_it): Simplify.
3204
06edf0c0
PA
32052011-07-25 Pedro Alves <pedro@codesourcery.com>
3206
3207 Split internal, momentary and user breakpoints breakpoint_ops
3208 tables.
3209
3210 * breakpoint.c (internal_breakpoint_ops)
3211 (momentary_breakpoint_ops): Forward declare.
3212 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3213 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3214 (create_overlay_event_breakpoint)
3215 (create_std_terminate_master_breakpoint)
3216 (create_exception_master_breakpoint): Create breakpoints with
3217 internal_breakpoint_ops vtable.
3218 (set_longjmp_breakpoint): Create momentary breakpoints with
3219 momentary_breakpoint_ops vtable, using
3220 momentary_breakpoint_from_master.
3221 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3222 (create_solib_event_breakpoint): Create breakpoints with
3223 internal_breakpoint_ops vtable.
3224 (set_momentary_breakpoint): Create breakpoints with
3225 momentary_breakpoint_ops vtable.
3226 (momentary_breakpoint_from_master): New, factored out from
3227 clone_momentary_breakpoint.
3228 (clone_momentary_breakpoint): Adjust.
3229 (watch_command_1): Create scope breakpoints with
3230 momentary_breakpoint_ops vtable.
3231 (bkpt_re_set): Remove handling of internal and momentary
3232 breakpoints.
3233 (bkpt_print_mention, bkpt_print_recreate): New.
3234 (bkpt_breakpoint_ops): Adjust.
3235 (internal_bkpt_re_set, internal_bkpt_check_status)
3236 (internal_bkpt_print_it, internal_bkpt_print_mention)
3237 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3238 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3239 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3240 (momentary_bkpt_print_recreate): New.
3241 (momentary_breakpoint_ops): New.
3242
348d480f
PA
32432011-07-25 Pedro Alves <pedro@codesourcery.com>
3244
3245 Implement most breakpoint_ops methods for all breakpoint types,
3246 and move the default handlings to the proper callbacks.
3247
3248 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3249 works_in_software_mode method.
3250 (insert_bp_location): Go through breakpoint_ops->insert_location
3251 for software and hardware watchpoints.
3252 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3253 breakpoint_ops.
3254 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3255 for software and hardware watchpoints.
3256 (print_it_typical): Delete.
3257 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3258 method.
3259 (watchpoint_check): Adjust comment.
3260 (bpstat_check_location): Simply always call the breakpoint's
3261 breakpoint_hit method.
3262 (bpstat_stop_status): Always call the breakpoint's check_status
3263 method. Remove special cases for watchpoints and internal event
3264 breakpoints from here (moved to the check_status implementations).
3265 (print_one_breakpoint_location): Assume b->ops is never NULL.
3266 Remove static tracepoint marker id printing from here (moved to
3267 the print_one_detail callback implementation of tracepoints).
3268 (init_bp_location): Assert OPS is never NULL.
3269 (allocate_bp_location): Always call the breakpoint's
3270 allocate_location method, and remove the default code from here.
3271 (free_bp_location): Always call the location's dtor method, and
3272 remove the default code from here.
3273 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3274 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3275 parameter. Pass it down.
3276 (set_raw_breakpoint): Ditto.
3277 (print_it_catch_fork): Adjust to take a bpstat as argument.
3278 (catch_fork_breakpoint_ops): Install methods.
3279 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3280 (catch_vfork_breakpoint_ops): Install methods.
3281 (dtor_catch_syscall): Call the base dtor.
3282 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3283 (catch_syscall_breakpoint_ops): Install methods.
3284 (dtor_catch_exec): Call the base dtor.
3285 (print_it_catch_exec): Adjust to take a bpstat as argument.
3286 (catch_exec_breakpoint_ops): Install methods.
3287 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3288 the breakpoint's resources_needed method, and remove the default
3289 code from here.
3290 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3291 breakpoint_ops.
3292 (clone_momentary_breakpoint): Clone the original's ops.
3293 (mention): Always call the breakpoint's print_mention method, and
3294 remove the default code from here.
3295 (create_breakpoint_sal): Adjust to pass the ops to
3296 set_raw_breakpoint rather than setting it manually.
3297 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3298 ops to set_raw_breakpoint_without_location rather than setting it
3299 manually.
3300 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3301 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3302 (ranged_breakpoint_ops): Install methods.
3303 (break_range_command): Adjust to pass the ops to
3304 set_raw_breakpoint rather than setting it manually.
3305 (re_set_watchpoint, breakpoint_hit_watchpoint)
3306 (check_status_watchpoint, resources_needed_watchpoint)
3307 (works_in_software_mode_watchpoint, print_it_watchpoint)
3308 (print_mention_watchpoint, print_recreate_watchpoint): New
3309 functions.
3310 (watchpoint_breakpoint_ops): Install new methods.
3311 (print_it_masked_watchpoint): New function.
3312 (masked_watchpoint_breakpoint_ops): Install new methods.
3313 (watch_command_1): Adjust to pass the right breakpoint_ops to
3314 set_raw_breakpoint_without_location rather than setting it
3315 manually later. Record the current pspace.
3316 (print_it_exception_catchpoint): Adjust to take a bpstat as
3317 argument.
3318 (gnu_v3_exception_catchpoint_ops): Install new methods.
3319 (say_where): New function.
3320 (null_re_set, null_check_status, null_works_in_software_mode)
3321 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3322 New functions.
3323 (bp_location_ops): New global.
3324 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3325 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3326 (bkpt_check_status, bkpt_resources_needed)
3327 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3328 (bkpt_print_recreate): New functions.
3329 (bkpt_breakpoint_ops): New global.
3330 (tracepoint_re_set, tracepoint_insert_location)
3331 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3332 (tracepoint_check_status, tracepoint_works_in_software_mode)
3333 (tracepoint_print_it, tracepoint_print_one_detail)
3334 (tracepoint_print_mention, tracepoint_print_recreate): New
3335 functions.
3336 (tracepoint_breakpoint_ops): New global.
3337 (delete_breakpoint): Always call the breakpoint's dtor method, and
3338 remove the default handling from here.
3339 (breakpoint_re_set_default): Make static.
3340 (breakpoint_re_set_one): Always call the breakpoints re_set
3341 method, and remove the default handling from here.
3342 (trace_command, ftrace_command, strace_command)
3343 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3344 to create_breakpoint.
3345 (save_breakpoints): Always call the breakpoint's print_recreate
3346 method, and remove the default handling from here.
3347
3348 * ada-lang.c (dtor_exception): Call the base dtor.
3349 (re_set_exception): Call the base method.
3350 (print_it_exception, print_it_catch_exception): Adjust to take a
3351 bpstat as argument.
3352 (catch_exception_breakpoint_ops): Install methods.
3353 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3354 argument.
3355 (catch_exception_unhandled_breakpoint_ops): Install methods.
3356 (print_it_catch_assert): Adjust to take a bpstat as argument.
3357 (catch_assert_breakpoint_ops): Install methods.
3358
3359 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3360 to take a bpstat as argument.
3361 (enum print_stop_action): Add describing comments to each enum
3362 value.
3363 (breakpoint_re_set_default): Delete declaration.
3364 (null_re_set, null_works_in_software_mode, null_resources_needed)
3365 (null_check_status, null_print_one_detail): Declare.
3366 (bkpt_breakpoint_ops): Declare.
3367 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3368 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3369 (bkpt_check_status, bkpt_resources_needed)
3370 (bkpt_works_in_software_mode, bkpt_print_it)
3371 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3372 Declare.
3373
3374 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3375 bkpt_breakpoint_ops.
3376 * python/py-breakpoint.c (bppy_init): Ditto.
3377
be8f8133
PW
33782011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3379
3380 * MAINTAINERS (Write After Approval): Add myself to the list.
3381
3807f613
PP
33822011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3383
3384 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3385
1ced966e
PA
33862011-07-22 Pedro Alves <pedro@codesourcery.com>
3387
3388 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3389 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3390 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3391 adjust.
3392 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3393 (struct i386_debug_reg_state): New.
3394 (i386_init_dregs): New.
3395 (dr_mirror): New.
3396 (i386_cleanup_dregs): Use i386_init_dregs.
3397 (i386_show_dr): Add state parameter and adjust.
3398 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3399 the inferior here.
3400 (i386_remove_aligned_watchpoint): Likewise.
3401 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3402 (i386_update_inferior_debug_regs): New.
3403 (i386_insert_watchpoint): Work on a local mirror of the debug
3404 registers, and only update the inferior on success.
3405 (i386_remove_watchpoint): Ditto.
3406 (i386_region_ok_for_watchpoint): Adjust.
3407 (i386_stopped_data_address): Adjust.
3408 (i386_insert_hw_breakpoint): Adjust.
3409 (i386_remove_hw_breakpoint): Adjust.
3410
3543a589
TT
34112011-07-22 Tom Tromey <tromey@redhat.com>
3412
3413 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3414 from amd64_pseudo_register_read. Change arguments. Call
3415 mark_value_bytes_unavailable when needed.
3416 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3417 set_gdbarch_pseudo_register_read.
3418 * sentinel-frame.c (sentinel_frame_prev_register): Use
3419 regcache_cooked_read_value.
3420 * regcache.h (regcache_cooked_read_value): Declare.
3421 * regcache.c (regcache_cooked_read_value): New function.
3422 (regcache_cooked_read): Call
3423 gdbarch_pseudo_register_read_value if available.
3424 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3425 (i386_pseudo_register_read): Remove.
3426 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3427 i386_pseudo_register_read. Change arguments. Call
3428 mark_value_bytes_unavailable when needed.
3429 (i386_pseudo_register_read_value): New function.
3430 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3431 not set_gdbarch_pseudo_register_read.
3432 * gdbarch.sh (pseudo_register_read_value): New method.
3433 * gdbarch.c, gdbarch.h: Rebuild.
3434 * findvar.c (value_from_register): Call get_frame_register_value.
3435
95298e72
PM
34362011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3437
3438 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3439 get_prefix.
3440 (display_gdb_prompt): Likewise.
3441 (change_annotation_level): Likewise.
3442 (push_prompt): Likewise.
3443 (pop_prompt): Likewise.
3444 (handle_stop_sig): Use get_prompt with a level.
3445 * top.c (command_loop): Use get_prompt with a level.
3446 (set_async_annotation_level): Use set_prompt with a level.
3447 (get_prefix): New function.
3448 (set_prefix): Ditto.
3449 (set_suffix): Ditto.
3450 (get_suffix): Ditto.
3451 (get_prompt): Accept a level argument.
3452 (set_prompt): Accept a level argument. Free old prompts. Set
3453 new_async_prompt if level is 0.
3454 (init_main): Use set_prompt with a level. Do not set
3455 new_async_prompt.
3456 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3457 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3458 Modify set_prompt, get_prompt to account for levels.
3459 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3460 level.
3461 * python/python.c (before_prompt_hook): Use set_prompt.
3462
d26e3629
KY
34632011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3464
3465 * defs.h: Add guard against inclusion in gdbserver.
3466 (struct ptid, ptid_t): Move to common/ptid.h.
3467 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3468 xsnprintf, internal_error): Move to common/common-utils.h.
3469 (nomem): Delete.
3470 * gdb_assert.h: Move into common/ sub-directory.
3471 * gdb_locale.h: Ditto.
3472 * gdb_dirent.h: Ditto.
3473 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3474 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3475 Move into common/ptid.h.
3476 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3477 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3478 Change nomem to malloc_failure.
3479 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3480 * utils.c (nomem): Rename to malloc_failure.
3481 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3482 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3483 (gdb_buildargv): Change nomem to malloc_failure.
3484 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3485 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3486 ptid_is_pid): Move into common/ptid.c.
3487 (initialize_infrun): Delete initialization of null_ptid and
3488 minus_one_ptid.
3489 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3490 linux_common_xfer_osdata.
3491 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3492 common/ptid.c and common/buffer.c.
3493 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3494 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3495 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3496 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3497 rules.
3498 * common/gdb_assert.h: New.
3499 * common/gdb_dirent.h: New.
3500 * common/gdb_locale.h: New.
3501 * common/buffer.c: New.
3502 * common/buffer.h: New.
3503 * common/ptid.c: New.
3504 * common/ptid.h: New.
3505 * common/xml-utils.c: New.
3506 * common/xml-utils.h: New.
3507 * common/common-utils.c: New.
3508 * common/common-utils.h: New.
3509 * common/linux-osdata.c: New.
3510 * common/linux-osdata.h: New.
3511 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3512 * config/arm/linux.mh (NATDEPFILES): Ditto.
3513 * config/i386/linux.mh (NATDEPFILES): Ditto.
3514 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3515 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3516 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3517 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3518 * config/mips/linux.mh (NATDEPFILES): Ditto.
3519 * config/pa/linux.mh (NATDEPFILES): Ditto.
3520 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3521 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3522 * config/s390/s390.mh (NATDEPFILES): Ditto.
3523 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3524 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3525 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3526
edc84990 35272011-07-21 Matt Rice <ratmice@gmail.com>
3528
3529 * NEWS: Add info macros and info definitions commands.
3530
3a7bf607
PM
35312011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3532
3533 * NEWS: Document Python prompt substitution hook.
3534
9b158ba0 35352011-07-18 Matt Rice <ratmice@gmail.com>
3536
3537 PR macros/12999
3538 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3539 * macrotab.c (foreach_macro): Ditto.
3540 (foreach_macro_in_scope): Ditto.
3541 * macrocmd.c (print_macro_callback): New function.
3542 (info_macro_command): Move some code to print_macro_definition.
3543 (print_macro_definition): New function.
3544 (print_one_macro): Add new arguments to callback.
3545 (info_definitions_command): New function.
3546 (info_macros_command): Ditto.
3547 (_initialize_macrocmd): Add info macros and info definitions commands.
3548 * symtab.c (add_macro_name): Add new arguments to callback.
3549
d17b6f81
PM
35502011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3551 Tom Tromey <tromey@redhat.com>
3552
3553 * top.c (set_prompt): Rewrite to free previous prompt, free
3554 asynch_new_prompt and set both on new prompts.
3555 * event-top.c (display_gdb_prompt): Add prompt substitution
3556 logic.
3557 * python/python.c (before_prompt_hook): New function.
3558
1364323a 35592011-07-20 Matt Rice <ratmice@gmail.com>
3560
3561 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3562 arguments to store_unsigned_integer.
3563
8b70b953
TT
35642011-07-20 Tom Tromey <tromey@redhat.com>
3565
6c83ed52
TT
3566 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3567 in some declaration-only cases.
3568
35692011-07-18 Tom Tromey <tromey@redhat.com>
3570
8b70b953
TT
3571 PR symtab/12984:
3572 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3573 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3574 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3575 <debug_type_section>: New field.
3576 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3577 (load_cu): Use appropriate section.
3578 (create_signatured_type_table_from_index): Add 'section'
3579 argument.
3580 (dwarf2_read_index): Only allow a single .debug_types section.
3581 (dw2_get_file_names): Use appropriate section.
3582 (read_type_comp_unit_head): Add 'section' argument.
3583 (create_debug_types_hash_table): Loop over all .debug_types
3584 sections.
3585 (init_cu_die_reader): Use appropriate section.
3586 (process_psymtab_comp_unit, load_partial_comp_unit)
3587 (load_full_comp_unit, read_die_and_children, find_partial_die)
3588 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3589 (lookup_signatured_type_at_offset): Add 'section' argument.
3590 (read_signatured_type_at_offset): Add 'sect' argument.
3591 (read_signatured_type): Use appropriate section.
3592 (set_die_type, get_die_type_at_offset): Update.
3593 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3594 VEC.
3595 (write_psymtabs_to_index): Don't allow index with more than one
3596 .debug_types section.
3597
918dd910
JK
35982011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3599
3600 Fix crash if referenced CU is aged out.
3601 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3602 xfree of block.data.
3603 (indirect_pieced_value): New variable back_to, use to for xfree of
3604 baton.data.
3605 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3606 block.data.
3607 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3608 (load_cu): New function from ...
3609 (dw2_do_instantiate_symtab): ... the code here ...
3610 (process_full_comp_unit): ... and here.
3611 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3612 retval.data.
3613
0e37a63c
JK
36142011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3615
3616 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3617 type.
3618
7e324e48
GB
36192011-07-19 Gary Benson <gbenson@redhat.com>
3620
3621 * infrun.c (struct execution_control_state): New member
3622 stop_func_filled_in.
3623 (clear_stop_func, fill_in_stop_func): New functions.
3624 (handle_inferior_event): Call clear_stop_func rather than
3625 manipulating the execution control state directly.
3626 Call fill_in_stop_func lazily as required rather than
3627 directly calling find_pc_partial_function in all cases.
3628
d48323d8
TT
36292011-07-18 Tom Tromey <tromey@redhat.com>
3630
3631 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3632 checking for variable-sized array.
3633
40591b7d
JCD
36342011-07-18 Jean-Charles Delay <delay@adacore.com>
3635
3636 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3637 of supported languages.
3638 * varobj.c: Add top definitions and basic implementation of the
3639 following callbacks: ada_number_of_children, ada_name_of_variable,
3640 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3641 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3642 (languages): Register Ada-specific callbacks.
3643 (variable_language): Add the Ada case in the language setter switch.
3644
2e424e08
JK
36452011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3646
3647 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3648
9e8b7a03
JK
36492011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3650
3651 Code cleanup.
3652 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3653 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3654 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3655 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3656 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3657 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3658 (struct dwarf_expr_context_funcs): New, move here methods from ...
3659 (struct dwarf_expr_context): ... here. New fields funcs.
3660 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3661 (dwarf_expr_ctx_funcs): New.
3662 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3663 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3664 (needs_frame_ctx_funcs): New.
3665 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3666
2b1260ab
FM
36672011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3668
3669 * MAINTAINERS (Write After Approval): Add myself to the list.
3670
8bd90839
FM
36712011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3672
3673 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3674 that CIE pointer of an FDE really points to a CIE .
3675
953b98d1
HZ
36762011-07-15 Hui Zhu <teawater@gmail.com>
3677
3678 * remote.c (remote_get_trace_status): Add comments.
3679
c8f2448a
JK
36802011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3681
3682 Code cleanup - constify struct lval_funcs.
3683 * dwarf2loc.c (pieced_value_funcs): Make it const.
3684 * infrun.c (siginfo_value_funcs): Likewise.
3685 * opencl-lang.c (opencl_value_funcs): Likewise.
3686 * valops.c (value_assign, value_ind): Make the funcs variable const.
3687 * value.c (struct value): Make location.computed.funcs target const.
3688 Rearrange the comments.
3689 (allocate_computed_value): Make the funcs parameter target const.
3690 (value_computed_funcs): Return the funcs target const.
3691 (value_free, value_copy, set_value_component_location): Make the funcs
3692 variable const.
3693 * value.h (allocate_computed_value): Make the funcs parameter target
3694 const.
3695 (value_computed_funcs): Return the funcs target const.
3696 * windows-tdep.c (tlb_value_funcs): Make it const.
3697
f652de6f
HZ
36982011-07-14 Hui Zhu <teawater@gmail.com>
3699
3700 * remote.c (remote_get_trace_status): Initialize p.
3701
67f41397
JK
37022011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3703
3704 Work around kgdb.
3705 * remote.c (remote_get_trace_status): New variable ex. Put
3706 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3707
d1b66e6d
TT
37082011-07-13 Tom Tromey <tromey@redhat.com>
3709
3710 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3711 value_from_contents for final conversion.
3712
1632a688
JK
37132011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3714
3715 Code cleanup.
3716 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3717 Indent prototypes so they do not get into tags.
3718
a7035dbb
JK
37192011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3720
3721 Code cleanup making also optimized out values lazy.
3722 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3723 allocate_optimized_out_value. Twice.
3724 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3725 * findvar.c (read_var_value): Likewise.
3726 * value.c (allocate_optimized_out_value): New function.
3727 * value.h (allocate_optimized_out_value): New declaration.
3728
d07ed419
JK
37292011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3730
3731 Fix occasional crash of CTRL-C during DWARF read in.
3732 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3733
86d31898
TT
37342011-07-11 Tom Tromey <tromey@redhat.com>
3735
3736 * regcache.c (struct regcache_descr): Fix typo.
3737 * i387-tdep.c (i387_supply_xsave): Fix typo.
3738
2ab95328
TT
37392011-07-11 Tom Tromey <tromey@redhat.com>
3740
3741 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3742 (read_file_scope, read_type_unit_scope): Use it.
3743
04ad99e6
JK
37442011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3745
3746 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3747 `int'.
3748
713389e0
PM
37492011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3750
3751 PR python/12438
3752 * python/python.c: Set gdbpy_should_print_stack default to off.
3753 (set_python): Deprecate maint set python print-stack to
3754 class_deprecate.
3755 (_initialize_python): Deprecate maint set/show python print-stack.
3756 Add new prefix command, python. Add new setting, print-backtrace.
3757 * NEWS: Document set python print-stack. Document default change.
3758
754eadd1
PM
37592011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3760
3761 * python/py-inferior.c (infpy_dealloc): New function.
3762 (inferior_to_inferior_object): Return a new object, or a
3763 new reference to the existing object.
3764 (find_thread_object): Cleanup references to inferior.
3765 (delete_thread_object): Ditto.
3766 * python/py-infthread.c (create_thread_object): Do not increment
3767 inferior reference count.
3768
5e44ecb3
TT
37692011-07-08 Tom Tromey <tromey@redhat.com>
3770
3771 * dwarf2loc.c (locexpr_regname): New function.
3772 (locexpr_describe_location_piece): Use it.
3773 (disassemble_dwarf_expression): Add per_cu argument. Use
3774 locexpr_regname.
3775 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3776 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3777 New cases.
3778 (locexpr_describe_location_1): Add per_cu argument.
3779 (locexpr_describe_location): Update.
3780 (loclist_describe_location): Update.
3781
e0e9434c
TT
37822011-07-08 Tom Tromey <tromey@redhat.com>
3783
3784 * dwarf2expr.c (execute_stack_op): Add QUIT.
3785
26afc0d7
HZ
37862011-07-07 Hui Zhu <teawater@gmail.com>
3787
3788 Revert:
3789 2011-07-06 Hui Zhu <teawater@gmail.com>
3790 * remote.c (remote_start_remote): Add TRY_CATCH for
3791 remote_get_trace_status.
3792 * tracepoint.c (disconnect_tracing): Ditto.
3793
a40a111f
AB
37942011-07-07 Andrew Burgess <aburgess@broadcom.com>
3795
3796 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3797 variables as signed, not unsigned.
3798
e2bd3b15
JB
37992011-07-06 Joel Brobecker <brobecker@adacore.com>
3800
3801 * jit.c (jit_inferior_init): Reformat forward declaration.
3802
e3d961fe 38032011-07-06 Matt Rice <ratmice@gmail.com>
3804
3805 * MAINTAINERS (Write After Approval): Add myself to the list.
3806
0f3428f0
HZ
38072011-07-06 Hui Zhu <teawater@gmail.com>
3808
3809 * remote.c (remote_start_remote): Add TRY_CATCH for
3810 remote_get_trace_status.
3811 * tracepoint.c (disconnect_tracing): Ditto.
3812
fc9f3a69
TT
38132011-07-05 Tom Tromey <tromey@redhat.com>
3814
3815 * symtab.c (operator_chars): Now static.
3816 * linespec.c (operator_chars): Don't declare.
3817
26e519b9
TJB
38182011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3819
3820 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3821
eb2a6f42
TT
38222011-07-05 Tom Tromey <tromey@redhat.com>
3823
3824 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3825 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3826 (TYPE_CPLUS_REALLY_JAVA): New macro.
3827 * dwarf2read.c (process_structure_scope): Set
3828 TYPE_CPLUS_REALLY_JAVA.
3829
21083d0f 38302011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
3831
3832 * ada-lang.c: Fix typos.
3833 * amd64-tdep.c: Likewise.
3834 * breakpoint.c: Likewise.
3835 * cli/cli-decode.c: Likewise.
3836 * findcmd.c: Likewise.
3837 * inline-frame.c: Likewise.
3838 * mi/mi-main.c: Likewise.
3839 * minsyms.c: Likewise.
3840 * monitor.c: Likewise.
3841 * monitor.h: Likewise.
3842 * prologue-value.c: Likewise.
3843 * reverse.c: Likewise.
3844 * s390-tdep.c: Likewise.
3845
3b2a0cf2
JB
38462011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3847
3848 * jit.c (jit_inferior_init): Forward declare.
3849 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3850
efae1d92
JB
38512011-07-04 Joel Brobecker <brobecker@adacore.com>
3852
3853 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3854
6040a59d
JB
38552011-07-04 Tristan Gingold <gingold@adacore.com>
3856
3857 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3858 (tcb_fieldno): Add activation_link field.
3859 (get_known_tasks_addr): Moved and rewritten.
3860 (get_tcb_types_info): Set activation_link field.
3861 (read_known_tasks_array): Add parameter. Rewritten.
3862 (read_known_tasks_list): New function.
3863 (read_known_tasks): New function.
3864 (ada_build_task_list): Call read_known_tasks instead of
3865 read_known_tasks_array.
3866 * ravenscar-thread.c: Add first_task_name constant.
3867 (has_ravenscar_runtime): Check for task list too.
3868
cb741e45
JB
38692011-07-04 Tristan Gingold <gingold@adacore.com>
3870
3871 * ada-tasks.c: Renames fieldno to actb_fieldno.
3872 (ada_get_task_number): Indentation.
3873 (get_tcb_types_info): Remove all parameters. Write directly
3874 the globals.
3875 (ptid_from_atcb_common): Adjust.
3876 (read_atcb): Adjust.
3877
7475b06c
TJB
38782011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3879
3880 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3881
15230f37
TJB
38822011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3883
3884 * ui-out.c (ui_out_field_core_addr): Mention that the function
3885 description is in the header file.
3886 * ui-out.h (ui_out_field_core_addr): Document function.
3887
65743aba
TJB
38882011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3889
3890 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3891 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3892
c37a5aab
TJB
38932011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3894
3895 * symtab.c (expand_line_sal): Remove empty line.
3896
59adf69e
TS
38972011-07-04 Thomas Schwinge <thomas@schwinge.name>
3898
3899 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3900 same way as ELFOSABI_NONE.
3901 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3902
e5dd4106
TJB
39032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3904
3905 * breakpoint.c: Fix typos in comments.
3906 * linespec.c: Likewise.
3907 * symtab.c: Likewise.
3908
d40102a1
JB
39092011-07-04 Joel Brobecker <brobecker@adacore.com>
3910
3911 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3912 section in separate object files.
3913
2f741504
JK
39142011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3915
3916 Fix false GCC warning.
3917 * linespec.c (decode_line_1): Initialize values.
3918
418c7cf7
JK
39192011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 * linespec.c (find_method): Accept the function type automatically only
3922 if it was specified with parameter types.
3923
3d50dd94
JK
39242011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3925
3926 Stop on first linespec terminator instead of eating what we can.
3927 * linespec.c (is_linespec_boundary): New function.
3928 (name_end): Remove function.
3929 (keep_name_info): New parameter on_boundary, replace the body.
3930 (decode_line_1): Provide the parameter to keep_name_info.
3931 (decode_compound): Likewise. Drop the trailing java return type
3932 handling. Twice.
3933
dcf9f4ab
JK
39342011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 Fall back linespec to minimal symbols.
3937 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3938 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3939 (find_method, symbol_found): Change error to cplusplus_error.
3940
3f542ed1
JK
39412011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3942
bc68c4e5 3943 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 3944
900e11f9
JK
39452011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3946 Tom Tromey <tromey@redhat.com>
3947
3948 * dwarf2read.c (check_physname): New variable.
3949 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3950 (show_check_physname): New function.
3951 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3952
2301925d
JB
39532011-07-01 Joel Brobecker <brobecker@adacore.com>
3954
3955 * machoread.c (macho_symfile_read): Delete OBE comment.
3956
38947cca
JB
39572011-07-01 Joel Brobecker <brobecker@adacore.com>
3958
3959 * machoread.c (struct macho_oso_data): Delete.
3960 (current_oso): Delete.
3961 (macho_relocate_common_syms): New function, mostly extracted
3962 out of
3963 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3964 Remove code that sets and unset current_oso.
3965 (macho_symfile_relocate): Delete handling of common symbols,
3966 now moved to macho_relocate_common_syms.
3967
a7aa0d73
JB
39682011-07-01 Joel Brobecker <brobecker@adacore.com>
3969
3970 * darwin-nat.c (darwin_ptrace): Add documentation.
3971 Set errno to zero before calling ptrace. If ptrace returns
3972 -1 and errno is zero, then change then return zero.
3973 (darwin_kill_inferior): Issue a warning instead of triggering
3974 a failed assertion when the PT_KILL ptrace operations returned
3975 nonzero.
3976
5e9bc145
JB
39772011-07-01 Joel Brobecker <brobecker@adacore.com>
3978
3979 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
3980 only when inf->private->no_ptrace.
3981
00eb2c4a
JB
39822011-07-01 Joel Brobecker <brobecker@adacore.com>
3983
3984 * ada-lang.c (print_it_exception): Print temporary catchpoints
3985 as "Temporary catchpoint".
3986 (print_mention_exception): Likewise.
3987
127c81bc
TT
39882011-07-01 Tom Tromey <tromey@redhat.com>
3989
3990 * jv-lang.c (java_language_defn): Use java_printchar,
3991 java_printstr.
3992 (java_get_encoding): New function.
3993 (java_emit_char): Use generic_emit_char.
3994 (java_printchar): New function.
3995 (java_printstr): Likewise.
3996
25552254
JB
39972011-07-01 Joel Brobecker <brobecker@adacore.com>
3998
3999 * ada-typeprint.c (print_record_type): If unable to decode
4000 the name of the parent type, use the encoded name.
4001
d2d43431
JB
40022011-07-01 Jean-Charles Delay <delay@adacore.com>
4003
4004 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4005 pointer to constrained packed array type output.
4006 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4007 packed array output.
4008
54ae186f
JB
40092011-07-01 Jean-Charles Delay <delay@adacore.com>
4010
4011 * ada-typeprint.c (print_array_type): removed if condition on show
4012 being negative for bounds printing.
4013
8f17729f
JB
40142011-07-01 Joel Brobecker <brobecker@adacore.com>
4015
4016 * ada-lang.c (ada_identical_enum_types_p): New function.
4017 (symbols_are_identical_enums): New function.
4018 (remove_extra_symbols): Do nothing if NSYMS < 2.
4019 Use symbols_are_identical_enums.
4020
f5aa6869
JB
40212011-07-01 Joel Brobecker <brobecker@adacore.com>
4022
4023 * ada-valprint.c (ada_value_print): Handle typedefs.
4024
8f465ea7
JB
40252011-07-01 Joel Brobecker <brobecker@adacore.com>
4026
4027 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4028
828292f2
JB
40292011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4030
4031 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4032 (decode_constrained_packed_array): Likewise.
4033 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4034
18920c42
JB
40352011-07-01 Joel Brobecker <brobecker@adacore.com>
4036
4037 * ada-exp.y (convert_char_literal): Handle typedef types.
4038
c90092fe
JB
40392011-07-01 Joel Brobecker <brobecker@adacore.com>
4040
4041 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4042
f748fb40
TT
40432011-06-30 Tom Tromey <tromey@redhat.com>
4044
4045 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4046 * valops.c (find_overload_match): Call do_cleanups on early exit
4047 path.
4048 * solib.c (solib_find): Call do_cleanups on early exit path.
4049
3bb47e8b
TT
40502011-06-30 Tom Tromey <tromey@redhat.com>
4051
4052 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4053 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4054 return paths. Defer final do_cleanups until last return.
4055 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4056 early return.
4057
4727bad3
TT
40582011-06-30 Tom Tromey <tromey@redhat.com>
4059
4060 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4061
bb361dbf
AB
40622011-06-30 Andrew Burgess <aburgess@broadcom.com>
4063
4064 * MAINTAINERS (Write After Approval): Add myself to the list.
4065
e0d00bc7
JK
40662011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4067
4068 Disable epilogue unwinders on recent GCCs.
4069 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4070 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4071 * dwarf2read.c (process_full_comp_unit): Initialize
4072 EPILOGUE_UNWIND_VALID.
4073 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4074 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4075 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4076
4632c0d0
JK
40772011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4078
4079 Code cleanup - reformatting.
4080 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4081 (producer_is_gcc_ge_4): ... here, change the return value.
4082 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4083 interpretation.
4084
32019081
JK
40852011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4086
4087 Fix non-only rename list for Fortran modules import.
4088 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4089 cp_add_using_directive caller.
4090 (cp_add_using_directive): New parameter excludes, describe it. New
4091 variables ix and param. Compare if also excludes match. Allocate NEW
4092 with variable size, initialize EXCLUDES there.
4093 (cp_lookup_symbol_imports): New variable excludep, test
4094 current->EXCLUDES with it.
4095 * cp-support.h: Include vec.h.
4096 (struct using_direct): New field excludes, describe it.
4097 (DEF_VEC_P (const_char_ptr)): New.
4098 (cp_add_using_directive): New parameter excludes.
4099 * defs.h (const_char_ptr): New typedef.
4100 * dwarf2read.c (read_import_statement): New variables child_die,
4101 excludes and cleanups, read in excludes.
4102 (read_namespace): Adjust the cp_add_using_directive caller.
4103
70c622a3
JK
41042011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4105
4106 Code cleanup.
4107 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4108 negative comparisons.
4109
39c4d40a
TT
41102011-06-29 André Pönitz <andre.poenitz@nokia.com>
4111
4112 * mi/mi-main.c (mi_cmd_list_features): Emit
4113 breakpoint-notifications.
4114
3b2b8fea
TT
41152011-06-29 Tom Tromey <tromey@redhat.com>
4116
4117 PR fortran/10036:
4118 * valprint.h (generic_emit_char, generic_printstr): Declare.
4119 * valprint.c (wchar_printable, append_string_as_wide)
4120 (print_wchar): Move from c-lang.c.
4121 (generic_emit_char): New function; mostly taken from c_emit_char.
4122 (generic_printstr): New function; mostly taken from c_printstr.
4123 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4124 represented as arrays.
4125 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4126 type.
4127 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4128 identically to TYPE_CODE_INT.
4129 * f-lang.c (f_get_encoding): New function.
4130 (f_emit_char): Use generic_emit_char.
4131 (f_printchar): Replace comment.
4132 (f_printstr): Use generic_printstr.
4133 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4134 "character" types specially.
4135 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4136 for Fortran.
4137 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4138 Move to valprint.c
4139 (c_emit_char): Call generic_emit_char.
4140 (c_printstr): Call generic_printstr.
4141
168e6d44
GB
41422011-06-29 Gary Benson <gbenson@redhat.com>
4143
4144 * breakpoint.c (bpstat_what): Removed duplicated case.
4145
1c033f8c
TT
41462011-06-28 Tom Tromey <tromey@redhat.com>
4147
4148 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4149
5fe41fbf
TT
41502011-06-27 Tom Tromey <tromey@redhat.com>
4151
4152 * valops.c (find_overload_match): Call do_cleanups before early
4153 return.
4154 * top.c (execute_command): Call do_cleanups before early return.
4155 (command_loop): Likewise.
4156 * stack.c (backtrace_command): Make a null cleanup early. Don't
4157 conditionally call do_cleanups.
4158 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4159 TRY_CATCH.
4160 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4161 so cleanups are always run.
4162 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4163 * findcmd.c (parse_find_args): Call do_cleanups on early return
4164 path.
4165 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4166 Don't conditionally call do_cleanups.
4167 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4168 later.
4169
e26bd57d
EB
41702011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4171
4172 * MAINTAINERS (Write After Approval): Use default email address.
4173
6c3097fc
JB
41742011-06-27 Joel Brobecker <brobecker@adacore.com>
4175
4176 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4177
369c397b
JB
41782011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4179
4180 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4181 saved_regs_mask and copied_regs_mask fields.
4182 (sparc_record_save_insn): New prototype.
4183 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4184 (sparc_record_save_insn): New function.
4185 (sparc_analyze_prologue): Add head comment. Recognize store insns
4186 of call-saved registers. Use OFFSET consistently. Recognize flat
4187 frames and cache their settings.
4188 (sparc32_skip_prologue): Handle flat frames.
4189 (sparc_frame_cache): Add frame_offset to the base address.
4190 (sparc32_frame_cache): Adjust to new frame description.
4191 (sparc32_frame_prev_register): Likewise.
4192 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4193 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4194 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4195 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4196 frame by calling sparc_record_save_insn.
4197 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4198 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4199 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4200
b315ab21
TG
42012011-06-27 Tristan Gingold <gingold@adacore.com>
4202
4203 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4204 field by map_addr and map_len.
4205 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4206 (munmap_section_buffer): Likewise.
4207
ddd49eee
TT
42082011-06-24 Tom Tromey <tromey@redhat.com>
4209
4210 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4211 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4212 * python/python.c (gdbpy_parameter): Make 'arg' const.
4213 (execute_gdb_command): Likewise.
4214 (gdbpy_decode_line): Likewise. Copy it.
4215 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4216 (gdbpy_write): Make 'arg' const.
4217 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4218 const.
4219 (gdbpy_lookup_type): Likewise.
4220 * python/py-prettyprint.c (print_children): Make 'name' const.
4221 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4222 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4223 Py_ssize_t.
4224 * python/py-function.c (fnpy_init): Make 'name' const.
4225 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4226 (gdbpy_string_to_argv): Make 'input' const.
4227 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4228 it.
4229 * gdbtypes.h (lookup_typename): Update.
4230 * gdbtypes.c (lookup_typename): Make 'name' const.
4231 (lookup_struct): Likewise.
4232 (lookup_union): Likewise.
4233 (lookup_enum): Likewise.
4234
5998129b
TT
42352011-06-24 Tom Tromey <tromey@redhat.com>
4236
4237 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4238 gdb_thread_db.h. Move all common/ entries to be together.
4239 (TAGS): Don't depend on DEPFILES.
4240
6e586cc5
YQ
42412011-06-23 Yao Qi <yao@codesourcery.com>
4242
4243 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4244 * remote.c (remote_start_remote): ... here.
4245 * monitor.c (monitor_open): ... here.
4246
86c3c1fc
AB
42472011-06-23 Andrew Burgess <aburgess@broadcom.com>
4248
4249 * gdbtypes.c (append_composite_type_field_aligned): Fix
4250 calculation of bit position based on alignment.
4251
28010a5d
PA
42522011-06-22 Pedro Alves <pedro@codesourcery.com>
4253
4254 * breakpoint.c (bpstat_stop_status): Call the check_status
4255 breakpoint_ops method.
4256 (print_one_breakpoint_location): Also print the condition for Ada
4257 exception catchpoints.
4258 (allocate_bp_location): New, factored out from
4259 allocate_bp_location.
4260 (allocate_bp_location): Adjust. Call the owner breakpoint's
4261 allocate_location method, if there is one.
4262 (free_bp_location): Call the locations's dtor method, if there is
4263 one.
4264 (init_raw_breakpoint_without_location): New breakpoint_ops
4265 parameter. Use it.
4266 (set_raw_breakpoint_without_location): Adjust.
4267 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4268 (set_raw_breakpoint): Adjust.
4269 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4270 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4271 re_set and check_status methods.
4272 (init_catchpoint): Don't memset, initialize thread, addr_string
4273 and enable_state. Pass the ops down to init_raw_breakpoint.
4274 (install_catchpoint): Rename to ...
4275 (install_breakpoint): ... this, and make extern.
4276 (create_fork_vfork_event_catchpoint): Adjust.
4277 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4278 re_set and check_status methods.
4279 (create_syscall_event_catchpoint): Adjust.
4280 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4281 (masked_watchpoint_breakpoint_ops): Install NULL
4282 allocate_location, re_set and check_status methods.
4283 (catch_exec_command_1): Adjust.
4284 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4285 re_set and check_status methods.
4286 (create_ada_exception_breakpoint): Rename to ...
4287 (init_ada_exception_breakpoint): ... this. Add a struct
4288 breakpoint parameter, and delete the exp_string, cond_string and
4289 cond parameters. Use init_raw_breakpoint, and don't install or
4290 mention the breakpoint yet. Don't clear breakpoint fields that
4291 init_raw_breakpoint already clears.
4292 (re_set_breakpoint): Delete, split into ...
4293 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4294 functions.
4295 (breakpoint_re_set_one): Call the breakpoint's
4296 breakpoint_ops->re_set implementation, if there's one. Adjust.
4297 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4298 (struct bp_location_ops): New type.
4299 (struct bp_location): New field `ops'.
4300 (struct breakpoint_ops): New `allocate_location', `re_set' and
4301 `check_status' fields. Make `breakpoint_hit''s description match
4302 reality.
4303 (init_bp_location): Declare.
4304 (breakpoint_re_set_default): Declare.
4305 (create_ada_exception_breakpoint): Rename to ...
4306 (init_ada_exception_breakpoint): ... this. Add a struct
4307 breakpoint parameter, and delete the exp_string, cond_string and
4308 cond parameters.
4309 (install_breakpoint): Declare.
4310 * ada-lang.c: Include exceptions.h.
4311 <Ada exceptions description>: Update.
4312 (struct ada_catchpoint_location): New type.
4313 (ada_catchpoint_location_dtor): New function.
4314 (ada_catchpoint_location_ops): New global.
4315 (ada_catchpoint): New type.
4316 (create_excep_cond_exprs): New function.
4317 (dtor_exception, allocate_location_exception, re_set_exception)
4318 (should_stop_exception, check_status_exception): New functions.
4319 (print_one_exception, print_mention_exception)
4320 (print_recreate_exception): Adjust.
4321 (dtor_catch_exception, allocate_location_catch_exception)
4322 (re_set_catch_exception, check_status_catch_exception): New
4323 functions.
4324 (catch_exception_breakpoint_ops): Install them.
4325 (dtor_catch_exception_unhandled)
4326 (allocate_location_catch_exception_unhandled)
4327 (re_set_catch_exception_unhandled)
4328 (check_status_catch_exception_unhandled): New functions.
4329 (catch_exception_unhandled_breakpoint_ops): Install them.
4330 (dtor_catch_assert, allocate_location_catch_assert)
4331 (re_set_catch_assert, check_status_catch_assert): New functions.
4332 (catch_assert_breakpoint_ops): Install them.
4333 (ada_exception_catchpoint_p): Delete.
4334 (catch_ada_exception_command_split)
4335 (ada_exception_catchpoint_cond_string): Rename exp_string
4336 parameter to excep_string. Adjust.
4337 (ada_parse_catchpoint_condition): Delete.
4338 (ada_exception_sal): Rename the exp_string parameter to
4339 excep_string. Delete the cond_string and cond parameters.
4340 Adjust.
4341 (ada_decode_exception_location): Rename the exp_string parameter
4342 to excep_string. Delete the cond_string and cond parameters.
4343 Adjust.
4344 (create_ada_exception_catchpoint): New function.
4345 (catch_ada_exception_command, ada_decode_assert_location)
4346 (catch_assert_command): Adjust.
4347 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4348
9ac4176b
PA
43492011-06-22 Pedro Alves <pedro@codesourcery.com>
4350
4351 * ada-lang.c: Include arch-utils.h.
4352 (ada_decode_exception_location): Make static.
4353 (catch_ada_exception_command): Moved here from breakpoint.c.
4354 (ada_decode_assert_location): Make static.
4355 (catch_assert_command): Moved here from breakpoint.c.
4356 (_initialize_ada_lang): Install the exception and assert
4357 catchpoint commands here.
4358 * ada-lang.h (ada_decode_exception_location)
4359 (ada_decode_assert_location): Delete declarations.
4360 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4361 breakpoint.h.
4362 (create_ada_exception_breakpoint): Make extern.
4363 (catch_ada_exception_command, catch_assert_command): Moved to
4364 ada-lang.c.
4365 (add_catch_command): Make extern.
4366 (_initilize_breakpoint): Don't install the exception and assert
4367 catchpoint commands here.
4368 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4369 breakpoint.c
4370 (add_catch_command, create_ada_exception_breakpoint): Declare.
4371
c56053d2
PA
43722011-06-22 Pedro Alves <pedro@codesourcery.com>
4373
4374 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4375 the breakpoint to the breakpoint chain here.
4376 (set_raw_breakpoint_without_location): Add the breakpoint to the
4377 breakpoint chain here.
4378 (init_raw_breakpoint): Adjust comments.
4379 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4380 here.
4381 (init_catchpoint): Don't set the catchpoint's breakpoint number
4382 here.
4383 (install_catchpoint): New function.
4384 (create_fork_vfork_event_catchpoint)
4385 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4386 use install_catchpoint.
4387
d2f3fc74
PA
43882011-06-22 Pedro Alves <pedro@codesourcery.com>
4389
4390 * breakpoint.c (create_catchpoint_without_mention)
4391 (create_catchpoint): Delete.
4392
b4d90040
PA
43932011-06-22 Pedro Alves <pedro@codesourcery.com>
4394
4395 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4396 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4397 reference to exec_pathname.
4398 (struct exec_catchpoint): New type.
4399 (dtor_catch_exec): New function.
4400 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4401 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4402 (catch_exec_command_1): Adjust to use init_catchpoint.
4403 (delete_breakpoint): Remove reference to exec_pathname.
4404
be5c67c1
PA
44052011-06-22 Pedro Alves <pedro@codesourcery.com>
4406
4407 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4408 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4409 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4410 reference to syscalls_to_be_caught.
4411 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4412 NULL `dtor'.
4413 (struct syscall_catchpoint): New type.
4414 (dtor_catch_syscall): New function.
4415 (insert_catch_syscall, remove_catch_syscall)
4416 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4417 (print_recreate_catch_syscall): Adjust.
4418 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4419 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4420 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4421 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4422 (masked_watchpoint_breakpoint_ops)
4423 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4424 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4425 there is one. Remove references to syscalls_to_be_caught.
4426 (catching_syscall_number): Adjust.
4427 * ada-lang.c (catch_exception_breakpoint_ops)
4428 (catch_exception_unhandled_breakpoint_ops)
4429 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4430
e29a4733
PA
44312011-06-22 Pedro Alves <pedro@codesourcery.com>
4432
4433 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4434 field.
4435 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4436 reference to forked_inferior_pid.
4437 (struct fork_catchpoint): New type.
4438 (breakpoint_hit_catch_fork, print_it_catch_fork)
4439 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4440 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4441 (create_fork_vfork_event_catchpoint): Adjust to use
4442 init_catchpoint.
4443
346774a9
PA
44442011-06-22 Pedro Alves <pedro@codesourcery.com>
4445
4446 * breakpoint.c (add_to_breakpoint_chain)
4447 (init_raw_breakpoint_without_location): New functions, factored
4448 out from ...
4449 (set_raw_breakpoint_without_location): ... this one.
4450 (init_raw_breakpoint): New function, factored out from
4451 set_raw_breakpoint and adjusted to use
4452 init_raw_breakpoint_without_location.
4453 (set_raw_breakpoint): Adjust.
4454 (init_catchpoint): New function, factored out from
4455 create_catchpoint_without_mention and adjusted to use
4456 init_raw_breakpoint.
4457 (create_catchpoint_without_mention): Adjust.
4458
c38c4bc5
TT
44592011-06-22 Tom Tromey <tromey@redhat.com>
4460
4461 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4462 argument of 0 specially.
4463
b138ce37
YQ
44642011-06-22 Yao Qi <yao@codesourcery.com>
4465
4466 * infrun.c (handle_inferior_event): Remove write-only local variable
4467 `sw_single_step_trap_p'.
4468
03de6823
TT
44692011-06-20 Tom Tromey <tromey@redhat.com>
4470
4471 * symtab.c (lookup_language_this): End loop if block is NULL.
4472
66a17cb6
TT
44732011-06-17 Tom Tromey <tromey@redhat.com>
4474
4475 * valops.c (value_of_this): Use lookup_language_this.
4476 * symtab.h (lookup_language_this): Declare.
4477 * symtab.c (lookup_language_this): New function.
4478 (lookup_symbol_aux): Use lookup_language_this.
4479 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4480
7518bff5
TT
44812011-06-17 Tom Tromey <tromey@redhat.com>
4482
4483 * value.h (value_of_this): Update.
4484 (value_of_local): Remove.
4485 * valops.c (value_of_this): Rename from value_of_local. Change
4486 parameters.
4487 * p-exp.y (exp): Update.
4488 (variable): Likewise.
4489 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4490
aee28ec6
TT
44912011-06-17 Tom Tromey <tromey@redhat.com>
4492
4493 * valops.c (value_of_local): Complain if NAME is NULL.
4494 * std-operator.def (OP_OBJC_SELF): Remove.
4495 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4496 * objc-exp.y (name_not_typename): Use OP_THIS.
4497 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4498 name for "this".
4499 <OP_OBJC_SELF>: Remove.
4500 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4501
eed8f803
TG
45022011-06-16 Tristan Gingold <gingold@adacore.com>
4503
4504 * python/py-events.h (gdb_py_events): Make it extern.
4505 * python/py-evtregistry.c (gdb_py_events): Declare.
4506
864ac8a7
HZ
45072011-06-16 Hui Zhu <teawater@gmail.com>
4508
4509 * remote.c (remote_trace_set_readonly_regions): Add check for
4510 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4511 output warning.
4512
ef7e8358
UW
45132011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4514
4515 * arm-linux-tdep.c: Include "auxv.h".
4516 (AT_HWCAP): Define.
4517 (ARM_LINUX_SIZEOF_VFP): Define.
4518 (arm_linux_supply_vfp): New function.
4519 (arm_linux_collect_vfp): Likewise.
4520 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4521 (arm_linux_fpa_regset_sections): New variable.
4522 (arm_linux_vfp_regset_sections): Likewise.
4523 (arm_linux_core_read_description): New function.
4524 (arm_linux_init_abi): Install arm_linux_core_read_description and
4525 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4526 appropriate for the architecture.
4527 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4528 (tdesc_arm_with_m): Declare.
4529 (tdesc_arm_with_iwmmxt): Likewise.
4530 (tdesc_arm_with_vfpv2): Likewise.
4531 (tdesc_arm_with_vfpv3): Likewise.
4532 (tdesc_arm_with_neon): Likewise.
4533 * arm-linux-nat.c: Move features/*.c includes ...
4534 * arm-tdep.c: ... here.
4535 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4536 target description data structures ...
4537 * arm-tdep.c (_initialize_arm_tdep): ... here.
4538 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4539 HWCAP_VFPv3D16): Move definitions ...
4540 * arm-linux-tdep.h: ... here.
4541
c2fa21f1
HZ
45422011-06-15 Hui Zhu <teawater@gmail.com>
4543
4544 * remote.c (remote_trace_set_readonly_regions): Add a check for
4545 target_buf_size.
4546
dd707e8e
TT
45472011-06-14 Tom Tromey <tromey@redhat.com>
4548
4549 * coffread.c (coffread_objfile): Rename from current_objfile.
4550 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4551 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4552
86cc0029
TT
45532011-06-14 Tom Tromey <tromey@redhat.com>
4554
4555 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4556 (class_symtab): Remove.
4557 (jv_dynamics_progspace_key): New global.
4558 (jv_per_objfile_free): Reset program space data. Update assert.
4559 Don't clear globals.
4560 (get_dynamics_objfile): Use and set program space data.
4561 (get_java_class_symtab): Use get_dynamics_objfile.
4562 (add_class_symbol): Likewise.
4563 (java_link_class_type): Likewise.
4564 (java_object_type, jv_clear_object_type, set_java_object_type):
4565 Remove.
4566 (get_java_object_type): Update. Don't cache result.
4567 (is_object_type): Don't call set_java_object_type.
4568 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4569 initialize jv_dynamics_progspace_key.
4570
91a81f69
TT
45712011-06-14 Tom Tromey <tromey@redhat.com>
4572
4573 * symtab.h (current_objfile): Don't declare.
4574 * objfiles.h (current_objfile): Don't declare.
4575 * objfiles.c (current_objfile): Remove.
4576 * mdebugread.c (current_objfile): New file-scope global.
4577 * dbxread.c (current_objfile): New file-scope global.
4578 * coffread.c (current_objfile): New file-scope global.
4579
dc7eb48e
PA
45802011-06-13 Pedro Alves <pedro@codesourcery.com>
4581
4582 * top.h (line): Rename to ...
4583 (saved_command_line): ... this.
4584 (linesize): Rename to ...
4585 (saved_command_line_size): ... this.
4586 * top.c (line): Rename to ...
4587 (saved_command_line): ... this.
4588 (linesize): Rename to ...
4589 (saved_command_line_size): ... this.
4590 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4591 * event-top.c (command_line_handler): Adjust.
4592 * main.c (captured_main): Adjust.
4593
0d6c2135
MK
45942011-06-12 Mark Kettenis <kettenis@gnu.org>
4595
4596 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4597 get_frame_func instead of get_frame_pc to determine the code
4598 address used to construct the frame ID.
4599 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4600 (i386_epilogue_frame_this_id): Likewise.
4601 (i386_epilogue_frame_prev_register): New function.
4602 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4603 (i386_stack_tramp_frame_sniffer): Fix coding style.
4604 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4605 (i386_gdbarch_init): Fix comments.
4606
8bbdd3f4
MK
46072011-06-12 Mark Kettenis <kettenis@gnu.org>
4608
4609 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4610 instruction when walking back through the instruction stream.
4611
533a737e
JK
46122011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4613
4614 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4615 fullname parameters order.
4616
44b13c5a
JK
46172011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4618
4619 Code cleanup.
4620 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4621 for fun.
4622 * psymtab.c (map_symbol_filenames_psymtab)
4623 (map_partial_symbol_filenames): Likewise.
4624 * psymtab.h: Include symfile.h.
4625 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4626 * symfile.h (symbol_filename_ftype): New.
4627 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4628 map_symbol_filenames, clarify more the naming in comment.
4629
0b5574da
DE
46302011-06-07 Doug Evans <dje@google.com>
4631
4632 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 4633 Look for ../../gdb, for fullname.exp.
0b5574da 4634
5be4dfca
JK
46352011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4636 Pedro Alves <pedro@codesourcery.com>
4637
4638 * cli/cli-cmds.c (shell_escape): Use waitpid.
4639 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4640
316a8b21
TG
46412011-06-07 Tristan Gingold <gingold@adacore.com>
4642
4643 * xcoffread.c (dwarf2_xcoff_names): New variable.
4644 (aix_process_linenos): Add a guard.
4645 (xcoff_symfile_finish): Free dwarf2.
4646 (xcoff_initial_scan): Add dwarf2 support.
4647
3dd5b83d
PA
46482011-06-06 Pedro Alves <pedro@codesourcery.com>
4649
4650 * infcall.c (run_inferior_call): Don't mask async. Instead force
4651 a synchronous wait, if the target can async.
4652
4653 * target.h (struct target_ops): Delete to_async_mask.
4654 (target_async_mask): Delete.
4655 * target.c (update_current_target): Delete references to to_async_mask.
4656 * linux-nat.c (linux_nat_async_mask_value): Delete.
4657 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4658 to linux_nat_async_mask_value.
4659 (linux_nat_async_mask): Delete.
4660 (linux_nat_async, linux_nat_close): Remove references to
4661 linux_nat_async_mask_value.
4662 * record.c (record_async_mask_value): Delete.
4663 (record_async): Remove references to record_async_mask_value.
4664 (record_async_mask): Delete.
4665 (record_can_async_p, record_is_async_p): Remove references to
4666 record_async_mask_value.
4667 (init_record_ops, init_record_core_ops): Remove references to
4668 record_async_mask.
4669 * remote.c (remote_async_mask_value): Delete.
4670 (init_remote_ops): Remove reference to remote_async_mask.
4671 (remote_can_async_p, remote_is_async_p): Remove references to
4672 remote_async_mask_value.
4673 (remote_async): Remove references to remote_async_mask_value.
4674 (remote_async_mask): Delete.
4675
4676 * infrun.c (fetch_inferior_event): Don't claim registers changed
4677 if the current thread is already not executing.
4678
64b9b334
JB
46792011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4680
4681 From Stephen Kitt <steve@sk2.org>
4682 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4683 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4684
325663dc
JB
46852011-06-03 Joel Brobecker <brobecker@adacore.com>
4686
4687 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4688 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4689
8cf64490
TT
46902011-06-03 Tom Tromey <tromey@redhat.com>
4691
4692 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4693 code fields.
4694 * python/py-exitedevent.c (create_exited_event_object): Change
4695 type of 'exit_code'. Optionally add exit_code attribute.
4696 (emit_exited_event): Change type of 'exit_code'.
4697 * python/py-event.h (emit_exited_event): Update.
4698 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4699 * infrun.c (handle_inferior_event): Set exit code fields on
4700 inferior.
4701 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4702 fields.
4703 * inferior.c (exit_inferior_1): Initialize new fields.
4704
8ddd9a20
TT
47052011-06-03 Tom Tromey <tromey@redhat.com>
4706
4707 * dwarf2expr.c (get_signed_type): New function.
4708 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4709
8dfd1e6d
KS
47102011-06-02 Keith Seitz <keiths@redhat.com>
4711
4712 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4713
65fdb766
PA
47142011-06-02 Pedro Alves <pedro@codesourcery.com>
4715
4716 * top.h (simplified_command_loop): Delete declaration.
4717
f4b8c29b
MF
47182011-06-01 Mike Frysinger <vapier@gentoo.org>
4719
4720 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4721 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4722
1706c199
YQ
47232011-06-01 Yao Qi <yao@codesourcery.com>
4724
4725 * objfiles.h (obj_section_addr): Update reference to objfile from
4726 `abfd' to `obfd'.
4727 (obj_section_endaddr): Likewise.
4728
d19cd713 47292011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
4730
4731 * MAINTAINERS: Update my email address and affiliation. Also
4732 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4733
e8eb7bc5
KS
47342010-05-31 Keith Seitz <keiths@redhat.com>
4735
4736 PR c++/12750
4737 * linespec.c (get_search_block): New function.
4738 (find_methods): Add FILE_SYMTATB parameter and use it and
4739 get_search_block to pass an appropriate block to
4740 lookup_symbol_in_namespace.
4741 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4742 Check if *ARGPTR starts with a filename first.
4743 If it does, call locate_first_half again to locate the next
4744 "first half" of the linespec.
4745 Pass FILE_SYMTATB to decode_objc and decode_compound.
4746 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4747 (locate_first_half): Stop on the first colon seen.
4748 (decode_compound): Add FILE_SYMTAB parameter.
4749 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4750 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4751 get_search_block with lookup_symbol.
4752 (find_method): Add FILE_SYMTAB parameter and pass it to
4753 find_methods.
4754 (decode_objc): Use get_search_block.
4755
2b1dbab0
KS
47562010-05-31 Keith Seitz <keiths@redhat.com>
4757
4758 PR symtab/12704
4759 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4760 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4761 and CP_ANONYMOUS_NAMESPACE_LEN.
4762 (cp_is_anonymous): Likewise.
4763 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4764 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4765 * dwarf2read.c (namespace_name): Likewise.
4766 (fixup_partial_die): Likewise.
4767 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4768 seen in the input, keep it.
4769
6d549500
PA
47702011-05-30 Pedro Alves <pedro@codesourcery.com>
4771
4772 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4773 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4774 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4775 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4776 * remote.c (_initialize_remote): Register
4777 async_remote_interrupt_twice directly as
4778 sigint_remote_twice_token event.
4779
395bff70
PA
47802011-05-30 Pedro Alves <pedro@codesourcery.com>
4781
4782 * target.h (enum inferior_event_type): Delete INF_ERROR.
4783 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4784
97224164
PA
47852011-05-30 Pedro Alves <pedro@codesourcery.com>
4786
4787 * interps.c (interp_set): Don't cancel continuations.
4788
07e78767
JK
47892011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4790
4791 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4792
fa4cd53f
PA
47932011-05-30 Pedro Alves <pedro@codesourcery.com>
4794
4795 * continuations.h (continuation_ftype): Add `err' parameter.
4796 Document parameters.
4797 (do_all_continuations, do_all_continuations_thread)
4798 (do_all_intermediate_continuations)
4799 (do_all_intermediate_continuations_thread)
4800 (do_all_inferior_continuations): Add `err' parameter.
4801 * continuations.c (do_my_continuations_1, do_my_continuations)
4802 (do_all_inferior_continuations, do_all_continuations_ptid)
4803 (do_all_continuations_thread_callback)
4804 (do_all_continuations_thread, do_all_continuations)
4805 (do_all_intermediate_continuations_thread_callback)
4806 (do_all_intermediate_continuations_thread)
4807 (do_all_intermediate_continuations): Add `err' parameter, and pass
4808 it down all the way to the continuations proper.
4809 * inf-loop.c (inferior_event_handler): If fetching an inferior
4810 event throws an error, don't pop the target, and still call the
4811 continuations, but with `err' set. Adjust all other continuation
4812 calls.
4813 * breakpoint.c (until_break_command_continuation): Add `err'
4814 parameter.
4815 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4816 issue another step if `err' is set.
4817 (struct until_next_continuation_args): New.
4818 (until_next_continuation): Add `err' parameter. Adjust.
4819 (until_next_command): Adjust.
4820 (struct finish_command_continuation_args): Add `thread' field.
4821 (finish_command_continuation): Add `err' parameter. Handle it.
4822 (finish_forward): Adjust.
4823 (attach_command_continuation): Add `err' parameter. Handle it.
4824 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4825 cancel the continuations.
4826 * interps.c (interp_set): Adjust to cancel the continuations.
4827 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4828 continuations rather than discarding.
4829 (free_thread): Don't clear thread inferior resources here.
4830 (delete_thread_1): Do it here instead. And do it before removing
4831 the thread from the threads list. Tag the thread as exited before
4832 clearing thread inferior resources.
4833
c2949be0
JB
48342011-05-30 Joel Brobecker <brobecker@adacore.com>
4835
4836 * infcall.c (call_function_by_hand): Rephrase error message.
4837
619cebe8
PA
48382011-05-27 Pedro Alves <pedro@codesourcery.com>
4839
4840 * defs.h (struct thread_info, struct inferior): Delete forward
4841 declarations.
4842 * breakpoint.h (struct thread_info): New forward declaration.
4843 * observer.sh (struct inferior): New forward declaration.
4844 * python/python-internal.h (struct inferior): New forward
4845 declaration.
4846
be34f849
PA
48472011-05-27 Pedro Alves <pedro@codesourcery.com>
4848
4849 * defs.h (struct continuation, continuation_ftype)
4850 (continuation_free_arg_ftype, add_continuation)
4851 (do_all_continuations, do_all_continuations_thread)
4852 (discard_all_continuations, discard_all_continuations_thread)
4853 (add_intermediate_continuation, do_all_intermediate_continuations)
4854 (do_all_intermediate_continuations_thread)
4855 (discard_all_intermediate_continuations)
4856 (discard_all_intermediate_continuations_thread)
4857 (add_inferior_continuation, do_all_inferior_continuations)
4858 (discard_all_inferior_continuations): Move to ...
4859 * continuations.h: ... this new file.
4860 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4861 infcmd.c, inferior.c, infrun.c, interps.c: Include
4862 continuations.h.
4863
432b4d03
JK
48642011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4865 Doug Evans <dje@google.com>
4866
4867 Fix PR 10970, PR 12702.
4868 * linux-nat.c (linux_lwp_is_zombie): New function.
4869 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4870 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4871
b0f260d6
PA
48722011-05-27 Pedro Alves <pedro@codesourcery.com>
4873
4874 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4875 typedefs.
4876 (add_continuation, add_intermediate_continuation)
4877 (add_inferior_continuation): Use them.
4878 * continuations.c (struct continuation): Use them.
4879 (make_continuation_ftype): Delete.
4880 (make_continuation, add_inferior_continuation, add_continuation)
4881 (add_intermediate_continuation): Use continuation_ftype and
4882 continuation_free_arg_ftype. Rename parameters to shorter names.
4883
af1e9a32
PA
48842011-05-27 Pedro Alves <pedro@codesourcery.com>
4885
4886 * continuations.c (make_continuation): Make it return void.
4887 (do_my_continuations): Rename to ...
4888 (do_my_continuations_1): ... this. Remove old_chain parameter and
4889 adjust.
4890 (do_my_continuations): New.
4891 (discard_my_continuations): Rename to ...
4892 (discard_my_continuations_1): ... this. Remove old_chain
4893 parameter and adjust.
4894 (discard_my_continuations): New.
4895 (add_inferior_continuation): Simplify.
4896 (do_all_inferior_continuations): Reimplement on top
4897 do_my_continuations.
4898 (discard_all_inferior_continuations): Simplify.
4899 (add_continuation): Simplify.
4900 (do_all_continuations_ptid): Simplify.
4901 (discard_all_continuations_thread_callback): Simplify.
4902 (add_intermediate_continuation): Simplify.
4903 (discard_all_intermediate_continuations_thread_callback):
4904 Simplify.
4905
50c0c017
PA
49062011-05-27 Pedro Alves <pedro@codesourcery.com>
4907
4908 * utils.c (struct continuation, add_continuation)
4909 (add_inferior_continuation)
4910 (do_all_inferior_continuations, discard_all_inferior_continuations)
4911 (restore_thread_cleanup, do_all_continuations_ptid)
4912 (do_all_continuations_thread_callback)
4913 (do_all_continuations_thread, do_all_continuations)
4914 (discard_all_continuations_thread_callback)
4915 (discard_all_continuations_thread, discard_all_continuations)
4916 (add_intermediate_continuation)
4917 (do_all_intermediate_continuations_thread_callback)
4918 (do_all_intermediate_continuations_thread)
4919 (do_all_intermediate_continuations)
4920 (discard_all_intermediate_continuations_thread_callback)
4921 (discard_all_intermediate_continuations_thread)
4922 (discard_all_intermediate_continuations): Move to ...
4923 * continuations.c: ... this new file, and adjust to no longer
4924 implement continuations on top of cleanups.
4925 * Makefile.in (SFILES): Add continuations.c.
4926 (COMMON_OBS): Add continuations.o.
4927
d8b34453
PA
49282011-05-26 Pedro Alves <pedro@codesourcery.com>
4929
4930 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4931 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4932 Internal error on invalid values.
4933 * reverse.c: Don't handle EXEC_ERROR.
4934 * mi/mi-main.c: Don't handle EXEC_ERROR.
4935
32231432
PA
49362011-05-26 Pedro Alves <pedro@codesourcery.com>
4937
4938 * record.c: Include event-loop.h, inf-loop.h.
4939 (record_beneath_to_async): New global.
4940 (tmp_to_async): New global.
4941 (record_async_inferior_event_token): New global.
4942 (record_open_1): Don't error out if async is enabled.
4943 (record_open): Handle to_async. Create an async event source in
4944 the event loop.
4945 (record_close): Delete the async event source.
4946 (record_resumed): New global.
4947 (record_execution_dir): New global.
4948 (record_resume, record_core_resume): Set them. Register the
4949 target on the event loop.
4950 (record_wait): Rename to ...
4951 (record_wait_1): ... this. Add more debug output. Handle
4952 TARGET_WNOHANG, and the target beneath returning
4953 TARGET_WAITKIND_IGNORE.
4954 (record_wait): Reimplement on top of record_wait_1.
4955 (record_async_mask_value): New global.
4956 (record_async, record_async_mask, record_can_async_p)
4957 (record_is_async_p, record_execution_direction): New functions.
4958 (init_record_ops, init_record_core_ops): Install new methods.
4959 * infrun.c (fetch_inferior_event): Temporarily switch the global
4960 execution direction to the direction the target was going.
4961 (execution_direction): Change type to int.
4962 * target.c (default_execution_direction): New function.
4963 (update_current_target): Inherit and de_fault
4964 to_execution_direction.
4965 * target.h (struct target_ops) <to_execution_direction>: New
4966 field.
4967 (target_execution_direction): New macro.
4968 * inferior.h (execution_direction): Change type to int.
4969
949dc678
PA
49702011-05-26 Pedro Alves <pedro@codesourcery.com>
4971
4972 * infcall.c (call_function_by_hand): Don't allow calling functions
4973 in reverse execution mode.
4974
c13bd2b5
PA
49752011-05-26 Pedro Alves <pedro@codesourcery.com>
4976
4977 * infcmd.c (finish_command): Allow async finish in reverse.
4978
6938fd34
YQ
49792011-05-26 Yao Qi <yao@codesourcery.com>
4980
4981 * gdb_thread_db.h: Delete. Move to ...
4982 * common/gdb_thread_db.h: ... here.
4983
9da8c2a0
PA
49842011-05-26 Pedro Alves <pedro@codesourcery.com>
4985
4986 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
4987 function's entry point instead of a manually managed momentary
4988 breakpoint, and only ever issue one proceed call.
4989 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
4990 doing a reverse-finish, switch to stepi mode, to do another step.
4991 (insert_step_resume_breakpoint_at_sal): Make public.
4992 (normal_stop): No need to save function value return registers if
4993 going reverse.
4994 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
4995
2c03e5be
PA
49962011-05-26 Pedro Alves <pedro@codesourcery.com>
4997
4998 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
4999 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5000 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5001 at the end.
5002 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5003 step-resume breakpoints.
5004 (print_it_typical): Handle bp_hp_step_resume.
5005 (bpstat_what): Ditto.
5006 (bptype_string): Ditto.
5007 (print_one_breakpoint_location): Ditto.
5008 (allocate_bp_location): Ditto.
5009 (mention): Ditto.
5010 (breakpoint_re_set_one): Ditto.
5011 * infrun.c (handle_inferior_event): Adjust. Split
5012 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5013 BPSTAT_WHAT_HP_STEP_RESUME.
5014 (insert_step_resume_breakpoint_at_sal): Rename to ...
5015 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5016 parameter. Handle it.
5017 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5018 insert_step_resume_breakpoint_at_sal_1.
5019 (insert_step_resume_breakpoint_at_frame): Rename to ...
5020 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5021 set a high-priority step-resume breakpoint.
5022 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5023 (insert_step_resume_breakpoint_at_caller): Ditto.
5024
51be5b68
PA
50252011-05-26 Pedro Alves <pedro@codesourcery.com>
5026
5027 * breakpoint.c (iterate_over_related_breakpoints): New.
5028 (do_map_delete_breakpoint): New.
5029 (delete_command): Pass do_map_delete_breakpoint to
5030 map_breakpoint_numbers.
5031 (do_disable_breakpoint): New.
5032 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5033 breakpoints.
5034 (do_enable_breakpoint): Rename to ...
5035 (enable_breakpoint_disp): ... this.
5036 (enable_breakpoint): Adjust.
5037 (do_enable_breakpoint): New.
5038 (enable_once_breakpoint): Delete.
5039 (do_map_enable_breakpoint): New.
5040 (do_map_enable_once_breakpoint): New.
5041 (enable_once_command, enable_delete_command)
5042 (delete_trace_command): Iterate over the breakpoint's related
5043 breakpoints.
5044
4a1be8d2
PA
50452011-05-26 Pedro Alves <pedro@codesourcery.com>
5046
5047 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5048 for ALPHA_ZERO_REGNUM.
5049 (alpha_supply_int_regs): Explicitly supply zero as the value for
5050 ALPHA_ZERO_REGNUM in the register cache.
5051 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5052
59d70315
YQ
50532011-05-26 Yao Qi <yao@codesourcery.com>
5054
5055 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5056
251d32d9
TG
50572011-05-26 Tristan Gingold <gingold@adacore.com>
5058
5059 * symfile.h (struct dwarf2_section_names): New type.
5060 (struct dwarf2_debug_sections): New type.
5061 (dwarf2_has_info): Add parameter.
5062 * dwarf2read.c (dwarf2_elf_names): New variable.
5063 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5064 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5065 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5066 (dwarf2_has_info): Add names parameter. Pass names
5067 to dwarf2_locate_sections.
5068 (section_is_p): Rewrite using the names parameter.
5069 (dwarf2_locate_sections): Use section names from the names parameter.
5070 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5071 * elfread.c (read_psyms): Ditto.
5072 * machoread.c (macho_symfile_read): Ditto.
5073
652c71b4
AS
50742011-05-25 Andreas Schwab <schwab@redhat.com>
5075
5076 PR gdb/8677
5077 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5078
f17170e5
KS
50792011-05-24 Keith Seitz <keiths@redhat.com>
5080
5081 PR breakpoint/12803
5082 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5083 (decode_compound): Unconditionally call keep_name_info.
5084
cdac0397
PA
50852011-05-24 Pedro Alves <pedro@codesourcery.com>
5086
5087 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5088 scope, clear its command list.
5089 (map_breakpoint_numbers): Don't walk the related breakpoints list
5090 of each breakpoint.
5091
91d4fe3f
TT
50922011-05-24 Tom Tromey <tromey@redhat.com>
5093
5094 * MAINTAINERS: Move Jim Blandy to past maintainers.
5095
3017a003
TG
50962011-05-24 Tristan Gingold <gingold@adacore.com>
5097
5098 * symfile.h (enum dwarf2_section_enum): New type.
5099 (dwarf2_get_section_info): New prototype.
5100 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5101 section_name by sect. Use a switch to select the info.
5102 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5103 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5104
c91c8c16
PA
51052011-05-24 Pedro Alves <pedro@codesourcery.com>
5106
5107 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5108 shared library event breakpoint if there's no execution.
5109
77bc418a
TJB
51102011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5111
5112 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5113 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5114
c50491a7
TT
51152011-05-23 Tom Tromey <tromey@redhat.com>
5116
5117 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5118 NULL.
5119
6d64e6d4
DE
51202011-05-23 Doug Evans <dje@google.com>
5121
5122 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5123 entry for RuntimeError to doc string.
5124
2067c8d4
JG
51252011-05-23 Jerome Guitton <guitton@adacore.com>
5126
5127 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5128 sequence for probing loops.
5129
b136cd05
PA
51302011-05-23 Pedro Alves <pedro@codesourcery.com>
5131
5132 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5133 comment.
5134
22e74ef9
MK
51352011-05-21 Mark Kettenis <kettenis@gnu.org>
5136
5137 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5138 zero as the value for %g0 in the register cache.
5139 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5140 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5141
842951eb
PA
51422011-05-20 Pedro Alves <pedro@codesourcery.com>
5143
5144 * infrun.c (proceed): Set previous_inferior_ptid here.
5145 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5146 inferior_ptid, not null_ptid.
5147 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5148 (fetch_inferior_event): Nor here.
5149
46cf51e6
PA
51502011-05-20 Pedro Alves <pedro@codesourcery.com>
5151
5152 * inf-loop.c (inferior_event_handler): Only output a message if
5153 verbose.
5154
29ef4c46
LM
51552011-05-20 Luis Machado <lgustavo@codesourcery.com>
5156
5157 * MAINTAINERS: Update my e-mail address.
5158
f148b27e
PA
51592011-05-20 Pedro Alves <pedro@codesourcery.com>
5160
5161 * infrun.c (proceed): Switch the inferior event loop to
5162 INF_EXEC_COMPLETE if the target refused to resume from a
5163 vfork/fork.
5164
09cee04b
PA
51652011-05-20 Pedro Alves <pedro@codesourcery.com>
5166
5167 * infcmd.c: Include "inf-loop.h".
5168 (step_once): When stepping into an inline subroutine, pretend the
5169 target has run. If the target can async, switch the inferior
5170 event loop to INF_EXEC_COMPLETE.
5171 * inferior.h (user_visible_resume_ptid): Declare.
5172 * infrun.c (user_visible_resume_ptid): New function, factored out
5173 from `resume'.
5174 (resume): Use it.
5175 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5176 that the current thread is running. Merge async and sync
5177 branches.
5178
751b8ce1
PA
51792011-05-20 Pedro Alves <pedro@codesourcery.com>
5180
5181 * infcmd.c (step_1): Simplify synchronous case.
5182
e93a69ed
PA
51832011-05-20 Pedro Alves <pedro@codesourcery.com>
5184
5185 * tracepoint.c: Include exceptions.h.
5186 (TFILE_PID): Move higher in file.
5187 (tfile_open): Delay pushing the tfile target until we're assured
5188 the tfile header is present in the file. Wrap reading the initial
5189 newline-terminated lines in TRY_CATCH. Pop the target if the
5190 initial setup failed. Add the tfile's thread immediately
5191 aftwards, before any non-essential setup. Don't skip
5192 post_create_inferior if there are no traceframes present in the
5193 file.
5194 (tfile_close): Remove redundant check for null before xfree call.
5195 (tfile_thread_alive): New function.
5196 (init_tfile_ops): Register it as to_thread_alive callback.
5197
6823e2b1
PA
51982011-05-20 Pedro Alves <pedro@codesourcery.com>
5199
5200 * tracepoint.c (tfile_open): Delete #if 0'd code.
5201
b3c8eb43
JK
52022011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5203
5204 Fix -readnow for -gdwarf-4 unused type units.
5205 * dwarf2read.c (struct signatured_type): Remove the field offset.
5206 (create_signatured_type_table_from_index): Remove its initialization.
5207 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5208 instead. Add a complaint call.
5209 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5210 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5211 (lookup_signatured_type_at_offset, read_signatured_type)
5212 (write_one_signatured_type): Update the field for per_cu.
5213
310afc76
TT
52142011-05-19 Tom Tromey <tromey@redhat.com>
5215
5216 * python/py-inferior.c (python_inferior_exit): Use
5217 target_gdbarch.
5218 (python_on_resume): Likewise.
5219
cf6c5ffb
TT
52202011-05-19 Matt Rice <ratmice@gmail.com>
5221
5222 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5223
fb80a3c5
HZ
52242011-05-19 Hui Zhu <teawater@gmail.com>
5225
5226 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5227
3672b1be
HZ
52282011-05-19 Hui Zhu <teawater@gmail.com>
5229
5230 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5231
ff355380
TT
52322011-05-18 Tom Tromey <tromey@redhat.com>
5233
5234 * dwarf2read.c (dwarf2_add_field): Constify.
5235 * value.c (value_static_field): Constify.
5236 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5237 Now const.
5238 * ax-gdb.c (gen_static_field): Constify
5239
ed731959
JK
52402011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5241
5242 * linux-nat.c (kill_callback): Use SIGKILL first.
5243
967cff16
JB
52442011-05-18 Joel Brobecker <brobecker@adacore.com>
5245
5246 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5247
1d06ead6
TT
52482011-05-18 Tom Tromey <tromey@redhat.com>
5249
5250 * value.c (value_fn_field): Constify.
5251 * symtab.c (gdb_mangle_name): Constify.
5252 * stabsread.c (update_method_name_from_physname): Make 'physname'
5253 argument const.
5254 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5255 const. Use explicit fputc_filtered loop.
5256 (pascal_type_print_base): Constify.
5257 * p-lang.h (pascal_type_print_method_args): Update.
5258 * linespec.c (add_matching_methods): Constify.
5259 (add_constructors): Likewise.
5260 * jv-typeprint.c (java_type_print_base): Constify.
5261 * gdbtypes.h (struct cplus_struct_type)
5262 <fn_fieldlist.fn_field.physname>: Now const.
5263 * dwarf2read.c (compute_delayed_physnames): Constify.
5264 (dwarf2_add_member_fn): Likewise.
5265 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5266
0d9a9a5f
PA
52672011-05-18 Pedro Alves <pedro@codesourcery.com>
5268
5269 * infrun.c (resume): Mention which is the current thread, and its
5270 current PC in debug output.
5271 (prepare_to_proceed): Mention the thread switching in debug
5272 output.
5273
05386e9e
TT
52742011-05-18 Tom Tromey <tromey@redhat.com>
5275
5276 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5277 path check. Use xmalloc and cleanups.
5278 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5279
ee86786c
TT
52802011-05-17 Tom Tromey <tromey@redhat.com>
5281
5282 * cp-valprint.c (cp_print_value_fields): Catch errors from
5283 value_static_field.
5284
9ff3b74f
TT
52852011-05-17 Tom Tromey <tromey@redhat.com>
5286
5287 * dwarf2read.c (dwarf2_get_die_type): Call
5288 get_die_type_at_offset.
5289 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5290 get_base_type function.
5291
cd3da28e
PA
52922011-05-17 Tomas Martinec <fyzmat@gmail.com>
5293
5294 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5295 trap_expected.
5296
fd20d931
DE
52972011-05-16 Doug Evans <dje@google.com>
5298
5299 * python/py-auto-load.c (source_section_scripts): Mention objfile
5300 name in warning.
5301
75fc9810
DE
53022011-05-15 Doug Evans <dje@google.com>
5303
290351b8
DE
5304 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5305 (try_thread_db_load_from_pdir): Call it. If unable to find
5306 libthread_db in directory of libpthread, see if we're looking at
5307 the separate-debug-info copy.
5308
75fc9810
DE
5309 * python/py-autoload.c (print_script): Print "Missing" instead of
5310 "No" for missing scripts.
5311 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5312
9f7bc587
DE
53132011-05-13 Doug Evans <dje@google.com>
5314
5315 * ui-file.c (stdio_file_write_async_safe): Add comment.
5316
093cee7d
HZ
53172011-05-14 Hui Zhu <teawater@gmail.com>
5318
5319 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5320
dbaefcf7
DE
53212011-05-13 Doug Evans <dje@google.com>
5322
98a5dd13
DE
5323 Support $pdir and $sdir in libthread-db-search-path.
5324 * NEWS: Mention $sdir,$pdir.
5325 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5326 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5327 (try_thread_db_load_from_sdir): New function.
5328 (try_thread_db_load_from_dir): New function.
5329 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5330 system directories if search of libthread-db-search-path fails,
5331 that is now done via $sdir.
5332 (has_libpthread): New function.
5333 (thread_db_load): Remove search for libthread_db in directory of
5334 libpthread, that is now done via $pdir.
5335
dbaefcf7
DE
5336 * NEWS: Mention "info auto-load-scripts".
5337 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5338 script_not_found_warning_printed.
5339 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5340 all callers updated. Initialize script_not_found_warning_printed.
5341 (get_auto_load_pspace_data_for_loading): New function.
5342 (maybe_add_script): New function.
5343 (source_section_scripts): Simplify. Only print one warning regardless
5344 of the number of auto-load scripts not found.
5345 (clear_section_scripts): Clear script_not_found_warning_printed.
5346 (auto_load_objfile_script): Record script in hash table.
5347 (count_matching_scripts): New function.
5348 (maybe_print_script): Renamed from maybe_print_section_script, all
5349 callers updated. Rewrite to use ui_out_*.
5350 (info_auto_load_scripts): Renamed from
5351 maintenance_print_section_scripts, all callers updated.
5352 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5353 renamed as "info auto-load-scripts".
5354
9930639c
TT
53552011-05-13 Tom Tromey <tromey@redhat.com>
5356
5357 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5358 (read_sleb128): Likewise.
5359
06826322
TT
53602011-05-13 Tom Tromey <tromey@redhat.com>
5361
5362 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5363 offset display.
5364
01124a23
DE
53652011-05-13 Doug Evans <dje@google.com>
5366
5367 * linux-nat.c (debug_linux_nat_async): Delete.
5368 Replace all references to use debug_linux_nat instead.
5369 (show_debug_linux_nat_async): Delete.
5370 (sigchld_handler): Call ui_file_write_async_safe instead of
5371 fprintf_unfiltered.
5372 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5373 * ui-file.c (struct ui_file): New member to_write_async_safe.
5374 (null_file_write_async_safe): New function.
5375 (ui_file_write_async_safe): New function.
5376 (set_ui_file_write_async_safe): New function.
5377 (ui_file_new): Initialize to_write_async_safe.
5378 (stdio_file_write_async_safe): New function.
5379 (struct stdio_file): New member fd.
5380 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
5381 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5382 fileno.
01124a23
DE
5383 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5384 (set_ui_file_write_async_safe): Declare.
5385 (ui_file_write_async_safe): Declare.
5386
72fc29ff
TT
53872011-05-13 Tom Tromey <tromey@redhat.com>
5388
5389 * utils.c (do_value_free): New function.
5390 (make_cleanup_value_free): Likewise.
5391 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5392 freeing correctly.
5393 (dwarf2_loc_desc_needs_frame): Call
5394 make_cleanup_value_free_to_mark.
5395 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5396 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5397 value_free_to_mark.
5398 (new_dwarf_expr_context): Don't call value_mark.
5399 * dwarf2-frame.c (execute_stack_op): Call
5400 make_cleanup_value_free_to_mark.
5401 * defs.h (make_cleanup_value_free): Declare.
5402
028d0ed5
TJB
54032011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5404
5405 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5406 prepare_execute_command.
5407 * top.c (prepare_execute_command): Return cleanup.
5408 (execute_command): Use cleanup from prepare_execute_command.
5409 * top.h (prepare_execute_command): Change prototype to return
5410 cleanup.
5411 * defs.h (struct value): Add opaque declaration.
5412 (make_cleanup_value_free_to_mark): Add prototype.
5413 * utils.c (do_value_free_to_mark): New function.
5414 (make_cleanup_value_free_to_mark): Likewise.
5415
b087e0ed
TT
54162011-05-12 Tom Tromey <tromey@redhat.com>
5417
5418 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5419 cast left-hand-side to unsigned.
5420
8a9b8146
TT
54212011-05-12 Tom Tromey <tromey@redhat.com>
5422
5423 PR gdb/12617:
5424 * value.h (value_from_contents): Declare.
5425 * value.c (value_from_contents): New function.
5426 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5427 (dwarf2_get_die_type): New function.
5428 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5429 (allocate_piece_closure): Acquire reference to values.
5430 (read_pieced_value): Update for value-based expressions.
5431 (write_pieced_value): Likewise.
5432 (free_pieced_value_closure): Call value_free as needed.
5433 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5434 Update for value-based expressions.
5435 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5436 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5437 <get_base_type>: New field.
5438 (struct dwarf_expr_piece) <v.value>: Change type.
5439 <v.regno>: New field.
5440 (struct dwarf_expr_context) <mark>: New field.
5441 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5442 (dwarf_expr_pop, dwarf_expr_push): Remove.
5443 (dwarf_expr_push_address): Declare.
5444 * dwarf2expr.c (dwarf_arch_cookie): New global.
5445 (struct dwarf_gdbarch_types): New.
5446 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5447 functions.
5448 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5449 static.
5450 (dwarf_expr_push_address): New function.
5451 (dwarf_expr_pop): Now static.
5452 (dwarf_expr_fetch): Change return type.
5453 (dwarf_require_integral): New function.
5454 (dwarf_expr_fetch): Simplify.
5455 (add_piece): Update.
5456 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5457 functions.
5458 (execute_stack_op) <sign_ext>: Remove.
5459 Use values for DWARF stack.
5460 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5461 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5462 New cases.
5463 (_initialize_dwarf2expr): New function.
5464 (add_piece): Update.
5465 (new_dwarf_expr_context): Set new field.
5466 (free_dwarf_expr_context): Call value_free_to_mark.
5467 * dwarf2-frame.c (no_base_type): New function.
5468 (execute_stack_op): Set get_base_type field. Update.
5469
e8d28ef4
TT
54702011-05-12 Tom Tromey <tromey@redhat.com>
5471
5472 * dwarf2read.c (read_common_block): Fix formatting.
5473
d248b706
KY
54742011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5475
5476 * breakpoint.c (disable_breakpoint): Disable all locations
5477 associated with a tracepoint on target if a trace experiment is
5478 running.
5479 (disable_command): Disable a specific tracepoint location on target if
5480 a trace experiment is running.
5481 (do_enable_breakpoint): Enable all locations associated with a
5482 tracepoint on target if a trace experiment is running.
5483 (enable_command) Enable a specific tracepoint location on target if a
5484 trace experiment is running.
5485 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5486 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5487 to_disable_tracepoint.
5488 * target.h: Add declaration of struct bp_location.
5489 (struct target_ops): Add new functions
5490 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5491 to_disable_tracepoint to target operations.
5492 (target_supports_enable_disable_tracepoint): New macro.
5493 (target_enable_tracepoint): New macro.
5494 (target_disable_tracepoint): New macro.
5495 * remote.c (struct remote_state): Add new field.
5496 (remote_enable_disable_tracepoint_feature): New.
5497 (remote_protocol_features): Add new entry.
5498 (remote_supports_enable_disable_tracepoint): New.
5499 (remote_enable_tracepoint): New.
5500 (remote_disable_tracepoint): New.
5501 (init_remote_ops): Add remote_enable_tracepoint,
5502 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5503 to remote operations.
5504 * tracepoint.c (start_tracing): Allow tracing to start without any
5505 tracepoints enabled with just a warning if they can be re-enabled
5506 later.
5507 * NEWS: Add news item for the new behaviour of the enable and disable
5508 GDB commands when applied to tracepoints.
5509 Add news items for the new remote packets QTEnable and QTDisable.
5510
cc88a640
JK
55112011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5512
5513 * config.in: Regenerate.
5514 * configure: Regenerate.
5515 * configure.ac <--with-system-readline> (for readline_echoing_p):
5516 Remove the test.
5517 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5518 (tui_old_rl_echoing_p): ... here.
5519 (tui_setup_io): Rename extern declaration readline_echoing_p to
5520 _rl_echoing_p. Adjust assignments for the both renames.
5521
1f84b619
TJB
55222011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5523
5524 * symtab.c (lookup_symtab): Run cleanup before returning.
5525
74ac6d43
TT
55262011-05-11 Tom Tromey <tromey@redhat.com>
5527
5528 * dwarf2read.c (handle_data_member_location): New function.
5529 (dwarf2_add_field): Use it.
5530 (read_common_block): Likewise.
5531
5488dafb
JK
55322011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5533
5534 Make addrs->SECTINDEX always defined.
5535 * symfile.c (relative_addr_info_to_section_offsets): Check for
5536 SECTINDEX -1, not for zero ADDR.
5537 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5538 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5539 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5540 on its validity.
5541
84e578fb
DE
55422011-05-10 Doug Evans <dje@google.com>
5543
2471d008
DE
5544 * linux-thread-db.c: Whitespace cleanup.
5545 (try_thread_db_load_1): Fix comment.
5546
84e578fb
DE
5547 * linux-thread-db.c (set_libthread_db_search_path): New function.
5548 (_initialize_thread_db): Add setter for libthread-db-search-path.
5549
673c2bbe
DE
55502011-05-09 Doug Evans <dje@google.com>
5551
478aac75
DE
5552 * NEWS: Mention --with-iconv-bin.
5553 * configure.ac: New option --with-iconv-bin.
5554 * configure: Regenerate.
5555 * config.in: Regenerate.
5556 * defs.h (relocate_gdb_directory): Declare.
5557 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5558 removed progname parameter, and exported. All callers updated.
5559 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5560
673c2bbe
DE
5561 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5562 adding missing call to restore_child_signals_mask.
5563
e4c8541f
PA
55642011-05-09 Pedro Alves <pedro@codesourcery.com>
5565
5566 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5567 parameter.
5568 * infrun.c (proceed, start_remote): Adjust.
5569 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5570 and adjust to not handle it.
5571 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5572 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5573 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5574 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5575 * windows-nat.c (do_initial_windows_stuff): Adjust.
5576 * infcmd.c (attach_command): Adjust.
5577 (notice_new_inferior): Adjust.
5578
a536c6d7
UW
55792011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5580
5581 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5582 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5583 * spu-tdep.c (op_selb): Use correct value.
5584
7845b013
UW
55852011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5586
5587 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5588 "parent" parameter to symbol_file_add_from_bfd call.
5589
9c06b0b4
TJB
55902011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5591 Thiago Jung Bauermann <bauerman@br.ibm.com>
5592
5593 Implement support for PowerPC BookE masked watchpoints.
5594 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5595 section.
5596 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5597 method. Initialize to NULL in all existing breakpoint_ops instances.
5598 (struct breakpoint) <hw_wp_mask>: New field.
5599 * breakpoint.c (is_masked_watchpoint): Add prototype.
5600 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5601 breakpoint's breakpoint_ops.works_in_software_mode if available.
5602 (watchpoints_triggered): Handle the case of a hardware masked
5603 watchpoint trigger.
5604 (watchpoint_check): Likewise.
5605 (works_in_software_mode_watchpoint): New function.
5606 (insert_masked_watchpoint, remove_masked_watchpoint)
5607 (resources_needed_masked_watchpoint)
5608 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5609 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5610 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5611 functions.
5612 (masked_watchpoint_breakpoint_ops): New structure.
5613 (watch_command_1): Check for the existence of the `mask' parameter.
5614 Set b->ops according to the type of hardware watchpoint being created.
5615 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5616 (ppc_linux_remove_mask_watchpoint)
5617 (ppc_linux_masked_watch_num_registers): New functions.
5618 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5619 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5620 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5621 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5622 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5623 (target_masked_watch_num_registers): New functions.
5624 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5625 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5626 methods.
5627 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5628 (target_masked_watch_num_registers): Add prototypes.
5629
8be455d7
JK
56302011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5631
5632 PR 12573
5633 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5634 (producer_is_gcc_ge_4_0): New function.
5635 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5636 symtab->language code.
5637 (var_decode_location): Set cu->has_loclist.
5638 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5639 skip. Intialize force_skip from locations_valid. Move the prologue
5640 skipping code into two passes.
5641 * symtab.h (struct symtab): Make the primary field a bitfield. New
5642 field locations_valid.
5643
d8228535
JK
56442011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5645
5646 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5647 (classify_inner_name): Call cp_lookup_nested_type with
5648 yylval.tsym.type.
5649 * cp-namespace.c (cp_lookup_nested_type): New variable
5650 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5651 type_name_no_tag_or_error with saved_parent_type.
5652 * dwarf2read.c (load_partial_dies): Read in any children of
5653 DW_TAG_typedef with complaint in such case.
5654 * gdbtypes.c (type_name_no_tag_or_error): New function.
5655 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5656 * valops.c (destructor_name_p): New comment for parameter type. Remove
5657 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5658 * value.h (destructor_name_p): Remove type const.
5659
1976171a
JK
56602011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5661
5662 * symtab.c (compare_symbol_name): New function.
5663 (completion_list_add_name, expand_partial_symbol_name): Call it,
5664 remove the variable ncmp.
5665 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5666 gdb_assert it.
5667
a9634178
TJB
56682011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5669
5670 Demote to sw watchpoint only in update_watchpoint.
5671 * breakpoint.c (update_watchpoint): Change between software and
5672 hardware watchpoint for all kinds of watchpoints, not just
5673 read/write ones. Determine b->exact value here instead of
5674 in watch_command_1. Error out if there are not enough resources
5675 for a read or access hardware watchpoint.
5676 (watch_command_1): Remove logic of checking whether there are
5677 enough resources available, since update_watchpoint will do that
5678 work now. Don't set b->exact here. Catch exceptions thrown by
5679 update_watchpoint and delete the watchpoint.
5680 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5681 Use target_exact_watchpoints instead.
5682 (delete_breakpoint): Notify observers only if deleted watchpoint
5683 has a breakpoint number assigned to it.
5684
4c67c798
JJ
56852011-05-05 Janis Johnson <janisjo@codesourcery.com>
5686
5687 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5688
a3fcb948
JG
56892011-05-05 Jerome Guitton <guitton@adacore.com>
5690
5691 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5692 New functions.
5693 (i386_stack_tramp_frame_unwind): New static global.
5694 (i386_match_pattern): New function, extracted from i386_match_insn.
5695 (i386_match_insn): Use i386_match_pattern.
5696 (i386_match_insn_block): New function.
5697 (i386_tramp_chain_in_reg_insns)
5698 (i386_tramp_chain_on_stack_insns): New static variables.
5699 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5700 of unwinders.
5701
4d393d60
JM
57022011-05-04 Joseph Myers <joseph@codesourcery.com>
5703
5704 * configure.host (xscale*): Don't handle target.
5705 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5706 handle targets.
5707
f70bd40b
YQ
57082011-05-04 Yao Qi <yao@codesourcery.com>
5709
5710 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5711
dd3295ee
JB
57122011-05-03 Joel Brobecker <brobecker@adacore.com>
5713
5714 Revert:
5715 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5716 | * elfread.c (elf_symtab_read): Stop memory leak.
5717
90375a0e
PM
57182011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5719
5720 * nto-tdep.c (nto_target): Replace deprecated call to
5721 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5722
d07205c2
JK
57232011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5724
5725 Fix false GCC warning.
5726 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5727
1e718ff1
TJB
57282011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5729
5730 * breakpoint.c (update_watchpoint): Move code to change
5731 the enable state of breakpoint from here ...
5732 (do_enable_breakpoint): ... to here.
5733
35bef4fd
TT
57342011-04-26 Andrew Gontarek <andrewg@cray.com>
5735
78290264
PP
5736 * valprint.c (val_print_array_elements): Fixed poor performance
5737 of printing very large arrays with repeat_count_threshold set
5738 to unlimited. New comment.
35bef4fd 5739
38a714bb
TT
57402011-04-29 Tom Tromey <tromey@redhat.com>
5741
5742 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5743 (mi_parse): Likewise.
5744 * breakpoint.c (break_range_command): Use sizeof char*, not
5745 char**.
5746 (create_breakpoint): Likewise.
5747 (parse_breakpoint_sals): Likewise.
5748
eb73ad13
PA
57492011-04-29 Pedro Alves <pedro@codesourcery.com>
5750
5751 * linux-nat.c (linux_child_remove_fork_catchpoint)
5752 (linux_child_remove_vfork_catchpoint)
5753 (linux_child_remove_exec_catchpoint): New functions.
5754 (linux_target_install_ops): Install them.
5755
d65aec65
PM
57562011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5757
5758 PR mi/12531
5759
5760 * varobj.c (install_default_visualizer): Do not install a
5761 visualizer if the varobj is CPLUS_FAKE_CHILD.
5762 (construct_visualizer): Likewise.
5763
165195f4
JK
57642011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5765
5766 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5767 case insensitive comparison.
5768
30852783
UW
57692011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5770
5771 * infrun.c (proceed): Revert previous change.
5772 (resume): Instead, handle the case of signal delivery while stepping
5773 off a breakpoint location here, and only if software single-stepping
5774 is used. Handle nested signals.
5775
7ff120b4
YQ
57762011-04-28 Yao Qi <yao@codesourcery.com>
5777
5778 * arm-tdep.c (copy_unmodified): Rename to ...
5779 (arm_copy_unmodified): .. this. New.
5780 (copy_preload): Move common part to ...
5781 (install_preload): .. this. New.
5782 (arm_copy_preload): New.
5783 (copy_preload_reg): Move common part to ...
5784 (install_preload_reg): ... this. New.
5785 (arm_copy_preload_reg): New.
5786 (copy_b_bl_blx): Move common part to ...
5787 (install_b_bl_blx): .. this. New.
5788 (arm_copy_b_bl_blx): New.
5789 (copy_bx_blx_reg): Move common part to ...
5790 (install_bx_blx_reg): ... this. New.
5791 (arm_copy_bx_blx_reg): New.
5792 (copy_alu_reg): Move common part to ...
5793 (install_alu_reg): ... this. New.
5794 (arm_copy_alu_reg): New.
5795 (copy_alu_shifted_reg): Move common part to ...
5796 (install_alu_shifted_reg): ... this. New.
5797 (copy_ldr_str_ldrb_strb): Move common part to ...
5798 (install_ldr_str_ldrb_strb): ... this. New.
5799 (arm_copy_ldr_str_ldrb_strb): New.
5800 (copy_copro_load_store): Move some common part to ...
5801 (install_copy_copro_load_store): ... this. New.
5802 (arm_copy_copro_load_store): New.
5803 (copy_svc): Delete.
5804 (arm_copy_svc): Renamed from copy_svc.
5805 (copy_undef): Delete.
5806 (arm_copy_undef): Renamed from copy_undef.
5807 (decode_ext_reg_ld_st): Delete.
5808 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5809 (decode_svc_copro): Delete.
5810 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5811 (copy_copro_load_store, copy_alu_imm): update callers.
5812 (copy_extra_ld_st, copy_block_xfer): Likewise.
5813 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5814 (decode_miscellaneous, decode_dp_misc): Likewise.
5815 (decode_ld_st_word_ubyte, decode_media): Likewise.
5816 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5817 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5818 (decode_unconditional, decode_miscellaneous): Likewise.
5819 (decode_media, decode_b_bl_ldmstm): Likewise.
5820 (arm_process_displaced_insn): Likewise..
5821 (decode_misc_memhint_neon): Delete.
5822 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5823 (decode_miscellaneous): Delete.
5824 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5825 (decode_dp_misc): Delete.
5826 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5827 (decode_ld_st_word_ubyte): Delete.
5828 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5829 (decode_media): Delete.
5830 (arm_decode_media): Renamed from decode_media.
5831 (decode_b_bl_ldmstm): Delete.
5832 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5833 (decode_ext_reg_ld_st): Delete.
5834 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5835 (decode_unconditional): Delete.
5836 (arm_decode_unconditional): Renamed from decode_unconditional.
5837
559a7a62
JK
58382011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5839
5840 Case insensitive lookups implementation.
5841 * dwarf2read.c: Include ctype.h.
5842 (struct mapped_index): New field version.
5843 (mapped_index_string_hash): New parameter index_version. New comment
5844 for it. Call tolower appropriately.
5845 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5846 Choose the right index version for mapped_index_string_hash.
5847 (dwarf2_read_index): Support also the index version 5. Initialize the
5848 new struct mapped_index field version.
5849 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5850 (find_slot): Explain the version needs. Pass INT_MAX for the new
5851 parameter.
5852 (write_psymtabs_to_index): Produce version 5.
5853 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5854 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5855 * psymtab.c (lookup_partial_symbol): Find the
5856 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5857 entries.
5858 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5859 NAME lowercasing.
5860 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5861 (completion_list_add_name): New variable ncmp, initialize it, use it.
5862 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5863 * utils.c (strcmp_iw): Support case_sensitive_off.
5864 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5865 New function comment part. New variables saved_string1,
5866 saved_string2 and case_pass. Add a proper second pass.
5867
681bf369
JK
58682011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5869
5870 Replace re_comp/re_exec by regcomp/regexec.
5871 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5872 (search_symbols_name_matches): Use them, use regexec.
5873 (search_symbols): New variable retval_chain, adjust the use of
5874 old_chain against it. Replace re_comp by regcomp. Use the new struct
5875 search_symbols_data fields, use regexec instead of re_exec.
5876
b11b1f88
JK
58772011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5878
5879 Format the code for the next patch.
5880 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5881 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5882 New variables c1 and c2.
5883
2484c66b
UW
58842011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5885
5886 * infrun.c (proceed): Do not single-step into signal delivery
5887 when stepping off a breakpoint location.
5888 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5889 (insert_step_resume_breakpoint_at_caller): Likewise.
5890 (insert_step_resume_breakpoint_at_sal): Likewise.
5891 (insert_longjmp_resume_breakpoint): Likewise.
5892
47423772
YQ
58932011-04-27 Yao Qi <yao@codesourcery.com>
5894
5895 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5896
13bdd2e7
JB
58972011-04-27 Joel Brobecker <brobecker@adacore.com>
5898
5899 * procfs.c (procfs_pass_signals): Fix advance declaration.
5900
2455069d
UW
59012011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5902
5903 * target.h (struct target_ops): Remove to_notice_signals;
5904 add to_pass_signals.
5905 (target_notice_signals): Remove.
5906 (target_pass_signals): Add prototype.
5907 * target.c (update_current_target): Remove to_notice_signals;
5908 mention to_pass_signals.
5909 (target_pass_signals): New function.
5910 (debug_to_notice_signals): Remove.
5911 (setup_target_debug): Do not install debug_to_notice_signals.
5912
5913 * infrun.c (signal_pass): New global.
5914 (resume): Call target_pass_signals.
5915 (handle_inferior_event): Report all signals while stepping over
5916 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5917 are re-inserted when stepping over a signal handler.
5918 (signal_cache_update): New function.
5919 (signal_stop_update): Call it.
5920 (signal_print_update): Likewise.
5921 (signal_pass_update): Likewise.
5922 (handle_command): Call signal_cache_update and target_pass_signals
5923 instead of target_notice_signals.
5924 (_initialize_infrun): Initialize signal_pass.
5925
5926 * linux-nat.c (pass_mask): New global.
5927 (linux_nat_pass_signals): New function.
5928 (linux_nat_create_inferior): Report all signals initially.
5929 (linux_nat_attach): Likewise.
5930 (linux_nat_resume): Use pass_mask to decide whether to directly
5931 handle an inferior signal.
5932 (linux_nat_wait_1): Likewise.
5933 (linux_nat_add_target): Install to_pass_signals callback.
5934
5935 * nto-procfs.c (notice_signals): Remove.
5936 (procfs_resume): Do not call notice_signals.
5937 (procfs_notice_signals): Remove.
5938 (procfs_pass_signals): New function.
5939 (init_procfs_ops): Install to_pass_signals callback instead of
5940 to_notice_signals callback.
5941 (_initialize_procfs): Report all signals initially.
5942
5943 * procfs.c (procfs_notice_signals): Remove.
5944 (procfs_pass_signals): New function.
5945 (procfs_target): Install to_pass_signals callback instead of
5946 to_notice_signals callback.
5947 (register_gdb_signals): Remove.
5948 (procfs_debug_inferior): Report all signals initially.
5949 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5950
5951 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5952 parameters; use them instead of calling signal_..._state routines.
5953 (remote_notice_signals): Remove.
5954 (remote_start_remote): Report all signals initially.
5955 (remote_resume): Do not call remote_pass_signals.
5956 (_initialize_remote): Install to_pass_signals callback instead of
5957 to_notice_signals callback.
5958
46c6471b
PA
59592011-04-27 Pedro Alves <pedro@codesourcery.com>
5960
5961 * breakpoint.c (user_settable_breakpoint): Delete.
5962 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5963 (delete_command): Check user_breakpoint_p instead of looking at
5964 the breakpoint's type.
5965 (disable_command): Ditto.
5966 (enable_command): Ditto.
5967 (delete_trace_command): Use user_breakpoint_p instead of looking
5968 at the breakpoint number directly. When checking if there are
5969 user visible tracepoints, in order to know whether to ask the user
5970 for confirmation, check whether the breakpoint is actually a
5971 tracepoint.
5972
f6d90398
VP
59732011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5974
5975 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
5976 compilation.
5977
8d3788bd
VP
59782011-04-27 Vladimir Prus <vladimir@codesourcery.com>
5979
5980 MI breakpoint notifications.
5981
f33edef8
PP
5982 * annotate.c (breakpoint_changed): Adjust parameter type.
5983 * breakpoint.c (set_breakpoint_condition): Adjust to change
5984 in breakpoint_modified type.
5985 (breakpoint_set_commands): Likewise.
5986 (do_map_commands_command): Likewise.
5987 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
5988 changed after bumping hit count.
5989 (bpstat_stop_status): Likewise.
5990 (print_one_breakpoint_location): Don't wrap in tuple here.
5991 (print_one_breakpoint): Always print individual locations.
5992 For locations, use unnamed tuple.
5993 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
5994 has changed.
5995 (create_catchpoint, create_syscall_event_catchpoint): Call
5996 breakpoint_created obsever.
5997 (mention): Don't call breakpoint_created observer.
5998 (create_breakpoint_sal): Call breakpoint_created observer.
5999 (create_breakpoint, watch_command_1): Likewise.
6000 (create_ada_exception_breakpoint): Likewise.
6001 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6002 (locations_are_equal): New.
6003 (update_breakpoint_locations): If locations were changed, notify.
6004 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6005 Call breakpoint_modified observer.
6006
6007 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6008 (mi_cmd_break_insert): Don't set observers for modify and delete.
6009 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6010 (mi_breakpoint_created, mi_breakpoint_deleted)
6011 (mi_breakpoint_modified): New.
6012 (mi_interpreter_init): Hook the above.
6013 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6014 while -break-* commands are executing.
6015 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6016 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6017 (mi_redirect): New.
6018 (mi_ui_out_impl): Hook in mi_redirect.
6019 (mi_field_skip): True to the name, skip the field, don't output
6020 a field with an empty value.
6021
6022 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6023 (gdbpy_breakpoint_deleted): Adjust.
6024 * tui/tui-hooks.c (tui_event_create_breakpoint)
6025 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 6026
a8f42b45
UW
60272011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6028
6029 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6030 (procfs_remove_hw_watchpoint): Likewise.
6031
57e12211
TT
60322011-04-26 Michael Walle <michael@walle.cc>
6033
6034 * remote.c (remote_start_remote): Ack packet after sending the
6035 interrupt sequence.
6036
af96c192
YQ
60372011-04-26 Yao Qi <yao@codesourcery.com>
6038
f33edef8
PP
6039 * linux-nat.c: Move common macros to ...
6040 Include linux-ptrace.h.
6041 * common/linux-ptrace.h: ... here. New.
af96c192 6042
3e03848b
JK
60432011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6044
6045 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6046 !objfile_has_partial_symbols. New comment.
6047 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6048 SYM_READ_PSYMBOLS is not present. Extend the comment.
6049 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6050
1ae0d051
JK
60512011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6052
6053 * defs.h (ENUM_BITFIELD): Remove.
6054
03f2bd59
JK
60552011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6056 Eli Zaretskii <eliz@gnu.org>
6057
6058 * NEWS: Document the new gdbserver --once option.
6059
4161fbb0
JZ
60602011-04-21 Jie Zhang <jzhang918@gmail.com>
6061
6062 * MAINTAINERS: Update my email address.
6063
bcb28afc
PM
60642011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6065
6066 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6067 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6068 function call if __STDC_ISO_10646__ macro is defined.
6069 (intermediate_encoding): New prototype.
6070 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6071 to generate compile time error for unsupported gdb_wchar_t size.
6072 (ENDIAN_SUFFIX): New macro.
6073 (intermediate_encoding): New function.
6074
7b08b9eb
JK
60752011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6076
6077 * ada-lang.c (struct add_partial_datum): Update the comment for
6078 expand_partial_symbol_name.
6079 (ada_add_partial_symbol_completions): Rename to ...
6080 (ada_expand_partial_symbol_name): ... here, change return type, update
6081 function comment, call symbol_completion_match instead of
6082 symbol_completion_add.
6083 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6084 and ada_expand_partial_symbol_name.
6085 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6086 FILE_MATCHER.
6087 (dw2_map_symbol_names): Remove.
6088 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6089 * psymtab.c (map_symbol_names_psymtab): Remove.
6090 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6091 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6092 order.
6093 (psym_functions): Unlist map_symbol_names_psymtab.
6094 (map_partial_symbol_names): Rename to ...
6095 (expand_partial_symbol_names): ... here, change the FUN type, call
6096 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6097 * psymtab.h (map_partial_symbol_names): Rename to ...
6098 (expand_partial_symbol_names): ... here, change the FUN type.
6099 * symfile.h (struct quick_symbol_functions): Update the description of
6100 expand_symtabs_matching. Remove map_symbol_names.
6101 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6102 (struct add_name_data): Update the comment for
6103 expand_partial_symbol_name.
6104 (add_partial_symbol_name): Rename to ...
6105 (expand_partial_symbol_name): ... here. Replace
6106 completion_list_add_name call by strncmp.
6107 (default_make_symbol_completion_list_break_on): Use now
6108 expand_partial_symbol_names and expand_partial_symbol_name.
6109 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6110
90476074
TT
61112011-04-20 Tom Tromey <tromey@redhat.com>
6112
6113 * dwarf2read.c (save_gdb_index_command): Replace format
6114 documentation with a pointer to the manual.
6115
c21236dc
PA
61162011-04-20 Pedro Alves <pedro@codesourcery.com>
6117
6118 * regcache.c: Include remote.h.
6119 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6120 (regcache_dump): Handle regcache_dump_remote.
6121 (maintenance_print_remote_registers): New function.
6122 (_initialize_regcache): Install "maint print remote-registers"
6123 command.
6124 * remote.c (map_regcache_remote_table): New function, factored out
6125 from ...
6126 (init_remote_state): ... here.
6127 (remote_register_number_and_offset): New.
6128 * remote.h (remote_register_number_and_offset): Declare.
6129
b78974c3
PA
61302011-04-20 Pedro Alves <pedro@codesourcery.com>
6131
6132 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6133 null_ptid, assume and allow a NULL address space, instead of
6134 asking the target for the ptid's address space.
6135 * infrun.c (ptid_is_pid): Remove assertion.
6136
7a9dd1b2
TT
61372011-04-19 Tom Tromey <tromey@redhat.com>
6138
6139 * windows-tdep.c (windows_xfer_shared_library):
6140 * windows-nat.c (get_module_name, windows_make_so):
6141 * v850-tdep.c (v850_handle_pushm):
6142 * utils.c (null_cleanup, gdb_realpath):
6143 * ui-out.c (get_next_header):
6144 * tracepoint.c (clear_traceframe_info):
6145 * symtab.c (lookup_symtab):
6146 * serial.h (struct serial_ops):
6147 * mipsread.c (read_alphacoff_dynamic_symtab):
6148 * infcmd.c (print_return_value):
6149 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6150 * f-exp.y (parse_number):
6151 * exceptions.c (catch_exceptions):
6152 * dummy-frame.c (dummy_frame_this_id):
6153 * defs.h (struct cleanup):
6154 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6155 * arm-tdep.c (arm_push_dummy_call):
6156 * amd64-tdep.h (amd64_collect_xsave):
6157 * amd64-tdep.c (amd64_collect_xsave):
6158 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6159 * README (typing): Remove duplicate words.
6160 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6161 * infrun.c (siginfo_value_read): Fix typo.
6162 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6163 * top.c (source_line_number): Add comma.
6164
9941e0c5
MK
61652011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6166
6167 * thread.c (any_live_thread_of_process): Prioritize threads
6168 that are not executing.
6169 * gdbthread.h (any_live_thread_of_process): Update comment
6170 as per above change.
6171
ed4b0e6a
AS
61722011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6173
6174 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6175 (scan_xcoff_symtab): Likewise.
6176
9b13a2db
PM
61772011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6178
6179 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6180 inside if clause.
6181
1c6e1b0d
PM
61822011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6183 Pedro Alves <pedro@codesourcery.com>
6184
6185 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6186 variables to simplify code and avoid == operator at end of
6187 line as this is against GNU coding standards.
6188
74de0234
PM
61892011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6190
6191 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6192 lm_name to name_lm to avoid conflict with lm_name function.
6193
b23518f0
PM
61942011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6195
6196 ARI fixes: Use only lowercase function name for static functions.
6197 * nto-tdep.c (LM_ADDR): Rename to...
6198 (lm_addr): New function name.
6199 (nto_relocate_section_addresses): Adapt to change above.
6200 * solib-sunos.c (LM_ADDR): Rename to...
6201 (lm_addr): New function name.
6202 (LM_NEXT): Rename to...
6203 (lm_next): New function name.
6204 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6205 function name changes above.
6206 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6207 (lm_addr_from_link_map): New function name.
6208 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6209 (has_lm_dynamic_from_link_map): New function name.
6210 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6211 (lm_dynamic_from_link_map): New function name.
6212 (LM_ADDR_CHECK): Rename to...
6213 (lm_addr_check): New function name.
6214 (LM_NEXT): Rename to...
6215 (lm_next): New function name.
6216 (LM_PREV): Rename to...
6217 (lm_prev): New function name.
6218 (LM_NAME): Rename to...
6219 (lm_name): New function name.
6220 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6221 (ignore_first_link_map_entry): New function name.
6222 (svr4_keep_data_in_core): Adapt to function name changes above.
6223 (svr4_current_sos): Likewise.
6224 (enable_break): Likewise.
6225 (svr4_relocate_section_addresses): Likewise.
6226
1448a0a2
PM
62272011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6228
6229 ARI cleanup.
6230 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6231 sprintf. Simplify code and avoid loosing memory.
6232 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6233 (call0_frame_cache): Remove && operator from end of line.
6234
02835898
JK
62352011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6236
6237 Fix libraries displacement if they change whether they were prelinked.
6238 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6239 does not match. Comment why.
6240
9a845ea2
JK
62412011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6242
6243 * corelow.c: Include wrapper.h.
6244 (core_open): Call now gdb_target_find_new_threads.
6245 * wrapper.c: Include target.h.
6246 (gdb_target_find_new_threads): New.
6247 * wrapper.h (gdb_target_find_new_threads): New declaration.
6248
254f582e
JK
62492011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6250
6251 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6252 even if !TARGET_HAS_EXECUTION.
6253
63524580
JK
62542011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6255
6256 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6257 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6258 bfd_get_synthetic_symtab.
6259 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6260 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6261 parameter parent, remove the call to add_separate_debug_objfile.
6262 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6263 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6264 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6265 parent, new comment for it, call add_separate_debug_objfile for it.
6266 (symbol_file_add_separate): Pass objfile as the parameter parent,
6267 remove the call to add_separate_debug_objfile.
6268 (symbol_file_add_from_bfd): New parameter parent, pass it.
6269 (symbol_file_add): Pass NULL to the new parameter parent.
6270 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6271
90359a16
JK
62722011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6273
6274 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6275 BSF_SYNTHETIC.
6276
626e7282
JK
62772011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6278
6279 Fix Python access to inlined frames.
6280 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6281 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6282
cf31e6f9
TT
62832011-04-15 Tom Tromey <tromey@redhat.com>
6284
6285 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6286
c8d895f1
GB
62872011-04-15 Gary Benson <gbenson@redhat.com>
6288
6289 * MAINTAINERS: Add myself to write-after-approval section.
6290
56a9aa1d
MF
62912011-04-14 Mike Frysinger <vapier@gentoo.org>
6292
6293 * remote-sim.c (sim_command_completer): New function.
6294 (_initialize_remote_sim): Set completer to sim_command_completer.
6295
ba770c9c
TJB
62962011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6297
6298 * breakpoint.c (print_exception_catchpoint): Rename to ...
6299 (print_it_exception_catchpoint): ... this.
6300 (gnu_v3_exception_catchpoint_ops): Update with new name
6301 for print_it_exception_catchpoint.
6302
51bf2553
EBM
63032011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6304
6305 * MAINTAINERS: Add myself for write after approval privileges.
6306
d242658c
MP
63072011-04-13 Marek Polacek <mpolacek@redhat.com>
6308
6309 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6310
4a4106ca
TJB
63112011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6312
6313 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6314
26063d49
TJB
63152011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6316
6317 * breakpoint.c (save_breakpoints): Verify whether
6318 breakpoint_ops.print_recreate is defined before calling it.
6319
7782b183
GB
63202011-04-11 Gary Benson <gbenson@redhat.com>
6321
6322 Fix failure with --enable-maintainer-mode.
6323 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6324
e8930875
JK
63252011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6326
6327 Code cleanup.
6328 * symtab.c (search_symbols): Reorder the KIND description in the
6329 function comment. Remove the unused 4th element of types, types2,
6330 types3 and types4. New gdb_assert on KIND.
6331 (symtab_symbol_info): Remove the unused 4th element of classnames.
6332 New gdb_assert on KIND.
6333 * symtab.h (enum search_domain): New warning in the enum comment.
6334 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6335 TYPES_DOMAIN.
6336
b4f2f049
JK
63372011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6338
6339 Fix crash of gdb save-index on a STABS file.
6340 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6341 PSYMTABS_ADDRMAP.
6342
60d5a603
JK
63432011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6346 * dwarf2read.c: Include ctype.h.
6347 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6348 functions.
6349 (dwarf2_add_field): Fix new_field->accessibility by calling
6350 dwarf2_default_access_attribute. Restructure setting accessibility
6351 vs. virtuality.
6352 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6353 is_private and is_protected by calling
6354 dwarf2_default_access_attribute.
6355
e0f68161
KB
63562011-04-08 Kevin Buettner <kevinb@redhat.com>
6357
6358 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6359 to the initialization.
6360
2e1aae43
SE
63612011-04-08 Steve Ellcey <sje@cup.hp.com>
6362
6363 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6364 initalization.
6365
c6ca3dab
PM
63662011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6367
6368 Remove support for old Cygwin 1.5 versions.
6369 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6370 function on old Cygwin version.
6371 * windows-nat.c: Remove cygwin version check and always define
6372 __USEWIDE for Cygwin compilation.
6373
bd18283a
YQ
63742011-04-07 Yao Qi <yao@codesourcery.com>
6375
6376 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6377 and TO.
6378 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6379 (arm_copy_svc): Remove parameters INSN and TO.
6380 (decode_svc_copro): Update caller.
6381 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6382 from function pointer `copy_svc_os'.
6383
8c8dba6d
YQ
63842011-04-07 Yao Qi <yao@codesourcery.com>
6385
6386 * arm-tdep.c (cleanup_branch): Set a correct return address in
6387 LR for ARM and Thumb.
6388
59d7bcaf
JK
63892011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6390
6391 Code cleanup.
6392 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6393 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6394 in the function comment, a new note on values compatibility.
6395 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6396 * symtab.h (SYMBOL_HASH_NEXT): New.
6397
e7db58ea
TJB
63982011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6399
6400 * ppc-linux-nat.c (check_condition): Add len output parameter.
6401 Set it based on the memory region referenced in the condition
6402 expression. Update all callers.
6403
9f743ef6
JK
64042011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6405
6406 Fix crash regression on systems featuring .gdb_index.
6407 * objfiles.c (free_objfile): Move the
6408 forget_cached_source_info_for_objfile call earlier. Comment it.
6409 Extend the comment for objfile_free_data.
6410
9182c5bc
JK
64112011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6412
6413 Fix regression of displaying the debug format.
6414 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6415 subfile.
6416
04bd08de
TT
64172011-04-04 Tom Tromey <tromey@redhat.com>
6418
6419 * cli/cli-interp.c (struct captured_execute_command_args):
6420 Remove.
6421 (do_captured_execute_command): Remove.
6422 (safe_execute_command): Use TRY_CATCH.
6423 * cli/cli-script.c (struct wrapped_read_command_file_args):
6424 Remove.
6425 (wrapped_read_command_file): Remove.
6426 (script_from_file): Use TRY_CATCH.
6427 * exceptions.c (catch_exception): Remove.
6428 * exceptions.h (catch_exception): Remove.
6429 (deprecated_throw_reason): Update comment.
6430 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6431 argument to 'context'.
6432 (mi_execute_command): Use TRY_CATCH.
6433 * remote.c (struct start_remote_args): Remove.
6434 (remote_start_remote): Update; change arguments.
6435 (remote_open_1): Use TRY_CATCH.
6436
58438ac1
TT
64372011-04-04 Tom Tromey <tromey@redhat.com>
6438
6439 * tracepoint.c (scope_info): Update.
6440 * symtab.c (decode_line_spec): Update.
6441 * python/python.c (gdbpy_decode_line): Update.
6442 * linespec.h (decode_line_1): Update.
6443 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6444 (decode_compound, find_method, symtab_from_filename)
6445 (decode_variable): Likewise.
6446 * cli/cli-cmds.c (edit_command): Update.
6447 (list_command): Update.
6448 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6449 argument.
6450 (create_breakpoint): Update.
6451 (until_break_command): Update.
6452 (addr_string_to_sals): Update.
6453 (decode_line_spec_1): Update.
6454
b78a6381
TT
64552011-04-04 Tom Tromey <tromey@redhat.com>
6456
6457 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6458 (do_captured_parse_breakpoint): Remove.
6459 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6460 Use TRY_CATCH directly.
6461
00174a86
TT
64622011-04-04 Tom Tromey <tromey@redhat.com>
6463
6464 * symtab.h (free_symtab): Remove.
6465 (forget_cached_source_info_for_objfile): Declare.
6466 * symmisc.c (free_symtab): Remove.
6467 * source.c (forget_cached_source_info_for_objfile): New function.
6468 (forget_cached_source_info): Use it.
6469 * objfiles.c (free_objfile): Simplify check before calling
6470 clear_current_source_symtab_and_line. Call
6471 forget_cached_source_info_for_objfile.
6472
30cc903e
TT
64732011-04-04 Tom Tromey <tromey@redhat.com>
6474
6475 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6476 (new_symtab): Don't set `free_code' on symtab.
6477 (new_linetable): Properly handle size==0.
6478 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6479 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6480 free_func.
6481 * jv-lang.c (struct jv_per_objfile_data): New.
6482 (jv_per_objfile_free): Free the data.
6483 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6484 (get_java_class_symtab): Set the `dict' field on the
6485 jv_per_objfile_data.
6486 (free_class_block): Remove.
6487 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6488 the symtab.
6489
0c2e6019
TT
64902011-04-04 Tom Tromey <tromey@redhat.com>
6491
6492 * symfile.c (reread_symbols): Update.
6493 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6494 field.
6495 * objfiles.c (allocate_objfile): Update.
6496 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6497 declare.
6498 * cp-namespace.c (lookup_symbol_file): Don't call
6499 lookup_possible_namespace_symbol.
6500 (initialize_namespace_symtab, get_possible_namespace_block)
6501 (free_namespace_block, cp_check_possible_namespace_symbols)
6502 (check_possible_namespace_symbols_loop)
6503 (check_one_possible_namespace_symbol)
6504 (lookup_possible_namespace_symbol): Remove.
6505 (maintenance_cplus_namespace): Replace with notice.
6506 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6507
554d387d
TT
65082011-04-04 Tom Tromey <tromey@redhat.com>
6509
6510 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6511 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6512 * symmisc.c (free_symtab): Don't free debugformat.
6513 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6514 (record_debugformat, record_producer): Document.
6515 * buildsym.c (end_symtab): Don't save debugformat and producer
6516 names on obstack.
6517 (end_symtab): Don't free debugformat and producer fields.
6518 (record_debugformat): Don't call xstrdup.
6519 (record_producer): Likewise.
6520
d4d4db8a
TT
65212011-04-04 Tom Tromey <tromey@redhat.com>
6522
6523 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6524 (source_line_charpos, source_charpos_line): Remove.
6525
8903c50d
TT
65262011-04-04 Tom Tromey <tromey@redhat.com>
6527
6528 * symtab.h (domain_enum): Split in two...
6529 (enum search_domain): New.
6530 (search_symbols): Update.
6531 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6532 redundant declarations.
6533 (search_symbols): Change 'kind' argument to search_domain.
6534 Update.
6535 (print_symbol_info): Likewise.
6536 (symtab_symbol_info): Likewise.
6537 * symfile.h (struct quick_symbol_functions)
6538 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6539 <expand_symtabs_matching>: Likewise.
6540 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6541 (expand_symtabs_matching_via_partial): Update.
6542 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6543 (dw2_expand_symtabs_for_function): Update.
6544 * block.h: Moved anonymous enum...
6545 * defs.h (enum block_enum): ... here. Now named.
6546
d9351f5f 65472011-04-03 Joel Brobecker <brobecker@adacore.com>
6548
6549 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6550 * version.in: Bump version to 7.3.50.20110403-cvs.
6551
d6e00af6
JB
65522011-04-03 Joel Brobecker <brobecker@adacore.com>
6553
6554 * NEWS: Create a new section for the next release branch.
6555 Rename the section of the current branch, now that it has
6556 been cut.
6557
2b9e5ea6
UW
65582011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6559
6560 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6561 for "fpscr" in target description.
6562
0cf03b49
JK
65632011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6566 initialize it. Delay HASH initialization. Strip the part after open
6567 parenthesis for languages with qualifiers. Call do_cleanups.
6568
5d901a73
TT
65692011-04-01 Tom Tromey <tromey@redhat.com>
6570
6571 * utils.c (report_command_stats): Don't print `-' for negative
6572 number.
6573
b0dd7688
JB
65742011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6575
6576 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6577 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6578 typedefs.
6579
956a9fb9
JB
65802011-04-01 Joel Brobecker <brobecker@adacore.com>
6581
6582 * breakpoint.h (bpdisp_text): Add declaration.
6583 * breakpoint.c (bpdisp_text): Make non-static.
6584 * ada-lang.c: #include "mi/mi-common.h".
6585 (print_it_exception): Rewrite to improve GDB/MI output.
6586
3352110b
PA
65872011-04-01 Pedro Alves <pedro@codesourcery.com>
6588
6589 * arm-tdep.h (struct address_space): Add forward declaration.
6590
18819fa6
UW
65912011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6592
6593 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6594 * arm-tdep.c (arm_override_mode): New global.
6595 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6596 execution mode heuristics.
6597 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6598 second single-step breakpoint if needed, using
6599 arm_insert_single_step_breakpoint.
6600 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6601 ARM execution mode, do not call thumb_get_next_pc_raw.
6602 (arm_get_next_pc): Encode execution mode in return value. Call
6603 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6604 (arm_insert_single_step_breakpoint): New function.
6605 (arm_software_single_step): Call it.
6606 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6607 argument to return execution mode of sigreturn target.
6608 (arm_linux_syscall_next_pc): Use it.
6609 (arm_linux_copy_svc): Update call.
6610 (arm_linux_software_single_step): Call
6611 arm_insert_single_step_breakpoint.
6612
a6e293d1
JK
66132011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6614
6615 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6616 the comment.
6617
a4c8e806
TT
66182011-03-31 Tom Tromey <tromey@redhat.com>
6619
6620 * varobj.c (update_dynamic_varobj_children): Properly handle
6621 errors from iterator.
6622
df5c6c50
JK
66232011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6624
6625 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6626 struct linkage name twice.
6627
1dae3efc
TT
66282011-03-31 Tom Tromey <tromey@redhat.com>
6629
6630 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6631 missing ">" to message.
6632
f4f7ab05
TT
66332011-03-31 Tom Tromey <tromey@redhat.com>
6634
6635 * varobj.c (instantiate_pretty_printer): Remove duplicate
6636 'return'.
6637
fcf250e2
UW
66382011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6639
6640 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6641 if neither saved value nor register available (e.g. signal frame).
6642
ee6436e3
TJB
66432011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6644
6645 * macroexp.c (expand): Avoid uninitialized variable
6646 compiler warning.
6647
423f41a5
TJB
66482011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6649
6650 * breakpoint.c (break_range_command): Fix typo in comment.
6651
f1310107
TJB
66522011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6653 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6654
6655 Implement support for PowerPC BookE ranged breakpoints.
6656 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6657 * breakpoint.h (struct bp_target_info) <length>: New member
6658 variable.
6659 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6660 instead of struct breakpoint as argument, and also add ASPACE
6661 and BP_ADDR arguments. Update all callers.
6662 (struct breakpoint_ops) <print_one_detail>: New method.
6663 (struct breakpoint) <addr_string_range_end>: New member variable.
6664 * breakpoint.c (breakpoint_location_address_match): Add function
6665 prototype.
6666 (insert_bp_location): Set bl->target_info.length.
6667 (breakpoint_here_p): Call breakpoint_location_address_match.
6668 (moribund_breakpoint_here_p): Likewise.
6669 (regular_breakpoint_inserted_here_p): Likewise.
6670 (breakpoint_thread_match): Likewise.
6671 (bpstat_stop_status): Likewise.
6672 (bpstat_check_location): Move call to
6673 breakpoint_ops.breakpoint_hit to the top.
6674 (print_one_breakpoint_location): Call
6675 breakpoint_ops.print_one_detail if available.
6676 (breakpoint_address_match_range): New function.
6677 (breakpoint_location_address_match): Likewise.
6678 (breakpoint_locations_match): Compare the length field of the
6679 locations too.
6680 (hw_breakpoint_used_count): Count resources used by all locations
6681 in a breakpoint, and use breakpoint_ops.resources_needed if
6682 available.
6683 (breakpoint_hit_ranged_breakpoint): New function.
6684 (resources_needed_ranged_breakpoint): Likewise.
6685 (print_it_ranged_breakpoint): Likewise.
6686 (print_one_ranged_breakpoint): Likewise.
6687 (print_one_detail_ranged_breakpoint): Likewise.
6688 (print_mention_ranged_breakpoint): Likewise.
6689 (print_recreate_ranged_breakpoint): Likewise.
6690 (ranged_breakpoint_ops): New structure.
6691 (find_breakpoint_range_end): New function.
6692 (break_range_command): Likewise.
6693 (delete_breakpoint): Free addr_string_range_end.
6694 (update_breakpoint_locations): Add SALS_END argument. Update
6695 all callers. Calculate breakpoint length if a non-zero SALS_END
6696 is given. Call breakpoint_locations_match instead of
6697 breakpoint_address_match.
6698 (reset_breakpoint): Find SaL of the end of the range if B is a
6699 ranged breakpoint.
6700 (_initialize_breakpoint): Register break-range command.
6701 * defs.h (print_core_address): Add function prototype.
6702 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6703 function.
6704 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6705 (ppc_linux_remove_hw_breakpoint): Likewise.
6706 (_initialize_ppc_linux_nat): Initialize
6707 to_ranged_break_num_registers.
6708 * target.c (update_current_target): Add comment about
6709 to_ranged_break_num_registers.
6710 (target_ranged_break_num_registers): New function.
6711 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6712 New method.
6713 (target_ranged_break_num_registers): Add function prototype.
6714 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6715 * utils.c (print_core_address): ... here.
6716
02d20e4a
UW
67172011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6718
6719 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6720 variable compiler warning.
6721
ef23e705
TJB
67222011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6723
6724 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6725 code from here ...
6726 (re_set_breakpoint): ... to here ...
6727 (addr_string_to_sals): ... and here.
6728
311e6ab3
PM
67292011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6730
6731 * Makefile.in (SFILES): Add missing C sources.
6732 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6733 Add missing headers.
6734
acd1d99c
MF
67352011-03-29 Mike Frysinger <vapier@gentoo.org>
6736
6737 * .gitignore: New file.
6738
66ee2731
MF
67392011-03-29 Mike Frysinger <vapier@gentoo.org>
6740
6741 * NEWS: Mention new cfi device simulation.
6742
53832f31
TT
67432011-03-29 Tom Tromey <tromey@redhat.com>
6744
6745 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6746 otherwise anonymous types.
6747 (dwarf2_name): Likewise.
6748 * valops.c (value_struct_elt_for_reference): Refine artificial
6749 type logic. Call error if j==-1.
6750
09b58708
JK
67512011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6752
6753 Fix false GCC warning.
6754 * infcall.c (find_function_addr): Initialize funaddr.
6755
6023c606
PM
67562011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6757
6758 Fix mingw compilation with --enable-targets=all.
6759 * remote-mips.c (gdb_usleep.h): Include header.
6760 (mips_enter_debug): Use gdb_usleep instead of sleep.
6761
0e30163f
JK
67622011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6763
6764 Support resolution of STT_GNU_IFUNC via breakpoints.
6765 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6766 bp_gnu_ifunc_resolver_return.
6767 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6768 the loop. Support bp_gnu_ifunc_resolver and
6769 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6770 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6771 breakpoints.
6772 (bptype_string, print_one_breakpoint_location): Support
6773 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6774 (user_settable_breakpoint): Return true also for
6775 bp_gnu_ifunc_resolver.
6776 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6777 bp_gnu_ifunc_resolver_return.
6778 (set_breakpoint_location_function): New parameter explicit_loc,
6779 describe it. Call find_pc_partial_function_gnu_ifunc with new
6780 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6781 EXPLICIT_LOC is not set.
6782 (set_raw_breakpoint): Set EXPLICIT_LOC for
6783 set_breakpoint_location_function.
6784 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6785 set_breakpoint_location_function.
6786 (mention): Support bp_gnu_ifunc_resolver and
6787 bp_gnu_ifunc_resolver_return.
6788 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6789 set_breakpoint_location_function.
6790 (update_breakpoint_locations): Remove static.
6791 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6792 bp_gnu_ifunc_resolver_return.
6793 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6794 bp_gnu_ifunc_resolver_return.
6795 (update_breakpoint_locations): New declaration.
6796 * elfread.c: Include gdbthread.h and regcache.h.
6797 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6798 functions.
6799 (elf_gnu_ifunc_fns): Install them.
6800 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6801 (stub_gnu_ifunc_resolver_return_stop): New functions.
6802 (stub_gnu_ifunc_fns): Install them.
6803 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6804 and gnu_ifunc_resolver_return_stop.
6805 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6806
07be84bf
JK
68072011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6808
6809 STT_GNU_IFUNC reader implementation.
6810 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6811 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6812 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6813 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6814 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6815 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6816 (elf_gnu_ifunc_resolve_addr): New.
6817 (elf_symfile_read): Call elf_rel_plt_read.
6818 (elf_gnu_ifunc_fns): New.
6819 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6820 Install elf_gnu_ifunc_fns.
6821 * infcall.c (find_function_return_type): New function.
6822 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6823 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6824 (stub_gnu_ifunc_resolve_name): New functions.
6825 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6826 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6827 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6828
300f8e10
JK
68292011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6830
6831 Code cleanup for later STT_GNU_IFUNC support.
6832 * infcall.c (find_function_addr): Remove variable code, use explicit
6833 dereferences for it. Move VALUE_TYPE initialization later.
6834
11c81455
JK
68352011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6836
6837 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6838 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6839 (clear_pc_function_cache): Clear it.
6840 (find_pc_partial_function): Rename to ...
6841 (find_pc_partial_function_gnu_ifunc): ... this function. New
6842 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6843 (find_pc_partial_function): New wrapper for this function.
6844 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6845
0875794a
JK
68462011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6847
6848 GDB internal type support for STT_GNU_IFUNC.
6849 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6850 (elf_symtab_read): Set mst_text_gnu_ifunc for
6851 BSF_GNU_INDIRECT_FUNCTION.
6852 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6853 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6854 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6855 nodebug_got_plt_symbol.
6856 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6857 (TYPE_GNU_IFUNC): New.
6858 (struct main_type): New field flag_gnu_ifunc.
6859 (struct builtin_type): New field builtin_func_func.
6860 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6861 nodebug_got_plt_symbol.
6862 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6863 (in_gnu_ifunc_stub): New.
6864 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6865 mst_text_gnu_ifunc.
6866 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6867 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6868 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6869 in_gnu_ifunc_stub.
6870 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6871 * symtab.c (search_symbols): Likewise.
6872 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6873 and mst_slot_got_plt.
6874 (in_gnu_ifunc_stub): New declaration.
6875
d0fb5eae
JK
68762011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 Support a ring of related breakpoints.
6879 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6880 other functions, add gdb_assert.
6881 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6882 watchpoint_del_at_next_stop.
6883 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6884 (bpstat_stop_status): Handle ring in related_breakpoint.
6885 (set_raw_breakpoint_without_location): Initialize ring in
6886 related_breakpoint.
6887 (delete_breakpoint): Handle ring in related_breakpoint, use
6888 watchpoint_del_at_next_stop.
6889 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6890
9cded63f
TT
68912011-03-28 Tom Tromey <tromey@redhat.com>
6892
6893 PR symtab/12441:
6894 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6895 with `language_minimal'.
6896
467d42c4
UW
68972011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6898
6899 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6900 instead of checking for STT_ARM_TFUNC symbol type.
6901
62853458
TT
69022011-03-25 Tom Tromey <tromey@redhat.com>
6903
6904 * linespec.c (symbol_found): Restore line-based result for
6905 non-LOC_LABEL symbols.
6906
a7417d46
KT
69072011-03-25 Kai Tietz <ktietz@redhat.com>
6908
6909 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6910 instead of strcmp for comparison.
6911 (tui_source_is_displayed): Likewise.
6912 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6913
55f1336d
TT
69142011-03-24 Mark Wielaard <mjw@redhat.com>
6915
f33edef8
PP
6916 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6917 complaint.
6918 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6919 (find_partial_die_in_comp_unit): Likewise in comment.
6920 (read_attribute_value): Likewise.
6921 (lookup_die_type): Likewise.
6922 (dwarf_form_name): Likewise.
6923 (dump_die_shallow): Likewise.
6924 (follow_die_ref_or_sig): Likewise.
55f1336d 6925
9ef07c8c
TT
69262011-03-24 Tom Tromey <tromey@redhat.com>
6927
6928 PR breakpoints/11816:
6929 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6930 (decode_compound): Update.
6931 (find_function_symbol): New function.
6932 (decode_dollar): Update.
6933 (decode_label): Add 'function_symbol' parameter. Handle
6934 function-relative labels.
6935 (decode_variable): Update.
6936 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6937 not its line. Set `special_display' and canonical name for
6938 labels.
6939
56435ebe
TT
69402011-03-24 Tom Tromey <tromey@redhat.com>
6941
6942 * linespec.h (struct linespec_result) <special_display>: New
6943 field.
6944 * breakpoint.h (struct breakpoint) <display_canonical>: New
6945 field.
6946 * breakpoint.c (print_breakpoint_location): Respect
6947 display_canonical.
6948 (create_breakpoint_sal): Add 'display_canonical' parameter.
6949 (create_breakpoints_sal): Update.
6950 (create_breakpoint): Update.
6951
7efd8fc2
TT
69522011-03-24 Tom Tromey <tromey@redhat.com>
6953
6954 * symtab.c (decode_line_spec): Update.
6955 * linespec.c (build_canonical_line_spec): Change type of
6956 'canonical'.
6957 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6958 (find_method, decode_all_digits, decode_dollar, decode_label)
6959 (symbol_found): Likewise.
6960 (init_linespec_result): New function.
6961 * breakpoint.c (struct captured_parse_breakpoint_args)
6962 <canonical_p>: New field, replaces addr_string_p.
6963 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6964 'addr_string'.
6965 (parse_breakpoint_sals): Likewise.
6966 (do_captured_parse_breakpoint): Update.
6967 (create_breakpoint): Use struct linespec_result.
6968 (until_break_command): Update.
6969 (breakpoint_re_set_one): Update.
6970 (decode_line_spec_1): Update.
6971 * linespec.h (struct linespec_result): New.
6972 (init_linespec_result): Declare.
6973
788c8b10
PA
69742011-03-23 Pedro Alves <pedro@codesourcery.com>
6975
6976 * regcache.c (regcache_raw_read): If the target didn't supply a
6977 given raw register, mark it as unavailable.
6978
0ba1096a
KT
69792011-03-23 Kai Tietz <ktietz@redhat.com>
6980
6981 * breakpoint.c (clear_command): Use filename_cmp
6982 instead of strcmp for comparison.
6983 * buildsym.c (watch_main_source_file_lossage): Likewise.
6984 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
6985 checking just for slash.
6986 * dbxread.c (read_dbx_symtab): Use lbasename instead of
6987 strrchr and filename_cmp instead of strcmp for filenames.
6988 (add_old_header_file): Use filename_cmp
6989 instead of strcmp for comparison.
6990 * exec.c (exec_set_section_address): Likewise.
6991 * macrotab.c (macro_lookup_inclusion): Likewise.
6992 (macro_lookup_inclusion): Likewise.
6993 * elfread.c (_initialize_elfread): Likewise.
6994 (elfstab_offset_sections): Likewise.
6995 (elfstab_offset_sections): Use lbasename instead of
6996 strrchr.
6997 * mdebugread.c (parse_partial_symbols): Likewise.
6998 (arse_partial_symbols): Use filename_(n)cmp instead of
6999 str(n)cmp for comparison.
7000 * minsyms.c (lookup_minimal_symbol): Likewise.
7001 * psymtab.c (read_psymtabs_with_filename): Likewise.
7002 * solib.c (solib_read_symbols): Likewise.
7003 (reload_shared_libraries_1): Likewise.
7004 * symmisc.c (maintenance_print_symbols): Likewise.
7005 * symfile.c (separate_debug_file_exists): Likewise.
7006 (reread_symbols): Likewise.
7007 (find_separate_debug_file_by_debuglink): Likewise.
7008 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7009 * source.c (add_path): Likewise.
7010 * symtab.c (filename_seen): Likewise.
7011 (file_matches): Likewise.
7012 (print_symbol_info): Likewise.
7013 (maybe_add_partial_symtab_filename): Likewise.
7014 (make_source_files_completion_list): Likewise.
7015 * xml-syscall.c (init_sysinfo): Likewise.
7016 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7017 IS_DIR_SEPARATOR for checking for trailing path separator.
7018
dd90784c
JK
70192011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7020
7021 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7022 label abort_expression.
7023 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7024 DWARF_VALUE_OPTIMIZED_OUT.
7025
3167638f
JK
70262011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7027
7028 Code cleanup.
7029 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7030 to linkage_name. Invert its value. Update the function comment.
7031 (c_type_print_varspec_suffix): Invert it at the caller.
7032 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7033
ce406537
PA
70342011-03-22 Pedro Alves <pedro@codesourcery.com>
7035
7036 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7037 errors when reading the `stop_pc'.
7038 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7039 get_frame_pc.
7040
da5d4055
PM
70412011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7042
7043 * NEWS: Document gdb.Write stream keyword.
7044
29e0eb9c
JK
70452011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7046
7047 Revert:
7048 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7049 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7050 (dwarf2_add_field): Fix new_field->accessibility for
7051 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7052
05775840
PM
70532011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7054
f33edef8 7055 PR python/12183
05775840
PM
7056
7057 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7058 other error classes. Do not print stack trace.
7059
a0cb7835
JK
70602011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7061
7062 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7063 (dwarf2_add_field): Fix new_field->accessibility for
7064 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7065
d19f7eee
UW
70662011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7067
7068 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7069 encountering a load via a non-SP register.
7070
4a2fbb50
UW
70712011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7072
7073 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7074 field in returned unwinder.
7075
3489610d
JB
70762012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7079
8c1a34e7
JB
70802012-03-21 Joel Brobecker <brobecker@adacore.com>
7081
7082 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7083 of xmalloc.
7084
8fbca658
PA
70852012-03-18 Pedro Alves <pedro@codesourcery.com>
7086
7087 * frame.c (frame_unwind_register): Throw an error if unwinding the
7088 register failed.
7089 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7090 an unwind stop reason.
7091 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7092 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7093 UNWIND_UNAVAILABLE>: New.
7094 * inline-frame.c (inline_frame_unwind): Install
7095 default_frame_unwind_stop_reason.
7096 * frame-unwind.c: Include "exceptions.h".
7097 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7098 (default_frame_unwind_stop_reason): New.
7099 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7100 (default_frame_unwind_stop_reason): Declare.
7101 (struct frame_unwind) <stop_reason>: New function pointer.
7102
7103 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7104 * dwarf2-frame.c: Include exceptions.h.
7105 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7106 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7107 computing the CFA. If such an error was thrown, set
7108 unavailable_retaddr.
7109 (dwarf2_frame_unwind_stop_reason): New.
7110 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7111 unavailable.
7112 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7113 (dwarf2_signal_frame_unwind): Ditto.
7114
7115 * amd64-tdep.c: Include "exceptions.h".
7116 (struct amd64_frame_cache): New field "base_p".
7117 (amd64_init_frame_cache): Clear it.
7118 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7119 Avoid reading registers with functions that throw if the register
7120 is not necessary to compute the frame base.
7121 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7122 swallowing NOT_AVAILABLE_ERROR.
7123 (amd64_frame_unwind_stop_reason): New.
7124 (amd64_frame_this_id): Don't build a frame id if the frame base
7125 was unavailable.
7126 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7127 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7128 base_p if the frame base was computable.
7129 (amd64_sigtramp_frame_unwind_stop_reason): New.
7130 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7131 frame base was unavailable.
7132 (amd64_sigtramp_frame_unwind): Install
7133 amd64_sigtramp_frame_unwind_stop_reason.
7134 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7135 base_p if the frame base was computable.
7136 (amd64_epilogue_frame_unwind_stop_reason): New.
7137 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7138 frame base was unavailable.
7139 (amd64_epilogue_frame_unwind): Install
7140 amd64_epilogue_frame_unwind_stop_reason.
7141 * i386-tdep.c: Include "exceptions.h".
7142 (struct i386_frame_cache): New field "base_p".
7143 (i386_init_frame_cache): Clear it.
7144 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7145 Avoid reading registers with functions that throw if the register
7146 is not necessary to compute the frame base.
7147 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7148 swallowing NOT_AVAILABLE_ERROR.
7149 (i386_frame_unwind_stop_reason): New.
7150 (i386_frame_this_id): Don't build a frame id if the frame base was
7151 unavailable.
7152 (i386_frame_prev_register): Handle unavailable SP.
7153 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7154 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7155 base_p if the frame base was computable.
7156 (i386_epilogue_frame_unwind_stop_reason): New.
7157 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7158 base was unavailable.
7159 (i386_epilogue_frame_unwind): Install
7160 i386_epilogue_frame_unwind_stop_reason.
7161 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7162 base_p if the frame base was computable.
7163 (i386_sigtramp_frame_unwind_stop_reason): New.
7164 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7165 base was unavailable.
7166 (i386_sigtramp_frame_unwind): Install
7167 i386_sigtramp_frame_unwind_stop_reason.
7168 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7169 type's size, not the register's.
7170 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7171
7172 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7173 default_frame_unwind_stop_reason.
7174 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7175 (alpha_heuristic_frame_unwind): Ditto.
7176 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7177 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7178 * avr-tdep.c (avr_frame_unwind): Ditto.
7179 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7180 Ditto.
7181 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7182 * frv-tdep.c (frv_frame_unwind): Ditto.
7183 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7184 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7185 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7186 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7187 (hppa_stub_frame_unwind): Ditto.
7188 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7189 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7190 (ia64_libunwind_frame_unwind)
7191 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7192 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7193 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7194 * m32c-tdep.c (m32c_unwind): Ditto.
7195 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7196 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7197 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7198 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7199 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7200 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7201 * mep-tdep.c (mep_frame_unwind): Ditto.
7202 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7203 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7204 (mips_stub_frame_unwind): Ditto.
7205 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7206 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7207 * mt-tdep.c (mt_frame_unwind): Ditto.
7208 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7209 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7210 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7211 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7212 (s390_sigtramp_frame_unwind): Ditto.
7213 * score-tdep.c (score_prologue_unwind): Ditto.
7214 * sh-tdep.c (sh_frame_unwind): Ditto.
7215 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7216 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7217 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7218 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7219 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7220 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7221 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7222 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7223 (sparc64obsd_trapframe_unwind): Ditto.
7224 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7225 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7226 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7227 * v850-tdep.c (v850_frame_unwind): Ditto.
7228 * vax-tdep.c (vax_frame_unwind): Ditto.
7229 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7230 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7231 * xtensa-tdep.c (xtensa_unwind): Ditto.
7232
f23d1b92
PA
72332011-03-18 Pedro Alves <pedro@codesourcery.com>
7234
7235 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7236 there's always a frame. Use get_frame_pc_if_available instead of
7237 get_frame_pc, and if there's no PC available, don't look up a
7238 symtab.
7239
1d4f5741
PA
72402011-03-18 Pedro Alves <pedro@codesourcery.com>
7241
7242 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7243 unavailable PC.
7244
dba09041
PA
72452011-03-18 Pedro Alves <pedro@codesourcery.com>
7246
7247 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7248 gracefully.
7249
9a26e44c
PA
72502011-03-18 Pedro Alves <pedro@codesourcery.com>
7251
7252 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7253 * frame.c (frame_unwind_caller_pc_if_available): New.
7254 * stack.c (frame_info): Handle unavailable PC.
7255
72562011-03-18 Pedro Alves <pedro@codesourcery.com>
7257
7258 * frame.c (frame_unwind_pc): Rename to ...
7259 (frame_unwind_pc_if_available): ... this. New `pc' output
7260 parameter. Change return type to int. Gracefully handle
7261 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7262 happened, or 1 otherwise.
7263 (frame_unwind_pc): Reimplement on top of
7264 frame_unwind_pc_if_available.
7265 (get_frame_func): Rename to ...
7266 (get_frame_func_if_available): New `pc' output parameter. Change
7267 return type to int. Gracefully handle the PC not being available.
7268 (get_frame_func): Reimplement on top of
7269 get_frame_func_if_available.
7270 (select_frame): Handle the PC being unavailable.
7271 (get_prev_frame): Handle the PC being unavailable.
7272 (get_frame_pc_if_available): New.
7273 (get_frame_address_in_block_if_available): New.
7274 (find_frame_sal): Handle the frame PC not being available.
7275 * frame.h (get_frame_pc_if_available): Declare.
7276 (get_frame_address_in_block_if_available): Declare.
7277 (get_frame_func_if_available): Declare.
7278 * stack.c (print_frame_info): Handle the PC being unavailable.
7279 (find_frame_funname): Ditto.
7280 (print_frame): Handle the PC being unavailable.
7281 (get_frame_language): Ditto.
7282 * blockframe.c (get_frame_block): Ditto.
7283 * macroscope.c (default_macro_scope): Ditto.
7284 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7285
72862011-03-18 Pedro Alves <pedro@codesourcery.com>
7287
7288 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7289 NOT_AVAILABLE_ERROR when evaluating the location expression.
7290
72912011-03-18 Pedro Alves <pedro@codesourcery.com>
7292
7293 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7294 returning that the register piece is unavailable/optimized out.
7295 (write_pieced_value): Handle get_frame_register_bytes returning
7296 that the register piece is unavailable/optimized out when doing a
7297 read-modify write of a bitfield.
7298 * findvar.c (value_from_register): Handle get_frame_register_bytes
7299 returning that the register piece is unavailable/optimized out.
7300 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7301 and `unavailablep'. Throw error on bad debug info. Use
7302 frame_register instead of frame_register_read, to fill in the new
7303 arguments.
7304 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7305 and `unavailablep'.
7306 * valops.c: (value_assign): Adjust, and handle
7307 get_frame_register_bytes failing.
7308 * spu-tdep.c: Include exceptions.h.
7309 (spu_software_single_step): Adjust, and handle
7310 get_frame_register_bytes failing.
7311 (spu_get_longjmp_target): Ditto.
7312 * gdbarch.sh (register_to_value): Change to return int. New
7313 parameters `optimizedp' and `unavailablep'.
7314 * gdbarch.h, gdbarch.c: Regenerate.
7315 * i386-tdep.c (i386_register_to_value): Adjust to new
7316 gdbarch_register_to_value interface.
7317 * i387-tdep.c (i387_register_to_value): Ditto.
7318 * i387-tdep.h (i387_register_to_value): Ditto.
7319 * alpha-tdep.c (alpha_register_to_value): Ditto.
7320 * ia64-tdep.c (ia64_register_to_value): Ditto.
7321 * m68k-tdep.c (m68k_register_to_value): Ditto.
7322 * mips-tdep.c (mips_register_to_value): Ditto.
7323 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7324
0fdb4f18
PA
73252011-03-18 Pedro Alves <pedro@codesourcery.com>
7326
7327 * findvar.c (value_of_register): Mark the value as unavailable, if
7328 the register is unavailable.
7329 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7330 (frame_register): New `unavailablep' parameter.
7331 (frame_register_read): Update comment.
7332 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7333 Set it if the register is unavailable. If the register is
7334 unavailable, clear the output buffer.
7335 (frame_register): New `unavailablep' parameter. Pass it down.
7336 (frame_unwind_register): Adjust.
7337 (put_frame_register): Adjust.
7338 (frame_register_read): Adjust. Also return false if the register
7339 is not available.
7340 (frame_register_unwind_location): Adjust.
7341 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7342 is unavailable, mark the value accordingly.
7343 * stack.c (frame_info): Handle unavailable registers.
7344
e69aa73e
PA
73452011-03-18 Pedro Alves <pedro@codesourcery.com>
7346
7347 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7348 simplify, using regcache_cooked_read.
7349
05d1431c
PA
73502011-03-18 Pedro Alves <pedro@codesourcery.com>
7351
7352 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7353 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7354 (regcache_raw_read_unsigned, regcache_raw_read_part)
7355 (regcache_cooked_read, regcache_cooked_read_signed)
7356 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7357 (regcache_cooked_read_ftype): Change return to enum
7358 register_status.
7359 * regcache.c: Include exceptions.h
7360 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7361 (do_cooked_read): Change return to enum register_status. Always
7362 forward to regcache_cooked_read.
7363 (regcache_raw_read): Change return to enum register_status. If
7364 the register is not REG_VALID, memset the buffer. Return the
7365 register's status.
7366 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7367 return the register's status.
7368 (regcache_raw_read_unsigned): Ditto.
7369 (regcache_cooked_read): Change return to enum register_status.
7370 Assert that with read-only regcaches, the register's status must
7371 be known. If the regcache is read-only, and the register is not
7372 REG_VALID, memset the buffer. Return the register's status.
7373 (regcache_cooked_read_signed): Change return to enum
7374 register_status. Handle non-REG_VALID registers and return the
7375 register's status.
7376 (regcache_cooked_read_unsigned): Change return to enum
7377 register_status. Handle non-REG_VALID registers and return the
7378 register's status.
7379 (regcache_xfer_part, regcache_raw_read_part)
7380 (regcache_cooked_read_part): Change return to enum
7381 register_status. Return the register's status.
7382 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7383 unavailable.
7384 (regcache_dump): Handle unavailable cooked registers.
7385 * frame.c (do_frame_register_read): Adjust interface to match
7386 regcache_cooked_read_ftype.
7387 * gdbarch.sh (pseudo_register_read): Change return to enum
7388 register_status.
7389 * gdbarch.h, gdbarch.c: Regenerate.
7390
7391 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7392 register_status.
7393 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7394 register_status. If reading a raw register indicates the raw
7395 register is not valid, return the raw register's status,
7396 otherwise, return REG_VALID.
7397 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7398 register_status. Handle non-REG_VALID raw registers and return
7399 the register's status.
7400 * arm-tdep.c (arm_neon_quad_read)
7401 (arm_pseudo_read): Change return to enum register_status. Handle
7402 non-REG_VALID raw registers and return the register's status.
7403 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7404 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7405 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7406 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7407 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7408 register_status.
7409 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7410 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7411 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7412 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7413 (m32c_pseudo_register_read): Change return to enum
7414 register_status. Adjust.
7415 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7416 enum register_status. Return the register's status.
7417 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7418 register_status. Return the register's status.
7419 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7420 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7421 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7422 * rs6000-tdep.c (move_ev_register_func): New typedef.
7423 (e500_move_ev_register): Use it. Change return to enum
7424 register_status. Return the register's status.
7425 (do_regcache_raw_read): New function.
7426 (do_regcache_raw_write): New function.
7427 (e500_pseudo_register_read): Change return to enum
7428 register_status. Return the register's status. Use
7429 do_regcache_raw_read.
7430 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7431 (dfp_pseudo_register_read): Change return to enum register_status.
7432 Return the register's status.
7433 (vsx_pseudo_register_read): Ditto.
7434 (efpr_pseudo_register_read): Ditto.
7435 (rs6000_pseudo_register_read): Ditto.
7436 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7437 register_status. Return the register's status.
7438 * sh64-tdep.c (pseudo_register_read_portions): New function.
7439 (sh64_pseudo_register_read): Change return to enum
7440 register_status. Use pseudo_register_read_portions. Return the
7441 register's status.
7442 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7443 register_status. Return the register's status.
7444 * sh-tdep.c (pseudo_register_read_portions): New function.
7445 (sh_pseudo_register_read): Change return to enum register_status.
7446 Use pseudo_register_read_portions. Return the register's status.
7447 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7448 enum register_status. Return the register's status.
7449 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7450 * spu-tdep.c (spu_pseudo_register_read_spu)
7451 (spu_pseudo_register_read): Ditto.
7452 * xtensa-tdep.c (xtensa_register_read_masked)
7453 (xtensa_pseudo_register_read): Ditto.
7454 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7455
e10abd8f
PM
74562011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7457
7458 * python/py-value.c (valpy_getitem): Fix formatting of error function
7459 call.
7460
7ea6d463
PM
74612011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7462
7463 ARI fixes: Add missing internationalization markups throughout
7464 C source files.
7465 * darwin-nat-info.c: Ditto.
7466 * record.c: Ditto.
7467 * remote.c: Ditto.
7468 * mi/mi-main.c: Ditto.
7469
001083c6
PM
74702011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7471
7472 ARI fixes: Add missing internationalization markups throughout
7473 yacc files.
7474 * c-exp.y: Ditto.
7475 * cp-name-parser.y: Ditto.
7476 * f-exp.y: Ditto.
7477 * m2-exp.y: Ditto.
7478 * objc-exp.y: Ditto.
7479 * p-exp.y: Ditto.
7480
4f1cdeec
PM
74812011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7482
7483 ARI fixes: Messages should have no trailing new lines.
7484 * darwin-nat.c (mach_check_error): Remove trailing new line from
7485 warning function call message.
7486 * record.c (bfdcore_read): Idem for error call.
7487
28e698f1
PM
74882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7489
7490 * common/signals.c (target_signal_from_host): Add _ markup to error
7491 function call message.
7492 (target_signal_to_host): Add _ markup and remove trailing new line
7493 from warning call message.
7494 (target_signal_from_command): Add _ markup to error function call
7495 message.
7496
99c3dc11
PM
74972011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7498
f33edef8 7499 PR python/12149
99c3dc11
PM
7500
7501 * python/python.c (gdbpy_write): Accept a stream argument and
7502 operate to the appropriate stream.
7503 (gdbpy_flush): Likewise.
7504 (_initialize_python): Add stream constants.
7505 (finish_python_initialization): Add GdbOutputErrorFile class.
7506
c20800be
KY
75072011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7508
7509 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7510
f4a1794a
KY
75112011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7512
7513 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
7514 to store_signed_integer. Add debug message when relocating CALL
7515 instructions. Fix formatting of debug message.
7516 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 7517
d4862372
JB
75182011-03-17 Joel Brobecker <brobecker@gnat.com>
7519
7520 * target.h (struct target_ops): Remove to_lookup_symbol field.
7521 (target_lookup_symbol): Delete macro.
7522 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7523 (update_current_target, setup_target_debug): Remove handling
7524 of to_lookup_symbol target_ops field.
7525 * ada-tasks.c (get_known_tasks_addr): Remove use of
7526 target_lookup_symbol.
7527 * coffread.c (coff_symtab_read): Likewise.
7528 * dbxread.c (read_dbx_symtab): Ditto.
7529
d645e32e
JB
75302011-03-17 Joel Brobecker <brobecker@gnat.com>
7531
7532 PR gdb/12116:
7533 * configure.ac: Add getthrds declaration check.
7534 * configure, config.in: Regenerate.
7535 * aix-thread.c (getthrds): Declare only if not already declared
7536 in procinfo.h. More declaration out of get_signaled_thread to
7537 global scope.
7538
29703da4
PM
75392011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7540
7541 * python/py-symtab.c: Populate symtab_object_methods,
7542 sal_object_methods.
7543 (stpy_is_valid): New function.
7544 (salpy_is_valid): Ditto.
7545 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7546 (sympy_is_valid): New function.
7547 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7548 (objfpy_is_valid): New function.
7549 * python/py-inferior.c: Populate inferior_object_methods.
7550 (infpy_is_valid): New function.
7551 * python/py-infthread.c: Populate thread_object_methods.
7552 (thpy_is_valid): New function.
7553 * python/py-block.c: Declare block_object_methods. Populate. Declare
7554 block_iterator_object_methods. Populate.
7555 (blpy_is_valid): New function.
7556 (blpy_iter_is_valid): Ditto.
7557
c00f8484
KS
75582011-03-16 Keith Seitz <keiths@redhat.com>
7559
7560 * linespec.c (find_methods): Canonicalize NAME before looking
7561 up the symbol.
7562 (name_end): New function.
7563 (keep_name_info): New function.
7564 (decode_line_1): Use keep_name_info.
7565 (decode_compound): Likewise.
7566 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7567 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7568
7569 PR c++/12273
7570 * linespec.c (locate_first_half): Keep overload information, too.
7571 (decode_compound): Use a string to represent break characters
7572 to escape the loop.
7573 If P points to a break character, do not increment it.
7574 For C++ and Java, keep overload information and relevant keywords.
7575 If we cannot find a symbol, search the minimal symbols.
7576
7577 PR c++/11734
7578 * linespec.c (decode_compound): Rename SAVED_ARG to
7579 THE_REAL_SAVED_ARG.
7580 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7581 single-quotes.
7582 Pass a valid block to lookup_symbol.
7583 (lookup_prefix_sym): Likewise.
7584 (find_method): Construct search name based on SYM_CLASS instead
7585 of SAVED_ARG.
7586 * psymtab.c (lookup_partial_symbol): Add language parameter.
7587 (lookup_symbol_aux_psymtabs): Likewise.
7588 Don't assume that the psymtab we found was the right one. Search
7589 for the desired symbol in the symtab to be certain.
7590 (psymtab_search_name): New function.
7591 (lookup_partial_symbol): Use psymtab_search_name.
7592 Add language parameter.
7593 (read_symtabs_for_function): Add language parameter and pass to
7594 lookup_partial_symbol.
7595 (find_symbol_file_from_partial): Likewise.
7596
c91513d8
PP
75972011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7598
7599 PR gdb/12528
7600 * dwarf2read.c (noop_record_line): New function.
7601 (dwarf_decode_lines): Ignore line tables for GCd functions.
7602
b37520b6
PM
76032011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7604
7605 Fix ARI warnings about new lines at the end of messages, which
7606 are unneeded as there is a new line added at the end of the message
7607 automatically.
7608 * darwin-nat.c (darwin_stop_inferior): Ditto.
7609 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7610 * dfp.c (decimal_to_number): Ditto.
7611 * exec.c (print_section_info): Ditto.
7612 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7613 * osdata.c (get_osdata): Ditto.
7614 * record.c (bfdcore_write): Ditto.
7615 * remote-mips.c (mips_readchar): Ditto.
7616 * remote.c (read_ptid): Ditto.
7617 * ser-mingw.c (ser_windows_raw): Ditto.
7618 * tracepoint.c (add_local_symbols): Ditto.
7619 * windows-nat.c (fake_create_process): Ditto.
7620
b08ee6a2
TT
76212011-03-16 Tom Tromey <tromey@redhat.com>
7622
7623 * tracepoint.c (stop_tracing): Don't declare.
7624 * event-top.c (after_char_processing_hook): Add `(void)'.
7625
9a6f1302
PM
76262011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7627
7628 * NEWS: Add Parameter sub-classing description.
7629
7ceb86b1
KT
76302011-03-16 Kai Tietz <ktietz@redhat.com>
7631
7632 * MAINTAINERS: Update my e-mail address.
7633
efeff6cf
AT
76342011-03-15 Andreas Tobler <andreast@fgznet.ch>
7635
7636 * MAINTAINERS: Add myself for write after approval privileges.
7637
681c238c
MS
76382011-03-15 Michael Snyder <msnyder@vmware.com>
7639
f3df5b08
MS
7640 * frame.c (find_frame_sal): Assert sym is not null.
7641
13f6513c
MS
7642 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7643
50412521
MS
7644 * objc-lang.c (selectors_info): Check strchr for null result.
7645
681c238c
MS
7646 * stabsread.c (define_symbol): Guard against bad stabstring input.
7647
6ced1581
PM
76482011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7649
7650 Remove trailing spaces and tabulations from pascal language
7651 support sources.
7652 p-exp.y: Ditto.
7653 p-lang.c: Ditto.
7654 p-lang.h: Ditto.
7655 p-valprint.c: Ditto.
7656
9373cf26
JK
76572011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7658
7659 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7660 than LOW. Comment it.
7661 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7662 HIGHPC not strictly higher than LOWPC.
7663
9a1edae6
PM
76642011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7665
7666 Fix formatting of function declarations returning a pointer in
7667 previous commit.
7668 * varobj.c (varobj_add_child): Ditto.
7669 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7670 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7671
24e9cda0
UW
76722011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7673
7674 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7675 for the "generic" vector ABI used with GCC 4.3 and later.
7676 (ppc64_sysv_abi_return_value): Likewise.
7677
76782011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
7679
7680 * infcall.c (call_function_by_hand): Function return value is
7681 always a non_lval, even when using struct_return.
7682
c9174737
PA
76832011-03-15 Pedro Alves <pedro@codesourcery.com>
7684
7685 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7686 (map_display_numbers): New.
7687 (do_delete_display): New.
7688 (undisplay_command): Use map_display_numbers.
7689 (do_enable_disable_display): New.
7690 (enable_disable_display_command): New function.
7691 (enable_display): Delete.
7692 (enable_display_command): New.
7693 (disable_display_command): Reimplement.
7694 (_initialize_printcmd): Adjust "enable display" command to use
7695 `enable_display_command' as callback.
7696
350c6c65
PM
76972011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7698
7699 * NEWS: Add Python breakpoint 'stop' operation.
7700
824446ad
PM
77012011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7702
7703 * NEWS: Delete duplicate entry. Fix typo.
7704
2021ad3a
PM
77052011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7706
7707 Fix ARI warning about function names in first column.
7708 Put prototype declaration on same line as return type.
7709 * objc-exp.y: Ditto.
7710 * p-exp.y: Ditto.
7711 * python/py-stopevent.h: Ditto.
7712 For long function names, split parameters to
7713 allow function name on same line as return type.
7714 * solib-pa64.c: Ditto.
7715 * varobj.c: Ditto.
7716 * varobj.h: Ditto.
7717 For long function declaration, use single line.
7718 * hppa-tdep.h: Ditto.
7719 * inferior.h: Ditto.
7720
7371cf6d
PM
77212011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7722
7723 * python/python.h: Declare gdbpy_should_stop and
7724 gdbpy_breakpoint_has_py_cond.
7725 * python/python.c: Add python.h to includes. Remove python.h from
7726 HAVE_PYTHON definition
7727 (gdbpy_should_stop): New dummy function.
7728 (gdbpy_breakpoint_has_py_cond): New dummy function.
7729 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7730 sub-classing capabilities.
7731 (gdbpy_should_stop): New function.
7732 (gdbpy_breakpoint_has_py_cond): New function.
7733 (local_setattro): New function.
7734 * breakpoint.c (condition_command): Add check for Python 'stop'
7735 operation.
7736 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7737 operation function as part of stop/continue tests.
7738
37b50a69
TT
77392011-03-14 Tom Tromey <tromey@redhat.com>
7740
7741 PR gdb/12576:
7742 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7743 (needs_frame_dwarf_call): Likewise.
7744
eeae04df
PM
77452011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7746
7747 Fix ARI warning about functions without parameters that do not
7748 use (void).
7749 * breakpoint.c (all_tracepoints): Replace () by (void).
7750 * f-exp.y (match_string_literal): Ditto.
7751 (yylex): Ditto.
7752 * m2-exp.y (yylex): Ditto.
7753 * mep-tdep.c (current_me_module): Ditto.
7754 (current_options): Ditto.
7755 (current_cop_data_bus_width): Ditto.
7756 (current_cr_names): Ditto.
7757 (current_cr_is_float): Ditto.
7758 (current_ccr_names): Ditto.
7759 * objc-exp.y (yylex): Ditto.
7760 * p-exp.y (yylex): Ditto.
7761 * remote.c (send_interrupt_sequence): Ditto.
7762 * tracepoint.c (current_trace_status): Ditto.
7763 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7764 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7765
6dc3565d
MS
77662011-03-11 Michael Snyder <msnyder@vmware.com>
7767
1427fe5e
MS
7768 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7769 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7770 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7771 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7772 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7773
60bc018f
MS
7774 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7775 (delete_async_event_handler): Ditto.
7776
f3be5b64
MS
7777 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7778
4c2d5724
MS
7779 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7780
6dc3565d
MS
7781 * top.c (set_verbose): Assert showcmd was found.
7782
4e6ca6d5
MG
77832011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7784
7785 * xtensa-tdep.c (warning_once): Correct style issues.
7786
815a83e4
YQ
77872011-03-11 Yao Qi <yao@codesourcery.com>
7788
7789 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7790
f2eb0bc8
AS
77912011-03-11 Andreas Schwab <schwab@redhat.com>
7792
7793 * common/aclocal.m4: Remove.
7794
b801de47
MG
77952011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7796
7797 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7798 (xtensa_write_register, xtensa_read_register): Likewise.
7799 (xtensa_hextochar): Removed.
7800 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7801
dbab50de
MG
78022011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7803
7804 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 7805 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
7806 (xtensa_alloc_frame_cache): Add initialization for new fields.
7807 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7808 (warning_once): New function.
7809 (xtensa_insn_kind): New item c0opc_and.
7810 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
7811 (call0_track_op): Change arguments. New local variable litbase.
7812 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7813 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7814 in the prologue.
dbab50de 7815 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 7816 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
7817 Add the variety of updates to handle extended prologues, which now can
7818 conduct dynamic stack adjustments.
7819 (call0_frame_cache): Likewise.
7820 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7821 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7822
b2c04452
MS
78232011-03-10 Michael Snyder <msnyder@vmware.com>
7824
f8f67713
MS
7825 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7826 (cmd_qtframe): Ditto.
7827 (cmd_qtbuffer): Ditto.
7828 (cmd_bigqtbuffer): Ditto.
7829
197f0a60
TT
78302011-03-10 Tom Tromey <tromey@redhat.com>
7831
7832 * tracepoint.c (trace_actions_command): Update.
7833 * thread.c (thread_apply_command): Update.
7834 * reverse.c (delete_bookmark_command): Update.
7835 (bookmarks_info): Update.
7836 * printcmd.c (undisplay_command): Update.
7837 * memattr.c (mem_enable_command): Update.
7838 (mem_disable_command): Update.
7839 (mem_delete_command): Update.
7840 * inferior.c (detach_inferior_command): Update.
7841 (kill_inferior_command): Update.
7842 (remove_inferior_command): Update.
7843 * cli/cli-utils.h (struct get_number_or_range_state): New.
7844 (init_number_or_range): Declare.
7845 (get_number_or_range): Update.
7846 * cli/cli-utils.c (init_number_or_range): New function.
7847 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7848 static variables.
7849 (number_is_in_list): Update.
7850 * breakpoint.h (get_tracepoint_by_number): Update.
7851 * breakpoint.c (map_breakpoint_numbers): Update for change to
7852 get_number_or_range.
7853 (find_location_by_number): Use get_number, not
7854 get_number_or_range.
7855 (trace_pass_set_count): New function.
7856 (trace_pass_command): Update for change to get_number_or_range.
7857 Rework loop logic.
7858 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7859 'state' parameter.
7860
ecec24e6
PM
78612011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7862
7863 * python/py-param.c (add_setshow_generic): Add set/show callback
7864 parameters. Register Python object context.
7865 (get_show_value): New function.
7866 (get_set_value): New function.
7867 (call_doc_function): New function.
7868 (get_doc_string): Move behind get_show_value/get_set_value.
7869
6d6c6b1f
JK
78702011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7871
7872 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7873
68d6df83
MG
78742011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7875
dbab50de 7876 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
7877 (xtensa_write_register): Likewise.
7878 (xtensa_hextochar): Add comment and update to match coding conventions.
7879 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7880 (execute_l32e, execute_s32e, execute_code): Update comments.
7881 (xtensa_exception_handler_t): Update to match coding conventions.
7882 (xtensa_insn_kind): Likewise.
7883
85c9d6a6
MS
78842011-03-09 Michael Snyder <msnyder@vmware.com>
7885
7886 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7887
91495617
PA
78882011-03-09 Pedro Alves <pedro@codesourcery.com>
7889
7890 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7891
eb8c0621
TT
78922011-03-09 Tom Tromey <tromey@redhat.com>
7893
7894 * thread.c (restore_selected_frame): Handle frame_level == -1.
7895 (make_cleanup_restore_current_thread): Use
7896 get_selected_frame_if_set.
7897 * frame.h (get_selected_frame_if_set): Declare.
7898 * frame.c (get_selected_frame_if_set): New function.
7899
9f37bbcc
PA
79002011-03-09 Pedro Alves <pedro@codesourcery.com>
7901
7902 * cli/cli-cmds.c (shell_escape): Use lbasename.
7903 * coffread.c (coff_start_symtab): Constify parameter.
7904 (complete_symtab): Constify `name' parameter.
7905 (coff_symtab_read): Constify `filestring' local.
7906 (coff_getfilename): Constify return and `result' local.
7907 Use lbasename.
7908 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7909 * linux-fork.c (info_checkpoints_command): Use lbasename.
7910 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7911 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7912 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7913 * procfs.c (procfs_make_note_section): Use lbasename.
7914 * tui/tui-io.c (printable_part): Constity return and parameter.
7915 Use lbasename.
7916 (print_filename): Constify parameters, and local `s'.
7917 (tui_rl_display_match_list): Constify local `temp'.
7918
f8de3c55
JK
79192011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7920
7921 Revert:
7922 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7923 Fix DWARF-3+ DW_AT_accessibility default assumption.
7924 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7925 cu->header.version >= 3.
7926
d9837b00
YQ
79272011-03-09 Yao Qi <yao@codesourcery.com>
7928
7929 * common/Makefile.in: Remove.
7930 * common/configure: Remove.
7931 * common/configure.ac: Remove.
7932
e637a4f5
YQ
79332011-03-09 Yao Qi <yao@codesourcery.com>
7934
7935 Revert:
7936 2011-02-11 Yao Qi <yao@codesourcery.com>
7937
7938 * common/Makefile.in: Add copyright header.
7939
7940 2011-02-11 Yao Qi <yao@codesourcery.com>
7941
7942 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7943 libcommon.a.
7944 * configure.ac: Add common to sub dir.
7945 * configure: Regenerate.
7946
f976a05d
MG
79472011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7948
7949 * xtensa-tdep.c (call0_ret): New function.
7950 (xtensa_skip_prologue): Speed up analysis.
7951
57041825
MG
79522011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7953
7954 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7955 while executing MI command -data-list-changed-registers.
7956
08b9c608
MG
79572011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7958
7959 * xtensa-tdep.c (xtensa_read_register): New function.
7960 (xtensa_write_register): New function.
7961 (xtensa_find_register_by_name): New function.
7962 (xtensa_windowed_frame_cache): Update comments in type description.
7963 (xtensa_frame_cache): Likewise.
7964 (xtensa_window_interrupt_insn): New function.
7965 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7966 (xtensa_insn_kind): Add new instructions.
7967 (rwx_special_register): New function.
7968 (call0_classify_opcode): Add new instructions to the analysis.
7969 (a0_saved, a7_saved, a11_saved): New variables.
7970 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
7971 (execute_l32e): New function.
7972 (execute_s32e): New function.
7973 (xtensa_exception_handler_t): New type.
7974 (execute_code): New function.
7975 (xtensa_window_interrupt_frame_cache): New function to conduct frame
7976 analysis for Xtensa Window Exception handlers.
7977
4d1acb11
MG
79782011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7979
98689b25
MG
7980 * xtensa-tdep.c (TX_PS): New.
7981 (windowing_enabled): Update to count for Call0 ABI.
7982 (xtensa_hextochar): New.
7983 (xtensa_init_reggroups): Make algorithm generic.
7984 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
7985
79862011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7987
7988 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 7989
d3f323f3
MS
79902011-03-08 Michael Snyder <msnyder@vmware.com>
7991
3dcabaa8
MS
7992 * i386-tdep.c (i386_follow_jump): Check return value of
7993 target_read_memory.
7994 (i386_analyze_struct_return): Ditto.
7995 (i386_skip_probe): Ditto.
7996 (i386_match_insn): Ditto.
7997 (i386_skip_noop): Ditto.
7998 (i386_analyze_frame_setup): Ditto.
7999 (i386_analyze_register_saves): Ditto.
8000 (i386_skip_prologue): Ditto.
8001 (i386_skip_main_prologue): Ditto.
8002
13b3fd9b
MS
8003 * target.c (read_whatever_is_readable): Fix memory leak.
8004
d3f323f3
MS
8005 * i386-tdep.c (i386_process_record): Document fall through.
8006
421d5c74
JK
80072011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8008
8009 Fix DWARF-3+ DW_AT_accessibility default assumption.
8010 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8011 cu->header.version >= 3.
8012
63154eca
PA
80132011-03-08 Pedro Alves <pedro@codesourcery.com>
8014
8015 * remote.c (remote_check_symbols): Skip if the target has no
8016 execution.
8017
f1a507a1
JB
80182011-03-08 Joel Brobecker <brobecker@adacore.com>
8019
8020 * target.c (read_whatever_is_readable): Reformat comment,
8021 with a minor typo fix. Minor reformatting of the code.
8022
36073a92
YQ
80232011-03-08 Yao Qi <yao@codesourcery.com>
8024
8025 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8026 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8027 Use cached result instead of calling displaced_in_arm_mode again.
8028 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8029 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8030 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8031 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8032 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8033 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8034 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8035 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8036 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8037 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8038 (arm_catch_kernel_helper_return): Likewise.
8039 * gdb/arm-tdep.h : Update function declarations.
8040
d3f323f3 80412011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 8042
e0e40094
MS
8043 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8044
0b2381f5
MS
8045 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8046
0350914a
MS
8047 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8048
69feea6f
MS
8049 * elfread.c (elf_symtab_read): Stop memory leak.
8050
e6040cbd
MS
8051 * main.c (captured_main): Fix memory leak.
8052
052874e8
AS
80532011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8054
8055 * ada-lang.c (compare_names): Call is_name_suffix with string1
8056 instead of string2.
8057
b11896a5
TT
80582011-03-07 Tom Tromey <tromey@redhat.com>
8059
8060 * xcoffread.c (xcoff_sym_fns): Update.
8061 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8062 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8063 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8064 (symbol_file_add_with_addrs_or_offsets): Likewise.
8065 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8066 * somread.c (som_sym_fns): Update.
8067 * psymtab.h (require_partial_symbols): Declare.
8068 * psymtab.c (require_partial_symbols): New function.
8069 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8070 (ALL_OBJFILE_PSYMTABS): Undef.
8071 (ALL_PSYMTABS): Move from psympriv.h.
8072 (lookup_partial_symtab, find_pc_sect_psymtab)
8073 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8074 (find_last_source_symtab_from_partial)
8075 (forget_cached_source_info_partial)
8076 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8077 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8078 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8079 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8080 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8081 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8082 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8083 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8084 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8085 psymtabs.
8086 * mipsread.c (ecoff_sym_fns): Update.
8087 * machoread.c (macho_sym_fns): Update.
8088 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8089 (read_psyms): New function.
8090 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8091 (elf_sym_fns_lazy_psyms): New global.
8092 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8093 dwarf2_build_psymtabs.
8094 * dbxread.c (aout_sym_fns): Update.
8095 * coffread.c (coff_sym_fns): Update.
8096
fda326dd
TT
80972011-03-07 Tom Tromey <tromey@redhat.com>
8098
8099 * infrun.c (print_exited_reason): Include inferior id and pid in
8100 message.
8101
aeaec162
TT
81022011-03-07 Tom Tromey <tromey@redhat.com>
8103
8104 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8105 parameter.
8106 (target_has_execution_1): Update.
8107 (target_has_execution_current): Declare.
8108 (target_has_execution): Call target_has_execution_current.
8109 (default_child_has_execution): Update.
8110 * target.c (default_child_has_execution): Add 'the_ptid'
8111 parameter.
8112 (target_has_execution_1): Likewise.
8113 (target_has_execution_current): New function.
8114 (add_target): Update.
8115 (init_dummy_target): Update.
8116 * remote-m32r-sdi.c (m32r_has_execution): New function.
8117 (init_m32r_ops): Use it.
8118 * record.c (record_core_has_execution): Now static. Add
8119 'the_ptid' parameter.
8120 * inferior.c (have_live_inferiors): Don't save current thread.
8121 Use target_has_execution_1.
8122
08e14083
YQ
81232011-03-07 Yao Qi <yao@codesourcery.com>
8124
8125 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8126
c05d19c5
JB
81272011-03-07 Joel Brobecker <brobecker@adacore.com>
8128
8129 * elfread.c (elf_symtab_read): Minor reformatting.
8130
3e6ef9e4
JB
81312011-03-07 Joel Brobecker <brobecker@adacore.com>
8132
8133 * objc-lang.c (selectors_info): Minor reformatting.
8134
dbb8534f
JB
81352011-03-07 Joel Brobecker <brobecker@adacore.com>
8136
8137 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8138
dd70cc93
JB
81392011-03-07 Joel Brobecker <brobecker@adacore.com>
8140 Michael Snyder <msnyder@vmware.com>
8141
8142 * ada-valprint.c (ada_val_print_array): Move the declaration of
8143 "byte_order" and "elttype" inside the block where these variables
8144 are actually used. Remove some special handling for the case
8145 where "elttype" and "eltlen" are null. Replace by a comment
8146 and a couple of assertion checks.
8147
b27cf2b3
MS
81482011-03-05 Michael Snyder <msnyder@vmware.com>
8149
8150 * source.c (add_path): Replace semicolon at end of block.
8151 * dwarf2expr.c (execute_stack_op): Ditto.
8152
5387a0c6
MF
81532011-03-05 Mike Frysinger <vapier@gentoo.org>
8154
8155 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8156 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8157 (bfin-*-*): Likewise.
8158
e3aa49af
MS
81592011-03-05 Michael Snyder <msnyder@vmware.com>
8160
82ae4854
MS
8161 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8162 * mdebugread.c (parse_symbol): Ditto.
8163 * parse.c (parse_exp_in_context): Ditto.
8164 * source.c (add_path): Ditto.
8165 * utils.c (gnu_debuglink_crc32): Ditto.
8166 * varobj.c (variable_language): Ditto.
8167
e3aa49af
MS
8168 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8169
154f592e
MS
81702011-03-04 Michael Snyder <msnyder@vmware.com>
8171
da3ecdc6
MS
8172 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8173
9cc89665
MS
8174 * symfile.c (simple_overlay_update): Check for null return value
8175 from lookup_minimal_symbol.
8176
154f592e
MS
8177 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8178
63ffa6ee
TJB
81792011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8180
8181 * eval.c (parse_and_eval_address_1): Remove function.
8182 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8183 instead of parse_and_eval_address_1.
8184 * value.h (parse_and_eval_address_1): Remove prototype.
8185
a17d146e
MS
81862011-03-04 Michael Snyder <msnyder@vmware.com>
8187
8188 * remote.c (putpkt_binary): Document that case stmt falls through.
8189
1a6a67de
TJB
81902011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8191
8192 * breakpointc (print_it_typical): Move NULL check from here...
8193 (print_bp_stop_message): ... to here.
8194
488919c4
MS
81952011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8196
8197 * breakpoint.c (enable_command): Use break instead of continue,
8198 and fill in a missing break.
8199 (disable_command): Ditto.
8200
1e182ce8
UW
82012011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8202
8203 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8204 (terminal_save_ours): Remove misleading comment.
8205 (inflow_inferior_data_cleanup): Free ttystate.
8206 (inflow_inferior_exit): Likewise.
8207 (copy_terminal_info): Copy ttystate.
8208
8209 * serial.c (serial_copy_tty_state): New function.
8210 * serial.h (serial_copy_tty_state): Add prototype.
8211 (struct serial_ops): Add copy_tty_state callback.
8212 * ser-base.c (ser_base_copy_tty_state): New function.
8213 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8214 * ser-go32.c (dos_copy_tty_state): New function.
8215 (dos_ops): Install copy_tty_state callback.
8216 * ser-mingw.c (_initialize_ser_windows): Likewise.
8217 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8218 * ser-unix.c (hardwire_copy_tty_state): New function.
8219 (_initialize_ser_hardwire): Install it.
8220
b2c5f112
MS
82212011-03-04 Michael Snyder <msnyder@vmware.com>
8222
2abae994
MS
8223 * breakpoint.c (create_breakpoint): Add missing break statement.
8224
7f5936f9
MS
8225 Reverting this patch:
8226 * infcall.c (call_function_by_hand): Add break statements for lint.
8227
b2c5f112
MS
8228 Reverting this patch:
8229 * cli/cli-script.c (script_from_file): Add break for lint.
8230
42b1321c
MS
82312011-03-04 Michael Snyder <msnyder@vmware.com>
8232
8233 * solib.c (reload_shared_libraries_1): Close memory leak.
8234
3e2a0cee
TT
82352011-03-03 Tom Tromey <tromey@redhat.com>
8236
8237 PR gdb/12538:
8238 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8239 DW_STRING is NULL.
8240
58397cb7
MS
82412011-03-03 Michael Snyder <msnyder@vmware.com>
8242
2e3fd767
MS
8243 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8244 fields of struct 'st' to zero.
8245
58397cb7
MS
8246 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8247 sal.pspace before calling set_current_source_symtab_and_line.
8248
ced54c8f
YQ
82492011-03-03 Yao Qi <yao@codesourcery.com>
8250
8251 * Makefile.in (configure-common): Remove. Let Makefile
8252 in dir common to rebuild itself.
8253 (common/Makefile): Likewise.
8254
3351ea09
JB
82552011-03-03 Joel Brobecker <brobecker@adacore.com>
8256
8257 * utils.c (parse_escape): Add i18n markup in error message.
8258
bf9f652a
YQ
82592011-03-03 Yao Qi <yao@codesourcery.com>
8260
8261 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8262 ARM_PC_REGNUM.
8263 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8264 (displaced_write_reg, displaced_read_reg): Likewise.
8265 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8266 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8267 (cleanup_branch): Replace magic number 14 and 15 with
8268 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8269
d42de051
MS
82702011-03-02 Michael Snyder <msnyder@vmware.com>
8271
240f9570
MS
8272 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8273
10dd8b54
MS
8274 * cli/cli-script.c (script_from_file): Add break for lint.
8275
b98bd911
MS
8276 * mdebugread.c (parse_partial_symbols): Fix indent.
8277
3494b66d
MS
8278 * target-descriptions.c (tdesc_gdb_type): No need to call
8279 xstrdup, callee saves a copy.
8280
daac021a
MS
8281 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8282
c38d16a7
MS
8283 * infcall.c (call_function_by_hand): Add break statements for lint.
8284
905b671b
MS
8285 * utils.c (parse_escape): Escape the escape char.
8286
f2eb0bc8 8287 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
8288 PyList_Append fails.
8289 (gdbpy_inferiors): Error out if build_inferior_list fails.
8290
8c6a60d1
MS
8291 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8292 a function call.
8293
d42de051
MS
8294 * record.c (record_restore): Move printf to before error return.
8295
4db71c0b
YQ
82962011-03-02 Yao Qi <yao@codesourcery.com>
8297
8298 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8299 is_thumb and insn_size.
8300 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8301 on both ARM and Thumb mode.
8302 (arm_process_displaced_insn): Set is_thumb and insn_size.
8303 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8304 (arm_displaced_step_fixup): Likewise.
8305
a9dc8dcc
MS
83062011-03-01 Michael Snyder <msnyder@vmware.com>
8307
53624a93
MS
8308 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8309
77766669
MS
8310 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8311
62d5b8da
MS
8312 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8313
5e9e105f
MS
8314 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8315
dc19db01
MS
8316 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8317 with xmalloc.
8318
5ce64950
MS
8319 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8320 which shadows function parameter.
8321
a0aa2878
MS
8322 * tracepoint.c (create_tsv_from_upload): Superfluous call
8323 to xstrdup. Callee already calls xstrdup.
8324
e325fb69
MS
8325 * linespec.c (decode_line_1): Remove unnecessary null check.
8326
21cbba77
MS
8327 * tracepoint.c (scope_info): Fix mem leak, remove underused
8328 variable.
8329
63360adc
MS
8330 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8331 superfluous null check.
8332
18ea20ac 8333 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 8334 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 8335
d014929c
MS
8336 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8337
6e9130cf
MS
8338 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8339 be null.
8340
5f01dbc0
MS
8341 * linespec.c (decode_line_1): Check for null before dereference.
8342
d684ab85
MS
8343 * reverse.c (record_restore): Move null-check to before pointer
8344 dereference.
8345
bfffb7e3
MS
8346 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8347
a9dc8dcc
MS
8348 * objc-lang.c (selectors_info): Add explanitory comment.
8349 (classes_info): Ditto.
8350
478fd957
UW
83512011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8352
8353 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8354 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8355 versions of the trampoline. Handle Thumb vs. ARM addresses.
8356 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8357 (arm_linux_init_abi): Install it.
8358 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8359 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8360
0480cefa
MS
83612011-02-28 Michael Snyder <msnyder@vmware.com>
8362
ac50ab3b
MS
8363 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8364 a little bigger, to avoid possibility of an overflow.
8365
f63fbe86
MS
8366 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8367 buffers a little bigger, to avoid possibility of an overflow.
8368
9e91a352
MS
8369 * coffread.c (coff_getfilename): Add check to avoid overflow.
8370
f2eb0bc8 8371 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
8372 avoid overflow.
8373 (classes_info): Error out on too long REGEXP.
8374
098ab512
MS
8375 * infrun.c (handle_inferior_event): Remove unused function call.
8376
bcbd1de9
MS
8377 * fork-child.c (fork_inferior): Remove ifdef'd code and
8378 unused variable.
8379
2e456570
MS
8380 * linux-thread-db.c (attach_thread): Discard unused value.
8381
14571dad
MS
8382 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8383
a9cbf802
MS
8384 * remote.c (remote_get_noisy_reply): Discard unused value.
8385 (remote_vcont_resume): Ditto.
8386 (remote_stop_ns): Ditto.
8387
5715d26e
MS
8388 * linespec.c (decode_objc): Delete unused variable.
8389
4a9bca80
MS
8390 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8391
f47fb265
MS
8392 * dwarf2read.c (add_partial_symbol): Discard unused values.
8393 (read_base_type): Delete unused variable.
8394
e81cff30
MS
8395 * dbxread.c (read_dbx_symtab): Discard unused value.
8396
262acaeb
MS
8397 * eval.c (evaluate_subexp_standard): Delete unused variable,
8398 and discard unused values.
8399
df983543
MS
8400 * infcmd.c (_initialize_infcmd): Discard unused values.
8401
89acf84d
MS
8402 * stabsread.c (rs6000_builtin_type): Missing break statement.
8403
ab8b8aca
MS
8404 * dbxread.c (process_one_symbol): Discard unused value.
8405
6b4511ab
MS
8406 * coffread.c (coff_end_symtab): Delete unused variable.
8407
e8e80198
MS
8408 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8409 (dwarf2_add_typedef): Delete unused variable.
8410 (read_namespace): Ditto.
8411 (dwarf_decode_macros): Ditto.
8412
976aa66e
MS
8413 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8414
5b92b49f
MS
8415 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8416
91e8df85
MS
8417 * p-valprint.c (pascal_val_print): Discard unused value.
8418
899500d6
MS
8419 * utils.c (nquery): Call va_end before return;
8420 (yquery): Ditto.
8421 (query): Ditto.
8422
0480cefa
MS
8423 * proc-service.c (ps_plog): Call va_end before return.
8424
fb6a3ed3
TT
84252011-02-28 Tom Tromey <tromey@redhat.com>
8426
8427 * python/python.c (gdbpy_value_cst): New global.
8428 (_initialize_python): Initialize it.
8429 * python/python-internal.h (gdbpy_value_cst): Declare.
8430 * python/py-value.c (convert_value_from_python): Use
8431 gdbpy_value_cst.
8432
c05202a1
MS
84332011-02-28 Michael Snyder <msnyder@vmware.com>
8434
e463f587
MS
8435 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8436
c38eea1a
MS
8437 * breakpoint.c (catch_syscall_completer): Free malloced list.
8438
3ef09ab5
MS
8439 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8440
8f9a01ee
MS
8441 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8442 (lval_func_check_synthetic_pointer): Ditto.
8443 (lval_func_free_closure): Fix use-after-free.
c05202a1 8444
477d0d57
TT
84452011-02-28 Tom Tromey <tromey@redhat.com>
8446
8447 * psymtab.c (expand_partial_symbol_tables): Use
8448 ALL_OBJFILE_PSYMTABS.
8449
20937029
JK
84502011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8451
8452 * objc-lang.c (selectors_info): Error on too long REGEXP.
8453
907b7f4f
MS
84542011-02-28 Michael Snyder <msnyder@vmware.com>
8455
92e96192
MS
8456 * python/py-param.c (set_parameter_value): Add missing
8457 break statement.
8458
907b7f4f
MS
8459 * linux-record.c (record_linux_system_call): Add missing
8460 break statement.
8461
12c5a436
UW
84622011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8463
8464 * breakpoint.c (print_one_breakpoint_location): Remove unused
8465 argument PRINT_ADDRESS_BITS. Update callers.
8466 (print_one_breakpoint): Likewise.
8467
170b53b2
UW
84682011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8469
8470 * breakpoint.c (wrap_indent_at_field): New function.
8471 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8472 Allocate ui_stream locally instead of using STB argument.
8473 (print_one_breakpoint_location): Update call.
8474 * ui-out.c (ui_out_query_field): New function.
8475 * ui-out.h (ui_out_query_field): Add prototype.
8476
8ab1f94d
JB
84772011-02-28 Joel Brobecker <brobecker@adacore.com>
8478
8479 From Michael Snyder <msnyder@vmware.com>
8480 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8481
7d488639
MS
84822011-02-27 Michael Snyder <msnyder@vmware.com>
8483
ae179fba
MS
8484 * objc-lang.c (selectors_info): Prevent string overrun.
8485
086dbf66
MS
8486 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8487 error in strncpy.
8488
f2eb0bc8 8489 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
8490 outer scope.
8491
7d488639
MS
8492 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8493 param with a local variable of the same name.
8494
3bd0f5ef
MS
84952011-02-27 Michael Snyder <msnyder@vmware.com>
8496
8497 * value.c (value_from_history_ref): New function.
8498 * value.h (value_from_history_ref): Export.
8499 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8500 to parse value history references.
8501 * cli/cli-utils.h (get_number_trailer): Update comment.
8502
85032011-02-27 Michael Snyder <msnyder@vmware.com>
8504
8505 * inferior.c (detach_inferior_command): Use get_number_or_range.
8506 (kill_inferior_command): Ditto.
8507 (remove_inferior_command): Ditto.
8508 (initialize_inferiors): Make command names plural.
8509 Update help strings.
8510
766062f6
MS
85112011-02-27 Michael Snyder <msnyder@vmware.com>
8512
8513 * darwin-nat-info.c: Fix comment typo.
8514 * dwarf2expr.h: Ditto.
8515 * fbsd-nat.c: Ditto.
8516 * fbsd-nat.h: Ditto.
8517 * frame-unwind.h: Ditto.
8518 * frame.h: Ditto.
8519 * hppa-hpux-tdep.c: Ditto.
8520 * i386-linux-nat.c: Ditto.
8521 * linux-nat.c: Ditto.
8522 * nbsd-nat.c: Ditto.
8523 * nbsd-nat.h: Ditto.
8524 * ppc-linux-tdep.c: Ditto.
8525 * serial.c: Ditto.
8526 * ui-file.h: Ditto.
8527 * tui/tui-winsource.c: Ditto.
8528
f2c4ead5
MS
85292011-02-26 Michael Snyder <msnyder@vmware.com>
8530
86b887df
MS
8531 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8532
66fd3b1e
MS
8533 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8534
8c814cdd
MS
8535 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8536 with a local variable of the same name.
8537
6d5e094a 8538 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 8539 param with a local variable of the same name.
6d5e094a 8540 (i387_supply_xsave): Ditto.
e5b3d7d6 8541
5eee517d
MS
8542 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8543 that it does not shadow a function parameter.
8544
8fbf6b93
MS
8545 * i386-nat.c (i386_length_and_rw_bits): Document that case
8546 statement is meant to fall through.
8547
cb969d61
MS
8548 * expprint.c (dump_subexp_body_standard): Document that case
8549 statement is meant to fall through.
8550
f2c4ead5
MS
8551 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8552 dead if statement. Condition can't be false.
8553
b021a221
MS
85542011-02-25 Michael Snyder <msnyder@vmware.com>
8555
8556 * arm-tdep.c: Fix typos in comments.
8557 * bsd-uthread.c: Ditto.
8558 * completer.c: Ditto.
8559 * corelow.c: Ditto.
8560 * cp-namespace.c: Ditto.
8561 * cp-support.c: Ditto.
8562 * cris-tdep.c: Ditto.
8563 * dbxread.c: Ditto.
8564 * dwarf2read.c: Ditto.
8565 * frame.h: Ditto.
8566 * gdbtypes.h: Ditto.
8567 * inferior.h: Ditto.
8568 * mdebugread.c: Ditto.
8569 * mips-tdep.c: Ditto.
8570 * ppc-linux-nat.c: Ditto.
8571 * ppc-linux-tdep.c: Ditto.
8572 * printcmd.c: Ditto.
8573 * sol-thread.c: Ditto.
8574 * solib-frv.c: Ditto.
8575 * solist.h: Ditto.
8576 * sparc64-tdep.c: Ditto.
8577 * spu-tdep.c: Ditto.
8578 * stabsread.c: Ditto.
8579 * symfile.c: Ditto.
8580 * valops.c: Ditto.
8581 * varobj.c: Ditto.
8582 * vax-nat.c: Ditto.
8583 * python/py-block.c: Ditto.
8584 * python/py-symbol.c: Ditto.
8585 * python/py-symtab.c: Ditto.
8586 * python/py-value.c: Ditto.
8587 * tui/tui-win.c: Ditto.
8588
c82c0b55
MS
85892011-02-25 Michael Snyder <msnyder@vmware.com>
8590
8591 * inferior.c (print_inferior): Accept a string instead of an int
8592 for requested_inferiors, and use get_number_or_range to parse it.
8593 (info_inferiors_command): Pass args string to print_inferior.
8594 (initialize_inferiors): Change help string for info inferiors.
8595 * inferior.h (print_inferior): Export prototype change.
8596
ee00cd23
TT
85972011-02-25 Tom Tromey <tromey@redhat.com>
8598
8599 * common/ax.def (invalid2): Set to 0x31.
8600
0502ed8c
JK
86012011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8602
8603 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8604 L and plongest.
8605 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8606 use L and plongest.
8607 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8608
2c9de912
MS
86092011-02-24 Michael Snyder <msnyder@vmware.com>
8610
8611 * Makefile.in (clean): Make clean should remove generated files
8612 observer.h and observer.inc.
8613
a04b0428
JB
86142011-02-24 Joel Brobecker <brobecker@adacore.com>
8615
8616 Revert the following patch (not approved yet):
8617 2011-02-21 Hui Zhu <teawater@gmail.com>
8618 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8619 * ax-gdb.c (gen_printf_expr_callback): New function.
8620 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8621 * ax-general.c (ax_memcpy): New function.
8622 (ax_print): Handle "printf".
8623 (ax_reqs): Ditto.
8624 * ax.h (ax_memcpy): Forward declare.
8625 * common/ax.def (invalid2): Removed.
8626 (printf): New entry.
8627 * printcmd.c (printcmd.h): New include.
8628 (string_printf): New function.
8629 (ui_printf): Removed.
8630 (printf_command): Remove static. Call string_printf.
8631 (eval_command): Call string_printf.
8632 * printcmd.h: New file.
8633 * tracepoint.c (validate_actionline,
8634 encode_actions_1): handle printf_command.
8635
2b52013f
TT
86362011-02-23 Tom Tromey <tromey@redhat.com>
8637
8638 * ax-general.c (ax_pick): Add missing newline.
8639
e5a67952
MS
86402011-02-23 Michael Snyder <msnyder@vmware.com>
8641
8642 * breakpoint.c (breakpoint_1): Change first argument from an int
8643 to a char pointer, so that the function now accepts a list of
f2eb0bc8 8644 breakpoints rather than just one. Use new function
e5a67952
MS
8645 'number_is_in_list' to implement.
8646 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8647 (watchpoints_info): Ditto.
8648 (tracepoints_info): Ditto.
8649 (maintenance_info_breakpoints): Ditto.
8650 (_initialize_breakpoint): Update help strings to reflect the fact
8651 that these functions can now take more than one argument.
8652 * cli/cli-utils.c (number_is_in_list): New function.
8653 * cli/cli-utils.h (number_is_in_list): Export.
8654
86552011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
8656
8657 * memattr.c (mem_enable_command): Use get_number_or_range.
8658 (mem_disable_command): Ditto.
8659 (mem_delete_command): Ditto.
8660 (_initialize_mem): Tweak usage message to reflect multiple
8661 arguments.
8662
6e6fbe60
DE
86632011-02-22 Doug Evans <dje@google.com>
8664
8665 Add gdb.lookup_global_symbol python function.
8666 * NEWS: Add entry.
8667 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8668 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8669 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8670
79b97fa8
TT
86712011-02-22 Tom Tromey <tromey@redhat.com>
8672
8673 * language.c (language_class_name_from_physname): Rename
8674 'curr_language' argument to 'lang'; use in body.
8675
298f437a
MS
86762011-02-22 Michael Snyder <msnyder@vmware.com>
8677
8678 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8679
b7ea3126
PA
86802011-02-22 Pedro Alves <pedro@codesourcery.com>
8681
8682 * frame-unwind.h: Fix comment to mention the this frame, not the
8683 next.
8684
58ee6d60
TT
86852011-02-22 Tom Tromey <tromey@redhat.com>
8686
8687 * symfile.c (auto_solib_limit): Remove.
8688 * symfile.h (auto_solib_limit): Remove.
8689
36238dbc
JB
86902011-02-22 Joel Brobecker <brobecker@adacore.com>
8691
8692 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8693
aea5b279
MS
86942011-02-21 Michael Snyder <msnyder@vmware.com>
8695
8696 * gdbthread.h (print_thread_info): Change prototype.
8697 * thread.c (print_thread_info): Accept char* instead of int for
8698 requested_threads argument. Use new function number_is_in_list
8699 to determine which threads to list.
8700 (info_threads_command): Pass char* to print_thread_info.
8701 * cli/cli-utils.c (number_is_in_list): New function.
8702 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 8703 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
8704 print_thread_info.
8705 (print_one_inferior): Ditto.
8706 (mi_cmd_list_thread_groups): Ditto.
8707
8caa75ee
JK
87082011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8709
8710 * common/Makefile.in (CFLAGS): New.
8711 (COMPILE): Add $(CFLAGS).
8712
ea666128
TT
87132011-02-21 Tom Tromey <tromey@redhat.com>
8714
8715 * breakpoint.c (catch_syscall_command_1): Fix typo.
8716
e9cafbcc
TT
87172011-02-21 Tom Tromey <tromey@redhat.com>
8718
8719 * reverse.c: Include cli-utils.h.
8720 * printcmd.c: Include cli-utils.h.
8721 (string_printf): Use skip_spaces.
8722 * cli/cli-utils.h: New file.
8723 * cli/cli-utils.c: New file.
8724 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8725 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8726 * breakpoint.h (get_number, get_number_or_range): Move to
8727 cli-utils.h.
8728 * breakpoint.c: Include cli-utils.h.
8729 (get_number_trailer, get_number, get_number_or_range)
8730 (ep_skip_leading_whitespace): Move to cli-utils.c.
8731 (create_breakpoint_sal, find_condition_and_thread)
8732 (decode_static_tracepoint_spec, watch_command_1)
8733 (watch_maybe_just_location, ep_parse_optional_if_clause)
8734 (catch_fork_command_1, catch_exec_command_1)
8735 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8736 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8737 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8738 (HFILES_NO_SRCDIR): Add cli-utils.h.
8739 (cli-utils.o): New target.
8740
f67fd822
PM
87412011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8742
8743 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8744 before calling discard_all_inferiors.
8745
c9def01d
UW
87462011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8747
8748 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8749 (struct builtin_opencl_type): Remove.
8750 (builtin_opencl_type): Change return type to "struct type **".
8751 (lookup_opencl_vector_type): Update caller.
8752 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8753 (build_opencl_types): Install plain array of "struct type *"
8754 instead of "struct builtin_opencl_type".
8755
e3039479
UW
87562011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8757 Ulrich Weigand <uweigand@de.ibm.com>
8758
8759 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8760 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8761 (struct arm_linux_hwbp_cap): New type.
8762 (arm_linux_get_hwbp_cap): New function.
8763 (arm_linux_get_hw_breakpoint_count): Likewise.
8764 (arm_linux_get_hw_watchpoint_count): Likewise.
8765 (arm_linux_can_use_hw_breakpoint): Likewise.
8766 (arm_hwbp_type): New type.
8767 (arm_hwbp_control_t): Likewise.
8768 (struct arm_linux_hw_breakpoint): Likewise.
8769 (struct arm_linux_thread_points): Likewise.
8770 (arm_threads): New global variable.
8771 (arm_linux_find_breakpoints_by_tid): New function.
8772 (arm_hwbp_control_initialize): Likewise.
8773 (arm_hwbp_control_is_enabled): Likewise.
8774 (arm_hwbp_control_disable): Likewise.
8775 (arm_linux_hw_breakpoint_initialize): Likewise.
8776 (arm_linux_get_hwbp_type): Likewise.
8777 (arm_linux_hw_watchpoint_initialize): Likewise.
8778 (arm_linux_hw_breakpoint_equal): Likewise.
8779 (arm_linux_insert_hw_breakpoint1): Likewise.
8780 (arm_linux_remove_hw_breakpoint1): Likewise.
8781 (arm_linux_insert_hw_breakpoint): Likewise.
8782 (arm_linux_remove_hw_breakpoint): Likewise.
8783 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8784 (arm_linux_insert_watchpoint): Likewise.
8785 (arm_linux_remove_watchpoint): Likewise.
8786 (arm_linux_stopped_data_address): Likewise.
8787 (arm_linux_stopped_by_watchpoint): Likewise.
8788 (arm_linux_watchpoint_addr_within_range): Likewise.
8789 (arm_linux_new_thread): Likewise.
8790 (arm_linux_thread_exit): Likewise.
8791 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8792 related target callbacks. Register arm_linux_new_thread and
8793 arm_linux_thread_exit.
8794 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8795 * arm-tdep.c (arm_pc_is_thumb): Make global.
8796 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8797
b5db5dfc
UW
87982011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8799
8800 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8801 per-frame locations while within a function epilogue.
8802
e25b2cfa
PM
88032011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8804
8805 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8806 to GNU coding standards.
8807
4af53f97
PM
88082011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8809
8810 Allow use of mingw native on Windows 95 OS.
e25b2cfa 8811 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
8812 (ser_windows_close): Only call CancelIo if function exists.
8813 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8814 to check for existence of CancelIo function in kernel32 DLL.
8815
d0e92d82
HZ
88162011-02-21 Hui Zhu <teawater@gmail.com>
8817
8818 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8819 * ax-gdb.c (gen_printf_expr_callback): New function.
8820 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8821 * ax-general.c (ax_memcpy): New function.
8822 (ax_print): Handle "printf".
8823 (ax_reqs): Ditto.
8824 * ax.h (ax_memcpy): Forward declare.
8825 * common/ax.def (invalid2): Removed.
8826 (printf): New entry.
8827 * printcmd.c (printcmd.h): New include.
8828 (string_printf): New function.
8829 (ui_printf): Removed.
8830 (printf_command): Remove static. Call string_printf.
8831 (eval_command): Call string_printf.
8832 * printcmd.h: New file.
8833 * tracepoint.c (validate_actionline,
8834 encode_actions_1): handle printf_command.
8835
7d357efd
MS
88362011-02-19 Michael Snyder <msnyder@vmware.com>
8837
8838 * reverse.c (delete_one_bookmark): Argument is now bookmark
8839 id rather than pointer to bookmark struct.
8840 (delete_bookmark_command): Use get_number_or_range.
8841 (goto_bookmark_command): Parse with get_number instead of strtoul.
8842 (bookmark_1): New function. Print info for one bookmark.
8843 (bookmarks_info): Use get_number_or_range and bookmark_1.
8844
7a45ebd7
MS
88452011-02-18 Michael Snyder <msnyder@vmware.com>
8846
f2eb0bc8 8847 * thread.c (info_threads_command): Re-implement using
7a45ebd7 8848 get_number_or_range.
65ebfb52 8849 (thread_apply_command): Ditto.
7a45ebd7 8850
94d5e490
TT
88512011-02-18 Tom Tromey <tromey@redhat.com>
8852
8853 * common/ax.def: New file.
8854 * ax.h (enum agent_op): Use ax.def.
8855 * ax-general.c (aop_map): Use ax.def.
8856
c7f96d2b
TT
88572011-02-18 Tom Tromey <tromey@redhat.com>
8858
8859 * ax-general.c (aop_map): Add pick and rot.
8860 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8861 <DW_OP_rot>: Implement.
8862 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8863 (ax_pick): Declare.
8864 * ax-general.c (ax_pick): New function.
8865
66694b75
TT
88662011-02-18 Tom Tromey <tromey@redhat.com>
8867
8868 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8869
eeaafae2
JK
88702011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8871 Tom Tromey <tromey@redhat.com>
8872
8873 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8874 make_symbol_overload_list_block with NULL BLOCK.
8875 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8876
3c3fe74c
PA
88772011-02-18 Pedro Alves <pedro@codesourcery.com>
8878
8879 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8880 * breakpoint.h (get_number_or_range): Declare.
8881 * printcmd.c (ALL_DISPLAYS): Declare.
8882 (delete_display): Reimplement taking a display pointer.
8883 (undisplay_command): Accept a range of displays to delete, using
8884 get_number_or_range.
8885
13163d80
PM
88862011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8887
8888 * c-valprint.c (c_val_print): Add embedded_offset to address
8889 for arrays of unspecified length.
8890 * p-valprint.c (pascal_val_print): Likewise.
8891
b434a28f
YQ
88922011-02-18 Yao Qi <yao@codesourcery.com>
8893
8894 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8895 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8896 (thumb_process_displaced_insn): New.
8897 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8898 call to arm_process_displaced_insn.
8899 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8900
9f6f94ff
TT
89012011-02-17 Tom Tromey <tromey@redhat.com>
8902
8903 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8904 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8905 compile_dwarf_to_ax. No longer static. Call
8906 dwarf2_compile_cfa_to_ax.
8907 (locexpr_tracepoint_var_ref): Update.
8908 (loclist_tracepoint_var_ref): Update.
8909 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8910 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8911 argument; add 'gdbarch' and 'pc'.
8912 (dwarf2_compile_cfa_to_ax): New function.
8913 (dwarf2_frame_cache): Update.
8914
e67ad678
JB
89152011-02-17 Joel Brobecker <brobecker@adacore.com>
8916
8917 * ada-lang.c (ada_type_of_array): Fix the size of the array
8918 in the case of an unconstrained packed array.
8919
946ebb0d
YQ
89202011-02-17 Yao Qi <yao@codesourcery.com>
8921
8922 * common/Makefile.in: Add more targets for make.
8923
1ba1b353
TT
89242011-02-16 Tom Tromey <tromey@redhat.com>
8925
8926 * dwarf2loc.c (unimplemented): Fix typo.
8927
b1bfef65
TT
89282011-02-16 Tom Tromey <tromey@redhat.com>
8929
8930 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8931 (compile_dwarf_to_ax) <default>: Use unimplemented.
8932 <DW_OP_deref>: Update.
8933 (disassemble_dwarf_expression): Update.
8934 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8935 (decode_locdesc): Update.
8936 * dwarf2expr.h (dwarf_stack_op_name): Update.
8937
5f1e6f19
TT
89382011-02-16 Tom Tromey <tromey@redhat.com>
8939
8940 * ax.h (struct aop_map) <name>: Now const.
8941
a0c78a73
PA
89422011-02-16 Tom Tromey <tromey@redhat.com>
8943
8944 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8945 than axs_rvalue.
8946
946ebb0d 89472011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
8948
8949 * infrun.c (get_displaced_step_closure_by_addr): New.
8950 * inferior.h: Declare it.
8951 * arm-tdep.c: (arm_pc_is_thumb): Call
8952 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8953 returns non-NULL.
8954
08807d5a
PA
89552011-02-16 Pedro Alves <pedro@codesourcery.com>
8956 Jan Kratochvil <jan.kratochvil@redhat.com>
8957
8958 gdb/
8959 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8960
29976f3f
PA
89612011-02-16 Pedro Alves <pedro@codesourcery.com>
8962 Jan Kratochvil <jan.kratochvil@redhat.com>
8963
8964 * value.c (value_contents_copy_raw): Extend describing comment.
8965 Assert that the destination contents we're overwriting are wholly
8966 available.
fb68ae73 8967 (value_contents_copy): Extend describing comment.
29976f3f 8968
cd24cfaa
PA
89692011-02-16 Pedro Alves <pedro@codesourcery.com>
8970 Jan Kratochvil <jan.kratochvil@redhat.com>
8971
8972 * value.c (value_available_contents_eq): Remove redundant local
8973 variables. Fix available contents comparision.
8974 * value.h (value_available_contents_eq): Extend describing
8975 comment.
8976
60bbf338
YQ
89772011-02-16 Yao Qi <yao@codesourcery.com>
8978
8979 * thread.c (info_threads_command): Add missing i18n markup and remove
8980 trailing newline.
8981
17450429
PP
89822011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8983
8984 * breakpoint.c (longjmp_names): New variable.
8985 (struct breakpoint_objfile_data): New type.
8986 (breakpoint_objfile_key): New variable.
8987 (msym_not_found): New variable.
8988 (msym_not_found_p): New predicate.
8989 (get_breakpoint_objfile_data): New function.
8990 (create_overlay_event_breakpoint): Check per-objfile cache for
8991 symbols first.
8992 (create_longjmp_master_breakpoint): Likewise.
8993 (create_std_terminate_master_breakpoint): Likewise.
8994 (create_exception_master_breakpoint): Likewise.
8995 (_initialize_breakpoint): Register per-objfile data key.
8996
af02033e
PP
89972011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
8998
8999 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9000 parameter value.
9001 (create_longjmp_master_breakpoint): Loop over longjmp names.
9002 (create_std_terminate_master_breakpoint): Const-propagate parameter
9003 value.
9004 (update_breakpoints_after_exec): Adjust.
9005 (breakpoint_re_set): Adjust.
9006
60f98dde
MS
90072011-02-15 Michael Snyder <msnyder@vmware.com>
9008
cdf99611
MS
9009 * thread.c (info_threads_command): Process arg as thread id,
9010 or list of thread ids.
9011 (thread_find_command): New command.
9012 (_initialize_thread): Document argument for info threads.
9013 Document 'thread find' command.
9014 * NEWS: Document new command "thread find".
60f98dde 9015
0feedb2c
JK
90162011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9017
9018 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9019 * aclocal.m4: Regenerated with aclocal-1.11.1.
9020 * common/configure: Regenerate with autoconf-2.64.
9021
648cd113
KW
90222011-02-15 Ken Werner <ken.werner@de.ibm.com>
9023
9024 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9025 bool data type to a size of one byte.
9026
5657161f
PA
90272011-02-15 Pedro Alves <pedro@codesourcery.com>
9028 Jan Kratochvil <jan.kratochvil@redhat.com>
9029
9030 * target.c (memory_xfer_live_readonly_partial): Document where to
9031 look for interface description.
9032
494e194e
YQ
90332011-02-15 Yao Qi <yao@codesourcery.com>
9034
9035 PR tdep/12352
9036 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9037 order to store PC value on stack instead of text section.
9038
d9492458
TJB
90392011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9040
9041 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9042 the EFP register set size.
9043 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9044 data from the VMX register.
9045 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9046 and write data from/to the VMX register.
9047
cdf99611
MS
90482011-02-14 Michael Snyder <msnyder@vmware.com>
9049
9050 * command.h (enum command_class): New class 'no_set_class', for
9051 "show" commands without a corresponding "set" command.
9052 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9053 * copying.c (_initialize_copying): Ditto for "show copying" and
9054 "show warranty".
9055 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9056 "show version".
9057 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9058 which there is no corresponding "set" command (eg. "show copying").
9059
424447ee
PA
90602011-02-14 Pedro Alves <pedro@codesourcery.com>
9061 Jan Kratochvil <jan.kratochvil@redhat.com>
9062
9063 * exec.c (section_table_available_memory): Change `len' parameter
9064 type to ULONGEST.
9065 * exec.h (section_table_available_memory): Ditto.
9066 * value.h (read_value_memory): Rename the `offset' parameter to
9067 `embedded_offset'.
9068
c0f61f9c 90692011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 9070 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
9071
9072 * memrange.c (compare_mem_ranges): Mention sort order in
9073 describing comment.
9074 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9075 * tracepoint.c (traceframe_available_memory): Extend comment to
9076 mention what happens to RESULT when the target does not support
9077 the query.
9078
6bfc80c7
PA
90792011-02-14 Pedro Alves <pedro@codesourcery.com>
9080 Jan Kratochvil <jan.kratochvil@redhat.com>
9081
9082 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9083 range.
9084
e7303042
PA
90852011-02-14 Pedro Alves <pedro@codesourcery.com>
9086
9087 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9088 No longer handle NULL values.
9089
8af8e3bc
PA
90902011-02-14 Pedro Alves <pedro@codesourcery.com>
9091
9092 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9093 * value.c: Include "exceptions.h".
9094 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9095 generic error.
9096 * cp-abi.c: Include gdb_assert.h.
9097 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9098 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9099 errors.
9100 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9101 parameters. No longer returns -1 on error.
9102 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9103 `val' parameters.
9104 * cp-valprint.c: Include exceptions.h.
9105 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9106 the baseclass_offset. Handle unavailable base classes. Use
9107 val_print_invalid_address.
9108 * p-valprint.c: Include exceptions.h.
9109 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9110 when fetching the baseclass_offset. No longer expect
9111 baseclass_offset returning -1. Handle unavailable base classes.
9112 Use val_print_invalid_address.
9113 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9114 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9115 `embedded_offset' and `val' parameters. Adjust.
9116 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9117 parameter, and change its type to gdb_byte pointer. Add
9118 `embedded_offset' and `val' parameters. Adjust. No longer expect
9119 baseclass_offset returning -1.
9120 (value_dynamic_cast): Use value_contents_for_printing rather than
9121 value_contents. Adjust.
9122 (search_struct_field): No longer expect baseclass_offset returning
9123 -1.
9124 (search_struct_method): If reading memory from the target is
9125 necessary, wrap it in a new value to pass to baseclass_offset. No
9126 longer expect baseclass_offset returning -1.
9127 (find_method_list): No longer expect baseclass_offset returning
9128 -1. Use value_contents_for_printing rather than value_contents.
9129 * valprint.c (val_print_invalid_address): New function.
9130 * valprint.h (val_print_invalid_address): Declare.
9131 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9132 and `val' parameters. No longer expect baseclass_offset returning
9133 -1. Adjust.
9134 * gnu-v2-abi.c: Include "exceptions.h".
9135 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9136 parameters. Handle unavailable memory. Recurse through
9137 gnuv2_baseclass_offset directly, rather than through
9138 baseclass_offset. No longer returns -1 on not found, instead
9139 throw an error.
9140 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9141 `val' parameters. Adjust.
9142
1b28d0b3
PA
91432011-02-14 Pedro Alves <pedro@codesourcery.com>
9144
9145 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9146 almost but not quite adjacent.
9147
ec0a52e1
PA
91482011-02-14 Pedro Alves <pedro@codesourcery.com>
9149
9150 * value.h (value_entirely_available): Declare.
9151 * value.c (value_entirely_available): New function.
9152 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9153 real type if the pointer is unavailable.
9154
24e6bcee
PA
91552011-02-14 Pedro Alves <pedro@codesourcery.com>
9156
9157 * valops.c (value_repeat): Use read_value_memory instead of
9158 read_memory.
9159
39d37385
PA
91602011-02-14 Pedro Alves <pedro@codesourcery.com>
9161
9162 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9163 * value.c (value_contents_copy_raw, value_contents_copy): New
9164 functions.
9165 (value_primitive_field): Use value_contents_copy_raw instead of
9166 memcpy.
9167 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9168 memcpy.
9169 (value_array, value_slice): Ditto.
9170 * valarith.c (value_subscripted_rvalue): Use
9171 value_contents_copy_raw instead of memcpy.
9172
a3d34bf4
PA
91732011-02-14 Pedro Alves <pedro@codesourcery.com>
9174
9175 <unavailable> references.
9176
9177 * valops.c (get_value_at): Use value_from_contents_and_address,
9178 avoiding read_memory.
9179
9fc6d940
PA
91802011-02-14 Pedro Alves <pedro@codesourcery.com>
9181
9182 * c-valprint.c (c_val_print): Print a string with unavailable
9183 contents as an array.
9184
5467c6c8
PA
91852011-02-14 Pedro Alves <pedro@codesourcery.com>
9186
9187 * value.h (unpack_bits_as_long): Delete declaration.
9188 (unpack_value_bits_as_long): Declare.
9189 (unpack_value_field_as_long): Declare.
9190 (value_field_bitfield): Declare.
9191 * value.c (unpack_bits_as_long): Rename to...
9192 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9193 value parameters. Return the extracted result in a new output
9194 parameter. If the value contents are unavailable, return false,
9195 otherwise return true.
9196 (unpack_value_bits_as_long): New.
9197 (unpack_field_as_long): Rename to...
9198 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9199 Add embedded_offset and value parameters. Return the extracted
9200 result in a new output parameter. If the value contents are
9201 unavailable, return false, otherwise return true.
9202 (unpack_value_field_as_long): New.
9203 (unpack_field_as_long_1): New.
9204 (unpack_field_as_long): Reimplement as wrapper around
9205 unpack_value_field_as_long_1.
9206 (value_field_bitfield): New function.
9207 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9208 unpack_value_bits_as_long. Mark the value as unavailable, if it
9209 is unavailable.
9210 * jv-valprint.c (java_print_value_fields): Use
9211 value_field_bitfield.
9212 * p-valprint.c (pascal_object_print_value_fields): Use
9213 value_field_bitfield.
9214 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9215
3158c6ed
PA
92162011-02-14 Pedro Alves <pedro@codesourcery.com>
9217
9218 * value.c (get_internalvar_integer): Also return the int value of
9219 TYPE_CODE_INT INTERNALVAR_VALUE values.
9220 (set_internalvar): Don't special case TYPE_CODE_INT.
9221
9fbdca0d
PA
92222011-02-14 Pedro Alves <pedro@codesourcery.com>
9223
9224 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9225 INTERNALVAR_POINTER.
9226 <pointer>: Delete.
9227 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9228 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9229 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9230
c8c1c22f
PA
92312011-02-14 Pedro Alves <pedro@codesourcery.com>
9232
9233 * value.h (value_available_contents_eq): Declare.
9234 * value.c (find_first_range_overlap): New function.
9235 (value_available_contents_eq): New function.
9236 * valprint.c (val_print_array_elements): Use
9237 value_available_contents_eq.
9238 * ada-valprint.c (val_print_packed_array_elements): Use
9239 value_available_contents_eq.
9240 * jv-valprint.c (java_value_print): Use
9241 value_available_contents_eq.
9242
e6e4e701
PA
92432011-02-14 Pedro Alves <pedro@codesourcery.com>
9244
9245 * target.c (target_read_live_memory): New function.
9246 (memory_xfer_live_readonly_partial): New.
9247 (memory_xfer_partial): If reading from a traceframe, fallback to
9248 reading unavailable read-only memory from read-only regions of
9249 live target memory.
9250 * tracepoint.c (disconnect_tracing): Adjust.
9251 (set_current_traceframe): New, factored out from
9252 set_traceframe_number.
9253 (set_traceframe_number): Reimplement to only change the traceframe
9254 number on the GDB side.
9255 (do_restore_current_traceframe_cleanup): Adjust.
9256 (make_cleanup_restore_traceframe_number): New.
9257 (cur_traceframe_number): New global.
9258 (tfile_open): Set cur_traceframe_number to no traceframe.
9259 (set_tfile_traceframe): New function.
9260 (tfile_trace_find): If looking up a traceframe using any method
9261 other than by number, make sure the current tfile traceframe
9262 matches gdb's current traceframe. Update the current tfile
9263 traceframe if the lookup succeeded.
9264 (tfile_fetch_registers, tfile_xfer_partial)
9265 (tfile_get_trace_state_variable_value): Make sure the remote
9266 traceframe matches gdb's current traceframe.
9267 * remote.c (remote_traceframe_number): New global.
9268 (remote_open_1): Set it to -1.
9269 (set_remote_traceframe): New function.
9270 (remote_fetch_registers, remote_store_registers)
9271 (remote_xfer_memory, remote_xfer_partial)
9272 (remote_get_trace_state_variable_value): Make sure the remote
9273 traceframe matches gdb's current traceframe.
9274 (remote_trace_find): If looking up a traceframe using any method
9275 other than by number, make sure the current remote traceframe
9276 matches gdb's current traceframe. Update the current remote
9277 traceframe if the lookup succeeded.
9278 * infrun.c (fetch_inferior_event): Adjust.
9279 * tracepoint.h (set_current_traceframe): Declare.
9280 (get_traceframe_number, set_traceframe_number): Add describing
9281 comments.
9282
e6ca34fc
PA
92832011-02-14 Pedro Alves <pedro@codesourcery.com>
9284
9285 Mark pieces of values as unavailable if the corresponding memory
9286 is unavailable.
9287
9288 * valops.c: Include tracepoint.h.
9289 (value_fetch_lazy): Use read_value_memory.
9290 (read_value_memory): New.
9291 * value.h (read_value_memory): Declare.
9292 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9293 * exec.c (section_table_available_memory): New function.
9294 * exec.h (section_table_available_memory): Declare.
9295
2a7498d8
PA
92962011-02-14 Pedro Alves <pedro@codesourcery.com>
9297
9298 * Makefile.in (SFILES): Add memrange.c.
9299 (HFILES_NO_SRCDIR): Add memrange.h.
9300 (COMMON_OBS): Add memrange.o.
9301 * memrange.c: New file.
9302 * memrange.h: New file.
9303 * tracepoint.c: Include memrange.h.
9304 (struct mem_range): Delete.
9305 (mem_range_s): Delete.
9306 (traceframe_available_memory): New function.
9307 * tracepoint.h (traceframe_available_memory): Declare.
9308
b3b9301e
PA
93092011-02-14 Pedro Alves <pedro@codesourcery.com>
9310
9311 * target.h (struct traceframe_info): Forward declare.
9312 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9313 (struct target_ops) <to_traceframe_info>: New field.
9314 (target_traceframe_info): New.
9315 * target.c (update_current_target): Inherit and default
9316 to_traceframe_info.
9317 * remote.c (PACKET_qXfer_traceframe_info): New.
9318 (remote_protocol_features): Register qXfer:traceframe-info:read.
9319 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9320 (remote_traceframe_info): New.
9321 (init_remote_ops): Install it.
9322 (_initialize_remote): Install "set/show remote traceframe-info"
9323 commands.
9324 * tracepoint.h (parse_traceframe_info): Declare.
9325 * tracepoint.c (struct mem_range): New.
9326 (mem_range_s): New typedef.
9327 (struct traceframe_info): New.
9328 (traceframe_info): New global.
9329 (free_traceframe_info): New function.
9330 (clear_traceframe_info): New function.
9331 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9332 info.
9333 (build_traceframe_info): New function.
9334 (tfile_traceframe_info): New function.
9335 (init_tfile_ops): Install tfile_traceframe_info.
9336 (traceframe_info_start_memory, free_result): New functions.
9337 (memory_attributes, traceframe_info_elements): New globals.
9338 (parse_traceframe_info, get_traceframe_info): New functions.
9339 * features/traceframe-info.dtd: New file.
9340 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9341
4e07d55f
PA
93422011-02-14 Pedro Alves <pedro@codesourcery.com>
9343
9344 Base support for <unavailable> value contents.
9345
4e07d55f
PA
9346 * value.h (value_bytes_available): Declare.
9347 (mark_value_bytes_unavailable): Declare.
9348 * value.c (struct range): New struct.
9349 (range_s): New typedef.
9350 (ranges_overlap): New function.
9351 (range_lessthan): New function.
9352 (ranges_contain_p): New function.
9353 (struct value) <unavailable>: New field.
9354 (value_bytes_available): New function.
9355 (mark_value_bytes_unavailable): New function.
9356 (require_not_optimized_out): Constify parameter.
9357 (require_available): New function.
9358 (value_contents_all, value_contents): Require all bytes be
9359 available.
9360 (value_free): Free `unavailable'.
9361 (value_copy): Copy `unavailable'.
9362 * valprint.h (val_print_unavailable): Declare.
9363 * valprint.c (valprint_check_validity): Rename `offset' parameter
9364 to `embedded_offset'. If printing a scalar, check whether the
9365 value chunk is available.
9366 (val_print_unavailable): New.
9367 (val_print_scalar_formatted): Check whether the value is
9368 available.
9369 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9370 pretty-printing unavailable values.
9371
bc9a5551
JK
93722011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9373
9374 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9375 * c-typeprint.c (c_type_print_args): Update the function comment. New
9376 variable param_type, initialize it. Remove const/volatile qualifiers
9377 for language_cplus and !show_artificial. Use param_type.
9378
93b55aa1
JK
93792011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9380
9381 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9382 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9383 * symtab.h (struct symtab) <next>: Comment extension.
9384
181d9476
YQ
93852011-02-12 Yao Qi <yao@codesourcery.com>
9386
9387 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9388
b708a5c7
JK
93892011-02-11 Yao Qi <yao@codesourcery.com>
9390
9391 * common/Makefile.in: Add copyright header.
9392
c5187ac6
PA
93932011-02-11 Pedro Alves <pedro@codesourcery.com>
9394
9395 * infrun.c (proceed): Move switching out and in of tfind mode from
9396 here ...
9397 (fetch_inferior_event): ... to here.
9398
4f3e6fb7
YQ
93992011-02-11 Yao Qi <yao@codesourcery.com>
9400
9401 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9402 libcommon.a.
9403 * configure.ac: Add common to sub dir.
9404 * configure: Regenerate.
9405
b708a5c7
JK
94062011-02-11 Yao Qi <yao@codesourcery.com>
9407
9408 Build libcommon.a.
9409
9410 * common/Makefile.in: New.
9411 * common/configure.ac: New.
9412 * common/aclocal.m4: New.
9413 * common/configure: Generate.
9414
2287cc7e
PA
94152011-02-10 Pedro Alves <pedro@codesourcery.com>
9416
9417 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9418 side of the parenthesis.
9419
9420 Merge from GCC:
9421 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 9422 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 9423
fd62cb89
MS
94242011-02-08 Michael Snyder <msnyder@vmware.com>
9425
9426 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9427
56d2815c
JK
94282011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9429
9430 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9431 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9432 psubd and paddd.
9433
4f7d61a8
JK
94342011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9435
9436 PR 12361.
9437 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9438 phsubsw.
9439 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9440 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9441
54fcddd0
UW
94422011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9443
9444 * dwarf2read.c (read_subroutine_type): Set special calling
9445 convention flag for functions compiled by IBM XL C for OpenCL.
9446 * ppc-sysv-tdep.c: Include "dwarf2.h"
9447 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9448 calling convention.
9449 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9450 IBM OpenCL vector types calling convention.
9451 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9452 (ppc_sysv_abi_broken_return_value): Likewise.
9453 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9454 types calling convention.
9455 (ppc64_sysv_abi_return_value): Likewise.
9456 * spu-tdep.c: Include "dwarf2.h"
9457 (spu_return_value): Implement IBM OpenCL vector types calling
9458 convention.
9459
d6dafb7c
UW
94602011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9461
9462 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9463 correct ABI for AltiVec vector arguments.
9464
32b72a42
PA
94652011-02-07 Pedro Alves <pedro@codesourcery.com>
9466
9467 * valprint.c (val_print): Extend comment.
9468 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9469 interface explanation to val_print.
9470 (ada_val_print_array): Adjust comment to current interface.
9471 (print_field_values): Adjust comment to current interface.
9472 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9473 explanation to val_print.
9474 * f-valprint.c (f_val_print): Ditto.
9475 * jv-valprint.c (java_val_print): Ditto.
9476 * m2-valprint.c (m2_val_print): Ditto.
9477 * p-valprint.c (pascal_val_print): Ditto.
9478
9998af43
TJB
94792011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9480
9481 * breakpoint.c (parse_breakpoint_sals): Fix description.
9482
505500db 94832011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 9484 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
9485
9486 * python/py-inferior.c (python_on_normal_stop): New function.
9487 (python_on_resume): New function.
9488 (python_inferior_exit): New function.
9489 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9490 inferior_exit observers.
9491 * python/py-evtregistry.c: New file.
9492 * python/py-threadevent.c : New file.
9493 * python/py-event.c: New file.
9494 * python/py-evts.c: New file.
9495 * python/py-continueevent.c: New file.
9496 * python/py-bpevent.c: New file.
9497 * python/py-signalevent.c: New file.
9498 * python/py-exetiedevent.c: New file.
9499 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9500 Move struct breakpoint_object from here...
9501 * python/python-internal.h: ... to here.
9502 * python/py-event.h: New file.
9503 * python/py-events.h: New file.
9504 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9505 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9506 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9507 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9508 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9509 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9510 Add build rules for all the above.
9511
9e0ac564
TT
95122011-02-04 Tom Tromey <tromey@redhat.com>
9513
9514 * dwarf2read.c (dwarf2_section_empty_p): New function.
9515 (dwarf2_read_section): Use dwarf2_section_empty_p.
9516 (dwarf2_section_size): New function.
9517 (dwarf2_get_section_info): Unconditionally read section.
9518 (dwarf2_read_index): Use dwarf2_section_empty_p.
9519 (partial_read_comp_unit_head): Use dwarf2_section_size.
9520 (dwarf2_symbol_mark_computed): Likewise.
9521
eee5b35e
DD
95222011-02-04 David Daney <ddaney@caviumnetworks.com>
9523
9524 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9525
385203ed
DD
95262011-02-04 David Daney <ddaney@caviumnetworks.com>
9527
9528 * mips-linux-tdep.c: Include xml-syscall.h.
9529 (mips_linux_get_syscall_number): New function.
9530 (mips_linux_init_abi): Add calls to
9531 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9532 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9533 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9534 * syscalls/mips-n32-linux.xml: New file.
9535 * syscalls/mips-n64-linux.xml: New file.
9536 * syscalls/mips-o32-linux.xml: New file.
9537
9277c30c
UW
95382011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9539
9540 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9541 Complain about inverted range entries.
9542 (dwarf2_record_block_ranges): Likewise.
9543
a3be7890
TJB
95442011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9545
9546 Fix some typos.
9547 * breakpoint.c (update_watchpoint): Fix name of the
9548 update_global_location_list function.
9549 (print_one_breakpoint): Fix typo.
9550 (_initialize_breakpoint): Remove extra space in hbreak help
9551 string.
9552 * breakpoint.h (struct bp_location) <length>: Fix field
9553 description.
9554
041274d8
PA
95552011-02-04 Pedro Alves <pedro@codesourcery.com>
9556
9557 * regcache.c (registers_changed_ptid): Don't explictly always
9558 clear `current_regcache'. Only clear current_thread_ptid and
9559 current_thread_arch when PTID matches. Only reinit the frame
9560 cache if PTID matches the current inferior_ptid. Move alloca(0)
9561 call to ...
9562 (registers_changed): ... here.
9563
c1c2ab58
UW
95642011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9565
9566 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9567 starts with __stack_chk_guard as stack guard symbol.
9568
9011945e
AB
95692011-02-03 Andrew Burgess <aburgess@broadcom.com>
9570
9571 * disasm.c (compare_lines): Handle the end of sequence markers
9572 within the line table to better support disassembling over
9573 compilation unit boundaries.
9574
e0634ccf
UW
95752011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9576
9577 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9578 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9579 implementation even if no symbols are available.
9580 (thumb_analyze_prologue): Update call to skip_prologue_function.
9581 (arm_analyze_prologue): Likewise.
9582
0e9e9abd
UW
95832011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9584
9585 * arm-tdep.c: Include "observer.h".
9586 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9587 (arm_exidx_data_key): New static variable.
9588 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9589 (struct arm_exidx_data): Likewise.
9590 (arm_exidx_data_free): New function.
9591 (arm_compare_exidx_entries): Likewise.
9592 (arm_obj_section_from_vma): Likewise.
9593 (arm_exidx_new_objfile): Likewise.
9594 (arm_find_exidx_entry): Likewise.
9595 (arm_exidx_fill_cache): Likewise.
9596 (arm_exidx_unwind_sniffer): Likewise.
9597 (arm_exidx_unwind): New global variable.
9598 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9599 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9600 observer. Register arm_exidx_data_key as objfile data.
9601
2e9e421f
UW
96022011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9603
9604 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9605 due to accessing uninitialized variable. Fix indentation.
9606
580688f3
PA
96072011-02-02 Pedro Alves <pedro@codesourcery.com>
9608
9609 * c-valprint.c (c_value_print): When doing virtual base pointer
9610 adjustment, create a new value with adjusted contents rather than
9611 changing the contents of the value being printed (and getting it
9612 wrong).
9613
3d2c1d41
PA
96142011-02-02 Pedro Alves <pedro@codesourcery.com>
9615
9616 * xml-support.c (xml_find_attribute): New.
9617 (xinclude_start_include): Use it.
9618 * xml-support.h (xml_find_attribute): Declare.
9619 * memory-map.c (memory_map_start_memory)
9620 (memory_map_start_property): Use xml_find_attribute.
9621 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9622 xml_find_attribute.
9623 * remote.c (start_thread): Use xml_find_attribute.
9624 * solib-target.c (library_list_start_segment)
9625 (library_list_start_section, library_list_start_library)
9626 (library_list_start_list): Use xml_find_attribute.
9627 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9628 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9629 (tdesc_start_field): Use xml_find_attribute.
9630
0af3e2db
UW
96312011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9632
9633 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9634 (BUILD_OCL_VTYPES): Update.
9635
c1039e3c
JB
96362011-02-02 Joel Brobecker <brobecker@adacore.com>
9637
9638 * configure.ac: Work around non-GNU sed limitation when computing
9639 python version number.
9640 * configure: Regenerate.
9641
600ea1be
JK
96422011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9643
9644 Fix debug printing of TYPE_INSTANCE.
9645 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9646 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9647
56c12414
JK
96482011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9649
9650 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9651 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9652 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9653 * ada-operator.inc: Rename the file to ...
9654 * ada-operator.def: ... here, wrap all the entries by macro OP.
9655 * expprint.c (op_name_standard): Remove all the entries. Include
9656 "std-operator.def" instead.
9657 * expression.h (enum exp_opcode): Include "std-operator.def" and
9658 "ada-operator.def". Move all the entries ...
9659 * std-operator.def: ... here, wrap all the entries by macro OP.
9660
c52b559d
PP
96612011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9662
9663 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9664 * breakpoint.c (remove_jit_event_breakpoints): New function.
9665 * jit.c (jit_descriptor_addr): Delete.
9666 (registering_code): Delete.
9667 (clear_int): Delete.
9668 (jit_inferior_data): New variable.
9669 (struct jit_inferior_data): New type.
9670 (get_jit_inferior_data): New function.
9671 (jit_inferior_data_cleanup): New function.
9672 (jit_read_descriptor): Adjust.
9673 (jit_register_code): Adjust.
9674 (jit_breakpoint_re_set_internal): New function; move code here ...
9675 (jit_inferior_init): ... from here.
9676 (jit_breakpoint_re_set): Adjust.
9677 (jit_reset_inferior_data_and_breakpoints): New function.
9678 (jit_inferior_created_observer): Adjust.
9679 (jit_inferior_exit_hook): Adjust.
9680 (jit_executable_changed_observer): New function.
9681 (jit_event_handler): Adjust.
9682 (_initialize_jit): Adjust.
9683
e839132d
MS
96842011-01-31 Michael Snyder <msnyder@vmware.com>
9685
9686 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9687 line.
9688
47a80e90
TT
96892011-01-31 Tom Tromey <tromey@redhat.com>
9690
9691 PR python/12216:
9692 * python/python.c (execute_gdb_command): Call
9693 prevent_dont_repeat.
9694 * top.c (suppress_dont_repeat): New global.
9695 (dont_repeat): Use it.
9696 (prevent_dont_repeat): New function.
9697 * command.h (prevent_dont_repeat): Declare.
9698
45a43567
TT
96992011-01-31 Tom Tromey <tromey@redhat.com>
9700
9701 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9702 * python/py-breakpoint.c (bppy_set_silent): Use
9703 breakpoint_set_silent.
9704 (bppy_set_thread): Use breakpoint_set_thread.
9705 (bppy_set_task): Use breakpoint_set_task.
9706 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9707 (breakpoint_set_task): Declare.
9708 (make_breakpoint_silent): Remove.
9709 * breakpoint.c (breakpoint_set_silent): New function.
9710 (breakpoint_set_thread): Likewise.
9711 (breakpoint_set_task): Likewise.
9712 (make_breakpoint_silent): Remove.
9713
09d682a4
TT
97142011-01-31 Tom Tromey <tromey@redhat.com>
9715
9716 * breakpoint.h (user_breakpoint_p): Declare.
9717 * breakpoint.c (user_breakpoint_p): New function.
9718 (breakpoint_1): Use it.
9719 (save_breakpoints): Likewise.
9720
9c4ea6c5
JB
97212011-01-31 Joel Brobecker <brobecker@adacore.com>
9722
9723 * configure.ac: Add handling of Python distribution on Windows.
9724 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9725 sysconfig variables are not defined, then do not use them.
9726 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9727 instead. On Windows, return all paths using forward-slashes
9728 rather than backslashes.
9729
ac534cba
JB
97302011-01-31 Joel Brobecker <brobecker@adacore.com>
9731
9732 * configure.ac: Remove fallback behavior for building
9733 against Python. Remove tweaking of Python include path.
9734 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9735 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9736 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9737 Always restore CPPFLAGS and LIBS after linking test.
9738 * configure: Regenerated.
9739 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9740 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9741 * python/python-internal.h: Adjust includes of Python .h files.
9742
c2f0d045
JB
97432011-01-31 Joel Brobecker <brobecker@adacore.com>
9744
9745 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9746 in error message.
9747
6b0c4c1f
JB
97482011-01-31 Joel Brobecker <brobecker@adacore.com>
9749
9750 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9751 value test.
9752
672c9795
YQ
97532011-01-31 Yao Qi <yao@codesourcery.com>
9754
9755 * arm-linux-nat.c: Update calls to regcache_register_status
9756 instead of regcache_valid_p.
9757 * aix-thread.c: Likewise.
9758 * i386gnu-nat.c: Likewise.
9759
80b23b6a
JK
97602011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9761
9762 Fix crash.
9763 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9764 touching TYPE_FIELD_ARTIFICIAL.
9765
4cd712bd
RE
97662011-01-28 Richard Earnshaw <rearnsha@arm.com>
9767
9768 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9769 Committers.
9770
ffd5ec24
PA
97712011-01-28 Pedro Alves <pedro@codesourcery.com>
9772
9773 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9774 selected, don't try iterating over the traceframe's blocks.
9775 (tfile_has_stack): If there's no traceframe selected, then there's
9776 no stack.
9777 (tfile_has_registers): If there's no traceframe selected, then
9778 there's no registers.
9779
e8c9e0a1
PA
97802011-01-28 Pedro Alves <pedro@codesourcery.com>
9781
9782 * target.c (memory_xfer_partial): No need to restore shadows if we
9783 haven't read anything.
9784
de15c4ab
PA
97852011-01-28 Pedro Alves <pedro@codesourcery.com>
9786
9787 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9788 and val_print_scalar_formatted.
9789
9f41c731
PA
97902011-01-27 Pedro Alves <pedro@codesourcery.com>
9791
9792 * tracepoint.c (tfile_read): New.
9793 (tfile_open): Use it.
9794 (tfile_get_traceframe_address): Use it.
9795 (tfile_trace_find): Use it.
9796 (walk_blocks_callback_func): New typedef.
9797 (match_blocktype): New function.
9798 (traceframe_walk_blocks): New function.
9799 (traceframe_find_block_type): New function.
9800 (tfile_fetch_registers, tfile_xfer_partial)
9801 (tfile_get_trace_state_variable_value): Use
9802 traceframe_find_block_type and tfile_read.
9803
cdefc55d
KB
98042011-01-26 Kevin Buettner <kevinb@redhat.com>
9805
9806 * remote-mips.c: Add internationalization mark ups. Remove
9807 trailing \n from already marked up strings.
9808
a81766d8
TT
98092011-01-26 Tom Tromey <tromey@redhat.com>
9810
9811 * python/py-prettyprint.c (print_string_repr): Clear
9812 'addressprint' option when calling val_print_string.
9813 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9814 option when calling val_print_string.
9815
74aedc46
TT
98162011-01-26 Tom Tromey <tromey@redhat.com>
9817
9818 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9819 GDB_PY_LL_ARG.
9820 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9821 macros.
9822 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9823 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9824 (gdb_py_long_as_ulongest): New defines.
9825 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9826 (gdb_py_int_as_long): Declare.
9827 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9828 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9829 (valpy_long): Add comment.
9830 * python/py-utils.c (get_addr_from_python): Use
9831 gdb_py_long_as_ulongest. Handle overflow properly.
9832 (gdb_py_object_from_longest): New function.
9833 (gdb_py_object_from_ulongest): Likewise.
9834 (gdb_py_int_as_long): Likewise.
9835 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9836 * python/py-symtab.c (salpy_get_pc): Use
9837 gdb_py_long_from_ulongest.
9838 (salpy_get_line): Use PyInt_FromLong.
9839 * python/py-param.c (set_parameter_value): Use
9840 gdb_py_int_as_long.
9841 * python/py-lazy-string.c (stpy_get_address): Use
9842 gdb_py_long_from_ulongest.
9843 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9844 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9845 * python/py-breakpoint.c (bppy_set_thread): Use
9846 gdb_py_int_as_long.
9847 (bppy_set_task): Likewise.
9848 (bppy_set_ignore_count): Likewise.
9849 (bppy_set_hit_count): Likewise.
9850 * python/py-block.c (blpy_get_start): Use
9851 gdb_py_object_from_ulongest.
9852 (blpy_get_end): Likewise.
9853 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9854
e4f6d2ec
TJB
98552011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9856
9857 PR/symtab 11766:
9858 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9859 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9860 equality test for objfile, initialize addr_low if needed.
9861
b30aa278
PA
98622011-01-25 Pedro Alves <pedro@codesourcery.com>
9863
9864 * tui/tui-regs.c (tui_register_format): Remove dead code.
9865
ab2188aa
PA
98662011-01-25 Pedro Alves <pedro@codesourcery.com>
9867
9868 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9869 instead of print_scalar_formatted.
9870 (print_scalar_formatted): Don't handle 's' format strings here,
9871 and add an assertion that we never see such format here.
9872 * valprint.h (val_print_scalar_formatted): Declare.
9873 * valprint.c (val_print_scalar_formatted): New.
9874 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9875 instead of print_scalar_formatted.
9876 * jv-valprint.c (java_val_print): Ditto.
9877 * p-valprint.c (pascal_val_print): Ditto.
9878 * ada-valprint.c (ada_val_print_1): Ditto.
9879 * f-valprint.c (f_val_print): Ditto.
9880 * infcmd.c (registers_info): Ditto.
9881 * m2-valprint.c (m2_val_print): Ditto.
9882
66d61a4c
PA
98832011-01-25 Pedro Alves <pedro@codesourcery.com>
9884
9885 * m2-valprint.c (print_unbounded_array): Pass
9886 value_contents_for_printing rather than value_contents, to
9887 m2_print_array_contents. Also pass in the value.
9888
831adc1f
JK
98892011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9890
9891 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9892 (save_gdb_index_command): Switch to .gdb_index version 4.
9893
20622269
PA
98942011-01-25 Pedro Alves <pedro@codesourcery.com>
9895
9896 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9897 than frame_register, and always pass a valid value to val_print.
9898
585fdaa1
PA
98992011-01-25 Pedro Alves <pedro@codesourcery.com>
9900
9901 Centralize printing "<optimized out>".
9902
9903 * valprint.h (val_print_optimized_out): Declare.
9904 * cp-valprint.c (cp_print_value_fields): Use
9905 val_print_optimized_out.
9906 * jv-valprint.c (java_print_value_fields): Ditto.
9907 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9908 * printcmd.c (print_formatted): Ditto.
9909 * valprint.c (valprint_check_validity): Ditto.
9910 (value_check_printable): Ditto.
9911 (val_print_optimized_out): New.
9912
29ec5263
PA
99132011-01-25 Pedro Alves <pedro@codesourcery.com>
9914
9915 * infcmd.c (default_print_registers_info): Allocate values so to
9916 never pass a NULL value to val_print.
9917
de4127a3
PA
99182011-01-25 Pedro Alves <pedro@codesourcery.com>
9919
9920 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9921 boolean. Make sure to always pass a value that matches the
9922 contents buffer to callees. Preserve `address' for following
9923 iterations.
9924 * value.c (value_contents_for_printing_const): New.
9925 (value_address): Constify value argument.
9926 * value.h (value_contents_for_printing_const): Declare.
9927 (value_address): Constify value argument.
9928
ee99023e
PA
99292011-01-25 Pedro Alves <pedro@codesourcery.com>
9930
9931 * regcache.c (struct regcache_descr): Rename
9932 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9933 and sizeof_cooked_register_valid_p to
9934 sizeof_cooked_register_status.
9935 (init_regcache_descr): Adjust.
9936 (struct regcache): Rename register_valid_p field to
9937 register_status.
9938 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9939 (do_cooked_read): Adjust.
9940 (regcache_valid_p): Rename to ...
9941 (regcache_register_status): ... this. Adjust.
9942 (regcache_invalidate): Adjust.
9943 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9944 Adjust.
9945 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9946 as unavailable, not valid.
9947 (regcache_dump): Adjust.
9948 * regcache.h (enum register_status): New.
9949 (regcache_register_status): Declare.
9950 (regcache_invalidate): Delete declaration.
9951 * corelow.c (get_core_registers): Adjust.
9952 * tracepoint.c (tfile_fetch_registers): Adjust.
9953 * trad-frame.c (REG_VALUE): Rename to ...
9954 (TF_REG_VALUE): ... this.
9955 (REG_UNKNOWN): Rename to ...
9956 (TF_REG_UNKNOWN): ... this.
9957 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9958 * mi/mi-main.c (register_changed_p): Adjust.
9959
99e42fd8
PA
99602011-01-25 Pedro Alves <pedro@codesourcery.com>
9961
9962 * regcache.c (struct regcache_descr): Remove outdated comment.
9963 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9964 overallocate hack.
9965 (regcache_xmalloc): Rename to ...
9966 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9967 Allocate the regcache type accordingly.
9968 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9969 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9970 cooked registers, not raw.
9971 (regcache_dup_no_passthrough): Delete.
9972 (get_thread_arch_regcache): Use regcache_xmalloc_1.
9973 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
9974 mention obsolete write_register_bytes.
9975 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
9976
f7605bc2
PA
99772011-01-25 Pedro Alves <pedro@codesourcery.com>
9978
9979 Stop remote_read_bytes from handling partial reads itself.
9980
9981 * remote-fileio.c: Include target.h.
9982 (remote_fileio_write_bytes): Delete.
9983 (remote_fileio_func_open, remote_fileio_func_write)
9984 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
9985 target_read_memory.
9986 (remote_fileio_func_stat): Use target_read_memory and
9987 target_write_memory.
9988 (remote_fileio_func_gettimeofday): Use target_write_memory.
9989 (remote_fileio_func_system): Use target_read_memory.
9990 * remote.c (remote_write_bytes): Make it static.
9991 (remote_read_bytes): Don't handle partial reads here.
9992 * remote.h (remote_read_bytes): Delete declaration.
9993
efc0eabd
PA
99942011-01-25 Pedro Alves <pedro@codesourcery.com>
9995
9996 Simplify XML parsing a bit.
9997
9998 * xml-support.h (gdb_xml_parse_quick): Declare.
9999 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10000 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10001 parameter.
10002 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10003 gdb_xml_create_parser_and_cleanup_1.
10004 (gdb_xml_parse_quick): New.
10005 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10006 * osdata.c (osdata_parse): Ditto.
10007 * remote.c (remote_threads_info): Ditto.
10008 * solib-target.c (solib_target_parse_libraries): Ditto.
10009 * xml-syscall.c (syscall_parse_xml): Ditto.
10010 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10011
314d366a
KB
100122011-01-24 Kevin Buettner <kevinb@redhat.com>
10013
10014 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10015 with remote-mips.o added to gdb_target_obs.
10016 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10017
a491d753
PA
100182011-01-24 Pedro Alves <pedro@codesourcery.com>
10019
10020 * ada-valprint.c (val_print_packed_array_elements): Pass the
10021 correct struct value to val_print.
10022 (ada_val_print_1): Ditto.
10023
490f124f
PA
100242011-01-24 Pedro Alves <pedro@codesourcery.com>
10025
10026 Don't lose embedded_offset in printing routines throughout.
10027
10028 * valprint.h (val_print_array_elements): Change prototype.
10029 * valprint.c (val_print_array_elements): Add `embedded_offset'
10030 parameter, and adjust to pass it down to val_print, while passing
10031 `valaddr' or `address' unmodified. Take embedded_offset into
10032 account when checking repetitions.
10033 * c-valprint.c (c_val_print): Pass embedded_offset to
10034 val_print_array_elements instead of adjusting `valaddr' and
10035 `address'.
10036 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10037 embedded_offset to val_print_array_elements instead of adjusting
10038 `valaddr'.
10039 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10040 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10041 val_print_array_elements and pascal_object_print_value_fields
10042 instead of adjusting `valaddr'.
10043 (pascal_object_print_value_fields): Add `offset' parameter, and
10044 adjust to use it.
10045 (pascal_object_print_value): Add `offset' parameter, and adjust to
10046 use it.
10047 (pascal_object_print_static_field): Use
10048 value_contents_for_printing/value_embedded_offset, rather than
10049 value_contents.
10050 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10051 parameter, and adjust to use it. Use
10052 value_contents_for_printing/value_embedded_offset, rather than
10053 value_contents.
10054 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10055 (ada_val_print_array): Add `offset' parameter, and adjust to use
10056 it.
10057 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10058 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10059 Instead work with offsets. Use
10060 value_contents_for_printing/value_embedded_offset, rather than
10061 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10062 and use value_from_pointer to extract a target pointer, rather
10063 than value_from_longest.
10064 (print_variant_part): Add `offset' parameter. Replace
10065 `outer_valaddr' parameter by a new `outer_offset' parameter.
10066 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10067 (ada_value_print): Use
10068 value_contents_for_printing/value_embedded_offset, rather than
10069 value_contents.
10070 (print_record): Add `offset' parameter, and adjust to pass it
10071 down.
10072 (print_field_values): Add `offset' parameter. Replace
10073 `outer_valaddr' parameter by a new `outer_offset' parameter.
10074 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10075 Use value_contents_for_printing/value_embedded_offset, rather than
10076 value_contents.
10077 * d-valprint.c (dynamic_array_type): Use
10078 value_contents_for_printing/value_embedded_offset, rather than
10079 value_contents.
10080 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10081 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10082 (java_print_value_fields): Take `offset' into account. Don't
10083 re-adjust `valaddr'. Instead pass down adjusted offsets.
10084 (java_val_print): Take `embedded_offset' into account. Pass it to
10085 java_print_value_fields.
10086 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10087 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10088 down adjusted offsets.
10089 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10090 (f_val_print): Take `embedded_offset' into account.
10091
7bfc9434
JB
100922011-01-21 Joel Brobecker <brobecker@adacore.com>
10093
10094 * inflow.c: Include "gdbcmd.h".
10095 (interactive_mode): New static global, moved here from top.c.
10096 (show_interactive_mode): New function, moved here from top.c.
10097 use gdb_has_a_terminal instead of input_from_terminal_p to
10098 determine the current mode.
10099 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10100 setting.
10101 (_initialize_inflow): Add the "set/show interactive-mode"
10102 commands. Moved here from top.c, after having adjusted slightly
10103 the help text.
10104 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10105 to inflow.c.
10106 (input_from_terminal_p): Remove handling of "interactive-mode"
10107 setting, moved to infow.c.
10108 (init_main): Remove creation of the "set/show interactive-mode"
10109 commands, moved to inflow.c.
10110
44603653
JB
101112011-01-19 Joel Brobecker <brobecker@adacore.com>
10112
10113 * NEWS: Add entry for native ia64-hpux support.
10114
4694da01
TT
101152011-01-19 Tom Tromey <tromey@redhat.com>
10116
10117 PR mi/8618:
10118 * thread.c (free_thread): Free 'name'.
10119 (print_thread_info): Emit thread name. Change CLI output.
10120 (thread_name_command): New function.
10121 (do_captured_thread_select): Emit newline.
10122 (_initialize_thread): Register 'thread name' command.
10123 * target.h (struct target_ops) <to_thread_name>: New field.
10124 (target_thread_name): New macro.
10125 * target.c (update_current_target): Handle to_thread_name.
10126 * python/py-infthread.c (thpy_get_name): New function.
10127 (thpy_set_name): Likewise.
10128 (thread_object_getset): Add "name".
10129 * linux-nat.c (linux_nat_thread_name): New function.
10130 (linux_nat_add_target): Set to_thread_name.
10131 * gdbthread.h (struct thread_info) <name>: New field.
10132
10d44370
JB
101332011-01-18 Joel Brobecker <brobecker@adacore.com>
10134
10135 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10136 (ada_val_print_1): Likewise.
10137
e3acb115
JB
101382011-01-18 Joel Brobecker <brobecker@adacore.com>
10139
10140 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10141 upper limit address is not greater than the function end address
10142 when the upper limit could not be computed using the debugging
10143 info.
10144
dc92e161
TT
101452011-01-17 Tom Tromey <tromey@redhat.com>
10146
10147 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10148 get_regcomp_error.
10149 * utils.c: Include gdb_regex.h.
10150 (do_regfree_cleanup): New function.
10151 (make_regfree_cleanup): Likewise.
10152 (get_regcomp_error): Likewise.
10153 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10154
f55af66d
TT
101552011-01-17 Tom Tromey <tromey@redhat.com>
10156
10157 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10158 re_compile_fastmap.
10159
a5a44b53
PM
101602011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10161
10162 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10163 for internal variables.
10164 (last_was_structop): New static variable.
10165 (COMPLETE): New token.
10166 (field_exp): New rule to group all '.' suffix handling.
10167 Add mark_struct_expression calls when approriate to be able
10168 to correctly find fields for completion.
10169 (yylex): Adapt to handle field completion and set INTVAR when
10170 required.
10171
2c291032
YQ
101722011-01-14 Yao Qi <yao@codesourcery.com>
10173
10174 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10175 save_reggroup, restore_reggroup and all_reggroup.
10176
447b483c
JB
101772011-01-14 Joel Brobecker <brobecker@adacore.com>
10178
10179 * ada-valprint. (ada_printchar): Use the correct type length
10180 in call to ada_emit_char.
10181 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10182
7b64a93b
PM
101832011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10184
10185 * solib-som.h (hpux_major_release): Declare variable here.
10186 * solib-som.c: Remove <sys/utsname.h> header.
10187 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10188 (hpux_major_release): Make global, change default value to
10189 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 10190 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
10191 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10192 Add "solib-som.h" header.
10193 (set_hpux_major_release): New function.
10194 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10195
4e18c053
MF
101962011-01-14 Mike Frysinger <vapier@gentoo.org>
10197
10198 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10199
a9df6b22
JB
102002011-01-14 Joel Brobecker <brobecker@adacore.com>
10201
10202 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10203 new-line at end of warning message.
10204 (ia64_hpux_store_register): Remove trailing new-line at end of
10205 error message.
10206 * ia64-hpux-tdep.c: Rephrase comment.
10207 * solib-ia64-hpux.c (struct dld_info): Change type of field
10208 dld_flags from "long long" to ULONGEST.
10209
ecb956dd
PA
102102011-01-14 Pedro Alves <pedro@codesourcery.com>
10211
10212 * target.h (deprecated_child_ops): Delete declaration.
10213 * target.c (deprecated_child_ops): Delete definition.
10214
76adfcae
PA
102152011-01-14 Pedro Alves <pedro@codesourcery.com>
10216
10217 * Makefile.in (hpux-thread.o): Delete rule.
10218 * configure.ac: Don't check for HPUX DCE threads support.
10219 * configure, config.in: Regenerate.
10220 * hppa-hpux-nat.c (child_suppress_run): Delete.
10221 (hppa_hpux_child_can_run): Delete.
10222 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10223 * hpux-thread.c: Delete.
10224
042e866e
JB
102252011-01-13 Joel Brobecker <brobecker@adacore.com>
10226
10227 * hpux-thread.c (hpux_pid_to_str): Delete.
10228
4ffa5a33
JB
102292011-01-13 Joel Brobecker <brobecker@adacore.com>
10230
10231 * ada-valprint.c (ada_emit_char): Remove strange code.
10232 Check that c is <= UCHAR_MAX before passing it to isascii.
10233 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10234
de8fa76c
JB
102352011-01-13 Joel Brobecker <brobecker@adacore.com>
10236
10237 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10238 to the case where instream is stdin.
10239
c4de7027
JB
102402011-01-13 Joel Brobecker <brobecker@adacore.com>
10241
10242 * ia64-tdep.h (struct regcache): Forward declare.
10243 (struct ia64_infcall_ops): New struct type.
10244 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10245 and "infcall_ops".
10246 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10247 Renames ia64_find_global_pointer.
10248 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10249 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10250 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10251 methods.
10252 (ia64_infcall_ops): New static global constant.
10253 (ia64_gdbarch_init): Set tdep->infcall_ops.
10254 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10255 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10256 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10257 (ia64_hpux_dummy_code): New static global constant.
10258 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10259 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10260 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10261 New function.
10262 (ia64_hpux_infcall_ops): New static global constant.
10263 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10264 for inferior function calls to work properly on ia64-hpux.
10265
77ca787b
JB
102662011-01-13 Joel Brobecker <brobecker@adacore.com>
10267
10268 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10269 * ia64-tdep.h (struct frame_info): forward declaration.
10270 (struct gdbarch_tdep): Add field size_of_register_frame.
10271 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10272 to determine the size of the register frame.
10273 (ia64_size_of_register_frame): New function.
10274 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10275 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10276 (IA64_HPUX_UREG_REASON): New macro.
10277 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10278 New functions.
10279 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10280 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10281 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10282 objects.
10283
92c9a463
JB
102842011-01-13 Joel Brobecker <brobecker@adacore.com>
10285
10286 Add support for ia64-hpux.
10287 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10288 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10289
10290 * configure.host: Add handling for ia64-hpux hosts. Add associated
10291 floatformats.
10292 * configure.tgt: Add handling for ia64-hpux targets.
10293 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10294 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10295 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10296
f688d93f
JB
102972011-01-13 Joel Brobecker <brobecker@adacore.com>
10298
10299 [ttrace] Compute thread list immediately after attach.
10300 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10301 New subprogram.
10302 (inf_ttrace_attach): Use it.
10303
1b89e62f
JB
103042011-01-13 Joel Brobecker <brobecker@adacore.com>
10305
10306 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10307 if we could not determine the frame's function address. Instead,
10308 use the frame's PC, and then continue.
10309
3e5e6e2a
JB
103102011-01-13 Joel Brobecker <brobecker@adacore.com>
10311
10312 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10313 not already defined.
10314
825d6d8a
JB
103152011-01-13 Joel Brobecker <brobecker@adacore.com>
10316
10317 * ia64-tdep.c (ia64_struct_type_p): New function.
10318 (ia64_extract_return_value): Handle integral values that are
10319 less than 8 bytes long.
10320 (ia64_push_dummy_call): Likewise.
10321
7458e667
JB
103222011-01-13 Joel Brobecker <brobecker@adacore.com>
10323
10324 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10325 floatformat_ia64_ext.
10326 (floatformat_ia64_ext_big): New static const.
10327 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10328
1b05df00
TT
103292011-01-12 Tom Tromey <tromey@redhat.com>
10330
10331 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10332 messages.
10333 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10334 (mi_cmd_thread_list_ids): Likewise.
10335 (mi_cmd_data_list_changed_registers): Likewise.
10336 (mi_cmd_data_list_register_values): Likewise.
10337 (mi_cmd_data_write_register_values): Likewise.
10338 (mi_cmd_data_evaluate_expression): Likewise.
10339 (mi_cmd_data_read_memory): Likewise.
10340 (mi_cmd_data_read_memory_bytes): Likewise.
10341 (mi_cmd_data_write_memory): Likewise.
10342 (mi_cmd_enable_timings): Likewise.
10343 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10344 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10345 (mi_cmd_var_delete): Likewise.
10346 (mi_cmd_var_set_format): Likewise.
10347 (mi_cmd_var_show_format): Likewise.
10348 (mi_cmd_var_info_num_children): Likewise.
10349 (mi_cmd_var_list_children): Likewise.
10350 (mi_cmd_var_info_type): Likewise.
10351 (mi_cmd_var_info_expression): Likewise.
10352 (mi_cmd_var_show_attributes): Likewise.
10353 (mi_cmd_var_assign): Likewise.
10354 (mi_cmd_var_update): Likewise.
10355 (mi_cmd_enable_pretty_printing): Likewise.
10356 (mi_cmd_var_set_update_range): Likewise.
10357 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10358 messages.
10359 (mi_cmd_target_file_put): Likewise.
10360 (mi_cmd_target_file_delete): Likewise.
10361 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10362 messages.
10363 (mi_cmd_stack_info_depth): Likewise.
10364 (mi_cmd_stack_list_locals): Likewise.
10365 (mi_cmd_stack_list_args): Likewise.
10366 (mi_cmd_stack_select_frame): Likewise.
10367 (mi_cmd_stack_select_frame): Likewise.
10368 (mi_cmd_stack_info_frame): Likewise.
10369 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10370 messages.
10371 (mi_cmd_file_list_exec_source_files): Likewise.
10372 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10373 (mi_cmd_env_cd): Likewise.
10374 (mi_cmd_env_path): Likewise.
10375 (mi_cmd_env_dir): Likewise.
10376 (mi_cmd_inferior_tty_show): Likewise.
10377 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10378 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10379 (mi_cmd_break_watch): Likewise.
10380
ad422571
TJB
103812011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10382
10383 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10384 (ppc_linux_insert_hw_breakpoint): Likewise.
10385 (ppc_linux_remove_hw_breakpoint): Likewise.
10386 (ppc_linux_insert_watchpoint): Likewise.
10387
c2ff108b
JK
103882011-01-12 Andrew Burgess <aburgess@broadcom.com>
10389 Jan Kratochvil <jan.kratochvil@redhat.com>
10390
10391 PR fortran/11104 and DWARF unbound arrays detection.
10392 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10393 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10394 unspecified upper bound.
10395 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10396 variables array_size_array, tmp_type and offset_item. New variable
10397 array. Remove call to f77_get_upperbound. New variables array_type
10398 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10399 the final call to deprecated_set_value_type.
10400
41e8491f
JK
104012011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10402
10403 Make value allocations more lazy.
10404 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10405 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 10406 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
10407 instead of allocate_value and set_value_lazy.
10408 * findvar.c (value_of_register_lazy): Likewise.
10409 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 10410 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
10411 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10412 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10413 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10414 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10415 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10416 the end, remove set_value_lazy there.
10417 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10418 instead of allocate_value and set_value_lazy when possible.
10419 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10420 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10421 of allocate_value and set_value_lazy.
10422 (value_from_contents_and_address): Use allocate_value_lazy instead of
10423 allocate_value and set_value_lazy when possible.
10424
b716877b
AB
104252011-01-12 Andrew Burgess <aburgess@broadcom.com>
10426
10427 * disasm.c (dump_insns): Support dumping opcodes for MI.
10428 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10429 dumping of instruction opcodes.
10430
d5ae309f
JB
104312011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10432
10433 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10434 appropiately.
10435
98871305
TT
104362011-01-11 Tom Tromey <tromey@redhat.com>
10437
10438 * thread.c (do_captured_thread_select): Emit newline before
10439 printing frame.
10440
c378eb4e
MS
104412011-01-11 Michael Snyder <msnyder@vmware.com>
10442
10443 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10444 * score-tdep.c: Ditto.
10445 * score-tdep.h: Ditto.
10446 * ser-base.c: Ditto.
10447 * ser-go32.c: Ditto.
10448 * serial.c: Ditto.
10449 * serial.h: Ditto.
10450 * ser-mingw.c: Ditto.
10451 * ser-pipe.c: Ditto.
10452 * ser-tcp.c: Ditto.
10453 * ser-unix.c: Ditto.
10454 * sh64-tdep.c: Ditto.
10455 * shnbsd-nat.c: Ditto.
10456 * sh-tdep.c: Ditto.
10457 * sh-tdep.h: Ditto.
10458 * solib.c: Ditto.
10459 * solib-darwin.c: Ditto.
10460 * solib-frv.c: Ditto.
10461 * solib.h: Ditto.
10462 * solib-irix.c: Ditto.
10463 * solib-osf.c: Ditto.
10464 * solib-pa64.c: Ditto.
10465 * solib-som.c: Ditto.
10466 * solib-spu.c: Ditto.
10467 * solib-sunos.c: Ditto.
10468 * solib-svr4.c: Ditto.
10469 * solist.h: Ditto.
10470 * sol-thread.c: Ditto.
10471 * somread.c: Ditto.
10472 * source.c: Ditto.
10473 * source.h: Ditto.
10474 * sparc64-linux-tdep.c: Ditto.
10475 * sparc64-tdep.c: Ditto.
10476 * sparc-linux-nat.c: Ditto.
10477 * sparc-linux-tdep.c: Ditto.
10478 * sparc-sol2-nat.c: Ditto.
10479 * sparc-sol2-tdep.c: Ditto.
10480 * sparc-tdep.c: Ditto.
10481 * sparc-tdep.h: Ditto.
10482 * spu-tdep.c: Ditto.
10483 * stabsread.c: Ditto.
10484 * stabsread.h: Ditto.
10485 * stack.c: Ditto.
10486 * symfile.c: Ditto.
10487 * symfile.h: Ditto.
10488 * symmisc.c: Ditto.
10489 * symtab.c: Ditto.
10490 * symtab.h: Ditto.
10491 * target.c: Ditto.
10492 * target-descriptions.c: Ditto.
10493 * target-descriptions.h: Ditto.
10494 * target.h: Ditto.
10495 * target-memory.c: Ditto.
10496 * terminal.h: Ditto.
10497 * thread.c: Ditto.
10498 * top.c: Ditto.
10499 * tracepoint.c: Ditto.
10500 * tracepoint.h: Ditto.
10501 * trad-frame.h: Ditto.
10502 * typeprint.c: Ditto.
10503
581e13c1
MS
105042011-01-11 Michael Snyder <msnyder@vmware.com>
10505
10506 * ui-file.c: Comment cleanup, mostly periods and spaces.
10507 * ui-file.h: Ditto.
10508 * ui-out.c: Ditto.
10509 * ui-out.h: Ditto.
10510 * utils.c: Ditto.
10511 * v850-tdep.c: Ditto.
10512 * valarith.c: Ditto.
10513 * valops.c: Ditto.
10514 * valprint.c: Ditto.
10515 * valprint.h: Ditto.
10516 * value.c: Ditto.
10517 * value.h: Ditto.
10518 * varobj.c: Ditto.
10519 * varobj.h: Ditto.
10520 * vax-tdep.c: Ditto.
10521 * vec.c: Ditto.
10522 * vec.h: Ditto.
10523 * version.h: Ditto.
10524 * windows-nat.c: Ditto.
10525 * windows-tdep.c: Ditto.
10526 * xcoffread.c: Ditto.
10527 * xcoffsolib.c: Ditto.
10528 * xml-support.c: Ditto.
10529 * xstormy16-tdep.c: Ditto.
10530 * xtensa-tdep.c: Ditto.
10531 * xtensa-tdep.h: Ditto.
10532
90e4670f
TJB
105332011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10534
10535 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10536 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10537
e09342b5
TJB
105382011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10539 Thiago Jung Bauermann <bauerman@br.ibm.com>
10540
10541 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 10542 * breakpoint.h
e09342b5
TJB
10543 (struct breakpoint_ops) <resources_needed>: New method.
10544 Initialize to NULL in all existing breakpoint_ops instances.
10545 (struct breakpoint) <exact>: New field.
10546 (target_exact_watchpoints): Declare external global.
10547 * breakpoint.c (target_exact_watchpoints): New global flag.
10548 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10549 b->enable_state to bp_enabled before calling
10550 hw_watchpoint_used_count.
10551 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10552 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10553 if available.
10554 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10555 if the watchpoint is exact.
10556 (resources_needed_watchpoint): New function.
10557 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10558 (watch_command_1): Set b->exact if the user asked for an exact
10559 watchpoint and one can be set.
10560 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10561 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10562 the user asks for an exact watchpoint and one can be set. Return
10563 number of needed debug registers to watch the expression.
10564 * gdbtypes.c (is_scalar_type): New function, based on
10565 valprint.c:scalar_type_p.
10566 (is_scalar_type_recursive): New function.
10567 * gdbtypes.h (is_scalar_type_recursive): Declare.
10568 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10569 handle regions when ranged watchpoints are available.
10570 (create_watchpoint_request): New function.
10571 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10572 create_watchpoint_request.
10573 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10574 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10575 `set powerpc' and `show powerpc' commands.
10576 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10577 Mention documentation comment in the target macro.
10578 (target_region_ok_for_hw_watchpoint): Document return value.
10579
9fa40276
TJB
105802011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10581
10582 * breakpoint.c (update_watchpoint): Decide on using a software or
10583 hardware watchpoint after the bp_locations are created.
10584
77b06cd7
TJB
105852010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10586
10587 Convert hardware watchpoints to use breakpoint_ops.
10588 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10589 <insert_location>: ... this. Return int instead of void.
10590 Accept pointer to struct bp_location instead of pointer to
10591 struct breakpoint. Adapt all implementations.
f2eb0bc8 10592 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
10593 <remove_location>: ... this. Accept pointer to struct bp_location
10594 instead of pointer to struct breakpoint. Adapt all implementations.
10595 * breakpoint.c (insert_catchpoint): Delete function.
10596 (insert_bp_location): Call the watchpoint or catchpoint's
10597 breakpoint_ops.insert method.
10598 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10599 breakpoint_ops.remove method.
10600 (insert_watchpoint, remove_watchpoint): New functions.
10601 (watchpoint_breakpoint_ops): New structure.
10602 (watch_command_1): Initialize the OPS field.
10603 * inf-child.c (inf_child_insert_fork_catchpoint)
10604 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10605 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10606 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10607 Delete functions.
10608 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10609 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10610 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10611 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10612 * target.c (update_current_target): Change default implementation of
10613 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10614 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10615 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10616 to_set_syscall_catchpoint to return_one.
10617 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10618 (debug_to_insert_exec_catchpoint): Report return value.
10619 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10620 (to_insert_exec_catchpoint): Change declaration to return int instead
10621 of void.
10622
9b20d036
MS
106232011-01-11 Michael Snyder <msnyder@vmware.com>
10624
10625 * arm-tdep.c: Internationalization.
10626 * c-lang.c: Ditto.
10627 * charset.c: Ditto.
10628 * fork-child.c: Ditto.
10629 * nto-procfs.c: Ditto.
10630 * ppc-sysv-tdep.c: Ditto.
10631 * procfs.c: Ditto.
10632 * remote-mips.c: Ditto.
10633 * remote.c: Ditto.
10634 * rs6000-nat.c: Ditto.
10635 * rs6000-tdep.c: Ditto.
10636 * target.c: Ditto.
10637 * valops.c: Ditto.
10638 * value.c: Ditto.
10639 * xml-support.c: Ditto.
10640 * mi/mi-cmd-break.c: Ditto.
10641 * mi/mi-cmd-var.c: Ditto.
10642 * mi/mi-interp.c: Ditto.
10643 * mi/mi-main.c: Ditto.
10644
dae477fe
AB
106452011-01-11 Andrew Burgess <aburgess@broadcom.com>
10646
10647 * remote-sim.c (gdbsim_store_register): Update API to
10648 sim_store_register to check more error conditions.
10649
0df8b418
MS
106502011-01-10 Michael Snyder <msnyder@vmware.com>
10651
10652 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10653 * nto-tdep.c: Ditto.
10654 * nto-tdep.h: Ditto.
10655 * objc-exp.y: Ditto.
10656 * objc-lang.c: Ditto.
10657 * objfiles.c: Ditto.
10658 * objfiles.h: Ditto.
10659 * observer.c: Ditto.
10660 * opencl-lang.c: Ditto.
10661 * osabi.c: Ditto.
10662 * parse.c: Ditto.
10663 * parser-defs.h: Ditto.
10664 * p-exp.y: Ditto.
10665 * p-lang.c: Ditto.
10666 * posix-hdep.c: Ditto.
10667 * ppcbug-rom.c: Ditto.
10668 * ppc-linux-nat.c: Ditto.
10669 * ppc-linux-tdep.c: Ditto.
10670 * ppc-linux-tdep.h: Ditto.
10671 * ppcnbsd-tdep.c: Ditto.
10672 * ppcobsd-tdep.c: Ditto.
10673 * ppcobsd-tdep.h: Ditto.
10674 * ppc-sysv-tdep.c: Ditto.
10675 * ppc-tdep.h: Ditto.
10676 * printcmd.c: Ditto.
10677 * proc-abi.c: Ditto.
10678 * proc-flags.c: Ditto.
10679 * procfs.c: Ditto.
10680 * proc-utils.h: Ditto.
10681 * progspace.h: Ditto.
10682 * prologue-value.c: Ditto.
10683 * prologue-value.h: Ditto.
10684 * psympriv.h: Ditto.
10685 * psymtab.c: Ditto.
10686 * p-typeprint.c: Ditto.
10687 * p-valprint.c: Ditto.
10688 * ravenscar-sparc-thread.c: Ditto.
10689 * ravenscar-thread.c: Ditto.
10690 * ravenscar-thread.h: Ditto.
10691 * record.c: Ditto.
10692 * regcache.c: Ditto.
10693 * regcache.h: Ditto.
10694 * remote.c: Ditto.
10695 * remote-fileio.c: Ditto.
10696 * remote-fileio.h: Ditto.
10697 * remote.h: Ditto.
10698 * remote-m32r-sdi.c: Ditto.
10699 * remote-mips.c: Ditto.
10700 * remote-sim.c: Ditto.
10701 * rs6000-aix-tdep.c: Ditto.
10702 * rs6000-nat.c: Ditto.
10703 * rs6000-tdep.c: Ditto.
10704
0d7a18f7
MS
107052011-01-10 Michael Snyder <msnyder@vmware.com>
10706
10707 * charset.c (validate): Internationalization.
10708 * coffread.c (read_one_sym): Ditto.
10709 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10710 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10711 * inflow.c (new_tty): Ditto.
10712 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10713 * m32c-tdep.c (m32c_return_value): Ditto.
10714 * mep-tdep.c (mep_store_return_value): Ditto.
10715 * score-tdep.c (score7_fetch_insn): Ditto.
10716 * ser-mingw.c (pipe_windows_open): Ditto.
10717 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10718 * spu-tdep.c (spu_register_type): Ditto.
10719 * tracepoint.c (trace_find_command): Ditto.
10720 * valarith.c (value_pos): Ditto.
10721
9a153e0b
JB
107222011-01-10 Joel Brobecker <brobecker@adacore.com>
10723
10724 * ada-valprint.c (printstr): Minor comment reformatting.
10725
35ecd2d6
MS
107262011-01-08 Michael Snyder <msnyder@vmware.com>
10727
10728 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10729 markup.
10730
1777feb0
MS
107312011-01-08 Michael Snyder <msnyder@vmware.com>
10732
10733 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10734 * hppa-hpux-tdep.c: Ditto.
10735 * hppa-linux-nat.c: Ditto.
10736 * hppa-linux-tdep.c: Ditto.
10737 * hppanbsd-tdep.c: Ditto.
10738 * hppa-tdep.c: Ditto.
10739 * hppa-tdep.h: Ditto.
10740 * hpux-thread.c: Ditto.
10741 * i386-cygwin-tdep.c: Ditto.
10742 * i386-darwin-nat.c: Ditto.
10743 * i386gnu-nat.c: Ditto.
10744 * i386-linux-nat.c: Ditto.
10745 * i386-linux-tdep.c: Ditto.
10746 * i386-nat.c: Ditto.
10747 * i386-nat.h: Ditto.
10748 * i386nbsd-tdep.c: Ditto.
10749 * i386-sol2-nat.c: Ditto.
10750 * i386-stub.c: Ditto.
10751 * i386-tdep.c: Ditto.
10752 * i386-tdep.h: Ditto.
10753 * i387-tdep.c: Ditto.
10754 * ia64-linux-nat.c: Ditto.
10755 * ia64-linux-tdep.c: Ditto.
10756 * ia64-tdep.c: Ditto.
10757 * infcall.c: Ditto.
10758 * infcall.h: Ditto.
10759 * infcmd.c: Ditto.
10760 * inferior.c: Ditto.
10761 * inferior.h: Ditto.
10762 * infloop.c: Ditto.
10763 * inflow.c: Ditto.
10764 * infrun.c: Ditto.
10765 * interps.c: Ditto.
10766 * interps.h: Ditto.
10767 * iq2000-tdep.c: Ditto.
10768 * irix5-nat.c: Ditto.
10769 * jit.c: Ditto.
10770 * jit.h: Ditto.
10771 * jv-exp.y: Ditto.
10772 * jv-lang.c: Ditto.
10773 * jv-lang.h: Ditto.
10774 * jv-typeprint.c: Ditto.
10775 * jv-valprint.c: Ditto.
10776 * language.c: Ditto.
10777 * language.h: Ditto.
10778 * linespec.c: Ditto.
10779 * linux-fork.c: Ditto.
10780 * linux-nat.c: Ditto.
10781 * linux-thread-db.c: Ditto.
10782 * lm32-tdep.c: Ditto.
10783
025bb325
MS
107842011-01-08 Michael Snyder <msnyder@vmware.com>
10785
10786 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10787 * m2-lang.c: Ditto.
10788 * m2-typeprint.c: Ditto.
10789 * m2-valprint.c: Ditto.
10790 * m32c-tdep.c: Ditto.
10791 * m32r-linux-nat.c: Ditto.
10792 * m32r-rom.c: Ditto.
10793 * m32r-tdep.c: Ditto.
10794 * m32r-tdep.h: Ditto.
10795 * m68hc11-tdep.c: Ditto.
10796 * m58klinux-nat.c: Ditto.
10797 * m68k-tdep.c: Ditto.
10798 * m88k-tdep.c: Ditto.
10799 * m88k-tdep.h: Ditto.
10800 * machoread.c: Ditto.
10801 * macrocmd.c: Ditto.
10802 * macroexp.c: Ditto.
10803 * macrotab.c: Ditto.
10804 * main.c: Ditto.
10805 * maint.c: Ditto.
10806 * mdebugread.c: Ditto.
10807 * mdebugread.h: Ditto.
10808 * memattr.c: Ditto.
10809 * memattr.h: Ditto.
10810 * memory-map.h: Ditto.
10811 * mep-tdep.c: Ditto.
10812 * microblaze-rom.c: Ditto.
10813 * microblaze-tdep.c: Ditto.
10814 * minsyms.c: Ditto.
10815 * mips-irix-tdep.c: Ditto.
10816 * mips-linux-nat.c: Ditto.
10817 * mips-linux-tdep.c: Ditto.
10818 * mips-linux-tdep.h: Ditto.
10819 * mipsnbsd-nat.c: Ditto.
10820 * mipsnbsd-tdep.c: Ditto.
10821 * mipsread.c: Ditto.
10822 * mips-tdep.c: Ditto.
10823 * mips-tdep.h: Ditto.
10824 * mn10300-linux-tdep.c: Ditto.
10825 * mn10300-tdep.c: Ditto.
10826 * mn10300-tdep.h: Ditto.
10827 * monitor.c: Ditto.
10828 * monitor.h: Ditto.
10829 * moxie-tdep.c: Ditto.
10830 * moxie-tdep.h: Ditto.
10831 * mt-tdep.c: Ditto.
10832
1642781b
MF
108332011-01-08 Mike Frysinger <vapier@gentoo.org>
10834
10835 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10836
394b0adb
JB
108372011-01-08 Robert Millan <rmh@gnu.org>
10838
10839 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10840
b670013c
MS
108412011-01-07 Michael Snyder <msnyder@vmware.com>
10842
10843 * charset.c (_initialize_charset): Fix typo in string.
10844
a743e542
MS
108452011-01-07 Michael Snyder <msnyder@vmware.com>
10846
10847 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10848 for i18n.
f2eb0bc8 10849 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
10850 Split line so that operator goes to beginning of line.
10851 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10852 assignment out of if statement.
10853
0963b4bd
MS
108542011-01-07 Michael Snyder <msnyder@vmware.com>
10855
10856 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10857 * ada-lang.h: Ditto.
10858 * ada-tasks.c: Ditto.
10859 * ada-valprint.c: Ditto.
10860 * aix-threads.c: Ditto.
10861 * alpha-linux-nat.c: Ditto.
10862 * alpha-linux-tdep.c: Ditto.
10863 * alpha-mdebug-tdep.c: Ditto.
10864 * alpha-nat.c: Ditto.
10865 * alpha-osf1-tdep.c: Ditto.
10866 * alpha-tdep.c: Ditto.
10867 * alphabsd-nat.c: Ditto.
10868 * alphabsd-tdep.c: Ditto.
10869 * amd64-darwin-tdep.c: Ditto.
10870 * amd64-linux-nat.c: Ditto.
10871 * amd64-linux-tdep.c: Ditto.
10872 * amd64-sol2-tdep.c: Ditto.
10873 * amd64-tdep.c: Ditto.
10874 * amd64-fbsd-tdep.c: Ditto.
10875 * amd64-nbsd-tdep.c: Ditto.
10876 * amd64-obsd-tdep.c: Ditto.
10877 * amd64-linux-nat.c: Ditto.
10878 * amd64-linux-tdep.c: Ditto.
10879 * arm-tdep.c: Ditto.
10880 * arm-tdep.h: Ditto.
10881 * armnbsd-nat.c: Ditto.
10882 * avr-tdep.c: Ditto.
10883 * bfin-tdep.c: Ditto.
10884 * bsd-kvm.c: Ditto.
10885 * c-typeprintc: Ditto.
10886 * c-valprint.c: Ditto.
10887 * coff-pe-read.h: Ditto.
10888 * coffreead.c: Ditto.
10889 * cris-tdep.c: Ditto.
10890 * d-lang.c: Ditto.
10891 * darwin-nat-info.c: Ditto.
10892 * darwin-nat.c: Ditto.
10893 * dbug-rom.c: Ditto.
10894 * dbxread.c: Ditto.
10895 * dcache.c: Ditto.
10896 * dcache.h: Ditto.
10897 * dec-thread.c: Ditto.
10898 * defs.h: Ditto.
10899 * demangle.c: Ditto.
10900 * dicos-tdep.c: Ditto.
10901 * dictionary.c: Ditto.
10902 * dictionary.h: Ditto.
10903 * dink32-rom.c: Ditto.
10904 * disasm.c: Ditto.
10905 * doublest.c: Ditto.
10906 * dsrec.c: Ditto.
10907 * dummy-frame.c: Ditto.
10908 * dwarf2-frame.c: Ditto.
10909 * dwarf2expr.c: Ditto.
10910 * dwarf2loc.c: Ditto.
10911 * dwarf2read.c: Ditto.
10912 * elfread.c: Ditto.
10913 * environ.c: Ditto.
10914 * eval.c: Ditto.
10915 * event-top.h: Ditto.
10916 * exceptions.c: Ditto.
10917 * exceptions.h: Ditto.
10918 * exec.c: Ditto.
10919 * expprint.c: Ditto.
10920 * expression.h: Ditto.
10921 * f-exp.y: Ditto.
10922 * f-lang.c: Ditto.
10923 * f-lang.h: Ditto.
10924 * f-typeprint.c: Ditto.
10925 * f-valprint.c: Ditto.
10926 * fbsd-nat.c: Ditto.
10927 * findvar.c: Ditto.
10928 * fork-child.c: Ditto.
10929 * frame.c: Ditto.
10930 * frame.h: Ditto.
10931 * frv-linux-tdep.c: Ditto.
10932 * frv-tdep.c: Ditto.
10933 * gcore.c: Ditto.
10934 * gdb-stabs.h: Ditto.
10935 * gdb_assert.h: Ditto.
10936 * gdb_string.h: Ditto.
10937 * gdb_thread_db.h: Ditto.
10938 * gdb_wait.h: Ditto.
10939 * gdbarch.sh: Ditto.
10940 * gdbcore.h: Ditto.
10941 * gdbthread.h: Ditto.
10942 * gdbtypes.c: Ditto.
10943 * gdbtypes.h: Ditto.
10944 * gnu-nat.c: Ditto.
10945 * gnu-nat.h: Ditto.
10946 * gnu-v2-abi.c: Ditto.
10947 * gnu-v3-abi.c: Ditto.
10948 * go32-nat.c: Ditto.
10949 * gdbarch.c: Regenerate.
10950 * gdbarch.h: Regenerate.
10951
ac74f770
MS
109522011-01-07 Michael Snyder <msnyder@vmware.com>
10953
10954 * ax-gdb.c: Adjust some long output strings.
10955 * breakpoint.c: Ditto.
10956 * charset.c: Ditto.
10957 * cp-abi.c: Ditto.
10958 * infcall.c: Ditto.
10959 * infrun.c: Ditto.
10960 * linux-nat.c: Ditto.
10961 * solib-pa64.c: Ditto.
10962 * solib-som.c: Ditto.
10963
d8e22779
TT
109642011-01-06 Tom Tromey <tromey@redhat.com>
10965
10966 PR python/12367:
10967 * NEWS: Add item.
10968 * python/python.c (GdbMethods): Add "newest_frame" method.
10969 * python/python-internal.h (gdbpy_newest_frame): Declare.
10970 * python/py-frame.c (gdbpy_newest_frame): New function.
10971
a255712f
PP
109722010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
10973
10974 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
10975 * jit.c (jit_debug): New variable.
10976 (show_jit_debug): New function.
10977 (struct target_buffer): Use ULONGEST.
10978 (bfd_open_from_target_memory): Likewise.
10979 (jit_register_code, jit_inferior_init): Add debug output.
10980 (_initialize_jit): Register "debug jit" command.
10981
ccfc3d6e
TT
109822011-01-06 Tom Tromey <tromey@redhat.com>
10983
10984 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
10985 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
10986 and ARCH_FRAME.
10987
57126e4a
TT
109882011-01-06 Tom Tromey <tromey@redhat.com>
10989
10990 * python/py-frame.c (frapy_block): Use get_frame_block.
10991
16dfc9ce
JB
109922011-01-06 Joel Brobecker <brobecker@adacore.com>
10993
10994 Do not stop on SIGPRIO signals by default
10995 * infrun.c (_initialize_infrun): Unset signal_stop and
10996 signal_print for TARGET_SIGNAL_PRIO.
10997
b1ce2347
JB
109982011-01-06 Joel Brobecker <brobecker@adacore.com>
10999
11000 * ada-tasks.c: Fix style violation in comment.
11001
8f7e195f
JB
110022011-01-06 Joel Brobecker <brobecker@adacore.com>
11003
11004 * linespec.c (decode_compound, find_method): Remove trailing \n
11005 at end of error string.
11006 * solib-irix.c (irix_current_sos): Likewise.
11007 * varobj.c (uninstall_variable): Likewise.
11008
e9bdf92c
JB
110092011-01-06 Joel Brobecker <brobecker@adacore.com>
11010
11011 * copyright.py: New script.
11012 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11013 Launch emacs without exec'ing. Call copyright.py afterwards.
11014
3e43a32a
MS
110152011-01-05 Michael Snyder <msnyder@vmware.com>
11016
11017 * addrmap.c: Shorten lines of >= 80 columns.
11018 * arch-utils.c: Ditto.
11019 * arch-utils.h: Ditto.
11020 * ax-gdb.c: Ditto.
11021 * ax-general.c: Ditto.
11022 * bcache.c: Ditto.
11023 * blockframe.c: Ditto.
11024 * breakpoint.c: Ditto.
11025 * buildsym.c: Ditto.
11026 * c-lang.c: Ditto.
11027 * c-typeprint.c: Ditto.
11028 * charset.c: Ditto.
11029 * coffread.c: Ditto.
11030 * command.h: Ditto.
11031 * corelow.c: Ditto.
11032 * cp-abi.c: Ditto.
11033 * cp-namespace.c: Ditto.
11034 * cp-support.c: Ditto.
11035 * dbug-rom.c: Ditto.
11036 * dbxread.c: Ditto.
11037 * defs.h: Ditto.
11038 * dfp.c: Ditto.
11039 * dfp.h: Ditto.
11040 * dictionary.c: Ditto.
11041 * disasm.c: Ditto.
11042 * doublest.c: Ditto.
11043 * dwarf2-frame.c: Ditto.
11044 * dwarf2expr.c: Ditto.
11045 * dwarf2loc.c: Ditto.
11046 * dwarf2read.c: Ditto.
11047 * elfread.c: Ditto.
11048 * eval.c: Ditto.
11049 * event-loop.c: Ditto.
11050 * event-loop.h: Ditto.
11051 * exceptions.h: Ditto.
11052 * exec.c: Ditto.
11053 * expprint.c: Ditto.
11054 * expression.h: Ditto.
11055 * f-lang.c: Ditto.
11056 * f-valprint.c: Ditto.
11057 * findcmd.c: Ditto.
11058 * frame-base.c: Ditto.
11059 * frame-unwind.c: Ditto.
11060 * frame-unwind.h: Ditto.
11061 * frame.c: Ditto.
11062 * frame.h: Ditto.
11063 * gcore.c: Ditto.
11064 * gdb-stabs.h: Ditto.
11065 * gdb_assert.h: Ditto.
11066 * gdb_dirent.h: Ditto.
11067 * gdb_obstack.h: Ditto.
11068 * gdbcore.h: Ditto.
11069 * gdbtypes.c: Ditto.
11070 * gdbtypes.h: Ditto.
11071 * inf-ttrace.c: Ditto.
11072 * infcall.c: Ditto.
11073 * infcmd.c: Ditto.
11074 * inflow.c: Ditto.
11075 * infrun.c: Ditto.
11076 * inline-frame.h: Ditto.
11077 * language.c: Ditto.
11078 * language.h: Ditto.
11079 * libunwind-frame.c: Ditto.
11080 * libunwind-frame.h: Ditto.
11081 * linespec.c: Ditto.
11082 * linux-nat.c: Ditto.
11083 * linux-nat.h: Ditto.
11084 * linux-thread-db.c: Ditto.
11085 * machoread.c: Ditto.
11086 * macroexp.c: Ditto.
11087 * macrotab.c: Ditto.
11088 * main.c: Ditto.
11089 * maint.c: Ditto.
11090 * mdebugread.c: Ditto.
11091 * memattr.c: Ditto.
11092 * minsyms.c: Ditto.
11093 * monitor.c: Ditto.
11094 * monitor.h: Ditto.
11095 * objfiles.c: Ditto.
11096 * objfiles.h: Ditto.
11097 * osabi.c: Ditto.
11098 * p-typeprint.c: Ditto.
11099 * p-valprint.c: Ditto.
11100 * parse.c: Ditto.
11101 * printcmd.c: Ditto.
11102 * proc-events.c: Ditto.
11103 * procfs.c: Ditto.
11104 * progspace.c: Ditto.
11105 * progspace.h: Ditto.
11106 * psympriv.h: Ditto.
11107 * psymtab.c: Ditto.
11108 * record.c: Ditto.
11109 * regcache.c: Ditto.
11110 * regcache.h: Ditto.
11111 * remote-fileio.c: Ditto.
11112 * remote.c: Ditto.
11113 * ser-mingw.c: Ditto.
11114 * ser-tcp.c: Ditto.
11115 * ser-unix.c: Ditto.
11116 * serial.c: Ditto.
11117 * serial.h: Ditto.
11118 * solib-frv.c: Ditto.
11119 * solib-irix.c: Ditto.
11120 * solib-osf.c: Ditto.
11121 * solib-pa64.c: Ditto.
11122 * solib-som.c: Ditto.
11123 * solib-sunos.c: Ditto.
11124 * solib-svr4.c: Ditto.
11125 * solib-target.c: Ditto.
11126 * solib.c: Ditto.
11127 * somread.c: Ditto.
11128 * source.c: Ditto.
11129 * stabsread.c: Ditto.
11130 * stabsread.c: Ditto.
11131 * stack.c: Ditto.
11132 * stack.h: Ditto.
11133 * symfile-mem.c: Ditto.
11134 * symfile.c: Ditto.
11135 * symfile.h: Ditto.
11136 * symmisc.c: Ditto.
11137 * symtab.c: Ditto.
11138 * symtab.h: Ditto.
11139 * target-descriptions.c: Ditto.
11140 * target-memory.c: Ditto.
11141 * target.c: Ditto.
11142 * target.h: Ditto.
11143 * terminal.h: Ditto.
11144 * thread.c: Ditto.
11145 * top.c: Ditto.
11146 * tracepoint.c: Ditto.
11147 * tracepoint.h: Ditto.
11148 * ui-file.c: Ditto.
11149 * ui-file.h: Ditto.
11150 * ui-out.h: Ditto.
11151 * user-regs.c: Ditto.
11152 * user-regs.h: Ditto.
11153 * utils.c: Ditto.
11154 * valarith.c: Ditto.
11155 * valops.c: Ditto.
11156 * valprint.c: Ditto.
11157 * valprint.h: Ditto.
11158 * value.c: Ditto.
11159 * varobj.c: Ditto.
11160 * varobj.h: Ditto.
11161 * vec.h: Ditto.
11162 * xcoffread.c: Ditto.
11163 * xcoffsolib.c: Ditto.
11164 * xcoffsolib.h: Ditto.
11165 * xml-syscall.c: Ditto.
11166 * xml-tdesc.c: Ditto.
11167
9a2b4c1b
MS
111682011-01-05 Michael Snyder <msnyder@vmware.com>
11169
11170 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11171 * cli/cli-decode.c: Ditto.
11172 * cli/cli-dump.c: Ditto.
11173 * cli/cli-logging.c: Ditto.
11174 * cli/cli-script.c: Ditto.
11175 * cli/cli-setshow.c: Ditto.
11176 * common/signals.c: Ditto.
11177 * mi/mi-cmd-break.c: Ditto.
11178 * mi/mi-cmd-disas.c: Ditto.
11179 * mi/mi-cmd-stack.c: Ditto.
11180 * mi/mi-cmd-var.c: Ditto.
11181 * mi/mi-cmds.c: Ditto.
11182 * mi/mi-common.h: Ditto.
11183 * mi/mi-console.c: Ditto.
11184 * mi/mi-interp.c: Ditto.
11185 * mi/mi-main.c: Ditto.
11186 * osf-share/cma_attr.c: Ditto.
11187 * osf-share/cma_deb_core.h: Ditto.
11188 * osf-share/cma_debug_client.h: Ditto.
11189 * osf-share/cma_handle.h: Ditto.
11190 * osf-share/cma_mutex.h: Ditto.
11191 * osf-share/cma_stack_int.h: Ditto.
11192 * osf-share/cma_tcb_defs.h: Ditto.
11193 * python/py-auto-load.c: Ditto.
11194 * python/py-breakpoint.c: Ditto.
11195 * python/py-cmd.c: Ditto.
11196 * python/py-frame.c: Ditto.
11197 * python/py-objfile.c: Ditto.
11198 * python/py-param.c: Ditto.
11199 * python/py-progspace.c: Ditto.
11200 * python/py-symbol.c: Ditto.
11201 * python/py-value.c: Ditto.
11202 * python/python-internal.h: Ditto.
11203 * python/python.c: Ditto.
11204 * tui/tui-data.c: Ditto.
11205 * tui/tui-disasm.c: Ditto.
11206 * tui/tui-hooks.c: Ditto.
11207 * tui/tui-io.c: Ditto.
11208 * tui/tui-layout.c: Ditto.
11209 * tui/tui-regs.c: Ditto.
11210 * tui/tui-source.c: Ditto.
11211 * tui/tui-stack.c: Ditto.
11212 * tui/tui-win.c: Ditto.
11213 * tui/tui-windata.c: Ditto.
11214 * tui/tui-winsource.c: Ditto.
11215
44944448
JB
112162011-01-05 Joel Brobecker <brobecker@adacore.com>
11217
11218 * configure.ac, gdb.1: Copyright year update.
11219
ebedcab5
JK
112202011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11221
11222 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11223 this_pc_in_block, morestack_msym and morestack_name. Check for
11224 "__morestack" minimal symbol there.
11225
e5cc9f32
JB
112262011-01-03 Joel Brobecker <brobecker@adacore.com>
11227
11228 * symfile.c (find_sym_fns): Add call to dont_repeat.
11229
7b6bb8da
JB
112302011-01-01 Joel Brobecker <brobecker@adacore.com>
11231
11232 Copyright year update in most files (performed by copyright.sh).
11233
71ce852c
JB
112342011-01-01 Joel Brobecker <brobecker@adacore.com>
11235
11236 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 11237
c3c1ebe8 11238For older changes see ChangeLog-2010.
c906108c
SS
11239\f
11240Local Variables:
11241mode: change-log
11242left-margin: 8
11243fill-column: 74
11244version-control: never
57da7796 11245coding: utf-8
c906108c 11246End:
This page took 1.744861 seconds and 4 git commands to generate.