Add moxie-*-rtems* support.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-26 Anthony Green <green@moxielogic.com>
2
3 * configure.tgt: Add support for moxie-*-rtems* target.
4
5 2013-02-25 Pedro Alves <palves@redhat.com>
6
7 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8 warning text.
9
10 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11
12 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
13 if $fp is used as the virtual frame pointer.
14
15 2013-02-23 Alan Modra <amodra@gmail.com>
16
17 * elfread.c (elf_symtab_read): Do not use udata.p here to find
18 symbol size.
19 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
20 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
21 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
22 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
23
24 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
25
26 Code cleanup.
27 * elfread.c (build_id_bfd_get): Make the return type const.
28 (build_id_verify): Make the check parameter const.
29 (build_id_to_debug_filename): Make the build_id parameter and variable
30 data const.
31 (find_separate_debug_file_by_buildid): Make the variable build_id const.
32
33 2013-02-21 Alan Modra <amodra@gmail.com>
34
35 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
36
37 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
38
39 Add a new method 'disassemble' to gdb.Architecture class.
40 * python/py-arch.c (archpy_disassmble): Implementation of the
41 new method gdb.Architecture.disassemble.
42 (arch_object_methods): Add entry for the new method.
43
44 2013-02-20 Jiong Wang <jiwang@tilera.com>
45
46 * MAINTAINERS (Write After Approval): Add myself to the list.
47
48 2013-02-19 Pedro Alves <palves@redhat.com>
49
50 Garbage collect 'struct monitor_ops'::load_routine.
51
52 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
53 * monitor.c (monitor_load): No longer call
54 current_monitor->load_routine.
55 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
56 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
57 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
58
59 2013-02-19 Pedro Alves <palves@redhat.com>
60
61 PR gdb/15161
62
63 Harmonize with generic_load.
64
65 * monitor.c: Include "readline/readline.h".
66 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
67 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
68 long/strtol for the 'load_offset' local. Error out if no argument
69 is given or if too many arguments are given. Tilde expand the
70 passed in file name.
71
72 2013-02-19 Kai Tietz <ktietz@redhat.com>
73
74 PR gdb/15161
75 * symfile.c (load_section_data): Change type of load_offset
76 to CORE_ADDR.
77 (generic_load): User strtoulst instead of strtoul for conversion
78 of load_offset.
79
80 2013-02-19 Jiong Wang <jiwang@tilera.com>
81
82 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
83 for return address, "lr" register, saved on stack.
84 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
85 after we invoke tilegx_analyze_prologue.
86
87 2013-02-19 Jiong Wang <jiwang@tilera.com>
88
89 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
90
91 2013-02-19 Jiong Wang <jiwang@tilera.com>
92
93 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
94
95 2013-02-19 Jiong Wang <jiwang@tilera.com>
96
97 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
98 (tilegx_write_pc): New function.
99 (tilegx_cannot_reference_register): Return zero if REGNO
100 is TILEGX_FAULTNUM_REGNUM.
101 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
102 (tilegx_register_name): Add handling of "faultnum" register.
103 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
104 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
105 handling of TILEGX_FAULTNUM_REGNUM.
106 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
107
108 2013-02-19 Jiong Wang <jiwang@tilera.com>
109
110 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
111 should be aligned to 64bit.
112
113 2013-02-19 Kai Tietz <ktietz@redhat.com>
114
115 * windows-nat.c (windows_xfer_memory): Fix debug-output
116 for LLP64.
117
118 2013-02-19 Lei Liu <lei.liu2@windriver.com>
119
120 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
121 Don't check DSP register number if HAVE_DSP is not set.
122
123 2013-02-19 Alan Modra <amodra@gmail.com>
124
125 * elfread.c (struct build_id): Delete. Use struct elf_build_id
126 throughout file instead.
127 (build_id_bfd_get): Update to use new elf_tdata build_id field.
128 Don't xmalloc return value.
129 (build_id_verify): Similarly. Don't xfree.
130 (build_id_to_debug_filename): Update.
131 (find_separate_debug_file_by_buildid): Update, don't xfree.
132
133 2013-02-18 Tom Tromey <tromey@redhat.com>
134
135 PR gdb/15102:
136 * dwarf2read.c (read_subrange_type): Use result of
137 'check_typedef'.
138
139 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
140
141 * frame.c: Remove one extra white space after #include
142 directive.
143
144 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
145
146 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
147
148 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
149
150 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
151 and dir commands into an if block.
152
153 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
154
155 * python/py-breakpoint (struct pybp_code): Use int instead of
156 enum type_code.
157
158 2013-02-15 Pedro Alves <pedro@codesourcery.com>
159 Hafiz Abid Qadeer <abidh@codesourcery.com>
160
161 * NEWS: Mention new field "trace-file".
162 * tracepoint.c (trace_status_mi): Output "trace-file" field.
163 (tfile_open): Record the trace file's filename in the trace
164 status.
165 (tfile_files_info): Mention the name of the trace file.
166 Check the "filename" field explicitely.
167 (trace_status_command): Explicitely check "filename" field.
168 (trace_find_command): Ditto.
169 (trace_find_pc_command): Ditto.
170 (trace_find_tracepoint_command): Ditto.
171 (trace_find_line_command): Ditto.
172 (trace_find_range_command): Ditto.
173 (trace_find_outside_command): Ditto.
174 * tracepoint.h (struct trace_status) <from_file>: Rename it
175 to "filename" and make it hold the trace file's filename
176 instead of a boolean.
177 * remote.c (remote_get_trace_status): Initialize "filename"
178 field with NULL instead of 0.
179
180 2013-02-15 Yao Qi <yao@codesourcery.com>
181
182 * remote.c: Fix a typo.
183
184 2013-02-14 Pierre Muller <muller@sourceware.org>
185
186 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
187
188 2013-02-14 Pedro Alves <palves@redhat.com>
189
190 * utils.c (savestring): Don't #undef it. Move function to
191 common/common-utils.c.
192 * common/common-utils.c: Include gdb_string.h.
193 (savestring): Move here from utils.c.
194 * common/common-utils.h (savestring): Declare.
195
196 2013-02-14 Pedro Alves <palves@redhat.com>
197
198 * utils.c (savestring): Rename parameter 'size' to 'len'.
199
200 2013-02-14 Pedro Alves <palves@redhat.com>
201 Yufeng Zhang <yufeng.zhang@arm.com>
202
203 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
204 (aarch64_inferior_data, struct aarch64_inferior_data):
205 Delete.
206 (struct aarch64_process_info): New.
207 (aarch64_process_list): New global.
208 (aarch64_find_process_pid, aarch64_add_process)
209 (aarch64_process_info_get): New functions.
210 (aarch64_inferior_data_get): Delete.
211 (aarch64_process_info_get): New function.
212 (aarch64_forget_process): New function.
213 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
214 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
215 aarch64_get_debug_reg_state.
216 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
217 instead of linux_nat_iterate_watchpoint_lwps.
218 (aarch64_linux_new_fork): New function.
219 (aarch64_linux_child_post_startup_inferior): Use
220 aarch64_forget_process instead of aarch64_init_debug_reg_state.
221 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
222 (aarch64_linux_remove_hw_breakpoint)
223 (aarch64_handle_aligned_watchpoint)
224 (aarch64_handle_unaligned_watchpoint)
225 (aarch64_linux_insert_watchpoint)
226 (aarch64_linux_remove_watchpoint)
227 (aarch64_linux_stopped_data_address): Adjust to pass the current
228 process id to aarch64_debug_reg_state.
229 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
230 linux_nat_new_fork hook, and aarch64_forget_process as
231 linux_nat_forget_process hook; remove the call to
232 register_inferior_data_with_cleanup.
233
234 2013-02-14 Pedro Alves <palves@redhat.com>
235
236 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
237 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
238 lval_memory.
239
240 2013-02-14 Pedro Alves <pedro@codesourcery.com>
241 Hafiz Abid Qadeer <abidh@codesourcery.com>
242
243 * tracepoint.h (validate_trace_state_variable_name): Declare.
244 * tracepoint.c (validate_trace_state_variable_name): New.
245 (trace_variable_command): Parse the trace state variable's name
246 without using parse_expression. Do several validations.
247 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
248 trace state variable's name with parse_expression. Validate it.
249
250 2013-02-14 Yao Qi <yao@codesourcery.com>
251
252 * infcmd.c (breakpoint_proceeded): Remove it.
253
254 2013-02-14 Yao Qi <yao@codesourcery.com>
255
256 * tracepoint.c (end_actions_pseudocommand): Make it static.
257 (while_stepping_pseudocommand): Likewise.
258 * tracepoint.h (end_actions_pseudocommand): Remove the
259 declaration.
260 (while_stepping_pseudocommand): Likewise.
261
262 2013-02-14 Yao Qi <yao@codesourcery.com>
263
264 * cli/cli-decode.c (help_cmd): Remove the declaration of
265 "cmdlist".
266 (help_all): Likewise.
267
268 2013-02-13 Pedro Alves <palves@redhat.com>
269
270 * amd64-linux-nat.c (update_debug_registers_callback):
271 Update comment.
272 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
273 iterate_over_lwps.
274 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
275 i386_debug_reg_state.
276 (amd64_linux_new_fork): New function.
277 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
278 linux_nat_new_fork hook, and i386_forget_process as
279 linux_nat_forget_process hook.
280 * i386-linux-nat.c (update_debug_registers_callback):
281 Update comment.
282 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
283 iterate_over_lwps.
284 (i386_linux_prepare_to_resume): Pass the lwp's pid to
285 i386_debug_reg_state.
286 (i386_linux_new_fork): New function.
287 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
288 linux_nat_new_fork hook, and i386_forget_process as
289 linux_nat_forget_process hook.
290 * i386-nat.c (i386_init_dregs): Delete.
291 (i386_inferior_data, struct i386_inferior_data):
292 Delete.
293 (struct i386_process_info): New.
294 (i386_process_list): New global.
295 (i386_find_process_pid, i386_add_process, i386_process_info_get):
296 New functions.
297 (i386_inferior_data_get): Delete.
298 (i386_process_info_get): New function.
299 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
300 (i386_forget_process): New function.
301 (i386_cleanup_dregs): Rewrite.
302 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
303 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
304 (i386_stopped_data_address, i386_insert_hw_breakpoint)
305 (i386_remove_hw_breakpoint): Adjust to pass the current process id
306 to i386_debug_reg_state.
307 (i386_use_watchpoints): Don't register inferior data.
308 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
309 adjust comment.
310 (i386_forget_process): Declare.
311 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
312 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
313 New static globals.
314 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
315 (add_initial_lwp): New, factored out from ...
316 (add_lwp): ... this. Don't check the number of lwps before
317 calling linux_nat_new_thread.
318 (linux_nat_iterate_watchpoint_lwps): Delete.
319 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
320 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
321 forks and vforks.
322 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
323 initial lwp.
324 (linux_nat_kill, linux_nat_mourn_inferior): Call
325 linux_nat_forget_process.
326 (linux_nat_set_new_fork, linux_nat_set_forget_process)
327 (linux_nat_forget_process): New functions.
328 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
329 type.
330 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
331 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
332 types.
333 (linux_nat_set_new_fork, linux_nat_set_forget_process)
334 (linux_nat_forget_process): New declarations.
335
336 * amd64fbsd-nat.c (super_mourn_inferior): New global.
337 (amd64fbsd_mourn_inferior): New function.
338 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
339 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
340
341 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
342
343 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
344 Adding _().
345
346 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
347
348 * aarch64-linux-nat.c (debug_reg_change_callback)
349 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
350 %s and phex().
351
352 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
353
354 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
355 with LONGEST.
356
357 2013-02-13 Pedro Alves <palves@redhat.com>
358 Hafiz Abid Qadeer <abidh@codesourcery.com>
359
360 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
361
362 2013-02-12 Tom Tromey <tromey@redhat.com>
363
364 PR symtab/11464:
365 * c-exp.y (lex_one_token): Initialize other fields of yylval on
366 NAME return.
367 (classify_inner_name): Remove 'first_name' argument, add
368 'context'. Remove unused variable.
369 (yylex): Explicitly maintain the context type. Exit loop earlier
370 if NAME result is seen.
371
372 2013-02-12 Pedro Alves <palves@redhat.com>
373
374 * amd64-darwin-tdep.c: Add (C) after Copyright.
375 * cli/cli-cmds.h: Ditto.
376 * cli/cli-decode.c: Ditto.
377 * cli/cli-decode.h: Ditto.
378 * cli/cli-dump.c: Ditto.
379 * cli/cli-dump.h: Ditto.
380 * cli/cli-interp.c: Ditto.
381 * cli/cli-logging.c: Ditto.
382 * cli/cli-script.c: Ditto.
383 * cli/cli-script.h: Ditto.
384 * cli/cli-setshow.c: Ditto.
385 * cli/cli-setshow.h: Ditto.
386 * cli/cli-utils.c: Ditto.
387 * cli/cli-utils.h: Ditto.
388 * config/alpha/nm-osf3.h: Ditto.
389 * config/djgpp/djconfig.sh: Ditto.
390 * config/i386/nm-fbsd.h: Ditto.
391 * config/i386/nm-i386gnu.h: Ditto.
392 * config/nm-linux.h: Ditto.
393 * config/nm-nto.h: Ditto.
394 * config/rs6000/nm-rs6000.h: Ditto.
395 * config/sparc/nm-sol2.h: Ditto.
396 * darwin-nat-info.c: Ditto.
397 * dfp.c: Ditto.
398 * dfp.h: Ditto.
399 * gdb-demangle.h: Ditto.
400 * i386-darwin-nat.c: Ditto.
401 * i386-darwin-tdep.c: Ditto.
402 * linux-fork.h: Ditto.
403 * m32c-tdep.c: Ditto.
404 * microblaze-linux-tdep.c: Ditto.
405 * microblaze-rom.c: Ditto.
406 * microblaze-tdep.c: Ditto.
407 * microblaze-tdep.h: Ditto.
408 * mips-linux-tdep.h: Ditto.
409 * ppc-ravenscar-thread.c: Ditto.
410 * ppc-ravenscar-thread.h: Ditto.
411 * prologue-value.c: Ditto.
412 * prologue-value.h: Ditto.
413 * ravenscar-thread.c: Ditto.
414 * ravenscar-thread.h: Ditto.
415 * sparc-ravenscar-thread.c: Ditto.
416 * sparc-ravenscar-thread.h: Ditto.
417 * tilegx-linux-tdep.c: Ditto.
418 * unwind_stop_reasons.def: Ditto.
419 * windows-nat.h: Ditto.
420 * xtensa-linux-tdep.c: Ditto.
421 * xtensa-xtregs.c: Ditto.
422 * regformats/regdat.sh: Ditto.
423 * regformats/regdef.h: Ditto.
424
425 2013-02-12 Pedro Alves <palves@redhat.com>
426
427 * break-catch-sig.c: Update copyright years.
428
429 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
430
431 Add support for a destructor for ui_out data and use it to
432 provide a ui_out destructor.
433 * ui-out.h: Declare the new ui_out destructor.
434 (ui_out_impl): Add a field for data destructor in ui_out_impl.
435 * ui-out.c (default_data_destroy): Add a default data destructor
436 which does nothing.
437 (default_ui_out_impl): Set the new data_destroy field to
438 default_data_destroy
439 (uo_data_destroy): Local function which invokes the data
440 destructor if present.
441 (clear_table): Local function which clears the table data of a
442 ui_out object.
443 (ui_out_destroy): Public function which frees a ui_out object.
444 (ui_out_table_end): Use the new clear_table function.
445 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
446 NULL.
447 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
448 to NULL.
449
450 2013-02-11 Doug Evans <dje@google.com>
451
452 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
453 (printf_decfloat): New function. Broken out from ui_printf.
454 Remove unnecessary code to shift the entire format string down.
455 (printf_pointer): New function.
456 (ui_printf): Code to print C strings, wide C strings, decfloats,
457 and pointers moved to separate functions.
458
459 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
460
461 * valops.c (value_assign): Handling bitfield offset in
462 `lval_internalvar_component' case.
463
464 2013-02-08 Doug Evans <dje@google.com>
465
466 * common/format.c (parse_format_string): Fix whitespace.
467
468 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
469
470 * stack.c (return_command): Work around uninitialized variable
471 warning.
472
473 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
474
475 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
476 number of the registers from 36 to 34.
477
478 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
479
480 * NEWS: Mention new AArch64 native and target support.
481
482 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
483
484 * MAINTAINERS (Write After Approval): Add myself.
485
486 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
487 Marcus Shawcroft <marcus.shawcroft@arm.com>
488 Nigel Stephens <nigel.stephens@arm.com>
489 Yufeng Zhang <yufeng.zhang@arm.com>
490
491 * aarch64-linux-nat.c: New file.
492 * config/aarch64/linux.mh: New file.
493 * configure.host: Add AArch64.
494 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
495
496 2013-02-07 Doug Evans <dje@google.com>
497
498 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
499 disassemble command.
500
501 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
502
503 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
504 set_gdbarch_fetch_tls_load_module_address.
505
506 2013-02-06 David S. Miller <davem@davemloft.net>
507
508 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
509 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
510 * value.c (struct_return_convention): New function.
511 (using_struct_return): Implement in terms of struct_return_convention.
512 * value.h (struct_return_convention): Declare.
513 * stack.c (return_command): Allow successful overriding of the return
514 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
515
516 2013-02-06 Tom Tromey <tromey@redhat.com>
517
518 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
519 outside of TRY_CATCH.
520
521 2013-02-06 Yao Qi <yao@codesourcery.com>
522
523 * mi/mi-interp.c: Include "tracepoint.h".
524 (mi_tsv_modified): Declare.
525 (mi_tsv_created, mi_tsv_deleted): Update declaration.
526 (mi_interpreter_init): Call observer_attach_tsv_modified.
527 (mi_tsv_modified): New.
528 (mi_tsv_created, mi_tsv_deleted): Update.
529 * tracepoint.c (trace_variable_command): Call
530 observer_notify_tsv_modified if the initial value of tsv is
531 changed.
532 (delete_trace_state_variable): Call
533 observer_notify_tsv_deleted earlier.
534 (trace_variable_command): Caller update.
535 (create_tsv_from_upload): Likewise.
536 * observer.sh: Declare "struct trace_state_variable".
537
538 * NEWS: Mention the new MI notification "=tsv-modified".
539
540 2013-02-05 Doug Evans <dje@google.com>
541
542 * completer.c (location_completer): Fix typo in comment.
543
544 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
545
546 * breakpoint.c (add_location_to_breakpoint): Insert the location with
547 ADDRESS sorted.
548
549 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
550
551 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
552 Refactor if statement to avoid trailing || operator.
553
554 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
555
556 * NEWS: Add PowerPC FreeBSD as a new native configuration.
557
558 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
559
560 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
561 * configure.host: Add powerpc*-*-freebsd* target.
562 * configure.tgt: Add target info for powerpc*-*-freebsd*.
563 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
564 * config/powerpc/fbsd.mh: New file.
565
566 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
567 Denys Vlasenko <dvlasenk@redhat.com>
568 Pedro Alves <palves@redhat.com>
569
570 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
571 (struct elf_internal_linux_prpsinfo): Forward declare.
572 * gdbarch.h, gdbarch.c: Regenerate.
573 * linux-tdep.c: Include `cli/cli-utils.h'.
574 (linux_fill_prpsinfo): New function.
575 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
576 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
577 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
578 depending on gdbarch pointer bitness.
579 * ppc-linux-tdep.c: Include elf-bfd.h.
580 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
581 on 32-bit.
582
583 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
584 Marcus Shawcroft <marcus.shawcroft@arm.com>
585 Nigel Stephens <nigel.stephens@arm.com>
586 Yufeng Zhang <yufeng.zhang@arm.com>
587
588 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
589
590 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
591 Marcus Shawcroft <marcus.shawcroft@arm.com>
592 Nigel Stephens <nigel.stephens@arm.com>
593 Yufeng Zhang <yufeng.zhang@arm.com>
594
595 * aarch64-newlib-tdep.c: New file.
596 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
597 aarch64*-*-elf.
598 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
599 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
600 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
601 * osabi.c (gdb_osabi_names): Add "Newlib".
602
603 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
604 Marcus Shawcroft <marcus.shawcroft@arm.com>
605 Nigel Stephens <nigel.stephens@arm.com>
606 Yufeng Zhang <yufeng.zhang@arm.com>
607
608 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
609 (ALLDEPFILES): Add aarch64-linux-tdep.c.
610 * aarch64-linux-tdep.c: New file.
611 * aarch64-linux-tdep.h: New file.
612 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
613 * configure.tgt: Add aarch64-none-linux-gnu.
614
615 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
616 Marcus Shawcroft <marcus.shawcroft@arm.com>
617 Nigel Stephens <nigel.stephens@arm.com>
618 Yufeng Zhang <yufeng.zhang@arm.com>
619
620 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
621 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
622 (ALLDEPFILES): Add aarch64-tdep.c.
623 * aarch64-tdep.c: New file.
624 * aarch64-tdep.h: New file.
625 * configure.tgt: Add AArch64.
626 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
627 (aarch64-expedite): New definition.
628 * features/aarch64-core.xml: New file.
629 * features/aarch64-fpu.xml: New file.
630 * features/aarch64-without-fpu.c: New file (generated).
631 * features/aarch64-without-fpu.xml: New file.
632 * features/aarch64.c: New file (generated).
633 * features/aarch64.xml: New file.
634 * regformats/aarch64-without-fpu.dat: New file (generated).
635 * regformats/aarch64.dat: New file (generated).
636
637 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
638
639 * contrib/expect-read1.c: New file.
640 * contrib/expect-read1.sh: New file.
641
642 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 * dwarf2read.c (file_file_name): New function with code from
645 file_full_name.
646 (file_full_name): Move most of the code to file_file_name.
647 (macro_start_file): Rename variable full_name to file_name and use
648 file_file_name for it. Add comp_dir parameter to new_macro_table.
649 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
650 macro_source_file->filename access by macro_source_fullname call.
651 * macroscope.c (_initialize_macroscope): Update the new_macro_table
652 caller.
653 * macrotab.c (struct macro_table): New field comp_dir.
654 (macro_include): New variables link_fullname and source_fullname.
655 Replace any macro_source_file->filename access by macro_source_fullname
656 call.
657 (macro_lookup_inclusion): Remove the partial filenames checking code.
658 (check_for_redefinition): New variables source_fullname and
659 found_key_fullname. Replace any macro_source_file->filename access by
660 macro_source_fullname call.
661 (macro_undef): New variables source_fullname and key_fullname. Replace
662 any macro_source_file->filename access by macro_source_fullname call.
663 (macro_lookup_definition): New variables retval and source_fullname.
664 Replace any macro_source_file->filename access by macro_source_fullname
665 call.
666 (foreach_macro): New variable key_fullname. Replace any
667 macro_source_file->filename access by macro_source_fullname call.
668 (foreach_macro_in_scope): New variable datum_fullname. Replace any
669 macro_source_file->filename access by macro_source_fullname call.
670 (new_macro_table): Add parameter comp_dir. Initialize T with it.
671 (macro_source_fullname): New function.
672 * macrotab.h (struct macro_source_file): Extent the filename field
673 comment.
674 (new_macro_table): New parameter comp_dir, add a comment for it.
675 (macro_source_fullname): new declaration.
676
677 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
678
679 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
680 this_real_name to outer block. Use it also for
681 compare_filenames_for_search.
682 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
683 with dw2_get_real_path for file_matcher, considering also
684 BASENAMES_MAY_DIFFER.
685 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
686
687 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
688
689 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
690 to the file_matcher parameter. Pass 0 to it.
691 (dwarf2_create_include_psymtab): Copy also DIRNAME.
692 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
693 NULL psymtab_to_fullname result.
694 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
695 an expected filename instead.
696 (expand_symtabs_matching_via_partial): Add basenames parameter to the
697 file_matcher parameter. Call also psymtab_to_fullname, after newly
698 considering BASENAMES_MAY_DIFFER.
699 * source.c (rewrite_source_path): Remove static.
700 * source.h (rewrite_source_path): New declaration.
701 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
702 the expand_symtabs_matching field. Comment it.
703 * symtab.c (file_matches): New function comment. Add parameter
704 basenames, implement it.
705 (search_symbols_file_matches): Add basenames parameter. Update the
706 file_matches caller.
707 (search_symbols): Match FILES also against symtab_to_fullname.
708 Optimize it for BASENAMES_MAY_DIFFER.
709
710 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
711
712 * source.c (print_source_lines_base): Print for TUI also "fullname".
713 * tui/tui-data.c (init_content_element): Change tui_locator_element
714 field to full_name.
715 * tui/tui-data.h (struct tui_locator_element): Likewise.
716 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
717 tui_update_locator_filename calls to tui_update_locator_fullname.
718 Replace symtab->filename refererence by symtab_to_fullname call.
719 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
720 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
721 field to full_name. Replace symtab->filename refererence by
722 symtab_to_fullname call.
723 (tui_show_symtab_source): Rename parameter to fullname. Change
724 tui_locator_element field to full_name.
725 * tui/tui-stack.c: Include source.h.
726 (tui_set_locator_filename): Rename the declaration to ...
727 (tui_set_locator_fullname): ... here. Rename its parameter to
728 fullname, updates its comment.
729 (tui_set_locator_info): Rename its parameter to fullname.
730 (tui_set_locator_filename): Rename the definition to ...
731 (tui_set_locator_fullname): ... here. Rename its parameter to
732 fullname, updates its comment. Change tui_locator_element field to
733 full_name.
734 (tui_set_locator_info): Rename its parameter to fullname.
735 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
736 (tui_update_locator_filename): Rename to ...
737 (tui_update_locator_fullname): ... here. Rename callee to
738 tui_set_locator_fullname.
739 (tui_show_frame_info): Replace symtab->filename refererence by
740 symtab_to_fullname call.
741 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
742 (tui_update_locator_fullname): ... here.
743 * tui/tui-winsource.c (tui_display_main): Rename the callee to
744 tui_update_locator_fullname. Replace symtab->filename refererence by
745 symtab_to_fullname call.
746 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
747 Rename the callee to tui_update_locator_fullname.
748 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
749
750 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
751
752 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
753 by symtab_to_filename_for_display calls.
754 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
755 (clear_command): New variable sal_fullname, initialize it. Replace
756 compare_filenames_for_search by filename_cmp with sal_fullname.
757 (say_where, update_static_tracepoint): Replace symtab->filename
758 refererences by symtab_to_filename_for_display calls.
759 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
760 Likewise.
761 * dwarf2read.c: Include source.h.
762 (fixup_go_packaging): Replace symtab->filename refererences by
763 symtab_to_filename_for_display calls.
764 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
765 Replace symtab->filename refererences by symtab_to_filename_for_display
766 calls.
767 (create_sals_line_offset, convert_linespec_to_sals): New variable
768 fullname, initialize it, replace symtab->filename reference by the
769 variable.
770 * linux-fork.c: Include source.h.
771 (info_checkpoints_command): Replace symtab->filename refererences by
772 symtab_to_filename_for_display calls.
773 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
774 by symtab_to_filename_for_display calls.
775 * mdebugread.c: Include source.h.
776 (psymtab_to_symtab_1): Replace symtab->filename refererences by
777 symtab_to_filename_for_display calls.
778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
779 (mi_cmd_file_list_exec_source_files): Likewise.
780 * printcmd.c: Include source.h.
781 (build_address_symbolic): Replace symtab->filename refererences by
782 symtab_to_filename_for_display calls.
783 * psymtab.c (partial_map_symtabs_matching_filename)
784 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
785 with psymtab_to_fullname.
786 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
787 by symtab_to_filename_for_display calls.
788 (stpy_get_filename): New variable filename, initialize it, use instead
789 of symtab->filename refererences.
790 (salpy_str): Make variable filename const char *. Replace
791 symtab->filename refererences by symtab_to_filename_for_display calls.
792 * skip.c: Include source.h and filenames.h.
793 (skip_file_command): Remove const from the symtab variable. Replace
794 symtab->filename refererences by symtab_to_fullname call.
795 (function_name_is_marked_for_skip): New variables searched_for_fullname
796 and fullname. Use them to search also with symtab's fullname.
797 * source.c (find_source_lines): Replace symtab->filename refererences
798 by symtab_to_filename_for_display calls.
799 (print_source_lines_base): New variable filename, use it instead of
800 symtab->filename. Replace symtab->filename refererences by
801 symtab_to_filename_for_display calls.
802 (line_info, forward_search_command): Replace symtab->filename
803 refererences by symtab_to_filename_for_display calls.
804 (reverse_search_command): Replace symtab->filename refererences by
805 symtab_to_filename_for_display calls. New variable filename for it.
806 * stack.c (frame_info): Likewise.
807 * symmisc.c: Include source.h.
808 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
809 (maintenance_info_symtabs): Replace symtab->filename refererences by
810 symtab_to_filename_for_display calls.
811 * symtab.c (iterate_over_some_symtabs): Call
812 compare_filenames_for_search also with symtab_to_fullname.
813 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
814 symtab->filename refererences by symtab_to_filename_for_display calls.
815 (find_line_symtab): Replace symtab->filename refererences by
816 symtab_to_filename_for_display calls.
817 (file_matches): Replace filename_cmp by compare_filenames_for_search.
818 (print_symbol_info): Make the last parameter const char *. New
819 variable s_filename. Use it in the function.
820 (symtab_symbol_info): Make the last_filename variable const char *.
821 Replace symtab->filename refererences by symtab_to_filename_for_display
822 calls.
823 (rbreak_command): New variable fullname. Use it. Replace
824 symtab->filename refererence by symtab_to_filename_for_display call.
825 * tracepoint.c (set_traceframe_context, trace_find_line_command)
826 (print_one_static_tracepoint_marker): Replace symtab->filename
827 refererences by symtab_to_filename_for_display calls.
828 * tui/tui-source.c (tui_set_source_content): New variables filename and
829 s_filename. Replace symtab->filename refererences by this variable.
830 Replace other symtab->filename refererences by
831 symtab_to_filename_for_display calls.
832
833 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
834 Jan Kratochvil <jan.kratochvil@redhat.com>
835
836 Add a new variable that controls a way in which filenames are
837 displayed.
838 * NEWS (set filename-display): New entry.
839 * source.c (filename_display_basename, filename_display_relative)
840 (filename_display_absolute, filename_display_kind_names)
841 (filename_display_string, show_filename_display_string)
842 (symtab_to_filename_for_display): New.
843 (_initialize_source): Added initialization of 'filename-display'
844 variable.
845 * source.h (symtab_to_filename_for_display): Added declaration.
846 * stack.c (print_frame): Added new variable and calling of a new
847 function and condition with this variable. Changed third argument of
848 calling of a function.
849
850 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
851
852 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
853 Rename field reference filename to fullname.
854 * tui/tui-data.h (struct tui_source_info): Rename field filename to
855 fullname. New comment for it.
856 * tui/tui-source.c (tui_set_source_content): Rename field reference
857 filename to fullname. Initialize field by symtab_to_fullname now.
858 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
859 reference filename to fullname. Use symtab_to_fullname during
860 comparison.
861
862 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
863
864 Code cleanup.
865 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
866 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
867 filename to fullname. Rename variable this_name to this_fullname.
868 Lowercase FILENAME_CMP call.
869 (dw2_find_symbol_file): New comment for the returned string.
870 (dwarf2_gdb_index_functions): Rename the function to
871 dw2_expand_symtabs_with_fullname.
872 * psymtab.c (read_psymtabs_with_filename): Rename to ...
873 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
874 fullname.
875 (psym_functions): Rename the function to read_psymtabs_with_fullname.
876 * symfile.h (struct quick_symbol_functions): Rename field
877 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
878 parameter filename to fullname. Document returned string meaning for
879 find_symbol_file.
880 * symtab.c (find_line_symtab): Rename the called function to
881 expand_symtabs_with_fullname.
882
883 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
884
885 Code cleanup.
886 * breakpoint.c (clear_command): Remove variable is_abs, unify the
887 call of filename_cmp with compare_filenames_for_search.
888 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
889 is_abs, unify the call of FILENAME_CMP with
890 compare_filenames_for_search. New gdb_asserts for real_path and name.
891 Unify the call of compare_filenames_for_search with FILENAME_CMP.
892 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
893 * symfile.h (struct quick_symbol_functions): Extend the comment for
894 map_symtabs_matching_filename.
895 * symtab.c (compare_filenames_for_search): Remove the function comment
896 relative path requirement. Handle absolute filenames, with a comment.
897 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
898 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
899 real_path and name. Unify the call of compare_filenames_for_search
900 with FILENAME_CMP.
901 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
902
903 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
904
905 Code cleanup.
906 * breakpoint.c (print_breakpoint_location): Replace bp_location field
907 source_file references by symtab field references. Remove variables
908 sal and fullname.
909 (momentary_breakpoint_from_master, add_location_to_breakpoint):
910 (clear_command, say_where): Replace bp_location field source_file
911 references by symtab field references.
912 (bp_location_dtor): Remove the source_file reference.
913 (update_static_tracepoint): Replace bp_location field source_file
914 references by symtab field references.
915 (breakpoint_free_objfile): New function.
916 * breakpoint.h (struct bp_location): Extend the comment for line_number.
917 Replace the field source_file by field symtab, extend its comment.
918 (breakpoint_free_objfile): New declaration.
919 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
920 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
921 field source_file references by symtab field references.
922
923 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
924
925 Replace xfullpath calls by gdb_realpath calls.
926 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
927 function comment.
928 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
929 Remove it from the iterate_over_some_symtabs call.
930 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
931 Remove it from the dw2_map_expand_apply calls, remove a block handling
932 it.
933 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
934 Remove it from the iterate_over_some_symtabs call.
935 (partial_map_symtabs_matching_filename): Remove parameter full_path.
936 Remove it from the partial_map_expand_apply calls, remove a block
937 handling it. Drop gdb_realpath call and cleanups from the real_path
938 handling.
939 * source.c (openp): Drop the comment part about xfullpath. Replace
940 xfullpath calls by gdb_realpath calls.
941 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
942 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
943 from method map_symtabs_matching_filename and its comment.
944 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
945 gdb_realpath call.
946 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
947 remove it also from the function comment, remove a block handling it.
948 Drop gdb_realpath call and cleanups from the real_path handling.
949 (iterate_over_symtabs): Drop variable full_path and its use.
950 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
951 * utils.c (xfullpath): Remove.
952 * utils.h (xfullpath): Remove.
953
954 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
955
956 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
957 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
958 (ALLDEPFILES): Add ppc64-tdep.c.
959 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
960 ppc64-tdep.o to gdb_target_obs.
961 * ppc64-tdep.h: New file.
962 * ppc64-tdep.c: New file.
963 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
964 ppc-linux-tdep.c to here.
965 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
966 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
967 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
968 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
969 from ppc-linux-tdep.c to here.
970 (ppc64_convert_from_func_ptr_addr): Rename from
971 ppc64_linux_convert_from_func_ptr_addr to
972 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
973 here.
974 * rs6000-tdep.c:
975 (read_insn): Move from ppc-linux-tdep.c to here.
976 (insns_match_pattern, insn_d_field, insn_ds_field): Move
977 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
978 * ppc-linux-tdep.c: Include ppc64-tdep.h.
979 Removed above functions.
980 (ppc_linux_init_abi): Adjust.
981
982 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
983
984 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
985
986 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
987
988 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
989
990 2013-02-01 Pedro Alves <palves@redhat.com>
991
992 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
993 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
994
995 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
996
997 * elfread.c (elf_symfile_read): Limit separate debug info additions to
998 files with no separate debug info.
999 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1000 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1001 only for files with no separate debug info.
1002
1003 2013-01-31 Tom Tromey <tromey@redhat.com>
1004
1005 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1006 change type.
1007 (struct jit_program_space_data): Rename from jit_inferior_data.
1008 Update comments.
1009 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1010 Change return type. Attach data to program space.
1011 (jit_program_space_data_cleanup): Rename from
1012 jit_inferior_data_cleanup; change argument type.
1013 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1014 change type.
1015 (jit_register_code): Update.
1016 (jit_update_inferior_cache): Remove.
1017 (jit_breakpoint_deleted): Get jit data from the location's program
1018 space.
1019 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1020 'ps_data', change type.
1021 (jit_inferior_init, jit_breakpoint_re_set_internal)
1022 (jit_event_handler): Update.
1023 (free_objfile_data): Get data from objfile's program space.
1024 (_initialize_jit): Update.
1025
1026 2013-01-31 Tom Tromey <tromey@redhat.com>
1027
1028 PR gdb/13987:
1029 * jit.c (struct jit_inferior_data) <cached_code_address,
1030 jit_breakpoint>: New fields.
1031 (jit_breakpoint_re_set_internal): Fix logging. Only create
1032 breakpoint if cached address has changed.
1033 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1034 functions.
1035 (_initialize_jit): Register breakpoint deleted observer.
1036
1037 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1038
1039 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1040 (save_infcall_suspend_state): Ifdef out unused inf.
1041 (restore_infcall_suspend_state): Ifdef out unused inf.
1042 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1043 (jit_frame_sniffer): Remove unused inf_data.
1044
1045 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1046
1047 * c-exp.y (classify_inner_name): Remove unused type.
1048 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1049 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1050 need_escape.
1051 (c_get_string): Remove unused kind.
1052 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1053
1054 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1055
1056 * charset.c (intermediate_encoding): Remove unused i.
1057 * completer.c (signal_completer): Remove unused i.
1058 * continuations.c (discard_my_continuations_1): Remove unused
1059 continuation_ptr.
1060 * corelow.c (core_close): Remove unuseD name.
1061 (get_core_siginfo): Remove unused pid.
1062 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1063 i, cps.
1064 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1065 (loclist_describe_location): Remove unused first.
1066 * event-top.c (command_line_handler): Remove unused got_eof.
1067 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1068 (resize_section_table): Remove unused old_value.
1069 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1070 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1071 * i386-tdep.c (i386_process_record): Remove unused rex.
1072 * infcmd.c (get_return_value): Remove unused uiout.
1073 * jv-lang.c (type_from_class): Remove unused is_array.
1074 * jv-valprint.c (java_val_print): Remove unused i.
1075 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1076 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1077 * m2-typeprint.c (m2_print_type): Remove unused code.
1078 * macroexp.c (get_character_constant): Remove unused body_start.
1079 (macro_stringify): Remove unused result.
1080 * objc-lang.c (find_methods): Remove unused gdbarch.
1081 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1082 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1083 * stack.c (print_frame_args): Remove unused summary.
1084 * thread.c (thread_apply_command): Remove unused p.
1085 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1086 * valops.c (search_struct_method): Remove unused skip.
1087 * valprint.c (generic_val_print): Remove unused byte_order.
1088 * varobj.c (varobj_update): Remove unused changed.
1089 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1090 (alias_command): Remove unused c.
1091 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1092 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1093 format.
1094 (mi_cmd_data_write_memory): Remove unused word_format.
1095 (mi_cmd_data_write_memory_bytes): Remove unused r.
1096 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1097 p_start, p_end.
1098 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1099 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1100 line_width.
1101
1102 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1103
1104 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1105 * symtab.c (iterate_over_symtabs): Remove unused s.
1106 (find_pc_sect_symtab): Remove unused pspAce.
1107 (find_pc_sect_line): Remove unused alt_symtab.
1108 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1109 (completion_list_add_name): Remove unused newsize.
1110
1111 2013-01-31 Tom Tromey <tromey@redhat.com>
1112
1113 PR c++/14998:
1114 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1115 TYPE_CODE_FUNC.
1116
1117 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1118
1119 * target.c (target_read_string): Remove unused origlen.
1120
1121 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1122
1123 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1124 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1125 * ax-general.c (ax_print): Remove unused is_float.
1126 * blockframe.c (block_innermost_frame): Remove unused start, end.
1127 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1128
1129 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1130
1131 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1132 (svr4_read_so_list): Remove unused lmo.
1133 * solib-target.c (solib_target_relocate_section_addresses): Remove
1134 unused flags.
1135
1136 2013-01-30 Tom Tromey <tromey@redhat.com>
1137
1138 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1139
1140 2013-01-30 Tom Tromey <tromey@redhat.com>
1141
1142 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1143 * utils.c (gnu_debuglink_crc32): Remove.
1144 * utils.h (gnu_debuglink_crc32): Don't declare.
1145
1146 2013-01-30 Tom Tromey <tromey@redhat.com>
1147
1148 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1149 (read_structure_type, read_enumeration_type): Remove cast.
1150
1151 2013-01-30 Tom Tromey <tromey@redhat.com>
1152
1153 * dwarf2read.c (read_namespace_type): Remove cast.
1154 (read_typedef): Likewise.
1155
1156 2013-01-29 Tom Tromey <tromey@redhat.com>
1157
1158 * dwarf2read.c (free_dwo_file): Remove assert.
1159
1160 2013-01-29 Tom Tromey <tromey@redhat.com>
1161
1162 * value.c (deprecated_set_value_modifiable): Remove.
1163 * value.h (deprecated_set_value_modifiable): Remove.
1164
1165 2013-01-28 Doug Evans <dje@google.com>
1166
1167 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1168 to addresses from dwo files.
1169
1170 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1171
1172 * valops.c (find_overload_match): Remove unused argument 'lax'.
1173 * value.h: Remove unused argument 'lax' from the declaration of
1174 find_overload_match.
1175 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1176 to find_overload_match.
1177 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1178 argument to find_overload_match.
1179
1180 2013-01-25 Tom Tromey <tromey@redhat.com>
1181
1182 * dwarf2read.c (processing_has_namespace_info): Remove.
1183 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1184 (process_die, read_func_scope, dwarf2_start_symtab)
1185 (new_symbol_full): Update.
1186
1187 2013-01-25 Tom Tromey <tromey@redhat.com>
1188
1189 * cp-namespace.c (cp_set_block_scope): Remove.
1190 * cp-support.h (cp_set_block_scope): Remove.
1191 * dbxread.c: Include block.h.
1192 (cp_set_block_scope): New function.
1193 (process_one_symbol): Update.
1194 * dwarf2read.c (read_func_scope): Use block_set_scope.
1195
1196 2013-01-25 Pedro Alves <palves@redhat.com>
1197
1198 * remote.c (add_current_inferior_and_thread): Tweak comment.
1199
1200 2013-01-25 Tom Tromey <tromey@redhat.com>
1201
1202 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1203 (cp_add_using_directive): Add 'copy_names' argument.
1204 * cp-support.h (cp_add_using_directive): Update.
1205 (struct using_direct) <import_src, import_dest, alias,
1206 declaration>: Now const.
1207 * dwarf2read.c (read_import_statement): Use obconcat.
1208 Don't copy names passed to cp_add_using_directive.
1209
1210 2013-01-25 Tom Tromey <tromey@redhat.com>
1211
1212 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1213
1214 2013-01-25 Pedro Alves <palves@redhat.com>
1215
1216 * remote.c (stop_reply_extract_thread): New.
1217 (add_current_inferior_and_thread): New parameter 'wait_status'.
1218 Handle it.
1219 (remote_start_remote): Pass wait status to
1220 add_current_inferior_and_thread.
1221 (extended_remote_run): Update comment.
1222 (extended_remote_create_inferior_1): Pass wait status to
1223 add_current_inferior_and_thread.
1224
1225 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1226 Ulrich Weigand <uweigand@de.ibm.com>
1227
1228 * valarith.c (value_vector_widen): New function for replicating a
1229 scalar into a vector.
1230 (value_binop): Use value_vector_widen to widen scalar to vector
1231 rather than casting, this better matches gcc C behaviour.
1232 * valops.c (value_casst): Update logic for casting between vector
1233 types, and for casting from scalar to vector, try to match gcc C
1234 behaviour.
1235 * value.h (value_vector_widen): Declare.
1236 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1237 function, handle special case for casting scalar to vector.
1238 (opencl_relop): Use opencl_value_cast.
1239 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1240 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1241 in order to use opencl_value_cast.
1242
1243 2013-01-25 Yao Qi <yao@codesourcery.com>
1244
1245 * event-loop.c: Include "queue.h".
1246 (gdb_event_p): New typedef.
1247 (DECLARE_QUEUE_P): Use.
1248 (DEFINE_QUEUE_P): Use.
1249 (async_queue_event): Remove.
1250 (gdb_event_xfree): New.
1251 (initialize_event_loop): New.
1252 (process_event): Use QUEUE macros.
1253 (event_queue): Remove.
1254 (gdb_wait_for_event): Caller update.
1255 (check_async_event_handlers): Likewise.
1256 (poll_timers): Likewise.
1257 * event-loop.h (initialize_event_loop): Declare.
1258 * event-loop.c (gdb_event_xfree): New.
1259 * top.c (gdb_init): Call initialize_event_loop.
1260
1261 2013-01-25 Yao Qi <yao@codesourcery.com>
1262
1263 * event-loop.c (async_queue_event): Remove one parameter
1264 'position'. Remove code handling 'position' == TAIL.
1265 (gdb_wait_for_event): Caller update.
1266 (check_async_event_handlers): Caller update.
1267 (poll_timers): Caller update.
1268 * event-loop.h (enum queue_position): Remove.
1269
1270 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1271
1272 * MAINTAINERS: Update my email.
1273
1274 2013-01-25 Yao Qi <yao@codesourcery.com>
1275
1276 * main.c (print_gdb_help): Remove "--epoch" from the help
1277 message.
1278
1279 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1280
1281 * symtab.c (skip_prologue_using_sal): Consider a file
1282 change the same as an increased line number
1283
1284 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1285
1286 * MAINTAINERS (Write After Approval): Add myself to the list.
1287
1288 2013-01-24 Tom Tromey <tromey@redhat.com>
1289
1290 * ada-lang.h (ada_decode_symbol): Make return type const.
1291 * ada-lang.c (ada_decode_symbol): Likewise.
1292
1293 2013-01-23 Doug Evans <dje@google.com>
1294
1295 * linespec.c (find_linespec_symbols): Make static.
1296
1297 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1298
1299 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1300 type on float conversion for complex type.
1301
1302 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1303
1304 Add a new class gdb.Architecture which exposes GDB's
1305 internal representation of architecture via GDB Python API.
1306 * Makefile.in: Add entries corresponding to the new file
1307 python/py-arch.c.
1308 * NEWS (Python Scripting): Add entries for the new class
1309 gdb.Architecture and the new method gdb.Frame.architecture.
1310 * python/py-arch.c: Implement gdb.Architecture class.
1311 * python/py-frame.c (frapy_arch): Implement the method
1312 gdb.Frame.architecture().
1313 (frame_object_methods): Add 'architecture' to the method table.
1314 * python/python-internal.h: Add declarations of new utility
1315 functions.
1316 * python/python.c (_initialize_python): Initialize
1317 gdb.Architecture class.
1318
1319 2013-01-23 Doug Evans <dje@google.com>
1320
1321 Work around binutils/15021.
1322 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1323 type_unit_group out of union s. All uses updated.
1324 (read_index_from_section): Watch for index version 8.
1325 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1326 an imported symtab.
1327 (write_psymtabs_to_index): Increment version number to 8.
1328
1329 2013-01-22 Pedro Alves <palves@redhat.com>
1330
1331 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1332 user-visible.
1333
1334 2013-01-22 Pedro Alves <palves@redhat.com>
1335
1336 * annotate.c (annotate_breakpoints_changed): Rename to ...
1337 (annotate_breakpoints_invalid): ... this. Make static.
1338 (breakpoint_changed): Adjust.
1339 (_initialize_annotate): Always install the observers. Install a
1340 "breakpoint_created" observer.
1341 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1342 * breakpoint.c (set_breakpoint_condition)
1343 (breakpoint_set_commands, do_map_commands_command)
1344 (init_raw_breakpoint, clear_command, set_ignore_count)
1345 (enable_breakpoint_disp): No longer call
1346 annotate_breakpoints_changed.
1347
1348 2013-01-22 Pedro Alves <palves@redhat.com>
1349
1350 * annotate.c: Include "inferior.h".
1351 (frames_invalid_emitted)
1352 (breakpoints_invalid_emitted): New globals.
1353 (async_background_execution_p): New function.
1354 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1355 emitting the annotation if it has already been emitted.
1356 (annotate_display_prompt): New function.
1357 * annotate.h (annotate_display_prompt): New declaration.
1358 * event-top.c: Include annotate.h.
1359 (display_gdb_prompt): Call annotate_display_prompt.
1360
1361 2013-01-22 Pedro Alves <palves@redhat.com>
1362
1363 * annotate.c (ignore_count_changed): Delete.
1364 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1365 (annotate_ignore_count_change): Delete.
1366 (annotate_stopped): Don't emit a delayed breakpoints-changed
1367 annotation.
1368 * annotate.h (annotate_ignore_count_change): Delete.
1369 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1370 annotate_ignore_count_change.
1371
1372 2013-01-22 Tom Tromey <tromey@redhat.com>
1373
1374 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1375 require_rvalue for a register location.
1376
1377 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1378
1379 * breakpoint.c (print_one_breakpoint_location): Add MI
1380 field 'thread-groups' when printing a breakpoint.
1381 (output_thread_groups): New function.
1382
1383 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1384
1385 * python/lib/gdb/commands/explore.py
1386 (CompoundExplorer.explore_expr): Correct the name of a method
1387 being invoked.
1388 (ExploreTypeCommand.invoke): Add a missing 'return'.
1389
1390 2013-01-21 Tom Tromey <tromey@redhat.com>
1391
1392 * gdb_obstack.h (obconcat): Move declaration here, from...
1393 * symfile.h (obconcat): ... here.
1394 * gdb_obstack.c: New file.
1395 (obconcat): Move from...
1396 * symfile.c (obconcat): ... here.
1397 * Makefile.in (SFILES): Add gdb_obstack.c.
1398 (COMMON_OBS): Add gdb_obstack.o.
1399
1400 2013-01-21 Tom Tromey <tromey@redhat.com>
1401
1402 * symfile.h (obsavestring): Don't declare.
1403 * symfile.c (obsavestring): Remove.
1404 * ada-exp.y: Use obstack_copy0, not obsavestring.
1405 * ada-lang.c: Use obstack_copy0, not obsavestring.
1406 * coffread.c: Use obstack_copy0, not obsavestring.
1407 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1408 * dbxread.c: Use obstack_copy0, not obsavestring.
1409 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1410 * jit.c: Use obstack_copy0, not obsavestring.
1411 * mdebugread.c: Use obstack_copy0, not obsavestring.
1412 * psymtab.c: Use obstack_copy0, not obsavestring.
1413 * stabsread.c: Use obstack_copy0, not obsavestring.
1414 * xcoffread.c: Use obstack_copy0, not obsavestring.
1415
1416 2013-01-21 Tom Tromey <tromey@redhat.com>
1417
1418 * dwarf2read.c (fixup_go_packaging): Save package name
1419 on objfile obstack.
1420 * gdbtypes.c (init_type): Don't copy name.
1421
1422 2013-01-21 Tom Tromey <tromey@redhat.com>
1423
1424 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1425 const.
1426 (struct attribute) <u.str>: Now const.
1427 (struct fnfieldlist) <name>: Now const.
1428 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1429 (partial_die_parent_scope): Make return type const.
1430 (partial_die_full_name, add_partial_symbol): Update.
1431 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1432 'name' const.
1433 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1434 (read_file_scope, read_func_scope, dwarf2_add_field)
1435 (dwarf2_add_member_fn, read_structure_type)
1436 (process_enumeration_scope, read_array_type, read_module_type)
1437 (read_base_type, read_subrange_type): Update.
1438 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1439 (new_symbol_full, guess_full_die_structure_name): Update.
1440 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1441 (dwarf2_name): Return const type.
1442 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1443 const.
1444
1445 2013-01-21 Tom Tromey <tromey@redhat.com>
1446
1447 * gdbtypes.c (init_type): Make 'name' const.
1448 * gdbtypes.h (init_type): Update.
1449
1450 2013-01-21 Tom Tromey <tromey@redhat.com>
1451
1452 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1453 (start_symtab): Make 'name' and 'dirname' const. Use
1454 set_last_source_file.
1455 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1456 (last_source_file): Define. Now static.
1457 (set_last_source_file, get_last_source_file): New functions.
1458 * buildsym.h (last_source_file): Don't declare.
1459 (start_symtab): Update.
1460 (set_last_source_file, get_last_source_file): Declare.
1461 * coffread.c (complete_symtab): Use set_last_source_file.
1462 (coff_end_symtab): Likewise.
1463 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1464 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1465 set_last_source_file.
1466 (process_one_symbol): Use get_last_source_file.
1467 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1468 (psymtab_to_symtab_1): Use get_last_source_file.
1469 * xcoffread.c (process_linenos): Use get_last_source_file.
1470 (complete_symtab): Use set_last_source_file.
1471 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1472 (scan_xcoff_symtab): Use set_last_source_file.
1473
1474 2013-01-21 Tom Tromey <tromey@redhat.com>
1475
1476 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1477 (symbol_set_names): Remove casts. Handle field const-ness.
1478
1479 2013-01-21 Tom Tromey <tromey@redhat.com>
1480
1481 * dwarf2read.c (new_symbol_full): Remove cast.
1482 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1483 * symtab.h (symbol_set_demangled_name): Update.
1484
1485 2013-01-21 Tom Tromey <tromey@redhat.com>
1486
1487 * main.c (captured_main): Call bfd_init.
1488
1489 2013-01-21 Tom Tromey <tromey@redhat.com>
1490
1491 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1492 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1493 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1494 * NEWS: Update.
1495
1496 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1497
1498 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1499
1500 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1501
1502 Fix gdb.fortran/common-block.exp crash in PIE mode.
1503 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1504 LOC_COMMON_BLOCK.
1505 * f-valprint.c (info_common_command_for_block): Expect
1506 LOC_COMMON_BLOCK in gdb_assert.
1507 * symtab.h (struct general_symbol_info): Update comment for the
1508 common_block member.
1509 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1510 (enum address_class): New member LOC_COMMON_BLOCK.
1511
1512 2013-01-18 David Blaikie <dblaikie@gmail.com>
1513
1514 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1515
1516 2013-01-18 Tom Tromey <tromey@redhat.com>
1517
1518 PR c++/14999:
1519 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1520 Call require_rvalue.
1521
1522 2013-01-18 Yao Qi <yao@codesourcery.com>
1523
1524 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1525 (dbx_read_symtab): New declaration.
1526 (dbx_psymtab_to_symtab): Delete.
1527 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1528 Rename parameter PST to SELF. Exchanged two parameters.
1529 (start_psymtab): Caller update.
1530 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1531 (dwarf2_read_symtab): New declaration.
1532 (dwarf2_psymtab_to_symtab): Delete.
1533 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1534 Rename parameter PST to SELF. Exchanged two parameters.
1535 (create_partial_symtab): Caller update.
1536 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1537 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1538 Rename parameter PST to SELF. Exchanged two parameters.
1539 (parse_partial_symbols, new_psymtab): Caller update.
1540 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1541 two parameters.
1542 * psymtab.c (psymtab_to_symtab): Caller update.
1543 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1544 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1545 Rename parameter PST to SELF. Exchanged two parameters.
1546 (xcoff_start_psymtab): Caller update.
1547
1548 2013-01-18 Yao Qi <yao@codesourcery.com>
1549
1550 * infrun.c (proceed): Rename local variable 'oneproc' to
1551 'force_step'.
1552
1553 2013-01-17 Doug Evans <dje@google.com>
1554
1555 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1556 (dw2_build_type_unit_groups): Delete. All uses updated.
1557
1558 * symtab.h (struct symbol_search): Add comment.
1559
1560 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1561
1562 * symtab.c (compare_filenames_for_search): New comment for
1563 HAS_DRIVE_SPEC.
1564
1565 2013-01-17 Tom Tromey <tromey@redhat.com>
1566
1567 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1568
1569 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1572 initialize it by existing make_cleanup. Call new do_cleanups.
1573
1574 2013-01-17 Tom Tromey <tromey@redhat.com>
1575
1576 * cp-abi.c (cp_abi_completer): New function.
1577 (_initialize_cp_abi): Set completer for "set cp-abi".
1578
1579 2013-01-17 Tom Tromey <tromey@redhat.com>
1580
1581 * mem-break.c: Remove obsolete comment.
1582 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1583
1584 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1585
1586 * jit.c (jit_reader_load_command): Interpret the jit reader name
1587 as an absolute path if it begins with a forward slash.
1588
1589 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1590
1591 PR gdb/14550
1592
1593 * jit.c (finalize_symtab): Ensure that only the global block has a
1594 NULL superblock.
1595
1596 2013-01-17 Pedro Alves <palves@redhat.com>
1597
1598 * acinclude.m4: Include ../config/plugins.m4,
1599 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1600 * Makefile.in (aclocal_m4_deps): Update.
1601 * aclocal.m4: Renegerate.
1602
1603 2013-01-16 Doug Evans <dje@google.com>
1604
1605 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1606
1607 2013-01-16 Pedro Alves <palves@redhat.com>
1608 Tom Tromey <tromey@redhat.com>
1609
1610 PR cli/7221:
1611 * NEWS: Add "catch signal".
1612 * breakpoint.c (base_breakpoint_ops): No longer static.
1613 (bpstat_explains_signal): New function.
1614 (init_catchpoint): No longer static.
1615 (base_breakpoint_explains_signal): New function.
1616 (base_breakpoint_ops): Initialize new field.
1617 * breakpoint.h (enum bpstat_signal_value): New.
1618 (struct breakpoint_ops) <explains_signal>: New field.
1619 (bpstat_explains_signal): Remove macro, declare as function.
1620 (base_breakpoint_ops, init_catchpoint): Declare.
1621 * break-catch-sig.c: New file.
1622 * inferior.h (signal_catch_update): Declare.
1623 * infrun.c (signal_catch): New global.
1624 (handle_syscall_event): Update for change to
1625 bpstat_explains_signal.
1626 (handle_inferior_event): Likewise. Always handle random signals
1627 via bpstats.
1628 (signal_cache_update): Check signal_catch.
1629 (signal_catch_update): New function.
1630 (_initialize_infrun): Initialize signal_catch.
1631 * Makefile.in (SFILES): Add break-catch-sig.c.
1632 (COMMON_OBS): Add break-catch-sig.o.
1633
1634 2013-01-16 Tom Tromey <tromey@redhat.com>
1635
1636 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1637 (print_one_catch_solib, print_one_catch_syscall)
1638 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1639 "catch-type".
1640
1641 2013-01-16 Yao Qi <yao@codesourcery.com>
1642
1643 * printcmd.c (current_display_number): Make it static.
1644
1645 2013-01-16 Yao Qi <yao@codesourcery.com>
1646
1647 * infcmd.c (step_once): Don't check '!single_inst' as it was
1648 checked before.
1649
1650 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1651
1652 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1653
1654 2013-01-14 Tom Tromey <tromey@redhat.com>
1655
1656 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1657 set command.
1658 * command.h (add_setshow_string_noescape_cmd): Update.
1659 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1660 (complete_set_gnutarget): New function.
1661 (_initialize_core): Set the "set gnutarget" completer.
1662
1663 2013-01-14 Tom Tromey <tromey@redhat.com>
1664
1665 PR symtab/14442:
1666 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1667 (c_type_print_modifier): Likewise.
1668 * dwarf2read.c (read_tag_restrict_type): New function.
1669 (read_type_die_1): Handle DW_TAG_restrict_type.
1670 * gdbtypes.c (make_restrict_type): New function.
1671 (recursive_dump_type): Handle TYPE_RESTRICT.
1672 * gdbtypes.h (enum type_flag_values): Renumber.
1673 (enum type_instance_flag_value): Add
1674 TYPE_INSTANCE_FLAG_RESTRICT.
1675 (TYPE_RESTRICT): New macro.
1676 (make_restrict_type): Declare.
1677
1678 2013-01-14 Tom Tromey <tromey@redhat.com>
1679
1680 PR symtab/14931:
1681 * psymtab.c (struct psymtab_state): New.
1682 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1683 functions.
1684 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1685 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1686
1687 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1688 Pedro Alves <palves@redhat.com>
1689
1690 PR remote/14786
1691
1692 * remote.c (remote_threads_info): Make a copy of the reply from
1693 qfThreadInfo and use that instead of rs->buf.
1694
1695 2013-01-14 Yao Qi <yao@codesourcery.com>
1696
1697 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1698 (dbx_psymtab_to_symtab): Likewise.
1699 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1700 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1701 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1702
1703 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1706 make_cleanup_restore_current_language. Call set_language. Move
1707 OLD_CHAIN and INNER_CHAIN cleanups.
1708 * utils.c (do_restore_current_language)
1709 (make_cleanup_restore_current_language): New functions.
1710 * utils.h (make_cleanup_restore_current_language): New declaration.
1711
1712 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1713
1714 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1715 non-existing files.
1716
1717 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1718 non-existing files if FILENAME is already absolute.
1719
1720 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1721
1722 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1723 fputs_filtered. Append trailing newline.
1724
1725 2013-01-11 Yao Qi <yao@codesourcery.com>
1726 Stan Shebs <stan@codesourcery.com>
1727
1728 * psymtab.c (init_psymbol_list): Clarify the comment.
1729
1730 2013-01-11 Yao Qi <yao@codesourcery.com>
1731
1732 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1733 (update_dprintf_command_list): Assert that 'printf_line' is
1734 non-null. Remove condition check.
1735
1736 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1737
1738 Code cleanup.
1739 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1740 type const char *.
1741 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1742 const char *.
1743 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1744
1745 2013-01-09 Anthony Green <green@moxielogic.com>
1746
1747 * cp-abi.c (cplus_print_vtable): Don't return value from void
1748 function.
1749 * ada-lang.c (re_set_catch_assert): Ditto.
1750
1751 2013-01-09 Doug Evans <dje@google.com>
1752
1753 * symfile.h (quick_symbol_functions): Delete member
1754 pre_expand_symtabs_matching. All uses removed.
1755 * dwarf2read.c (dw2_lookup_symbol): Implement.
1756 (dw2_do_expand_symtabs_matching): Delete.
1757 (dw2_pre_expand_symtabs_matching): Delete.
1758 (struct dw2_symtab_iterator): New type.
1759 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1760 (dw2_expand_symtabs_for_function): Rewrite.
1761 (dwarf2_gdb_index_functions): Update.
1762 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1763 (psym_functions): Update.
1764
1765 2013-01-09 Tom Tromey <tromey@redhat.com>
1766
1767 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1768 * configure: Rebuild.
1769 * configure.ac: Add somread.o to the build if BFD has SOM
1770 support.
1771 * somread.c: Include som/aout.h, not syms.h.
1772 (som_symtab_read): Use som_external_symbol_dictionary_record.
1773 Unpack records manually.
1774 (_initialize_somread): Declare.
1775
1776 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1777
1778 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1779 Cast return_address to 64bits.
1780
1781 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1782
1783 * printcmd.c: Remove define of function output_command.
1784 * tracepoint.c: Remove extern of function output_command.
1785 * valprint.h: (output_command): New extern.
1786
1787 2013-01-07 Tom Tromey <tromey@redhat.com>
1788
1789 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1790 Remove.
1791 (objc_language_defn): Use c_printchar, c_printstr,
1792 c_emit_char.
1793
1794 2013-01-07 Tom Tromey <tromey@redhat.com>
1795
1796 PR cli/7719:
1797 * NEWS: Update.
1798 * ada-valprint.c (printstr, print_field_values): Remove
1799 "inspect_it" code.
1800 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1801 code.
1802 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1803 code.
1804 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1805 * main.c (captured_main): Remove "epoch" argument.
1806 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1807 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1808 * p-valprint.c (pascal_object_print_value_fields): Remove
1809 "inspect_it" code.
1810 * printcmd.c (print_command_1): Remove 'inspect' argument.
1811 (print_command, call_command): Update.
1812 (inspect_command): Remove.
1813 (_initialize_printcmd): Make "inspect" an alias for "print".
1814 * top.c (epoch_interface): Remove.
1815 * top.h (epoch_interface): Remove.
1816 * valprint.c (user_print_options): Update.
1817 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1818 * valprint.h (struct value_print_options) <inspect_it>: Remove
1819 field.
1820
1821 2013-01-04 Tom Tromey <tromey@redhat.com>
1822
1823 * valprint.h (read_string): Add 'extern'.
1824
1825 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1826
1827 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1828 used to decide whether to define darwin_read_dyld_info or not.
1829
1830 2013-01-03 Pierre Muller <muller@sourceware.org>
1831
1832 * main.c (relocate_gdb_directory): Avoid calling stat function
1833 if DIR is empty.
1834
1835 2013-01-03 Yao Qi <yao@codesourcery.com>
1836
1837 * psymtab.c (fixup_psymbol_section): Update declaration.
1838 (fixup_psymbol_section): Remove code returning value.
1839
1840 2013-01-03 Yao Qi <yao@codesourcery.com>
1841
1842 * symtab.h: Remove some out of date comments.
1843 (enum exception_event_kind): Move it ...
1844 * breakpoint.c: ... here.
1845
1846 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1847
1848 PR gdb/14405
1849 * darwin-nat.c (darwin_read_dyld_info): Only build if
1850 TASK_DYLD_INFO_COUNT is defined.
1851 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1852 TASK_DYLD_INFO_COUNT is defined.
1853
1854 2013-01-02 Tom Tromey <tromey@redhat.com>
1855
1856 * symfile.h (struct ecoff_debug_hack): Remove.
1857 * objfiles.c: Don't include mdebugread.h.
1858
1859 2013-01-02 Tom Tromey <tromey@redhat.com>
1860
1861 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1862 * configure.ac: Check for Mach-O support in BFD. Update
1863 CONFIG_OBS.
1864 * configure: Rebuild.
1865
1866 2013-01-02 Tom Tromey <tromey@redhat.com>
1867
1868 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1869 * configure.ac: Use GDB_AC_CHECK_BFD.
1870 * configure: Rebuild.
1871
1872 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1873
1874 * MAINTAINERS: Update my email.
1875
1876 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1877
1878 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1879
1880 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1881
1882 * rs6000-nat.c (bss_data_overlap): New function.
1883 (vmap_symtab): Use it to adjust the .bss section's offset.
1884
1885 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1886
1887 Update year range in copyright notice of all files.
1888
1889 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1890
1891 * top.c (print_gdb_version): Update copyright year.
1892
1893 For older changes see ChangeLog-2012.
1894 \f
1895 Local Variables:
1896 mode: change-log
1897 left-margin: 8
1898 fill-column: 74
1899 version-control: never
1900 coding: utf-8
1901 End:
This page took 0.095426 seconds and 4 git commands to generate.