2012-03-01 Pedro Alves <palves@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2012-03-01 Pedro Alves <palves@redhat.com>
2
3 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4 gdbarch parameter.
5 (linux_init_abi): Install it as has_shared_address_space gdbarch
6 callback.
7
8 2012-03-01 Pedro Alves <palves@redhat.com>
9
10 * observer.c (observer_test_first_notification_function)
11 (observer_test_second_notification_function)
12 (observer_test_third_notification_function): Add declarations.
13
14 2012-03-01 Pedro Alves <palves@redhat.com>
15
16 * common/signals.c (default_target_signal_to_host)
17 (default_target_signal_from_host): Move ...
18 * arch-utils.c: ... here.
19 * arch-utils.h (default_target_signal_to_host)
20 (default_target_signal_from_host): Declare.
21
22 * common/signals.c (target_signal_from_command): Move ...
23 * infrun.c: ... here.
24 * inferior.h (target_signal_from_command): Declare.
25 * target.h (target_signal_from_command)
26 (default_target_signal_from_host, default_target_signal_to_host):
27 Delete declarations.
28
29 * common/signals.c (_initialize_signals): Delete.
30
31 2012-03-01 Pedro Alves <palves@redhat.com>
32
33 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
34 both __cplusplus and !__cplusplus.
35
36 2012-03-01 Pedro Alves <palves@redhat.com>
37
38 * psymtab.c (find_and_open_source): Delete declaration.
39 * source.c (find_and_open_source): Move comment ...
40 * source.h (find_and_open_source): ... to this new declaration.
41
42 2012-03-01 Pedro Alves <palves@redhat.com>
43
44 * inline-frame.c: Include inline-frame.h.
45
46 2012-03-01 Pedro Alves <palves@redhat.com>
47
48 * tui/tui-data.c (set_gen_win_origin): Delete.
49 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
50 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
51
52 2012-03-01 Pedro Alves <palves@redhat.com>
53
54 * remote.c (encode_actions): Delete declaration.
55 * tracepoint.c (encode_actions): Make extern.
56 * tracepoint.h (encode_actions): Declare.
57
58 2012-03-01 Pedro Alves <palves@redhat.com>
59
60 * python/py-breakpoint.c: Include python.h.
61 * python/py-continueevent.c (create_continue_event_object): Make
62 static.
63 * python/py-lazy-string.c (stpy_get_type): Make static.
64 * python/py-newobjfileevent.c (create_new_objfile_event_object):
65 Make static.
66 * python/py-utils.c (unicode_to_target_python_string): Make
67 static.
68 * python/py-value.c: Include python.h.
69
70 2012-03-01 Pedro Alves <palves@redhat.com>
71
72 * inferior.c (delete_threads_of_inferior): Delete.
73
74 2012-03-01 Pedro Alves <palves@redhat.com>
75
76 Import fallback definitions from glibc.
77
78 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
79 ps_prochandle): Forward declare.
80 (ps_err_e): Use glibc's comments.
81 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
82 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
83 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
84 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
85 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
86 (struct ps_prochandle): Adjust comment.
87
88 2012-03-01 Pedro Alves <palves@redhat.com>
89
90 * ada-lang.c (ada_modulus_from_name): Delete.
91 * ada-lex.l (lexer_init): Make static.
92
93 2012-03-01 Pedro Alves <palves@redhat.com>
94
95 PR gdb/13767
96
97 * frame.c (read_frame_register_unsigned): New.
98 * frame.h (read_frame_register_unsigned): Declare.
99 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
100 Handle it.
101 (print_i387_control_word): New parameter `control_p'. Handle it.
102 (i387_print_float_info): Handle unavailable float registers.
103
104 2012-03-01 Keith Seitz <keiths@redhat.com>
105
106 * linespec.c (decode_line_2): Sort the list of methods
107 alphabetically before presenting the user with a selection
108 menu.
109
110 2012-03-01 Doug Evans <dje@google.com>
111
112 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
113 has_namespace_info.
114 (dwarf2_read_abbrevs): Remove corresponding initialization.
115
116 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
117
118 * NEWS: Mention new python command class gdb.COMMAND_USER.
119 * cli/cli-cmds.c (show_user): Print error when used on a python
120 command.
121 (init_cli_cmds): Update documentation strings for "show user" and
122 "set/show max-user-call-depth" to clarify that it does not apply to
123 python commands.
124 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
125 error check.
126 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
127 gdb python api.
128 * top.c (execute_command): Only execute a user-defined command as a
129 legacy macro if c->user_commands is set.
130
131 2012-03-01 Tom Tromey <tromey@redhat.com>
132
133 * valprint.h (struct generic_val_print_decorations): New.
134 (generic_val_print): Declare.
135 * valprint.c (generic_val_print): New function.
136 * p-valprint.c (p_decorations): New global.
137 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
138 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
139 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
140 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
141 * m2-valprint.c (m2_decorations): New global.
142 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
143 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
144 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
145 TYPE_CODE_ERROR>: Call generic_val_print.
146 * f-valprint.c (f_decorations): New global.
147 (f_val_print): Use print_function_pointer_address.
148 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
149 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
150 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
151 generic_val_print.
152 * c-valprint.c (c_decorations): New global.
153 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
154 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
155 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
156 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
157 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
158 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
159 case.
160
161 2012-03-01 Tom Tromey <tromey@redhat.com>
162
163 * valprint.c (val_print): Update.
164 * p-valprint (pascal_val_print): Return void.
165 * p-lang.h (pascal_val_print): Return void.
166 * m2-valprint.c (m2_val_print): Return void.
167 * m2-lang.h (m2_val_print): Return void.
168 * language.h (struct language_defn) <la_val_print>: Return void.
169 * language.c (unk_lang_val_print): Return void.
170 * jv-valprint.c (java_val_print): Return void.
171 * jv-lang.h (java_val_print): Return void.
172 * f-valprint.c (f_val_print): Return void.
173 * f-lang.h (f_val_print): Return void.
174 * d-valprint.c (d_val_print): Return void.
175 (dynamic_array_type): Update.
176 * d-lang.h (d_val_print): Return void.
177 * c-valprint.c (c_val_print): Return void.
178 * c-lang.h (c_val_print): Return void.
179 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
180 void.
181 * ada-lang.h (ada_val_print): Return void.
182
183 2012-03-01 Tom Tromey <tromey@redhat.com>
184
185 * value.h (val_print): Return void.
186 * valprint.c (val_print): Return void.
187
188 2012-03-01 Tom Tromey <tromey@redhat.com>
189
190 * value.h (common_val_print): Return void.
191 * valprint.c (common_val_print): Return void.
192
193 2012-03-01 Tom Tromey <tromey@redhat.com>
194
195 * value.h (value_print): Return void.
196 * valprint.c (value_print): Return void.
197 * p-valprint.c (pascal_value_print): Return void.
198 * p-lang.h (pascal_value_print): Return void.
199 * language.h (struct language_defn) <la_value_print>: Return
200 void.
201 * language.c (unk_lang_value_print): Return void.
202 * jv-valprint.c (java_value_print): Return void.
203 * jv-lang.h (java_value_print): Return void.
204 * f-valprint.c (c_value_print): Don't declare.
205 Include c-lang.h.
206 * c-valprint.c (c_value_print): Return void.
207 * c-lang.h (c_value_print): Return void.
208 * ada-valprint.c (ada_value_print): Return void.
209 * ada-lang.h (ada_value_print): Return void.
210
211 2012-03-01 Tom Tromey <tromey@redhat.com>
212
213 * value.c (value_primitive_field): Handle virtual base classes.
214
215 2012-03-01 Tom Tromey <tromey@redhat.com>
216
217 * gdbtypes.h (struct vbase): Remove.
218
219 2012-03-01 Tom Tromey <tromey@redhat.com>
220
221 * c-valprint.c (print_function_pointer_address): Move...
222 * valprint.c: ... here. Make non-static.
223 * m2-valprint.c (print_function_pointer_address): Remove.
224 * valprint.h (print_function_pointer_address): Declare.
225
226 2012-03-01 Joel Brobecker <brobecker@adacore.com>
227
228 * NEWS: Document the fact that one can provide a condition when
229 creating an Ada exception catchpoint.
230
231 2012-03-01 Tom Tromey <tromey@redhat.com>
232
233 * valprint.c (val_print_type_code_flags): Fix placement of
234 trailing brace.
235
236 2012-03-01 Joel Brobecker <brobecker@adacore.com>
237
238 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
239 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
240 environment variable before calling update-copyright.
241
242 2012-03-01 Joel Brobecker <brobecker@adacore.com>
243
244 * gnulib/extra/update-copyright: Update to the latest from
245 gnulib's git repository.
246 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
247 variable to 2 instead of 1.
248
249 2012-02-29 Joel Brobecker <brobecker@adacore.com>
250
251 * varobj.c (c_value_of_variable): Remove dead code.
252
253 2012-02-29 Joel Brobecker <brobecker@adacore.com>
254
255 * ada-lex.p (processId): Do not modify already encoded IDs.
256 Update function documentation.
257
258 2012-02-29 Joel Brobecker <brobecker@adacore.com>
259
260 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
261 "name" with "struct symbol *name_sym".
262 * ada-exp.y (write_var_or_type): Update call to
263 ada_find_renaming_symbol.
264 "name" with "struct symbol *name_sym". Adjust Implementation
265 accordingly. Adjust the function documentation.
266
267 2012-02-29 Joel Brobecker <brobecker@adacore.com>
268
269 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
270 * ada-lang.c (ada_find_any_type): Add advance declaration.
271 Make static. Replace ada_find_any_symbol by
272 ada_find_any_type_symbol.
273 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
274 Improve function description. Make static.
275 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
276 Replace ada_find_any_symbol by ada_find_any_type_symbol.
277
278 2012-02-29 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-lang.c (struct tag_args): Delete.
281 (ada_get_tsd_type): Function body moved up in source file.
282 (ada_tag_name_1, ada_tag_name_2): Delete.
283 (ada_get_tsd_from_tag): New function.
284 (ada_tag_name_from_tsd): New function.
285 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
286 to determine the tag name.
287
288 2012-02-29 Joel Brobecker <brobecker@adacore.com>
289
290 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
291 declaration.
292 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
293 function.
294
295 2012-02-29 Joel Brobecker <brobecker@adacore.com>
296
297 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
298
299 2012-02-29 Joel Brobecker <brobecker@adacore.com>
300
301 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
302 full searches.
303
304 2012-02-29 Joel Brobecker <brobecker@adacore.com>
305
306 * ada-lang.c (constrained_packed_array_type): If there is a
307 parallel XA type, use it to determine the array index type.
308
309 2012-02-29 Joel Brobecker <brobecker@adacore.com>
310
311 * ada-valprint.c (ada_val_print_1): If our value is a reference
312 to an array descriptor, dereference it before converting it
313 to a simple array.
314
315 2012-02-29 Joel Brobecker <brobecker@adacore.com>
316
317 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
318 creating fixed value.
319 (ada_value_ind, ada_coerce_ref, assign_component)
320 (ada_evaluate_subexp): Remove call to unwrap_value before
321 call to ada_to_fixed_value.
322
323 2012-02-29 Joel Brobecker <brobecker@adacore.com>
324
325 * ada-lang.c (to_fixed_array_type): Set result's type name.
326
327 2012-02-29 Joel Brobecker <brobecker@adacore.com>
328
329 * ada-lang.c (catch_ada_exception_command_split): Add new
330 argument cond_string. Add support for condition at end of
331 "catch exception" commands.
332 (ada_decode_exception_location): Add new argument cond_string.
333 Update call to catch_ada_exception_command_split.
334 (create_ada_exception_catchpoint): Add new argument cond_string.
335 Set the breakpoint condition if needed.
336 (catch_ada_exception_command): Update call to
337 ada_decode_exception_location.
338 (ada_decode_assert_location): Add function documentation.
339 Add support for condition at end of "catch assert" command.
340 (catch_assert_command): Update calls to ada_decode_assert_location
341 and create_ada_exception_catchpoint.
342
343 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
344
345 Fix disp-step-syscall.exp: fork: single step over fork.
346 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
347 (i386_linux_get_syscall_number_from_regcache): ... here, new function
348 comment, change parameters gdbarch and ptid to regcache. Remove
349 parameter regcache, initialize gdbarch from regcache here.
350 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
351 New functions.
352 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
353 instead.
354 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
355 'syscall'. Make the 'int' check more strict.
356
357 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
358
359 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
360 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
361 (i386_linux_intx80_sysenter_syscall_record): ... here.
362 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
363 Use the renamed function name.
364
365 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
368 * breakpoint.c (until_break_command): Likewise.
369 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
370 * infcall.c (call_function_by_hand): Likewise.
371 * infcmd.c (finish_forward): Likewise.
372 * infrun.c (insert_exception_resume_breakpoint): Likewise.
373
374 2012-02-28 Joel Brobecker <brobecker@adacore.com>
375
376 From Tristan Gingold <gingold@adacore.com>.
377 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
378 avoid variable assignments inside condition.
379
380 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
381
382 Fix static analysis issue found by cppcheck.
383 * microblaze-tdep.c (microblaze_extract_return_value): Fix
384 uninitialized BUF for size 2.
385
386 2012-02-27 Chris Dearman <chris@mips.com>
387 Nathan Froyd <froydnj@codesourcery.com>
388 Maciej W. Rozycki <macro@codesourcery.com>
389
390 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
391 (mips16_instruction_has_delay_slot): Likewise.
392 (mips_segment_boundary): Likewise.
393 (mips_adjust_breakpoint_address): Likewise.
394 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
395
396 2012-02-27 Maciej W. Rozycki <macro@mips.com>
397 Maciej W. Rozycki <macro@codesourcery.com>
398
399 * infrun.c (handle_inferior_event): Don't proceed through
400 shared library trampolines if stepping at the machine
401 instruction level.
402
403 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
404
405 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
406 too.
407
408 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
409
410 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
411 (sh_stub_unwind_sniffer): New functions.
412 (sh_stub_unwind): New variable.
413 (sh_gdbarch_init): Wire everything.
414
415 2012-02-27 Pedro Alves <palves@redhat.com>
416
417 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
418 (linux_nat_post_attach_wait): Adjust to use
419 linux_proc_pid_is_stopped.
420 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
421 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
422 based on pid_is_stopped from both linux-nat.c and
423 gdbserver/linux-low.c, and renamed.
424
425 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
426
427 * remote.c (remote_watchpoint_addr_within_range): New function.
428 (init_remote_ops): Use it.
429
430 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
431
432 * target.h (target_watchpoint_addr_within_range): Document macro.
433
434 2012-02-24 Pedro Alves <palves@redhat.com>
435
436 * stack.c (set_last_displayed_sal): Issue internal_error instead
437 of warning, and issue it after clearing the last displayed sal.
438
439 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
440 Pedro Alves <palves@redhat.com>
441
442 * breakpoint.c (until_break_command): Install breakpoints after
443 all frame manipulations.
444
445 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
446
447 * remote.c (remote_supports_cond_breakpoints): New forward
448 declaration.
449 (remote_add_target_side_condition): New function.
450 (remote_insert_breakpoint): Add target-side breakpoint
451 conditional if supported.
452 (remote_insert_hw_breakpoint): Likewise.
453 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
454 hook.
455
456 * target.c (update_current_target): Inherit
457 to_supports_evaluation_of_breakpoint_conditions.
458 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
459
460 * target.h (struct target_ops)
461 <to_supports_evaluation_of_breakpoint_conditions>: New field.
462 (target_supports_evaluation_of_breakpoint_conditions): New #define.
463
464 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
465 (condition_evaluation_both, condition_evaluation_auto,
466 condition_evaluation_host, condition_evaluation_target,
467 condition_evaluation_enums, condition_evaluation_mode_1,
468 condition_evaluation_mode): New static globals.
469 (translate_condition_evaluation_mode): New function.
470 (breakpoint_condition_evaluation_mode): New function.
471 (gdb_evaluates_breakpoint_condition_p): New function.
472 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
473 (mark_breakpoint_modified): New function.
474 (mark_breakpoint_location_modified): New function.
475 (set_condition_evaluation_mode): New function.
476 (show_condition_evaluation_mode): New function.
477 (bp_location_compare_addrs): New function.
478 (get_first_location_gte_addr): New helper function.
479 (set_breakpoint_condition): Free condition bytecode if locations
480 has become unconditional. Call mark_breakpoint_modified (...).
481 (condition_command): Call update_global_location_list (1) for
482 breakpoints.
483 (breakpoint_xfer_memory): Use is_breakpoint (...).
484 (is_breakpoint): New function.
485 (parse_cond_to_aexpr): New function.
486 (build_target_condition_list): New function.
487 (insert_bp_location): Handle target-side conditional
488 breakpoints and call build_target_condition_list (...).
489 (update_inserted_breakpoint_locations): New function.
490 (insert_breakpoint_locations): Handle target-side conditional
491 breakpoints.
492 (bpstat_check_breakpoint_conditions): Add comment.
493 (bp_condition_evaluator): New function.
494 (bp_location_condition_evaluator): New function.
495 (print_breakpoint_location): Print information on where the condition
496 will be evaluated.
497 (print_one_breakpoint_location): Likewise.
498 (init_bp_location): Call mark_breakpoint_location_modified (...) for
499 breakpoint location.
500 (force_breakpoint_reinsertion): New functions.
501 (update_global_location_list): Handle target-side breakpoint
502 conditions.
503 Reinsert locations that are already inserted if conditions have
504 changed.
505 (bp_location_dtor): Free agent expression bytecode.
506 (disable_breakpoint): Call mark_breakpoint_modified (...).
507 Call update_global_location_list (...) with parameter 1 for breakpoints.
508 (disable_command): Call mark_breakpoint_location_modified (...).
509 Call update_global_location_list (...) with parameter 1 for breakpoints.
510 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
511 (enable_command): mark_breakpoint_location_modified (...).
512 (_initialize_breakpoint): Update documentation and add
513 condition-evaluation breakpoint subcommand.
514
515 * breakpoint.h: Include ax.h.
516 (condition_list): New data structure.
517 (condition_status): New enum.
518 (bp_target_info) <cond_list>: New field.
519 (bp_location) <condition_changed, cond_bytecode>: New fields.
520 (is_breakpoint): New prototype.
521
522 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
523
524 * remote.c (remote_state) <cond_breakpoints>: New field.
525 (PACKET_ConditionalBreakpoints): New enum.
526 (remote_cond_breakpoint_feature): New function.
527 (remote_protocol_features): Add new ConditionalBreakpoints entry.
528 (remote_supports_cond_breakpoints): New function.
529 (_initialize_remote): Add new packet configuration for
530 target-side conditional breakpoints.
531
532 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
533
534 * NEWS: Mention target-side conditional breakpoint support,
535 new condition-evaluation breakpoint subcommand and remote
536 packet extensions.
537
538 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
539
540 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
541 number.
542
543 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
544
545 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
546 (after_prologue): Remove.
547
548 2012-02-23 Tom Tromey <tromey@redhat.com>
549
550 * jv-valprint.c (java_val_print): Remove dead code.
551
552 2012-02-23 Tristan Gingold <gingold@adacore.com>
553
554 * ada-tasks.c (struct ada_tasks_inferior_data): Add
555 known_tasks_element and known_tasks_length fields.
556 (read_known_tasks_array): Change argument type. Use pointer type
557 and number of elements from DATA. Adjust.
558 (read_known_tasks_list): Likewise.
559 (get_known_tasks_addr): Remove.
560 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
561 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
562 type and array length. Merge former get_known_tasks_addr code.
563
564 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
565
566 PR backtrace/13716
567 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
568 it after set_momentary_breakpoint.
569
570 2012-02-22 Sterling Augustine <saugustine@google.com>
571
572 PR 13689:
573 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
574
575 2012-02-22 Gary Benson <gbenson@redhat.com>
576
577 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
578 (find_slot_in_mapped_hash): Likewise.
579
580 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
581
582 PR build/13638
583 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
584 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
585 * configure: Regenerate.
586
587 2012-02-21 Tristan Gingold <gingold@adacore.com>
588 Pedro Alves <palves@redhat.com>
589
590 * ia64-tdep.c: Do not include libunwind-ia64.h.
591 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
592 Include libunwind-ia64.h instead of libunwind.h.
593 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
594 for libunwind.h existence.
595 * configure, config.in: Regenerate.
596
597 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
598
599 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
600 instead of value_rtti_target_type.
601 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
602 instead of value_rtti_target_type.
603 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
604 value_rtti_target_type.
605 * valops.c (value_ind): Extract function readjust_indirect_value_type.
606 (value_rtti_target_type): Rename to ...
607 (value_rtti_indirect_type): ... here and make it indirect. Update
608 function comment.
609 * value.c (readjust_indirect_value_type): New function.
610 (coerce_ref): Support for enclosing type setting for references
611 with readjust_indirect_value_type.
612 * value.h (readjust_value_type): New declaration.
613 (value_rtti_target_type): Rename to ...
614 (value_rtti_indirect_type): ... here.
615
616 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
617
618 * MAINTAINERS (Write After Approval): Add myself to the list.
619
620 2012-02-20 Doug Evans <dje@google.com>
621
622 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
623 Rename objfile_p_char parameter to objfilep.
624 (build_objfile_section_table): Result is now void. All callers
625 updated.
626 * objfiles.h (struct objfile): Tweak comments, whitespace.
627 (build_objfile_section_table): Update.
628
629 * elfread.c (elf_symfile_segments): Fix warning text.
630
631 2012-02-20 Tom Tromey <tromey@redhat.com>
632
633 PR gdb/13498:
634 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
635 particular set of file names once.
636 (dw2_map_symbol_filenames): Likewise.
637
638 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 Code cleanup.
641 * main.c (write_files): Remove the declaration.
642 (external_editor_command): Move the declaration ...
643 [GDBTK] (external_editor_command): ... here. Fix the comment.
644
645 2012-02-20 Tom Tromey <tromey@redhat.com>
646
647 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
648 extraneous block.
649
650 2012-02-20 Tristan Gingold <gingold@adacore.com>
651
652 * darwin-nat.h (enum darwin_msg_state): Add comments.
653
654 2012-02-20 Tristan Gingold <gingold@adacore.com>
655
656 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
657 value.
658
659 2012-20-18 Joel Brobecker <brobecker@adacore.com>
660
661 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
662 between function description and implementation.
663
664 2012-02-17 Tom Tromey <tromey@redhat.com>
665
666 PR python/12070:
667 * python/py-event.c (event_object_getset): New global.
668 (event_object_type): Reference it.
669 * python/py-type.c (field_object_getset): New global.
670 (field_object_type): Reference it.
671 * python/python-internal.h (gdb_py_generic_dict): Declare.
672 * python/py-utils.c (gdb_py_generic_dict): New function.
673
674 2012-02-17 Tristan Gingold <gingold@adacore.com>
675
676 * solib-darwin.c (darwin_current_sos): Check magic and filetype
677
678 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
679
680 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
681 TYPE_CALLING_CONVENTION annotation.
682
683 2012-02-16 Kevin Buettner <kevinb@redhat.com>
684
685 * MAINTAINERS: Add rx to target ISA section.
686 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
687 (ALLDEPFILES): Add rx-tdep.c.
688
689 2012-02-16 Tom Tromey <tromey@redhat.com>
690
691 * symfile.c (symbol_file_add_main_1): Use inferior's
692 symfile_flags.
693 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
694 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
695 inferior.
696 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
697 inferior.
698 (follow_exec): Use inferior's symfile_flags.
699 * inferior.h (struct inferior) <symfile_flags>: New field.
700
701 2012-02-16 Mike Frysinger <vapier@gentoo.org>
702
703 PR gdb/9734:
704 * remote-sim.c (gdbsim_create_inferior): Call error() when
705 sim_create_inferior() fails.
706
707 2012-02-16 Josh Matthews <josh@joshmatthews.net>
708
709 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
710
711 2012-02-16 Tom Tromey <tromey@redhat.com>
712
713 PR c++/13653:
714 * thread.c (struct current_thread_cleanup) <was_removable>: New
715 field.
716 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
717 (make_cleanup_restore_current_thread): Initialize new field.
718
719 2012-02-15 Kevin Buettner <kevinb@redhat.com>
720
721 * MAINTAINERS: Add rl78 to target ISA section.
722 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
723 (ALLDEPFILES): Add rl78-tdep.c.
724 * NEWS: Mention rl78 as a new target.
725
726 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
727
728 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
729 data.
730 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
731
732 2012-02-15 Tom Tromey <tromey@redhat.com>
733
734 PR gdb/12659:
735 * infcmd.c (registers_info): Print just the current register's
736 name.
737
738 2012-02-15 Tom Tromey <tromey@redhat.com>
739
740 * python/py-symbol.c (sympy_value): Use _().
741
742 2012-02-15 Pedro Alves <palves@redhat.com>
743
744 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
745 output to be like native targets'.
746 (remote_pid_to_str): Special case the null ptid.
747
748 2012-02-14 Stan Shebs <stan@codesourcery.com>
749
750 * NEWS: Mention enable count command.
751 * breakpoint.h (struct breakpoint): New field enable_count.
752 * breakpoint.c (enable_breakpoint_disp): Add count argument.
753 (enable_breakpoint): Add arg to call.
754 (struct disp_data): New struct.
755 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
756 (do_map_enable_once_breakpoint): Create a struct and pass it.
757 (do_map_enable_delete_breakpoint): Ditto.
758 (do_map_enable_count_breakpoint): New function.
759 (enable_count_command): New function.
760 (bpstat_stop_status): Decrement enable_count.
761 (print_one_breakpoint_location): Report enable count.
762 (_initialize_breakpoint): Add enable count command.
763
764 2012-02-14 Kevin Buettner <kevinb@redhat.com>
765
766 * rl78-tdep.c (reggroups.h): Include.
767 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
768 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
769 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
770 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
771 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
772 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
773 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
774 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
775 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
776 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
777 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
778 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
779 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
780 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
781 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
782 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
783 beginning of register list.
784 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
785 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
786 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
787 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
788 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
789 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
790 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
791 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
792 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
793 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
794 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
795 the pseudo registers. Rearrange other pseudo registers too so
796 that the bank registers appear at the end.
797 (rl78_register_type): Account for the fact that the byte sized
798 bank registers are now pseudo-registers.
799 (rl78_register_name): Rearrange the register name array. Make
800 initial set of raw banked registers inaccessible.
801 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
802 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
803 case for copying bytes back and forth between raw and pseudo
804 versions of the banked registers. Update other cases to reflect
805 the changed names.
806 (rl78_return_value): Update to account for changed names of
807 raw registers.
808 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
809 rl78_register_sim_regno().
810
811 2012-02-14 Kevin Buettner <kevinb@redhat.com>
812
813 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
814 the name parameter being passed to find_pc_partial_function().
815
816 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
817
818 * MAINTAINERS: Step down from being ia64 target maintainer.
819
820 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
821
822 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
823 compilation warning.
824
825 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
826
827 Fix crash on loaded shlibs without loaded exec_bfd.
828 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
829 (set_section_command): Replace exec_bfd by p->bfd.
830
831 2012-02-10 Tom Tromey <tromey@redhat.com>
832
833 * linespec.c (decode_line_internal): Skip symtabs_from_filename
834 when we have a C++ qualified name.
835
836 2012-02-10 Pedro Alves <palves@redhat.com>
837
838 * inferior.c (inferior_pid_to_str): New.
839 (print_inferior, inferior_command): Use it.
840
841 2012-02-10 Pedro Alves <palves@redhat.com>
842
843 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
844 the test CFLAGS.
845 * configure: Regenerate.
846
847 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
848
849 * linespec.c (decode_line_internal): Fix comment correctness.
850
851 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
852
853 PR gdb/12953
854 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
855 * amd64bsd-nat.c: Add support for debug registers (adapted from
856 i386bsd-nat.c).
857 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
858 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
859 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
860 (amd64bsd_dr_get_control): New functions.
861 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
862 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
863 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
864 watchpoints initialization.
865 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
866
867 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
868
869 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
870 flds_bnds.fields.
871 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
872
873 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
874
875 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
876
877 2012-02-08 Joel Brobecker <brobecker@adacore.com>
878
879 * language.h (symbol_name_cmp_ftype): Renames
880 symbol_name_match_p_ftype.
881 (struct language_defn)[la_get_symbol_name_cmp]: Renames
882 la_get_symbol_name_match_p.
883 * ada-lang.c (ada_get_symbol_name_cmp): Renames
884 ada_get_symbol_name_match_p. Update comment.
885 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
886 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
887 Renames symbol_name_match_p. Update field type.
888 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
889 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
890 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
891 "la_get_symbol_name_cmp" in comments.
892 * language.c: Likewise.
893
894 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
895
896 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
897 %eflags offset.
898 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
899 (amd64_sol2_gregset32_reg_offs): Likewise.
900
901 2012-02-08 Joel Brobecker <brobecker@adacore.com>
902
903 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
904 of the returned BFD is allocated by GDB.
905
906 2012-02-07 Tom Tromey <tromey@redhat.com>
907
908 PR python/12027:
909 * python/python-internal.h (frame_object_type): Declare.
910 * python/py-symbol.c (sympy_needs_frame): New function.
911 (sympy_value): New function.
912 (symbol_object_getset): Add "needs_frame".
913 (symbol_object_methods): Add "value".
914 * python/py-frame.c (frame_object_type): No longer static.
915
916 2012-02-07 Tom Tromey <tromey@redhat.com>
917
918 PR python/13599:
919 * python/py-symbol.c (sympy_line): New function.
920 (symbol_object_getset): Add "line".
921
922 2012-02-07 Tom Tromey <tromey@redhat.com>
923
924 * charset.c (find_charset_names): Check 'in' against NULL.
925
926 2012-02-06 Doug Evans <dje@google.com>
927
928 * gdbtypes.h (struct main_type): Change type of name,tag_name,
929 and fields.name members from char * to const char *. All uses updated.
930 (struct cplus_struct_type): Change type of fn_fieldlists.name member
931 from char * to const char *. All uses updated.
932 (type_name_no_tag): Update.
933 (lookup_unsigned_typename, lookup_signed_typename): Update.
934 * gdbtypes.c (type_name_no_tag): Change result type
935 from char * to const char *. All callers updated.
936 (lookup_unsigned_typename, lookup_signed_typename): Change type of
937 name parameter from char * to const char *.
938 * symtab.h (struct cplus_specific): Change type of demangled_name
939 member from char * to const char *. All uses updated.
940 (struct general_symbol_info): Change type of name and
941 mangled_lang.demangled_name members from char * to const char *.
942 All uses updated.
943 (symbol_get_demangled_name, symbol_natural_name): Update.
944 (symbol_demangled_name, symbol_search_name): Update.
945 * symtab.c (symbol_get_demangled_name): Change result type
946 from char * to const char *. All callers updated.
947 (symbol_natural_name, symbol_demangled_name): Ditto.
948 (symbol_search_name): Ditto.
949 (completion_list_add_name): Change type of symname,sym_text,
950 text,word parameters from char * to const char *.
951 (completion_list_objc_symbol): Change type of sym_text,
952 text,word parameters from char * to const char *.
953 * ada-lang.c (find_struct_field): Change type of name parameter
954 from char * to const char *.
955 (encoded_ordered_before): Similarly for N0,N1 parameters.
956 (old_renaming_is_invisible): Similarly for function_name parameter.
957 (ada_type_name): Change result type from char * to const char *.
958 All callers updated.
959 * ada-lang.h (ada_type_name): Update.
960 * buildsym.c (hashname): Change type of name parameter
961 from char * to const char *.
962 * buildsym.h (hashname): Update.
963 * dbxread.c (end_psymtab): Change type of include_list parameter
964 from char ** to const char **.
965 * dwarf2read.c (determine_prefix): Change result type
966 from char * to const char *. All callers updated.
967 * f-lang.c (find_common_for_function): Change type of name, funcname
968 parameters from char * to const char *.
969 * f-lang.c (find_common_for_function): Update.
970 * f-valprint.c (list_all_visible_commons): Change type of funcname
971 parameters from char * to const char *.
972 * gdbarch.sh (static_transform_name): Change type of name parameter
973 and result from char * to const char *.
974 * gdbarch.c: Regenerate.
975 * gdbarch.h: Regenerate.
976 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
977 of name parameter from char * to const char *.
978 * jv-lang.c (java_primitive_type_from_name): Ditto.
979 (java_demangled_signature_length): Similarly for signature parameter.
980 (java_demangled_signature_copy): Ditto.
981 (java_demangle_type_signature): Ditto.
982 * jv-lang.h (java_primitive_type_from_name): Update.
983 (java_demangle_type_signature): Update.
984 * objc-lang.c (specialcmp): Change type of a,b parameters
985 from char * to const char *.
986 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
987 from char * to const char *. All callers updated.
988 * p-lang.h (is_pascal_string_type): Update.
989 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
990 of name parameter from char * to const char *.
991 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
992 * utils.c (fprintf_symbol_filtered): Ditto.
993 * defs.h (fprintf_symbol_filtered): Update.
994 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
995 * stabsread.h (end_psymtab): Update.
996 * stack.c (find_frame_funname): Change type of funname parameter
997 from char ** to const char **.
998 * stack.h (find_frame_funname): Update.
999 * typeprint.c (type_print): Change type of varstring parameter
1000 from char * to const char *.
1001 * value.h (type_print): Update.
1002 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
1003 from char * to const char *. All callers updated.
1004 (xcoff_end_psymtab): Change type of include_list parameter
1005 from char ** to const char **. All callers updated.
1006 (swap_sym): Similarly for name parameter. All callers updated.
1007 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
1008 Use xstrdup.
1009 (process_coff_symbol): Use xstrdup.
1010 * stabsread.c (stabs_method_name_from_physname): Renamed from
1011 update_method_name_from_physname. Change result type from void
1012 to char *. All callers updated.
1013 (read_member_functions): In has_destructor case, store name in objfile
1014 obstack instead of malloc space. In !has_stub case, fix mem leak.
1015
1016 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1017
1018 * configure: Rebuild.
1019 * configure.ac: Put -L../bfd and -L../libiberty at the front of
1020 LDFLAGS.
1021
1022 2012-02-03 Kevin Buettner <kevinb@redhat.com>
1023
1024 * configure.tgt (rl78-*-elf): New target.
1025 * rl78-tdep.c: New file.
1026
1027 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1028
1029 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
1030 and continue the loop. Add QUIT statement.
1031
1032 2012-02-03 Tom Tromey <tromey@redhat.com>
1033
1034 PR gdb/13596:
1035 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
1036 bfd_lookup_symbol_from_symtab.
1037 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1038 gdb_bfd_lookup_symbol_from_symtab.
1039
1040 2012-02-03 Joel Brobecker <brobecker@adacore.com>
1041
1042 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
1043 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
1044 symbol. Add assertion that sym2 is never NULL.
1045
1046 2012-02-02 Doug Evans <dje@google.com>
1047
1048 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
1049 "name" parameter to const char ** from char **. All callers updated.
1050 (find_pc_partial_function): Ditto.
1051 (cache_pc_function_name): Change type to const char * from char *.
1052 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
1053 (find_pc_partial_function): Update.
1054 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
1055 type of "name" parameter to const char * from char *.
1056 All uses updated.
1057 * arch-utils.c (generic_in_solib_return_trampoline): Change
1058 type of "name" parameter to const char * from char *.
1059 * arch-utils.h (generic_in_solib_return_trampoline): Update.
1060 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
1061 type of "name" parameter to const char * from char *.
1062 * gdbarch.sh (in_solib_return_trampoline): Ditto.
1063 * gdbarch.c: Regenerate.
1064 * gdbarch.h: Regenerate.
1065 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
1066 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
1067 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
1068 type of "name" parameter to const char * from char *.
1069 * skip.c (skip_function_pc): Ditto.
1070 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
1071 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
1072 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
1073 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
1074 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
1075 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
1076 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
1077 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
1078 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
1079
1080 2012-02-02 Pedro Alves <palves@redhat.com>
1081
1082 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
1083 the current inferior has no execution. Make sure the current
1084 remote process matches gdb's current inferior.
1085
1086 2012-02-02 Tom Tromey <tromey@redhat.com>
1087
1088 PR gdb/13405:
1089 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
1090 read-only memory.
1091
1092 2012-02-02 Tom Tromey <tromey@redhat.com>
1093
1094 PR gdb/9307:
1095 * symtab.c (lookup_language_this): Set block_found.
1096
1097 2012-02-01 Tom Tromey <tromey@redhat.com>
1098
1099 PR gdb/13431:
1100 * jit.c (struct jit_inferior_data): Rewrite.
1101 (struct jit_objfile_data): New.
1102 (get_jit_objfile_data): New function.
1103 (add_objfile_entry): Update.
1104 (jit_read_descriptor): Return int. Replace descriptor_addr
1105 argument with inf_data. Update. Don't call error.
1106 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
1107 descriptor here.
1108 (jit_inferior_init): Don't look up descriptor. Don't call error.
1109 (jit_reset_inferior_data_and_breakpoints)
1110 (jit_inferior_created_observer): Remove.
1111 (jit_inferior_exit_hook): Update.
1112 (jit_executable_changed_observer): Remove.
1113 (jit_event_handler): Update.
1114 (free_objfile_data): Reset inferior data if needed.
1115 (_initialize_jit): Update.
1116
1117 2012-02-01 Tom Tromey <tromey@redhat.com>
1118
1119 * jit.c (bfd_open_from_target_memory): Move higher in file.
1120
1121 2012-02-01 Tristan Gingold <gingold@adacore.com>
1122
1123 * libunwind-frame.c (libunwind_load): Display message if dlopen
1124 failed.
1125
1126 2012-02-01 Gary Benson <gbenson@redhat.com>
1127
1128 * symtab.h (symbol_name_match_p_ftype): New typedef.
1129 (iterate_over_symbols): Use the above.
1130 * symtab.c (iterate_over_symbols): Likewise.
1131 * language.h (language_defn->la_iterate_over_symbols): Likewise.
1132 * ada-lang.c (ada_iterate_over_symbols): Likewise.
1133 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
1134 (iterate_name_matcher): Document return values.
1135 (collect_one_symbol): Likewise.
1136 (collect_function_symbols): Likewise.
1137 (collect_symbols): Likewise.
1138
1139 2012-02-01 Tom Tromey <tromey@redhat.com>
1140
1141 * ada-lang.c (resolve_subexp): Update.
1142 (ada_lookup_symbol_list): Add 'full_search' argument.
1143 (ada_iterate_over_symbols): Pass 0 as full_search argument to
1144 ada_lookup_symbol_list.
1145 (ada_lookup_encoded_symbol): Update.
1146 (get_var_value): Update.
1147 * ada-exp.y (block_lookup): Update.
1148 (write_var_or_type): Update.
1149 (write_name_assoc): Update.
1150 * ada-lang.h (ada_lookup_symbol_list): Update.
1151
1152 2012-01-31 Tom Tromey <tromey@redhat.com>
1153
1154 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
1155 comment.
1156
1157 2012-01-31 Doug Evans <dje@google.com>
1158
1159 * symtab.h: Remove outdated comment.
1160 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
1161
1162 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
1163
1164 Fix build error in Darwin port.
1165 * i386-darwin-nat.c: Include i386-nat.h.
1166
1167 2012-01-30 Tom Tromey <tromey@redhat.com>
1168
1169 PR breakpoints/13568:
1170 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
1171 argument. Check for recursive includes.
1172 (dwarf_decode_macros): Create an include hash.
1173
1174 2012-01-30 Michael Eager <eager@eagercon.com>
1175
1176 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
1177 * ppc-linux-tdep.c: Include glibc-tdep.h.
1178 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
1179 (powerpc_linux_in_plt_stub): New function.
1180 (powerpc_linux_in_dynsym_resolve_code): New function.
1181 (ppc_skip_trampoline_code): New function.
1182 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
1183 Use glibc_skip_solib_resolver.
1184
1185 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1186
1187 Code cleanup: Make 1440 bytes of data segment read-only.
1188 * arch-utils.c (endian_enum): Make it const char *const [].
1189 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
1190 Likewise.
1191 * breakpoint.c (always_inserted_enums): Likewise.
1192 * cli/cli-cmds.c (script_ext_enums): Likewise.
1193 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
1194 enumlist parameter const char *const *.
1195 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
1196 const char *const *.
1197 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
1198 parameter const char *const *.
1199 * cris-tdep.c (cris_modes): Make it const char *const [].
1200 * filesystem.c (target_file_system_kinds): Likewise.
1201 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
1202 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
1203 (can_use_displaced_stepping_enum, scheduler_enums)
1204 (exec_direction_names): Likewise.
1205 * language.c (_initialize_language): Make the type_or_range_names and
1206 case_sensitive_names variables const char *const [].
1207 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
1208 * python/python.c (python_excp_enums): Likewise.
1209 * remote.c (interrupt_sequence_modes): Likewise.
1210 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
1211 * serial.c (logbase_enums): Likewise.
1212 * sh-tdep.c (sh_cc_enum): Likewise.
1213 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
1214 Likewise.
1215 * symtab.c (multiple_symbols_modes): Likewise.
1216 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
1217 Likewise.
1218 * utils.c (internal_problem_modes): Likewise.
1219
1220 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1221
1222 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
1223 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
1224 result.
1225
1226 2012-01-27 Doug Evans <dje@google.com>
1227
1228 * configure.ac (with_python): Fix absolute path handling for win32.
1229 * configure: Regenerate.
1230
1231 2012-01-26 Doug Evans <dje@google.com>
1232
1233 * symtab.c: Whitespace cleanup, no code changes.
1234
1235 * symtab.c (lookup_symbol_in_language): Improve comment.
1236 (lookup_symbol_aux): Fix comment.
1237
1238 * psymtab.c (add_psymbol_to_list): Result is now "void".
1239 * psympriv.h (add_psymbol_to_list): Update.
1240
1241 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
1242
1243 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1244
1245 Do not open script filenames twice.
1246 * cli/cli-cmds.c (source_script_from_stream): Pass to
1247 source_python_script also STREAM.
1248 * python/py-auto-load.c (source_section_scripts): Pass to
1249 source_python_script_for_objfile also STREAM.
1250 (auto_load_objfile_script): Pass to source_python_script_for_objfile
1251 also INPUT.
1252 * python/python-internal.h (source_python_script_for_objfile): New
1253 parameter file, rename parameter file to filename.
1254 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
1255 instead if !_WIN32. Update the function comment.
1256 (source_python_script, source_python_script_for_objfile)
1257 (source_python_script): New parameter file, rename parameter file to
1258 filename. Pass FILENAME to python_run_simple_file.
1259 * python/python.h (source_python_script): New parameter file, rename
1260 parameter file to filename.
1261
1262 2012-01-26 Pedro Alves <palves@redhat.com>
1263
1264 * corelow.c (core_has_fake_pid): Delete.
1265 (core_close): Delete references to `core_has_fake_pid'.
1266 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1267 (core_open): Delete references to `core_has_fake_pid'.
1268 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1269 the removed global.
1270
1271 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1272
1273 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1274 Remove language parameter from name_matcher. Adjust the comment.
1275 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1276 Remove language parameter.
1277 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1278 * linespec.c (iterate_name_matcher): Likewise.
1279 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1280 name_matcher. Adjust call accordingly.
1281 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1282 (maintenance_check_symtabs): Adjust type of parameter "fun".
1283 * psymtab.h (maintenance_check_symtabs): Likewise.
1284
1285 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1286
1287 * language.h (symbol_name_match_p_ftype): New typedef.
1288 (struct language_defn): Replace field la_symbol_name_compare
1289 by la_get_symbol_name_match_p.
1290 * ada-lang.c (ada_get_symbol_name_match_p): New function.
1291 (ada_language_defn): Use it.
1292 * linespec.c (struct symbol_matcher_data): New type.
1293 (iterate_name_matcher): Rewrite.
1294 (iterate_over_all_matching_symtabs): Pass a pointer to
1295 a symbol_matcher_data struct to expand_symtabs_matching
1296 instead of just the lookup name.
1297 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1298 opencl-lang.c, p-lang.c, language.c: Delete field
1299 la_symbol_name_compare, and replace by NULL for new field
1300 la_get_symbol_name_match_p.
1301 * symfile.h (struct quick_symbol_functions): Update comment.
1302
1303 2012-01-25 Tom Tromey <tromey@redhat.com>
1304
1305 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
1306 dereferencing.
1307
1308 2012-01-24 Tom Tromey <tromey@redhat.com>
1309
1310 PR symtab/12406:
1311 * solib.c (update_solib_list): Update the program space's
1312 added_solibs and deleted_solibs fields.
1313 * progspace.h (struct program_space) <added_solibs,
1314 deleted_solibs>: New fields.
1315 (clear_program_space_solib_cache): Declare.
1316 * progspace.c (release_program_space): Call
1317 clear_program_space_solib_cache.
1318 (clear_program_space_solib_cache): New function.
1319 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
1320 bpstat_stop_status. Use handle_solib_event.
1321 * breakpoint.c: Include gdb_regex.h.
1322 (print_solib_event): New function.
1323 (bpstat_print): Use print_solib_event.
1324 (bpstat_stop_status): Add special case for bp_shlib_event.
1325 (handle_solib_event): New function.
1326 (bpstat_what): Use handle_solib_event.
1327 (struct solib_catchpoint): New.
1328 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
1329 (breakpoint_hit_catch_solib, check_status_catch_solib)
1330 (print_it_catch_solib, print_one_catch_solib)
1331 (print_mention_catch_solib, print_recreate_catch_solib): New
1332 functions.
1333 (catch_solib_breakpoint_ops): New global.
1334 (catch_load_or_unload, catch_load_command_1)
1335 (catch_unload_command_1): New functions.
1336 (internal_bkpt_check_status): Add special case for
1337 bp_shlib_event.
1338 (internal_bkpt_print_it): Use print_solib_event.
1339 (initialize_breakpoint_ops): Initialize
1340 catch_solib_breakpoint_ops.
1341 (_initialize_breakpoint): Register "catch load" and "catch
1342 unload".
1343 * breakpoint.h (handle_solib_event): Declare.
1344 * NEWS: Add entry for "catch load" and "catch unload".
1345
1346 2012-01-24 Tom Tromey <tromey@redhat.com>
1347
1348 * ada-lang.c: Include gdb_vecs.h.
1349 * charset.c: Include gdb_vecs.h.
1350 * tracepoint.h: Include gdb_vecs.h.
1351 * gdb_vecs.h: New file.
1352
1353 2012-01-24 Pedro Alves <pedro@codesourcery.com>
1354
1355 * breakpoint.c (breakpoint_hit_catch_fork)
1356 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
1357 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
1358 * infrun.c (inferior_has_forked, inferior_has_vforked)
1359 (inferior_has_execd, inferior_has_called_syscall): Delete.
1360 (handle_syscall_event): Get syscall_number from the execution
1361 control state's wait status.
1362 (wait_for_inferior): Don't clear syscall_number.
1363
1364 2012-01-24 Pedro Alves <palves@redhat.com>
1365
1366 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
1367 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
1368 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
1369 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
1370 `ws' parameter.
1371 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
1372 false for events other than TARGET_SIGNAL_TRAP.
1373 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
1374 Add `ws' parameter.
1375 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
1376 events other than TARGET_SIGNAL_TRAP.
1377 (tracepoint_breakpoint_hit): Add `ws' parameter.
1378 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
1379 parameter.
1380 (bpstat_stop_status): Same.
1381 (pc_at_non_inline_function): Same.
1382 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
1383 to pass the current event's waitstatus to bpstat_stop_status
1384 and pc_at_non_inline_function.
1385
1386 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1387
1388 Code cleanup.
1389 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
1390 Update the function comment for it.
1391 (source_script_with_search): Call make_cleanup_fclose for STREAM.
1392 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
1393 for STREAM.
1394
1395 2012-01-24 Pedro Alves <palves@redhat.com>
1396
1397 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
1398 outside `bs->stop' block.
1399 (bpstat_what): Rework bp_shlib_event handling.
1400 (internal_bkpt_check_status): If the breakpoint is a
1401 bp_shlib_event, then set bs->stop and bs->print if
1402 stop_on_solib_events is set.
1403
1404 2012-01-24 Gary Benson <gbenson@redhat.com>
1405
1406 Delete #if 0'd out code.
1407 * stack.c (print_frame_label_vars): Remove.
1408 (catch_info): Likewise.
1409 (_initialize_stack): Remove "info catch" command.
1410 * NEWS: Mention the above.
1411
1412 2012-01-24 Pedro Alves <palves@redhat.com>
1413
1414 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
1415 it.
1416 (remote_notice_new_inferior): If the remote end doesn't support
1417 the multiprocess extensions, then the PID is fake.
1418 (add_current_inferior_and_thread): New.
1419 (remote_start_remote): Use it.
1420 (extended_remote_attach_1): Adjust.
1421 (extended_remote_create_inferior_1): Use
1422 add_current_inferior_and_thread.
1423
1424 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1425
1426 Fix watchpoints to be specific for each inferior.
1427 * breakpoint.c (watchpoint_in_thread_scope): Verify also
1428 current_program_space.
1429 * i386-nat.c (i386_inferior_data_cleanup): New.
1430 (i386_inferior_data_get): Replace variable inf_data_local by an
1431 inferior_data call.
1432 (i386_use_watchpoints): Initialize i386_inferior_data.
1433 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
1434 specific iterate_over_lwps.
1435
1436 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1437
1438 Fix watchpoints across inferior fork.
1439 * amd64-linux-nat.c (update_debug_registers_callback): Update the
1440 comment for linux_nat_iterate_watchpoint_lwps.
1441 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1442 linux_nat_iterate_watchpoint_lwps.
1443 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1444 * i386-linux-nat.c (update_debug_registers_callback): Update the
1445 comment for linux_nat_iterate_watchpoint_lwps.
1446 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1447 linux_nat_iterate_watchpoint_lwps.
1448 (i386_linux_prepare_to_resume): New comment on Linux kernel.
1449 * i386-nat.c: Include inferior.h.
1450 (dr_mirror): Remove.
1451 (i386_inferior_data, struct i386_inferior_data)
1452 (i386_inferior_data_get): New.
1453 (i386_debug_reg_state): Use i386_inferior_data_get.
1454 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
1455 (i386_insert_watchpoint, i386_remove_watchpoint)
1456 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1457 (i386_remove_hw_breakpoint): New variable state, use
1458 i386_debug_reg_state instead of DR_MIRROR.
1459 * linux-nat.c (delete_lwp): New declaration.
1460 (num_lwps): Move here from downwards.
1461 (delete_lwp_cleanup): New.
1462 (linux_child_follow_fork): Create new child_lp, call
1463 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
1464 PTRACE_DETACH.
1465 (num_lwps): Move upwards.
1466 (linux_nat_iterate_watchpoint_lwps): New.
1467 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
1468 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
1469
1470 2012-01-24 Joel Brobecker <brobecker@adacore.com>
1471
1472 GDB 7.4 released.
1473
1474 2012-01-23 Pedro Alves <palves@redhat.com>
1475
1476 * top.c (caution): Rename to ...
1477 (confirm): ... this.
1478 (show_caution): Rename to ...
1479 (show_confirm): ... this.
1480 (quit_cover): Adjust.
1481 (init_main): Adjust.
1482 * top.h (caution): Rename to ...
1483 (confirm): ... this.
1484 * utils.c (internal_vproblem, defaulted_query): Adjust.
1485
1486 2012-01-23 Pedro Alves <palves@redhat.com>
1487
1488 * top.c (caution): Update comment.
1489 (execute_command): Don't consider the current value of `caution'.
1490
1491 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
1494
1495 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
1496
1497 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1498 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
1499 * target.c (target_fileio_pwrite): Remove buffer address from
1500 debug output.
1501 (target_fileio_pread): Likewise.
1502
1503 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1504
1505 * NEWS: Document remote "info proc" and "generate-core-file".
1506
1507 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1508
1509 * gdbarch.sh (find_memory_regions): New callback.
1510 * gdbarch.c, gdbarch.h: Regenerate.
1511
1512 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
1513 callback before falling back to target method.
1514
1515 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
1516 (linux_target_install_ops): No longer install it.
1517
1518 * linux-tdep.c (linux_find_memory_regions): New function.
1519 (linux_init_abi): Install it.
1520
1521 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1522
1523 * gdbarch.sh (make_corefile_notes): New architecture callback.
1524 * gdbarch.c: Regenerate.
1525 * gdbarch.h: Likewise.
1526
1527 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
1528 before target_make_corefile_notes. If NULL is returned, the
1529 target does not support core file generation.
1530
1531 * linux-nat.c: Include "linux-tdep.h".
1532 (find_signalled_thread, find_stop_signal): Remove.
1533 (linux_nat_do_thread_registers): Likewise.
1534 (struct linux_nat_corefile_thread_data): Likewise.
1535 (linux_nat_corefile_thread_callback): Likewise.
1536 (iterate_over_spus): Likewise.
1537 (struct linux_spu_corefile_data): Likewise.
1538 (linux_spu_corefile_callback): Likewise.
1539 (linux_spu_make_corefile_notes): Likewise.
1540 (linux_nat_collect_thread_registers): New function.
1541 (linux_nat_make_corefile_notes): Replace contents by call to
1542 linux_make_corefile_notes passing linux_nat_collect_thread_registers
1543 as native-only callback.
1544
1545 * linux-tdep.h: Include "bfd.h".
1546 (struct regcache): Add forward declaration.
1547 (linux_collect_thread_registers_ftype): New typedef.
1548 (linux_make_corefile_notes): Add prototype.
1549 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
1550 "regset.h", and "elf-bfd.h".
1551 (find_signalled_thread, find_stop_signal): New functions.
1552 (linux_spu_make_corefile_notes): Likewise.
1553 (linux_collect_thread_registers): Likewise.
1554 (struct linux_corefile_thread_data): New data structure.
1555 (linux_corefile_thread_callback): New funcion.
1556 (linux_make_corefile_notes): Likewise.
1557 (linux_make_corefile_notes_1): Likewise.
1558 (linux_init_abi): Install it.
1559
1560 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1561
1562 * gdbarch.sh (info_proc): New callback.
1563 * gdbarch.c, gdbarch.h: Regenerate.
1564
1565 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
1566 before falling back to the target info_proc callback.
1567
1568 * linux-nat.c: Do not include "cli/cli-utils.h".
1569 (linux_nat_info_proc): Remove.
1570 (linux_target_install_ops): No longer install it.
1571
1572 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
1573 (read_mapping): New function.
1574 (linux_info_proc): Likewise.
1575 (linux_init_abi): Install it.
1576
1577 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1578
1579 * defs.h (enum info_proc_what): Moved here from linux-nat.c
1580 * infcmd.c: (info_proc_cmd_1): New function.
1581 (info_proc_cmd): New function, moved here from equivalent routine
1582 orignally in linux-nat.c.
1583 (info_proc_cmd_mappings): Likewise.
1584 (info_proc_cmd_stat): Likewise.
1585 (info_proc_cmd_status): Likewise.
1586 (info_proc_cmd_cwd): Likewise.
1587 (info_proc_cmd_cmdline): Likewise.
1588 (info_proc_cmd_exe): Likewise.
1589 (info_proc_cmd_all): Likewise.
1590 (_initialize_infcmd): Install "info proc" command and subcommands.
1591
1592 * target.h (struct target_ops): Add to_info_proc.
1593 (target_info_proc): Add prototype.
1594 * target.c (target_info_proc): New function.
1595
1596 * procfs.c (procfs_info_proc): Add prototype.
1597 (info_proc_cmd): Rename into ...
1598 (procfs_info_proc): ... this. Update argument types as appropriate
1599 for a to_info_proc implementation. Handle "what" argument.
1600 (procfs_target): Install procfs_info_proc.
1601 (_initialize_procfs): No longer install "info proc" command.
1602
1603 * linux-nat.c: (enum info_proc_what): Remove.
1604 (linux_nat_info_proc_cmd_1): Rename into ...
1605 (linux_nat_info_proc): ... this. Update argument types as appropriate
1606 for a to_info_proc implementation.
1607 (linux_nat_info_proc_cmd): Remove.
1608 (linux_nat_info_proc_cmd_mappings): Likewise.
1609 (linux_nat_info_proc_cmd_stat): Likewise.
1610 (linux_nat_info_proc_cmd_status): Likewise.
1611 (linux_nat_info_proc_cmd_cwd): Likewise.
1612 (linux_nat_info_proc_cmd_cmdline): Likewise.
1613 (linux_nat_info_proc_cmd_exe): Likewise.
1614 (linux_nat_info_proc_cmd_all): Likewise.
1615 (linux_target_install_ops): Install linux_nat_info_proc.
1616 (_initialize_linux_nat): No longer install "info proc" command
1617 and subcommands.
1618
1619 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1620
1621 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1622 * config.in, configure: Regenerate.
1623
1624 * target.h (struct target_ops): Add to_fileio_readlink.
1625 (target_fileio_readlink): Add prototype.
1626 * target.c (target_fileio_readlink): New function.
1627
1628 * inf-child.c: Conditionally include <sys/param.h>.
1629 (inf_child_fileio_readlink): New function.
1630 (inf_child_target): Install it.
1631
1632 * remote.c (PACKET_vFile_readlink): New enum value.
1633 (remote_hostio_readlink): New function.
1634 (init_remote_ops): Install it.
1635 (_initialize_remote): Handle vFile:readlink packet type.
1636
1637 2012-01-20 Pedro Alves <palves@redhat.com>
1638 Ulrich Weigand <ulrich.weigand@linaro.org>
1639
1640 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1641 * config.in, configure: Regenerate.
1642
1643 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1644 to_fileio_pread, to_fileio_close, to_fileio_unlink.
1645 (target_fileio_open): Add prototype.
1646 (target_fileio_pwrite): Likewise.
1647 (target_fileio_pread): Likewise.
1648 (target_fileio_close): Likewise.
1649 (target_fileio_unlink): Likewise.
1650 (target_fileio_read_alloc): Likewise.
1651 (target_fileio_read_stralloc): Likewise.
1652
1653 * target.c: Include "gdb/fileio.h".
1654 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1655 (default_fileio_target): New function.
1656 (target_fileio_open): Likewise.
1657 (target_fileio_pwrite): Likewise.
1658 (target_fileio_pread): Likewise.
1659 (target_fileio_close): Likewise.
1660 (target_fileio_unlink): Likewise.
1661 (target_fileio_close_cleanup): Likewise.
1662 (target_fileio_read_alloc_1): Likewise.
1663 (target_fileio_read_alloc): Likewise.
1664 (target_fileio_read_stralloc): Likewise.
1665
1666 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1667 <fcntl.h>, and <unistd.h>.
1668 (inf_child_fileio_open_flags_to_host): New function.
1669 (inf_child_errno_to_fileio_error): Likewise.
1670 (inf_child_fileio_open): Likewise.
1671 (inf_child_fileio_pwrite): Likewise.
1672 (inf_child_fileio_pread): Likewise.
1673 (inf_child_fileio_close): Likewise.
1674 (inf_child_fileio_unlink): Likewise.
1675 (inf_child_target): Install to_fileio routines.
1676
1677 * remote.c (init_remote_ops): Install to_fileio routines.
1678
1679 2012-01-20 Pedro Alves <palves@redhat.com>
1680 Ulrich Weigand <ulrich.weigand@linaro.org>
1681
1682 * remote.c (remote_multi_process_p): Only check for multi-process
1683 protocol feature, do not check for extended protocol.
1684 (remote_supports_multi_process): Check for extended protocol here.
1685 (set_general_process): Likewise.
1686 (extended_remote_kill): Likewise.
1687 (remote_pid_to_str): Likewise.
1688 (remote_query_supported): Always query multiprocess mode.
1689
1690 2012-01-20 Pedro Alves <palves@redhat.com>
1691 Ulrich Weigand <ulrich.weigand@linaro.org>
1692
1693 * inferior.h (struct inferior): Add fake_pid_p.
1694 * inferior.c (exit_inferior_1): Clear fake_pid_p.
1695 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1696 magic_null_ptid since the remote side doesn't provide a real PID.
1697
1698 2012-01-19 Tom Tromey <tromey@redhat.com>
1699
1700 * NEWS: Combine the two Python sections.
1701
1702 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1703
1704 * target.h (target_close): Update comment on the target's unpush state.
1705
1706 2012-01-19 Pedro Alves <palves@redhat.com>
1707
1708 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1709 linux_nat_async directly instead of going through the target
1710 vector.
1711 * target.c (unpush_target): Close target after unpushing it, not
1712 before.
1713
1714 2012-01-19 Gary Benson <gbenson@redhat.com>
1715
1716 * mdebugread.c (sort_blocks): Replace integer constants with ones
1717 derived from FIRST_LOCAL_BLOCK.
1718
1719 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1720 Jan Kratochvil <jan.kratochvil@redhat.com>
1721
1722 PR gdb/9538
1723 * symfile.c (find_separate_debug_file): New function.
1724 (terminate_after_last_dir_separator): Likewise.
1725 (find_separate_debug_file_by_debuglink): Also try realpath.
1726 * configure.ac (AC_CHECK_FUNCS): Add lstat.
1727 * configure: Regenerate.
1728 * config.in: Regenerate.
1729
1730 2012-01-18 Doug Evans <dje@google.com>
1731
1732 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1733 (main.o): Remove rule.
1734 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1735 (--with-sysroot): Rewrite.
1736 * configure: Regenerate.
1737 * config.in: Regenerate.
1738
1739 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
1740
1741 * parse.c (initialize_expout): New function.
1742 (reallocate_expout): Likewise.
1743 (parse_exp_in_context): Use `initialize_expout' and
1744 `reallocate_expout' when appropriate.
1745
1746 2012-01-18 Pedro Alves <palves@redhat.com>
1747
1748 * record.c (struct record_breakpoint, record_breakpoint_p)
1749 (record_breakpoints): New.
1750 (record_insert_breakpoint, record_remove_breakpoint): Manage
1751 record breakpoints list. Only remove breakpoints from the
1752 inferior if they had been inserted there in the first place.
1753
1754 2012-01-17 Doug Evans <dje@google.com>
1755
1756 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1757 if we know we don't have a file name to look for.
1758
1759 2012-01-17 Pedro Alves <palves@redhat.com>
1760
1761 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1762 the frame's stop reason is UNWIND_UNAVAILABLE.
1763
1764 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1765
1766 Fix compilation error.
1767 * m2-exp.y (yyerror): Use ANSI C prototype.
1768
1769 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1770
1771 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1772 (growbuf_by_size): Likewise.
1773 (yyerror): Likewise.
1774 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1775 (modblock): Remove variable (was #if 0'ed).
1776 (parse_number): Convert prototype from K&R to ANSI C.
1777 (yyerror): Likewise.
1778 * objc-exp.y (parse_number): Likewise.
1779 (yyerror): Likewise.
1780 (yylex): Remove #if 0'ed code.
1781 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1782 (yyerror): Likewise.
1783
1784 2012-01-16 Tom Tromey <tromey@redhat.com>
1785
1786 * NEWS: Add item.
1787 * symtab.h (compare_filenames_for_search): Declare.
1788 * symtab.c (compare_filenames_for_search): New function.
1789 (iterate_over_some_symtabs): Use it.
1790 * symfile.h (struct quick_symbol_functions)
1791 <map_symtabs_matching_filename>: Change spec.
1792 * psymtab.c (partial_map_symtabs_matching_filename): Use
1793 compare_filenames_for_search. Update for new spec.
1794 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1795 compare_filenames_for_search. Update for new spec.
1796 * breakpoint.c (clear_command): Use compare_filenames_for_search.
1797
1798 2012-01-16 Tom Tromey <tromey@redhat.com>
1799
1800 PR python/13281:
1801 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1802 (struct main_type) <flag_flag_enum>: New field.
1803 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1804 * NEWS: Add entries.
1805 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1806 enums.
1807 * python/lib/gdb/printing.py (_EnumInstance): New class.
1808 (FlagEnumerationPrinter): Likewise.
1809
1810 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1811
1812 * breakpoint.c (create_sals_from_address_default): New function.
1813 (create_breakpoints_sal_default): Likewise.
1814 (decode_linespec_default): Likewise.
1815 (is_marker_spec): Removed.
1816 (strace_marker_p): New function.
1817 (init_breakpoint_sal): Using `strace_marker_p' instead of
1818 `is_marker_spec'.
1819 (create_breakpoint): Call method `create_sals_from_address' from
1820 breakpoint_ops, replacing code that created SALs conditionally
1821 on the type of the breakpoint. Call method `create_breakpoints_sal',
1822 replacing code that created breakpoints conditionally on the type
1823 wanted.
1824 (base_breakpoint_create_sals_from_address): New function.
1825 (base_breakpoint_create_breakpoints_sal): Likewise.
1826 (base_breakpoint_decode_linespec): Likewise.
1827 (base_breakpoint_ops): Add methods
1828 `base_breakpoint_create_sals_from_address',
1829 `base_breakpoint_create_breakpoints_sal' and
1830 `base_breakpoint_decode_linespec'.
1831 (bkpt_create_sals_from_address): New function.
1832 (bkpt_create_breakpoints_sal): Likewise.
1833 (bkpt_decode_linespec): Likewise.
1834 (tracepoint_create_sals_from_address): Likewise.
1835 (tracepoint_create_breakpoints_sal): Likewise.
1836 (tracepoint_decode_linespec): Likewise.
1837 (strace_marker_create_sals_from_address): Likewise.
1838 (strace_marker_create_breakpoints_sal): Likewise.
1839 (strace_marker_decode_linespec): Likewise.
1840 (strace_marker_breakpoint_ops): New variable.
1841 (addr_string_to_sals): Remove `marker_spec'. Call method
1842 `decode_linespec' from breakpoint_ops, replacing code that decoded
1843 an address string into a SAL. Use `strace_marker_p' instead of
1844 `marker_spec'.
1845 (strace_command): Decide whether we are dealing with a static
1846 tracepoint with marker or not. Use the appropriate breakpoint_ops.
1847 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1848 * breakpoint.h (linespec_result, linespec_sals): New forward
1849 declarations.
1850 (breakpoint_ops) <create_sals_from_address>,
1851 <create_breakpoints_sal>, <decode_linespec>: New methods.
1852
1853 2012-01-14 Doug Evans <dje@google.com>
1854
1855 * NEWS: Update text for "maint set python print-stack".
1856 It is deprecated in gdb 7.4 and deleted in 7.5.
1857
1858 2012-01-13 Eli Zaretskii <eliz@gnu.org>
1859
1860 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
1861 including curses.h.
1862
1863 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 * configure: Regenerate.
1866 * config.in: Regenerate.
1867
1868 2012-01-12 Keith Seitz <keiths@redhat.com>
1869
1870 PR mi/10586
1871 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1872 (ANONYMOUS_UNION_NAME): Define.
1873 (is_path_expr_parent): New function.
1874 (get_path_expr_parent): New function.
1875 (is_anonymous_child): New function.
1876 (create_child_with_value): If the child is anonymous and without
1877 a name, assign an object name to it.
1878 (c_describe_child): Use get_path_expr_parent to determine
1879 the parent expression.
1880 If there field represents an anonymous struct or union and
1881 has no name, set an appropriate display name and expression.
1882 (cplus_describe_child): Likewise.
1883
1884 2012-01-12 Pedro Alves <palves@redhat.com>
1885
1886 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1887 available when %ebp is found to be zero (outermost).
1888
1889 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
1890
1891 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
1892 an internal gdb_static_assert.
1893 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
1894
1895 2012-01-11 Tom Tromey <tromey@redhat.com>
1896
1897 PR gdb/9598:
1898 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
1899 catch" and "catch throw".
1900
1901 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
1902
1903 * blockframe.c (block_innermost_frame): Start search from selected
1904 frame, if present, or otherwise the current frame.
1905
1906 * c-exp.y (variable): Update innermost_block for
1907 'block COLONCOLON NAME' clause.
1908 * m2-exp.y (variable): Ditto.
1909 * objc-exp.y (variable): Ditto.
1910
1911 2012-01-10 Tom Tromey <tromey@redhat.com>
1912
1913 PR python/13199:
1914 * python/python.c (finish_python_initialization): Set sys.argv.
1915
1916 2012-01-10 Doug Evans <dje@google.com>
1917
1918 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
1919 "want_line_info". All callers updated.
1920 (dwarf_decode_lines_1): New function.
1921 (handle_DW_AT_stmt_list): Add function comment.
1922 New arg "want_line_info". All callers updated.
1923 (read_file_scope,read_type_unit_scope): Move comment from
1924 handle_DW_AT_stmt_list to here.
1925
1926 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1927
1928 Fix regression after libiberty/ update for GCC PR 6057 and others.
1929 * c-exp.y (operator) <OPERATOR DELETE>
1930 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1931 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
1932 (make_builtin_type, make_name): New variable i, add gdb_assert.
1933 (operator) <OPERATOR NEW>: Update ARGS to 3.
1934 (operator) <OPERATOR DELETE>: Add trailing space.
1935 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
1936 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1937 * cp-support.c (cp_canonicalize_string): Check NULL from
1938 cp_comp_to_string, call warning and return.
1939
1940 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1941
1942 Fix duplicate .o files after omitting libbfd.a.
1943 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
1944 (SFILES): Add corelow.c.
1945 (COMMON_OBS): Add corelow.o.
1946 (ALLDEPFILES): Remove corelow.c.
1947 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
1948 * config/alpha/alpha-osf3.mh: Likewise.
1949 * config/alpha/fbsd.mh: Likewise.
1950 * config/arm/nbsdaout.mh: Likewise.
1951 * config/arm/nbsdelf.mh: Likewise.
1952 * config/i386/i386gnu.mh: Likewise.
1953 * config/ia64/hpux.mh: Likewise.
1954 * config/ia64/linux.mh: Likewise.
1955 * config/m32r/linux.mh: Likewise.
1956 * config/m68k/linux.mh: Likewise.
1957 * config/mips/irix5.mh: Likewise.
1958 * config/mips/irix6.mh: Likewise.
1959 * config/pa/hpux.mh: Likewise.
1960 * config/pa/linux.mh: Likewise.
1961 * config/powerpc/aix.mh: Likewise.
1962 * config/sparc/linux.mh: Likewise.
1963 * config/sparc/linux64.mh: Likewise.
1964 * config/sparc/sol2.mh: Likewise.
1965 * config/vax/vax.mh: Likewise.
1966 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
1967 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
1968 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
1969 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
1970 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
1971 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
1972 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
1973 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
1974 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
1975 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
1976 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
1977 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
1978 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1979 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
1980 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
1981 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1982 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
1983 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
1984 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
1985 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
1986 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
1987 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
1988 corelow.o from gdb_target_obs.
1989 * corefile.c (core_target): Update the comment on NULL value.
1990 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
1991 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
1992 MATCHES. Drop YUMMY set on NULL.
1993 (core_close): Do not call exit_inferior_silent on zero PID. Do not
1994 reclaim CORE_DATA if it is already NULL.
1995
1996 2012-01-09 Doug Evans <dje@google.com>
1997
1998 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
1999 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
2000
2001 2012-01-09 Keith Seitz <keiths@redhat.com>
2002
2003 * breakpoint.c (wrapper.h): Don't include.
2004
2005 2012-01-09 Keith Seitz <keiths@redhat.com>
2006
2007 * Makefile.in (SFILES): Remove wrapper.c.
2008 (HFILES_NO_SRCDIR): Remove wrapper.h.
2009 (COMMON_OBS): Remove wrapper.o.
2010 * cli/cli-interp.c: Don't inlude wrapper.h.
2011 * corelow.c: Likewise.
2012 (core_open): Replace gdb_target_find_new_threads with
2013 TRY_CATCH around target_find_new_threads.
2014 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
2015 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
2016 * varobj.c (varobj_create): Likewise for parse_exp_1 and
2017 evaluate_expression.
2018 (varobj_set_value): Likewise for evaluate_expression and
2019 value_assign.
2020 (install_new_variable): Likewise for value_fetch_lazy.
2021 (adjust_value_for_child_access): Likewise for value_ind.
2022 (c_describe_child): Likewise for value_subscript and
2023 value_ind.
2024 (c_value_of_root): Likewise for evaluate_expression.
2025 * wrapper.c: Remove.
2026 * wrapper.h: Remove.
2027
2028 2012-01-09 Doug Evans <dje@google.com>
2029
2030 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
2031 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
2032 "abfd" args with "section". All callers updated.
2033 Error checking code moved ...
2034 (error_check_comp_unit_head): ... here. New function.
2035 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
2036 Delete arg "abfd". New arg "type_offset". All callers updated.
2037 (create_debug_types_hash_table): Simplify by using
2038 read_and_check_type_unit_head.
2039
2040 * parser-defs.h (namecopy): Delete.
2041 * parse.c (namecopy, namecopy_size): Move into copy_name.
2042
2043 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2044
2045 Partially fix duplicate .o files after omitting libbfd.a.
2046 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
2047 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2048 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
2049 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2050 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
2051 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
2052 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2053
2054 2012-01-09 Pedro Alves <palves@redhat.com>
2055
2056 * MAINTAINERS: Update my email address.
2057
2058 2012-01-08 Doug Evans <dje@google.com>
2059
2060 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
2061 n_type_units. Rename type_comp_units to all_type_units.
2062 All uses updated.
2063 (add_signatured_type_cu_to_table): Renamed from
2064 add_signatured_type_cu_to_list. All callers updated.
2065
2066 * gdbtypes.h (struct cplus_struct_type): Delete member
2067 nfn_fields_total. All uses removed.
2068
2069 2012-01-06 Doug Evans <dje@google.com>
2070
2071 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
2072 to top of file.
2073 (dwarf2_find_comp_unit): Delete.
2074 (process_psymtab_comp_unit): Make result "void".
2075 Delete args buffer, info_ptr, buffer_size, and replace with
2076 "section". All callers updated.
2077 (dwarf2_build_psymtabs_hard): Simplify.
2078
2079 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
2080 Thiago Jung Bauermann <bauerman@br.ibm.com>
2081
2082 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
2083 before `struct gdb_exception'.
2084 * breakpoint.c (update_global_location_list_nothrow)
2085 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
2086 * cp-abi.c (value_rtti_type): Likewise.
2087 * cp-support.c (cp_validate_operator): Likewise.
2088 * infrun.c (insert_exception_resume_breakpoint)
2089 (check_exception_resume, keep_going): Likewise.
2090 * mi-interp.c (mi_breakpoint_created)
2091 (mi_breakpoint_modified): Likewise.
2092 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
2093 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
2094 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2095
2096 2012-01-05 Doug Evans <dje@google.com>
2097
2098 * dwarf2read.c (statement_prologue): Delete, unused.
2099
2100 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
2101 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2102
2103 * dwarf2read.c (comp_unit_header): Delete, unused.
2104
2105 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
2106
2107 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
2108 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2109
2110 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
2111
2112 * infrun.c (normal_stop): Don't skip calling the normal_stop
2113 observers if the thread was doing a multi-step, but stopped for
2114 some reason other than stepping.
2115
2116 2012-01-05 Pedro Alves <alves.ped@gmail.com>
2117
2118 * cli/cli-decode.h: Add comments.
2119 (CMD_LIST_AMBIGUOUS): Moved to command.h
2120 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2121 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
2122 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
2123 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
2124 (add_com, add_com_alias, add_info, add_info_alias)
2125 (complete_on_cmdlist, complete_on_enum, help_list): Remove
2126 declarations.
2127 * command.h: Add and adjust comments.
2128 (CMD_LIST_AMBIGUOUS): Moved here.
2129 (help_cmd, help_cmd_list): Delete declarations.
2130
2131 2012-01-04 Doug Evans <dje@google.com>
2132
2133 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
2134 All callers updated.
2135 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
2136 Replace all arguments with "per_cu". All callers updated.
2137
2138 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
2139
2140 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
2141 New arg "per_cu". All callers updated.
2142
2143 Delete #if 0'd out code.
2144 * language.c (binop_result_type): Delete.
2145 (simple_type, ordered_type, same_type, integral_type): Delete.
2146 (numeric_type, character_type, string_type, boolean_type): Delete.
2147 (float_type, structured_type): Delete.
2148 * language.h: Update.
2149
2150 2012-01-04 Tom Tromey <tromey@redhat.com>
2151
2152 * python/py-value.c (valpy_binop): Initialize 'res_val'.
2153
2154 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2155
2156 * corefile.c (close_exec_file): Delete.
2157 (reopen_exec_file): Remove commented out code that seems related
2158 to close_exec_file, which is being deleted here.
2159 * inferior.h (close_exec_file): Delete.
2160 * fork-child.c (fork_inferior): Remove call to fork_inferior.
2161
2162 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2163
2164 * ada-lang.c: #include "cli/cli-utils.h".
2165 (get_selections): Use skip_spaces.
2166 (ada_get_next_arg): Use skip_spaces and skip_to_space.
2167 (catch_ada_exception_command_split): Use skip_spaces.
2168 (ada_decode_assert_location): Likewise.
2169
2170 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2171
2172 * linespec.c (decode_line_internal): Check for C++ or Java
2173 compound constructs only if the current language is C, C++
2174 or Java.
2175
2176 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 Revert:
2179 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2180 Joel Brobecker <brobecker@adacore.com>
2181 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2182 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2183 3 times.
2184 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2185 fall through into AT_ENTRY_POINT.
2186 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2187 DUMMY_ADDR with it.
2188 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2189 PPC_INSN_SIZE skip to 3 times.
2190
2191 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2192
2193 * linespec.c (add_minsym): Preserve function descriptors.
2194
2195 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2196
2197 * breakpoint.c (all_locations_are_pending): Consider locations
2198 in program spaces executing during startup pending as well.
2199
2200 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2201
2202 Copyright year update in most files of the GDB Project.
2203
2204 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2205
2206 * copyright.sh: Delete.
2207 * copyright.py: Rewrite.
2208
2209 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2210
2211 * gnulib/extra/update-copyright: New file, imported from gnulib.
2212
2213 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2214
2215 * README (Copyright and License Notices): New section.
2216
2217 2012-01-03 Tom Tromey <tromey@redhat.com>
2218
2219 PR python/12533:
2220 * python/py-value.c (valpy_dereference, valpy_get_address
2221 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2222 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
2223 (valpy_absolute, valpy_richcompare): Free intermediate values.
2224
2225 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2226
2227 * ada-lang.c: Reformat the copyright notice.
2228
2229 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2230
2231 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2232 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
2233 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2234 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
2235 Revert this part of:
2236 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2237 Build gdb directly from *.o files not using libgdb.a.
2238 * Makefile.in (COMMON_OBS): Remove solib-target.o.
2239
2240 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2241
2242 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
2243 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
2244 Reformat the copyright header.
2245
2246 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2247
2248 Revert this part of:
2249 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 Remove the gdbtui binary.
2251 * gdb.c (main): Remove args.interpreter_p initialization.
2252 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2253 * main.h (struct captured_main_args): Remove interpreter_p.
2254
2255 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2256
2257 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2258
2259 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2260
2261 * top.c (print_gdb_version): Update copyright year.
2262
2263 2012-01-02 Yao Qi <yao@codesourcery.com>
2264
2265 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2266
2267 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2268 Joel Brobecker <brobecker@adacore.com>
2269
2270 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2271 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2272 3 times.
2273 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2274 fall through into AT_ENTRY_POINT.
2275 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2276 DUMMY_ADDR with it.
2277 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2278 PPC_INSN_SIZE skip to 3 times.
2279
2280 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2281
2282 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2283 the return value.
2284 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2285
2286 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2287
2288 Build gdb directly from *.o files not using libgdb.a.
2289 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
2290 (COMMON_OBS): Remove solib-target.o.
2291 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
2292 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
2293 (LIBGDB_OBS, libgdb.a): Move it above.
2294 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
2295 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
2296 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
2297 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
2298 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
2299 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
2300 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
2301 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
2302 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
2303 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
2304 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2305 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
2306 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
2307 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
2308 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2309 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
2310 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
2311 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2312 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
2313 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
2314 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
2315 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
2316 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
2317 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
2318 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
2319 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
2320 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2321
2322 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 Remove the gdbtui binary.
2325 * .gitignore (/gdbtui): Remove.
2326 * Makefile.in (TUI): Remove.
2327 (SUBDIR_TUI_OBS): Remove tui-main.o.
2328 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
2329 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
2330 (tui-main.o): Remove.
2331 (all_object_files): Remove tui-main.o.
2332 * NEWS: New note for the gdbtui removal.
2333 * configure: Rebuilt.
2334 * configure.ac: No longer add all-tui, clean-tui, install-tui and
2335 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
2336 CONFIG_UNINSTALL respectively.
2337 * gdb.c (main): Remove args.interpreter_p initialization.
2338 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2339 * main.h (struct captured_main_args): Remove interpreter_p.
2340 * tui/tui-main.c: Remove.
2341
2342 2012-01-01 Doug Evans <dje@google.com>
2343
2344 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
2345 (dwarf2_physname, read_import_statement): Ditto.
2346 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
2347 (process_structure_scope read_subroutine_type): Ditto.
2348 (read_typedef, load_partial_dies, read_partial_die): Ditto.
2349 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
2350 (dwarf2_fetch_die_location_block): Ditto.
2351 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2352
2353 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
2354 All callers updated.
2355 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
2356 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
2357 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2358
2359 * dwarf2read.c (load_cu): Move assert to more useful location.
2360
2361 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
2362 All callers updated.
2363
2364 * dwarf2read.c (dwarf2_per_objfile): Add comment.
2365 (dwarf2_elf_names): Minor reformat.
2366 (dwarf2_per_cu_data): Tweak comment.
2367 (dwarf2_read_section): Fix comment.
2368 (create_all_comp_units): Fix comment.
2369 (load_full_comp_unit): Fix comment.
2370 (process_full_comp_unit): Fix comment.
2371 (read_signatured_type): Fix comment.
2372
2373 For older changes see ChangeLog-2011.
2374 \f
2375 Local Variables:
2376 mode: change-log
2377 left-margin: 8
2378 fill-column: 74
2379 version-control: never
2380 coding: utf-8
2381 End: