2013-12-28 22:31:23 +00:00
|
|
|
|
2014-01-13 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* defs.h (XMALLOC): Remove.
|
|
|
|
|
* avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
|
|
|
|
|
* bfin-tdep.c (bfin_gdbarch_init): Likewise.
|
|
|
|
|
* cli-out.c (struct ui_out *): Likewise.
|
|
|
|
|
* cli/cli-dump.c (add_dump_command): Likewise.
|
|
|
|
|
(add_dump_command): Likewise.
|
|
|
|
|
* complaints.c (get_complaints): Likewise.
|
|
|
|
|
(find_complaint): Likewise.
|
|
|
|
|
* dwarf2-frame.c (execute_cfa_program): Likewise.
|
|
|
|
|
* dwarf2read.c (abbrev_table_read_table): Likewise.
|
|
|
|
|
* gdbarch.sh: Likewise.
|
|
|
|
|
* gdbarch.c: Rebuild.
|
|
|
|
|
* inf-ttrace.c (inf_ttrace_add_page): Likewise.
|
|
|
|
|
* interps.c (interp_new): Likewise.
|
|
|
|
|
* lm32-tdep.c (lm32_gdbarch_init): Likewise.
|
|
|
|
|
* m32r-tdep.c (m32r_gdbarch_init): Likewise.
|
|
|
|
|
* mi/mi-console.c (mi_console_file_new): Likewise.
|
|
|
|
|
* mi/mi-interp.c (mi_interpreter_init): Likewise.
|
|
|
|
|
* mi/mi-out.c (mi_out_new): Likewise.
|
|
|
|
|
* mi/mi-parse.c (mi_parse): Likewise.
|
|
|
|
|
* microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
|
|
|
|
|
* moxie-tdep.c (moxie_gdbarch_init): Likewise.
|
|
|
|
|
* observer.c (xalloc_observer_list_node): Likewise.
|
|
|
|
|
* regcache.c (regcache_xmalloc_1): Likewise.
|
|
|
|
|
* reggroups.c (reggroup_new): Likewise.
|
|
|
|
|
(_initialize_reggroup): Likewise.
|
|
|
|
|
* registry.c (register_data_with_cleanup): Likewise.
|
|
|
|
|
* remote.c (remote_notif_stop_alloc_reply): Likewise.
|
|
|
|
|
* ser-base.c (serial_ttystate): Likewise.
|
|
|
|
|
* ser-mingw.c (make_pipe_state): Likewise.
|
|
|
|
|
* ser-pipe.c (pipe_open): Likewise.
|
|
|
|
|
* serial.c (serial_open): Likewise.
|
|
|
|
|
* sh64-tdep.c (sh64_gdbarch_init): Likewise.
|
|
|
|
|
* tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
|
|
|
|
|
(tui_alloc_win_info): Likewise.
|
|
|
|
|
(tui_add_content_elements): Likewise.
|
|
|
|
|
* tui/tui-file.c (tui_file_new): Likewise.
|
|
|
|
|
* tui/tui-out.c (tui_out_new): Likewise.
|
|
|
|
|
* ui-file.c (mem_file_new): Likewise.
|
|
|
|
|
* ui-out.c (push_level): Likewise.
|
|
|
|
|
(make_cleanup_ui_out_end): Likewise.
|
|
|
|
|
(append_header_to_list): Likewise.
|
|
|
|
|
(ui_out_new): Likewise.
|
|
|
|
|
* user-regs.c (user_reg_add_builtin): Likewise.
|
|
|
|
|
|
2013-12-28 22:31:01 +00:00
|
|
|
|
2014-01-13 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* defs.h (XZALLOC): Remove.
|
|
|
|
|
* ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
|
|
|
|
|
* ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
|
|
|
|
|
(get_ada_tasks_inferior_data): Likewise.
|
|
|
|
|
* auto-load.c (get_auto_load_pspace_data): Likewise.
|
|
|
|
|
* auxv.c (get_auxv_inferior_data): Likewise.
|
|
|
|
|
* bfd-target.c (target_bfd_reopen): Likewise.
|
|
|
|
|
* breakpoint.c (get_catch_syscall_inferior_data): Likewise.
|
|
|
|
|
(deprecated_insert_raw_breakpoint): Likewise.
|
|
|
|
|
* bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
|
|
|
|
|
* corelow.c (core_open): Likewise.
|
|
|
|
|
* darwin-nat.c (darwin_check_new_threads): Likewise.
|
|
|
|
|
(darwin_attach_pid): Likewise.
|
|
|
|
|
* dummy-frame.c (dummy_frame_push): Likewise.
|
|
|
|
|
* dwarf2-frame.c (dwarf2_frame_cache): Likewise.
|
|
|
|
|
* dwarf2loc.c (allocate_piece_closure): Likewise.
|
|
|
|
|
* elfread.c (elf_symfile_segments): Likewise.
|
|
|
|
|
* eval.c (ptrmath_type_p): Likewise.
|
|
|
|
|
* exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
|
|
|
|
|
* gdbtypes.c (alloc_type_arch): Likewise.
|
|
|
|
|
(alloc_type_instance): Likewise.
|
|
|
|
|
* hppa-tdep.c (hppa_gdbarch_init): Likewise.
|
|
|
|
|
* inf-child.c (inf_child_can_use_agent): Likewise.
|
|
|
|
|
* inflow.c (get_inflow_inferior_data): Likewise.
|
|
|
|
|
* infrun.c (save_infcall_suspend_state): Likewise.
|
|
|
|
|
* jit.c (jit_reader_load): Likewise.
|
|
|
|
|
(get_jit_objfile_data): Likewise.
|
|
|
|
|
(get_jit_program_space_data): Likewise.
|
|
|
|
|
(jit_object_open_impl): Likewise.
|
|
|
|
|
(jit_symtab_open_impl): Likewise.
|
|
|
|
|
(jit_block_open_impl): Likewise.
|
|
|
|
|
(jit_frame_sniffer): Likewise.
|
|
|
|
|
* linux-fork.c (add_fork): Likewise.
|
|
|
|
|
* maint.c (make_command_stats_cleanup): Likewise.
|
|
|
|
|
* objfiles.c (get_objfile_pspace_data): Likewise.
|
|
|
|
|
* opencl-lang.c (struct lval_closure): Likewise.
|
|
|
|
|
* osdata.c (osdata_start_osdata): Likewise.
|
|
|
|
|
* progspace.c (new_address_space): Likewise.
|
|
|
|
|
(add_program_space): Likewise.
|
|
|
|
|
* remote-sim.c (get_sim_inferior_data): Likewise.
|
|
|
|
|
* sh-tdep.c (sh_gdbarch_init): Likewise.
|
|
|
|
|
* skip.c (Ignore): Likewise.
|
|
|
|
|
(skip_delete_command): Likewise.
|
|
|
|
|
* solib-aix.c (get_solib_aix_inferior_data): Likewise.
|
|
|
|
|
(library_list_start_library): Likewise.
|
|
|
|
|
(solib_aix_current_sos): Likewise.
|
|
|
|
|
* solib-darwin.c (get_darwin_info): Likewise.
|
|
|
|
|
(darwin_current_sos): Likewise.
|
|
|
|
|
* solib-dsbt.c (get_dsbt_info): Likewise.
|
|
|
|
|
* solib-ia64-hpux.c (new_so_list): Likewise.
|
|
|
|
|
(ia64_hpux_get_solib_linkage_addr): Likewise.
|
|
|
|
|
* solib-spu.c (append_ocl_sos): Likewise.
|
|
|
|
|
(spu_current_sos): Likewise.
|
|
|
|
|
* solib-svr4.c (get_svr4_info): Likewise.
|
|
|
|
|
(svr4_keep_data_in_core): Likewise.
|
|
|
|
|
(library_list_start_library): Likewise.
|
|
|
|
|
(svr4_default_sos): Likewise.
|
|
|
|
|
(svr4_read_so_list): Likewise.
|
|
|
|
|
* solib-target.c (library_list_start_library): Likewise.
|
|
|
|
|
(solib_target_current_sos): Likewise.
|
|
|
|
|
* sparc-tdep.c (sparc32_gdbarch_init): Likewise.
|
|
|
|
|
* symfile-debug.c (install_symfile_debug_logging): Likewise.
|
|
|
|
|
* symfile.c (default_symfile_segments): Likewise.
|
|
|
|
|
* target-descriptions.c (tdesc_data_init): Likewise.
|
|
|
|
|
(tdesc_create_reg): Likewise.
|
|
|
|
|
(struct tdesc_type *): Likewise.
|
|
|
|
|
(tdesc_create_vector): Likewise.
|
|
|
|
|
(tdesc_set_struct_size): Likewise.
|
|
|
|
|
(struct tdesc_type *): Likewise.
|
|
|
|
|
(tdesc_free_feature): Likewise.
|
|
|
|
|
(tdesc_create_feature): Likewise.
|
|
|
|
|
* windows-nat.c (windows_add_thread): Likewise.
|
|
|
|
|
(windows_make_so): Likewise.
|
|
|
|
|
* xml-support.c (gdb_xml_body_text): Likewise.
|
|
|
|
|
(gdb_xml_create_parser_and_cleanup): Likewise.
|
|
|
|
|
(xml_process_xincludes): Likewise.
|
|
|
|
|
* xml-syscall.c (allocate_syscalls_info): Likewise.
|
|
|
|
|
(syscall_create_syscall_desc): Likewise.
|
|
|
|
|
|
2014-01-12 03:32:26 +00:00
|
|
|
|
2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* i386-tdep.c (i386_stap_parse_special_token_triplet): New
|
|
|
|
|
function, with code from i386_stap_parse_special_token.
|
|
|
|
|
(i386_stap_parse_special_token_three_arg_disp): Likewise.
|
|
|
|
|
(i386_stap_parse_special_token): Move code to the two functions
|
|
|
|
|
above; simplify it.
|
|
|
|
|
|
Handle the case of a remote target supporting target side commands, but not on software breakpoints.
Although we can tell upfront whether a remote target supports target
side commands, we can only tell whether the target supports that in
combination with a given breakpoint kind (software, hardware,
watchpoints, etc.) when we go and try to insert such a breakpoint kind
the first time. It's not desirable to make remote_insert_breakpoint
simply return -1 in this case, because if the breakpoint was set in a
shared library, insert_bp_location will assume that the breakpoint
insertion failed because the library wasn't mapped in.
insert_bp_location already handles errors/exceptions thrown from the
target_insert_xxx methods, exactly so the backend can tell the user
the detailed reason the insertion of hw breakpoints failed. But, in
the case of software breakpoints, it discards the detailed error
message.
So the patch makes insert_bp_location use the error's message for SW
breakpoints too, and, introduces a NOT_SUPPORTED_ERROR error code so
that insert_bp_location doesn't confuse the error for failure due to a
shared library disappearing.
The result is:
(gdb) c
Warning:
Cannot insert breakpoint 2: Target doesn't support breakpoints that have target side commands.
2014-01-09 Pedro Alves <palves@redhat.com>
Hui Zhu <hui@codesourcery.com>
PR gdb/16101
* breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
bp_err_string. Don't mark the location shlib_disabled if the
error thrown wasn't a generic or memory error. Catch errors
thrown while inserting breakpoints in overlayed code. Output
error message of software breakpoints.
* remote.c (remote_insert_breakpoint): If this breakpoint has
target-side commands but this stub doesn't support Z0 packets,
throw NOT_SUPPORTED_ERROR error.
* exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
* target.h (target_insert_breakpoint): Extend comment.
(target_insert_hw_breakpoint): Add comment.
2014-01-09 18:33:45 +00:00
|
|
|
|
2014-01-09 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/16101
|
|
|
|
|
* breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
|
|
|
|
|
bp_err_string. Don't mark the location shlib_disabled if the
|
|
|
|
|
error thrown wasn't a generic or memory error. Catch errors
|
|
|
|
|
thrown while inserting breakpoints in overlayed code. Output
|
|
|
|
|
error message of software breakpoints.
|
|
|
|
|
* remote.c (remote_insert_breakpoint): If this breakpoint has
|
|
|
|
|
target-side commands but this stub doesn't support Z0 packets,
|
|
|
|
|
throw NOT_SUPPORTED_ERROR error.
|
|
|
|
|
* exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
|
|
|
|
|
* target.h (target_insert_breakpoint): Extend comment.
|
|
|
|
|
(target_insert_hw_breakpoint): Add comment.
|
|
|
|
|
|
[remote/gdbserver] Don't lose signals when reconnecting.
Currently, when GDB connects in all-stop mode, GDBserver always
responds to the status packet with a GDB_SIGNAL_TRAP, even if the
program is actually stopped for some other signal.
(gdb) tar rem ...
...
(gdb) c
Program received signal SIGUSR1, User defined signal 1.
(gdb) disconnect
(gdb) tar rem ...
(gdb) c
(Or a GDB crash instead of an explicit disconnect.)
This results in the program losing that signal on that last continue,
because gdb will tell the target to resume with no signal (to suppress
the GDB_SIGNAL_TRAP, due to 'handle SISGTRAP nopass'), and that will
actually suppress the real signal the program had stopped for
(SIGUSR1). To fix that, I think we should make GDBserver report the
real signal the thread had stopped for in response to the status
packet:
@item ?
@cindex @samp{?} packet
Indicate the reason the target halted. The reply is the same as for
step and continue.
But, that raises the question -- which thread are we reporting the
status for? Due to how the RSP in all-stop works, we can only report
one status. The status packet's response is a stop reply packet, so
it includes the thread identifier, so it's not a problem packet-wise.
However, GDBserver is currently always reporting the status for first
thread in the thread list, even though that may well not be the thread
that got the signal that caused the program to stop. So the next
logical step would be to report the status for the
last_ptid/last_status thread (the last event reported to gdb), if it's
still around; and if not, fallback to some other thread.
There's an issue on the GDB side with that, though...
GDB currently always adds the thread reported in response to the
status query as the first thread in its list. That means that if we
start with e.g.,
(gdb) info threads
3 Thread 1003 ...
* 2 Thread 1002 ...
1 Thread 1001 ...
And reconnect:
(gdb) disconnect
(gdb) tar rem ...
We end up with:
(gdb) info threads
3 Thread 1003 ...
2 Thread 1001 ...
* 1 Thread 1002 ...
Not a real big issue, but it's reasonably fixable, by having GDB
fetch/sync the thread list before fetching the status/'?', and then
using the status to select the right thread as current on the GDB
side. Holes in the thread numbers are squashed before/after
reconnection (e.g., 2,3,5 becomes 1,2,3), but the order is preserved,
which I think is both good, and good enough.
However (yes, there's more...), the previous GDB that was connected
might have had gdbserver running in non-stop mode, or could have left
gdbserver doing disconnected tracing (which also forces non-stop), and
if the new gdb/connection is in all-stop mode, we can end up with more
than one thread with a signal to report back to gdb. As we can only
report one thread/status (in the all-stop RSP variant; the non-stop
variant doesn't have this issue), we get to do what we do at every
other place we have this situation -- leave events we can't report
right now as pending, so that the next resume picks them up.
Note all this ammounts to a QoI change, within the existing framework.
There's really no RSP change here.
The only user visible change (other than that the signal is program is
stopped at isn't lost / is passed to the program), is in "info
program", that now can show the signal the program stopped for. Of
course, the next resume will respect the pass/nopass setting for the
signal in question. It'd be reasonable to have the initial connection
tell the user the program was stopped with a signal, similar to when
we load a core to debug, but I'm leaving that out for a future change.
I think we'll need to either change how handle_inferior_event & co
handle stop_soon, or maybe bypass them completely (like
fork-child.c:startup_inferior) for that.
Tested on x86_64 Fedora 17.
gdb/gdbserver/
2014-01-08 Pedro Alves <palves@redhat.com>
* gdbthread.h (struct thread_info) <status_pending_p>: New field.
* server.c (visit_actioned_threads, handle_pending_status): New
function.
(handle_v_cont): Factor out parts to ...
(resume): ... this new function. If in all-stop, and a thread
being resumed has a pending status, report it without actually
resuming.
(myresume): Adjust to use the new 'resume' function.
(clear_pending_status_callback, set_pending_status_callback)
(find_status_pending_thread_callback): New functions.
(handle_status): Handle the case of multiple threads having
interesting statuses to report. Report threads' real last signal
instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
with an interesting thread to report the status for, instead of
always reporting the status of the first thread.
gdb/
2014-01-08 Pedro Alves <palves@redhat.com>
* remote.c (remote_add_thread): Add threads silently if starting
up.
(remote_notice_new_inferior): If in all-stop, and starting up,
don't call notice_new_inferior.
(get_current_thread): New function, factored out from ...
(add_current_inferior_and_thread): ... this. Adjust.
(remote_start_remote) <all-stop>: Fetch the thread list. If we
found any thread, then select the remote's current thread as GDB's
current thread too.
gdb/testsuite/
2014-01-08 Pedro Alves <palves@redhat.com>
* gdb.threads/reconnect-signal.c: New file.
* gdb.threads/reconnect-signal.exp: New file.
2014-01-08 18:55:51 +00:00
|
|
|
|
2014-01-08 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (remote_add_thread): Add threads silently if starting
|
|
|
|
|
up.
|
|
|
|
|
(remote_notice_new_inferior): If in all-stop, and starting up,
|
|
|
|
|
don't call notice_new_inferior.
|
|
|
|
|
(get_current_thread): New function, factored out from ...
|
|
|
|
|
(add_current_inferior_and_thread): ... this. Adjust.
|
|
|
|
|
(remote_start_remote) <all-stop>: Fetch the thread list. If we
|
|
|
|
|
found any thread, then select the remote's current thread as GDB's
|
|
|
|
|
current thread too.
|
|
|
|
|
|
2014-01-08 09:41:03 +00:00
|
|
|
|
2014-01-08 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Create a new section for the next release branch.
|
|
|
|
|
Rename the section of the current branch, now that it has
|
|
|
|
|
been cut.
|
|
|
|
|
|
2014-01-08 09:25:28 +00:00
|
|
|
|
2014-01-08 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
|
|
|
|
|
* version.in: Bump version to 7.7.50.DATE-cvs.
|
|
|
|
|
|
2014-01-07 10:12:21 +00:00
|
|
|
|
2014-01-08 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
|
|
|
|
|
type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
|
|
|
|
|
(spu_xfer_partial): Cast 'buf' to 'const char *'.
|
|
|
|
|
|
2014-01-07 09:48:07 +00:00
|
|
|
|
2014-01-08 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
|
|
|
|
|
return value of bfd_get_filename to symbol_file_add_from_bfd.
|
|
|
|
|
|
2014-01-07 23:31:50 +00:00
|
|
|
|
2014-01-08 Pierre Muller <muller@sourceware.org>
|
|
|
|
|
|
|
|
|
|
Fix PR16201.
|
|
|
|
|
* coff-pe-read.c (struct read_pe_section_data): Add index field.
|
|
|
|
|
(add_pe_exported_sym): Use SECTION_DATA->INDEX for call
|
|
|
|
|
to prim_record_mininal_symbol_and_info.
|
|
|
|
|
(add_pe_forwarded_sym): Use known section number of forwarded symbol
|
|
|
|
|
in call to prim_record_minimal_symbol_and_info.
|
|
|
|
|
(read_pe_exported_syms): Set index field of section_data.
|
|
|
|
|
|
2013-12-18 19:03:07 +00:00
|
|
|
|
2014-01-07 Andrew Pinski <apinski@cavium.com>
|
|
|
|
|
|
|
|
|
|
* features/aarch64-core.xml (cpsr): Change to be 64bit.
|
|
|
|
|
* features/aarch64.c: Regenerate.
|
|
|
|
|
|
2014-01-07 20:28:53 +00:00
|
|
|
|
2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
|
|
|
|
|
|
|
|
|
|
* target.c (return_null): Define.
|
|
|
|
|
(update_current_target): Use it instead of return_zero for
|
|
|
|
|
functions that return a pointer.
|
|
|
|
|
|
2014-01-07 19:03:06 +00:00
|
|
|
|
2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
* source.c (add_path): Fix check for duplicated paths in the previously
|
|
|
|
|
included paths.
|
|
|
|
|
|
2014-01-07 03:25:10 +00:00
|
|
|
|
2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c: Remove duplicated include statements.
|
|
|
|
|
* alphabsd-nat.c: Ditto.
|
|
|
|
|
* amd64-darwin-tdep.c: Ditto.
|
|
|
|
|
* amd64fbsd-nat.c: Ditto.
|
|
|
|
|
* auto-load.c: Ditto.
|
|
|
|
|
* ax-gdb.c: Ditto.
|
|
|
|
|
* breakpoint.c: Ditto.
|
|
|
|
|
* dbxread.c: Ditto.
|
|
|
|
|
* fork-child.c: Ditto.
|
|
|
|
|
* gdb_usleep.c: Ditto.
|
|
|
|
|
* i386-darwin-tdep.c: Ditto.
|
|
|
|
|
* i386fbsd-nat.c: Ditto.
|
|
|
|
|
* infcmd.c: Ditto.
|
|
|
|
|
* inferior.c: Ditto.
|
|
|
|
|
* jv-lang.c: Ditto.
|
|
|
|
|
* linux-nat.c: Ditto.
|
|
|
|
|
* linux-tdep.c: Ditto.
|
|
|
|
|
* m68kbsd-nat.c: Ditto.
|
|
|
|
|
* m68klinux-nat.c: Ditto.
|
|
|
|
|
* microblaze-tdep.c: Ditto.
|
|
|
|
|
* mips-linux-tdep.c: Ditto.
|
|
|
|
|
* mn10300-tdep.c: Ditto.
|
|
|
|
|
* nto-tdep.c: Ditto.
|
|
|
|
|
* opencl-lang.c: Ditto.
|
|
|
|
|
* osdata.c: Ditto.
|
|
|
|
|
* printcmd.c: Ditto.
|
|
|
|
|
* regcache.c: Ditto.
|
|
|
|
|
* remote-m32r-sdi.c: Ditto.
|
|
|
|
|
* remote.c: Ditto.
|
|
|
|
|
* symfile.c: Ditto.
|
|
|
|
|
* symtab.c: Ditto.
|
|
|
|
|
* tilegx-linux-nat.c: Ditto.
|
|
|
|
|
* tilegx-tdep.c: Ditto.
|
|
|
|
|
* tracepoint.c: Ditto.
|
|
|
|
|
* valops.c: Ditto.
|
|
|
|
|
* vaxbsd-nat.c: Ditto.
|
|
|
|
|
* windows-nat.c: Ditto.
|
|
|
|
|
* xtensa-tdep.c: Ditto.
|
|
|
|
|
|
2014-01-07 09:28:48 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* spu-linux-nat.c (_initialize_spu_nat): Declare.
|
|
|
|
|
|
2014-01-08 09:16:32 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
|
|
|
|
|
(pdc_write_regs): Likewise.
|
|
|
|
|
(fetch_regs_kernel_thread): Likewise.
|
|
|
|
|
(store_regs_kernel_thread): Likewise.
|
|
|
|
|
|
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
|
|
|
|
|
tagged type objects to their actual type.
|
|
|
|
|
|
Ada: Fix missing call to pretty-printer for fields of records.
Consider the following types:
type Time_T is record
Secs : Integer;
end record;
Before : Time_T := (Secs => 1384395743);
In this example, we assume that type Time_T is the number of seconds
since Epoch, and so added a Python pretty-printer, to print this
type in a more human-friendly way. For instance:
(gdb) print before
$1 = Thu Nov 14 02:22:23 2013 (1384395743)
However, we've noticed that things stop working when this type is
embedded inside another record, and we try to print that record.
For instance, with the following declarations:
type Composite is record
Id : Integer;
T : Time_T;
end record;
Afternoon : Composite := (Id => 1, T => (Secs => 1384395865));
(gdb) print afternoon
$2 = (id => 1, t => (secs => 1384395865))
We expected instead:
(gdb) print afternoon
$2 = (id => 1, t => Thu Nov 14 02:24:25 2013 (1384395865))
This patch fixes the problem by making sure that we try to print
each field via a call to val_print, rather than calling ada_val_print
directly. We need to go through val_print, as the val_print
handles all language-independent features such as calling the
pretty-printer, knowing that ada_val_print will get called eventually
if actual Ada-specific printing is required (which should be the
most common scenario).
And because val_print takes the language as parameter, we enhanced
the print_field_values and print_variant_part to also take a language.
As a bonus, this allows us to remove a couple of references to
current_language.
gdb/ChangeLog:
* ada-valprint.c (print_field_values): Add "language" parameter.
Update calls to print_field_values and print_variant_part.
Pass new parameter "language" in call to val_print instead
of "current_language". Replace call to ada_val_print by call
to val_print.
(print_variant_part): Add "language" parameter.
(ada_val_print_struct_union): Update call to print_field_values.
gdb/testsuite/ChangeLog:
* gdb.ada/pp-rec-component.exp, gdb.ada/pp-rec-component.py,
gdb.ada/pp-rec-component/foo.adb, gdb.ada/pp-rec-component/pck.adb,
gdb.ada/pp-rec-component/pck.ads: New files.
2013-12-19 17:26:55 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (print_field_values): Add "language" parameter.
|
|
|
|
|
Update calls to print_field_values and print_variant_part.
|
|
|
|
|
Pass new parameter "language" in call to val_print instead
|
|
|
|
|
of "current_language". Replace call to ada_val_print by call
|
|
|
|
|
to val_print.
|
|
|
|
|
(print_variant_part): Add "language" parameter.
|
|
|
|
|
(ada_val_print_struct_union): Update call to print_field_values.
|
|
|
|
|
|
2013-12-19 16:19:45 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ui_memcpy): Delete.
|
|
|
|
|
(ada_print_floating): Update documentation. Add empty line
|
|
|
|
|
between between function documentation and implementation.
|
|
|
|
|
Delete variable "buffer". Use ui_file_xstrdup in place of
|
|
|
|
|
ui_file_put. Minor adjustments following this change.
|
|
|
|
|
|
2013-12-19 16:06:46 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_string): New function,
|
|
|
|
|
extracted from ada_val_print_array.
|
|
|
|
|
(ada_val_print_array): Replace extracted code by call
|
|
|
|
|
to ada_val_print_string followed by a return. Move
|
|
|
|
|
"else" branch to the function's top block.
|
|
|
|
|
|
2013-12-19 15:43:57 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_array): Move implementation
|
|
|
|
|
down. Rename parameter "offset" and "val" into "offset_aligned"
|
|
|
|
|
and "original_value" respectively. Add parameter "offset".
|
|
|
|
|
|
2013-12-19 15:26:27 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_ref): Rewrite by mostly
|
|
|
|
|
re-organizing the code. Change the "???" message printed
|
|
|
|
|
when target type is a TYPE_CODE_UNDEF into
|
|
|
|
|
"<ref to undefined type>".
|
|
|
|
|
|
2013-12-19 15:11:49 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (print_record): Delete, implementation inlined...
|
|
|
|
|
(ada_val_print_struct_union): ... here. Remove call to
|
|
|
|
|
ada_check_typedef in inlined implementation.
|
|
|
|
|
|
2013-12-19 12:30:43 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_gnat_array): New function,
|
|
|
|
|
extracted from ada_val_print_1;
|
|
|
|
|
(ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
|
|
|
|
|
(ada_val_print_flt, ada_val_print_struct_union)
|
|
|
|
|
(ada_val_print_ref): Likewise.
|
|
|
|
|
(ada_val_print_1): Delete variables i and elttype.
|
|
|
|
|
Replace extracted-out code by call to corresponding
|
|
|
|
|
new functions.
|
|
|
|
|
|
2013-12-19 11:48:39 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
|
|
|
|
|
|
2013-12-19 11:27:00 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_1): Replace calls to
|
|
|
|
|
ada_val_print_1 by calls to val_print.
|
|
|
|
|
|
2013-12-19 10:33:20 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_val_print_1): Add parameter "language".
|
|
|
|
|
Update calls to self accordingly. Replace calls to c_val_print
|
|
|
|
|
by calls to val_print.
|
|
|
|
|
|
2013-12-19 10:05:16 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (print_record): Delete declaration.
|
|
|
|
|
(adjust_type_signedness, ada_val_print_1): Likewise.
|
|
|
|
|
(ada_val_print): Move function implementation down.
|
|
|
|
|
(print_variant_part, print_field_values, print_record):
|
|
|
|
|
Move function implementation up.
|
|
|
|
|
|
2013-12-23 03:18:51 +00:00
|
|
|
|
2014-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* python/py-type.c (typy_get_name): New function.
|
|
|
|
|
(type_object_getset): Add entry for attribute "name".
|
|
|
|
|
* NEWS: Add entry mentioning this new attribute.
|
|
|
|
|
|
2014-01-05 11:32:51 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
|
|
|
|
|
statement.
|
|
|
|
|
|
2014-01-05 11:36:51 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (info_port_rights): Add qualifier const to
|
|
|
|
|
argument args.
|
|
|
|
|
|
2014-01-05 11:37:53 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (trace_me): Use 'void' for empty argument list.
|
|
|
|
|
|
2014-01-05 11:36:03 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (make_inf) Update declaration.
|
|
|
|
|
(make_inf): Make it static.
|
|
|
|
|
(inf_set_traced): Likewise.
|
|
|
|
|
(inf_port_to_thread, inf_task_died_status): Likewise.
|
|
|
|
|
|
2014-01-05 07:38:44 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (inf_tid_to_proc): Remove declaration.
|
|
|
|
|
|
2014-01-05 07:05:44 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gnu-nat.c (_initialize_gnu_nat): Declare.
|
|
|
|
|
|
2014-01-02 03:02:56 +00:00
|
|
|
|
2014-01-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gdbarch.sh (byte_order, byte_order_for_code): Change type to
|
|
|
|
|
'enum bfd_endian'.
|
|
|
|
|
(struct gdbarch_info) <byte_order>: Change type to
|
|
|
|
|
'enum bfd_endian'.
|
|
|
|
|
<byte_order_for_code>: Likewise.
|
|
|
|
|
* gdbarch.c, gdbarch.h: Regenerated.
|
|
|
|
|
|
2014-01-06 21:57:59 +00:00
|
|
|
|
2014-01-06 Sasha Smundak <asmundak@google.com>
|
|
|
|
|
|
|
|
|
|
* jit.c: (jit_reader_load_command): Fix JIT reader path creation.
|
|
|
|
|
|
2013-12-29 09:39:28 +00:00
|
|
|
|
2014-01-06 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* doublest.c (convert_doublest_to_floatformat): Use const, not
|
|
|
|
|
CONST.
|
|
|
|
|
* somread.c (som_symtab_read): Likewise.
|
|
|
|
|
|
2014-01-06 16:24:41 +00:00
|
|
|
|
2014-01-07 Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* gdb_bfd.c (gdb_bfd_stash_filename): Removed.
|
|
|
|
|
(gdb_bfd_open): Removed gdb_bfd_stash_filename.
|
|
|
|
|
(gdb_bfd_fopen): Ditto.
|
|
|
|
|
(gdb_bfd_openr): Ditto.
|
|
|
|
|
(gdb_bfd_openw): Ditto.
|
|
|
|
|
(gdb_bfd_openr_iovec): Ditto.
|
|
|
|
|
(gdb_bfd_fdopenr): Ditto.
|
|
|
|
|
* gdb_bfd.h (gdb_bfd_stash_filename): Removed.
|
|
|
|
|
* solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
|
|
|
|
|
with xstrdup.
|
|
|
|
|
* solib-darwin.c (darwin_bfd_open): Alloc res->filename
|
|
|
|
|
with xstrdup.
|
|
|
|
|
* symfile-mem.c (symbol_file_add_from_memory): Removed
|
|
|
|
|
gdb_bfd_stash_filename.
|
|
|
|
|
|
2014-01-03 22:34:45 +00:00
|
|
|
|
2014-01-03 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
|
|
|
|
|
output.
|
|
|
|
|
|
2014-01-01 03:57:03 +00:00
|
|
|
|
2014-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2014-01-01 03:39:44 +00:00
|
|
|
|
2014-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* top.c (print_gdb_version): Set copyright year to 2014.
|
|
|
|
|
|
2014-01-01 03:34:22 +00:00
|
|
|
|
2014-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
|
|
|
|
|
|
2014-01-01 03:31:51 +00:00
|
|
|
|
For older changes see ChangeLog-2013.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
2007-08-09 22:44:38 +00:00
|
|
|
|
coding: utf-8
|
1999-04-16 01:35:26 +00:00
|
|
|
|
End:
|